Skip to main content
1-Visitor
February 21, 2020
Solved

summary alert

  • February 21, 2020
  • 2 replies
  • 1281 views

hi community, 

 

i want to make a summary of alert of an equipement that is composed by 3 devices, that means if a have an alert on 1 device or more i should calculate the sum of alert of all of them. 

PS : i want to know also if an alert appear or disapper.

 

Best answer by raluca_edu

Hi,

 

Check this service, maybe it will help you:

 

var params = {
maxItems: undefined /* NUMBER */,
onlyUnacknowledged: undefined /* BOOLEAN */,
query: undefined /* QUERY */,
name: undefined /* THINGNAME */,
property: undefined /* STRING */,
onlyAcknowledged: undefined /* BOOLEAN */
};

// result: INFOTABLE dataShape: AlertSummary
var result = Resources["AlertFunctions"].QueryAlertSummaryForThing(params);

 

Regards,

Raluca Edu

2 replies

raluca_edu
17-Peridot
February 21, 2020

Hi,

 

Check this service, maybe it will help you:

 

var params = {
maxItems: undefined /* NUMBER */,
onlyUnacknowledged: undefined /* BOOLEAN */,
query: undefined /* QUERY */,
name: undefined /* THINGNAME */,
property: undefined /* STRING */,
onlyAcknowledged: undefined /* BOOLEAN */
};

// result: INFOTABLE dataShape: AlertSummary
var result = Resources["AlertFunctions"].QueryAlertSummaryForThing(params);

 

Regards,

Raluca Edu

Support
March 5, 2020

Hi @anassNasser.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon