you don't need to add all the properties to the body, with the indicatorFilter option including indicatorId (or any other combination) it will work.
Original Message:
Sent: Fri December 08, 2023 09:14 AM
From: AKHIL Raj
Subject: How to gather Last Successful poll/Ping date for devices which was working earlier and down recently
Hi Raul,
Thank you . I am trying to fetch the detail via API call /api/v3/data/last_data_point and passed device ID values in the body but still its asking to fill the rest of parameters in the indicator filter section . Any hint on this which parameters are required in the body ? Do you have any sample ?
{
"cutOffTime": 0,
"displayPrimaryName": true,
"includeNotVisible": true,
"indicatorFilters": [
{
"deviceDisplayNames": [
{
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
],
"deviceIds": [
"1606"
],
"deviceMetadataFilter": [
{
"attributeId": "string",
"attributeName": {
"attribute": "string",
"namespace": "string"
},
"attributeValue": "string"
}
],
"deviceNames": [
{
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
],
"deviceObjects": [
{
"device": "string",
"deviceDisplayName": {
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
},
"deviceName": {
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
},
"object": "string",
"objectDisplayName": {
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
},
"objectName": {
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
},
"plugin": "UNKNOWN_PLUGIN",
"pluginObjectString": {
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
}
],
"deviceTagIds": [
"string"
],
"deviceTagPaths": [
{
"pathComponents": [
"string"
]
}
],
"enabled": "MATCH_ALL",
"indicatorIds": [
"string"
],
"indicatorTypeDescriptions": [
{
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
],
"indicatorTypeIds": [
"string"
],
"indicatorTypeNames": [
{
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
],
"multifieldObjectFilters": [
{
"filters": [
{
"fields": [
"FIELD_DESCRIPTION"
],
"terms": [
{
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
]
}
]
}
],
"netflowInformation": [
"string"
],
"objectDisplayNames": [
{
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
],
"objectGroupIds": [
"string"
],
"objectGroupNames": [
{
"className": "string",
"groupName": "string"
}
],
"objectIds": [
"string"
],
"objectNames": [
{
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
],
"objectTypeIds": [
"string"
],
"objectTypePaths": [
{
"pathComponents": [
"string"
]
}
],
"pluginIds": [
"string"
],
"pluginObjectStrings": [
{
"fuzzy": true,
"type": "FUZZABLE_STRING_TYPE_EXACT",
"value": "string"
}
],
"plugins": [
"UNKNOWN_PLUGIN"
]
}
],
"objectMetadataFilter": [
{
"attributeId": "string",
"attributeName": {
"attribute": "string",
"namespace": "string"
},
"attributeValue": "string"
}
]
}
has context menuParagraph
------------------------------
AKHIL Raj
Original Message:
Sent: Fri December 08, 2023 08:25 AM
From: Raul Gonzalez
Subject: How to gather Last Successful poll/Ping date for devices which was working earlier and down recently
Hi Akhil
Last success poll will give you the last value (regardless of whether it's up or down). I guess the best option would be to use the API to get the data and maybe insert it as metadata, and them use a metadata report.
------------------------------
Raul Gonzalez
Software Networking Solutions Architect
IBM
Brighton, UK
Original Message:
Sent: Fri December 08, 2023 07:31 AM
From: AKHIL Raj
Subject: How to gather Last Successful poll/Ping date for devices which was working earlier and down recently
Hi Raul,
Thank you for the update . we are trying to incorporate this field in device manager or in inventory report. other than last data point do we have any other fields which can be used to get - Last successful poll for down devices ?
------------------------------
AKHIL Raj
Original Message:
Sent: Thu December 07, 2023 04:49 AM
From: Raul Gonzalez
Subject: How to gather Last Successful poll/Ping date for devices which was working earlier and down recently
Hi Akhil
I see two options here:
- First we can try to do what you ask for, where we will need this API endpoint to get the last value POST /api/v3/data/last_data_point and then this other endpoint to collect the last XX days of data and check if the device was up at any point in time POST /api/v3/data/performance_metrics.
- Other way would be using alerting, there is an option to alert when there is a change on the value of the indicator, that will help you identify when there was a change (up to down or down to up)
![](https://dw1.s81c.com//IMWUC/MessageImages/1763439b4ecf4b6aa8fc44482c152849.png)
------------------------------
Raul Gonzalez
Software Networking Solutions Architect
IBM
Brighton, UK
Original Message:
Sent: Wed December 06, 2023 12:13 PM
From: AKHIL Raj
Subject: How to gather Last Successful poll/Ping date for devices which was working earlier and down recently
Is there any method we can collect when was the Last Successful poll/Ping date for devices which was working earlier and down recently?
Initially we thought to use the Last discovered date but its showing current attempt date for devices which are down for a long period.
Other option required much manual effort , check the alert console , note when it is triggered and update it in the report which is not the right practice.
So we are looking for any query or API call which gives this details , it can be feeded to a custom metadata field and the same can be used in the reports.
Any leads or hints will be helpful.
------------------------------
AKHIL Raj
------------------------------