Skip to Main Content
Cumulocity IoT Feedback Portal
Created by Guest
Created on May 4, 2022

Added Timespan for alarm fragment

Hi Team,

a client has reported that his widget didn't show the duration correctly. It should be fixed/updated.

Our Idea: After clearing an existing alarm, should the Timespan should be shown correctly.


Test-Informations:

  • There is only one minute between creationTime and lastUpdated, but the CLEARED came at 08:46:23, but the bar is only 1 minute long.

  • the duration display is broken


Über die API sieht der Alarm so aus:

{

"Schweregrad": "MINDERJÄHRIG",

"creationTime": "2022-04-29T06:45: 23.944Z",

"count": 1,

"Geschichte": {

"auditRecords": [],

"Selbst": https://t53986239.emea.cumulocity.com/audit/auditRecords

},

"Quelle": {

"Name": "UN65XXXXM01003541",

"Selbst": https://t53986239.emea.cumulocity.com/inventory/managedObjects/1545000,

"ID": "1545000"

},

"type": "TestAlarm",

"lastUpdated": "2022-04-29T06:46: 32.402Z",

"Selbst": https://t53986239.emea.cumulocity.com/alarm/alarms/1546091,

"Zeit": "2022-04-29T06: 00:00.000Z",

"id": "1546091",

"Text": "Ich bin ein Alarm",

"status": "GELÖSCHT"

}

Angelegt habe ich ihn so:

{

"Quelle": {

"id": "1545000" },

"type": "TestAlarm",

"Text": "Ich bin ein Alarm",

"Schweregrad": "MINDERJÄHRIG",

"status": "AKTIV",

"Zeit": "2022-04-29T06:00: 0Z"

}

Und als Ergebnis kam dies hier:

{

"Schweregrad": "MINDERJÄHRIG",

"creationTime": "2022-04-29T06:45: 23.944Z",

"count": 1,

"Geschichte": {

"auditRecords": [],

"Selbst": https://t53986239.emea.cumulocity.com/audit/auditRecords

},

"Quelle": {

"Name": "UN65XXXXM01003541",

"Selbst": https://t53986239.emea.cumulocity.com/inventory/managedObjects/1545000,

"ID": "1545000"

},

"type": "TestAlarm",

"lastUpdated": "2022-04-29T06:45: 23.944Z",

"Selbst": https://t53986239.emea.cumulocity.com/alarm/alarms/1546091,

"Zeit": "2022-04-29T06: 00:00.000Z",

"id": "1546091",

"Text": "Ich bin ein Alarm",

"status": "AKTIV"

}


  • Attach files
  • Guest
    Reply
    |
    May 4, 2022

    Anhang