json_get_alarms
The snippet can be accessed without any authentication.
Authored by
Florent Demeulenaere
{
"total": 1,
"data": [{
"alarms": [{
"d": "res3/localhost",
"links": {},
"entity": {
"impact": ["localhost"],
"name": "res3",
"enable_history": [1523611576],
"measurements": {},
"enabled": true,
"depends": ["toto/toto"],
"infos": {},
"_id": "res3/localhost",
"type": "resource"
},
"linklist": {},
"pbehaviors": [],
"t": 1523611576,
"v": {
"status": {
"a": "toto.toto",
"_t": "statusinc",
"m": "output",
"t": 1523611576,
"val": 1
},
"resolved": null,
"display_name": "IV-YL-NY",
"extra": {},
"ack": null,
"duration": 279716,
"tags": [],
"component": "localhost",
"creation_date": 1523611576,
"connector": "toto",
"canceled": null,
"state": {
"a": "toto.toto",
"_t": "stateinc",
"m": "output",
"t": 1523611576,
"val": 2
},
"connector_name": "toto",
"initial_output": "output",
"last_update_date": 1523611576,
"snooze": null,
"resource": "res3",
"ticket": null,
"hard_limit": null
},
"infos": {},
"_id": "b779d1fa-3efc-11e8-98c0-fe000ce69ce4"
}, {
"d": "res4/localhost",
"links": {},
"entity": {
"impact": ["localhost"],
"name": "res4",
"enable_history": [1523611577],
"measurements": {},
"enabled": true,
"depends": ["toto/toto"],
"infos": {},
"_id": "res4/localhost",
"type": "resource"
},
"linklist": {},
"pbehaviors": [],
"t": 1523611577,
"v": {
"status": {
"a": "toto.toto",
"_t": "statusinc",
"m": "output",
"t": 1523611577,
"val": 1
},
"resolved": null,
"display_name": "ZF-LH-JZ",
"extra": {},
"ack": null,
"duration": 279715,
"tags": [],
"component": "localhost",
"creation_date": 1523611577,
"connector": "toto",
"canceled": null,
"state": {
"a": "toto.toto",
"_t": "stateinc",
"m": "output",
"t": 1523611577,
"val": 2
},
"connector_name": "toto",
"initial_output": "output",
"last_update_date": 1523611577,
"snooze": null,
"resource": "res4",
"ticket": null,
"hard_limit": null
},
"infos": {},
"_id": "b8331dc2-3efc-11e8-98c0-fe000ce69ce4"
}, {
"d": "res1/localhost",
"links": {},
"entity": {
"impact": ["localhost"],
"name": "res1",
"enable_history": [1523611574],
"measurements": {},
"enabled": true,
"depends": ["toto/toto"],
"infos": {},
"_id": "res1/localhost",
"type": "resource"
},
"linklist": {},
"pbehaviors": [],
"t": 1523611574,
"v": {
"status": {
"a": "toto.toto",
"_t": "statusinc",
"m": "output",
"t": 1523611574,
"val": 1
},
"resolved": null,
"display_name": "KD-HG-FJ",
"extra": {},
"ack": null,
"duration": 279718,
"tags": [],
"component": "localhost",
"creation_date": 1523611574,
"connector": "toto",
"canceled": null,
"state": {
"a": "toto.toto",
"_t": "stateinc",
"m": "output",
"t": 1523611574,
"val": 2
},
"connector_name": "toto",
"initial_output": "output",
"last_update_date": 1523611574,
"snooze": null,
"resource": "res1",
"ticket": null,
"hard_limit": null
},
"infos": {},
"_id": "b60a480e-3efc-11e8-98c0-fe000ce69ce4"
}, {
"d": "res0/localhost",
"links": {},
"entity": {
"impact": ["localhost"],
"name": "res0",
"enable_history": [1523611572],
"measurements": {},
"enabled": true,
"depends": ["toto/toto"],
"infos": {},
"_id": "res0/localhost",
"type": "resource"
},
"linklist": {},
"pbehaviors": [],
"t": 1523611572,
"v": {
"status": {
"a": "toto.toto",
"_t": "statusinc",
"m": "output",
"t": 1523611572,
"val": 1
},
"resolved": null,
"display_name": "LD-KA-GW",
"extra": {},
"ack": null,
"duration": 279720,
"tags": [],
"component": "localhost",
"creation_date": 1523611572,
"connector": "toto",
"canceled": null,
"state": {
"a": "toto.toto",
"_t": "stateinc",
"m": "output",
"t": 1523611572,
"val": 2
},
"connector_name": "toto",
"initial_output": "output",
"last_update_date": 1523611572,
"snooze": null,
"resource": "res0",
"ticket": null,
"hard_limit": null
},
"infos": {},
"_id": "b5597024-3efc-11e8-98c0-fe000ce69ce4"
}, {
"d": "res2/localhost",
"links": {},
"entity": {
"impact": ["localhost"],
"name": "res2",
"enable_history": [1523611575],
"measurements": {},
"enabled": true,
"depends": ["toto/toto"],
"infos": {},
"_id": "res2/localhost",
"type": "resource"
},
"linklist": {},
"pbehaviors": [],
"t": 1523611575,
"v": {
"status": {
"a": "toto.toto",
"_t": "statusinc",
"m": "output",
"t": 1523611575,
"val": 1
},
"resolved": null,
"display_name": "CN-TR-CD",
"extra": {},
"ack": null,
"duration": 279717,
"tags": [],
"component": "localhost",
"creation_date": 1523611575,
"connector": "toto",
"canceled": null,
"state": {
"a": "toto.toto",
"_t": "stateinc",
"m": "output",
"t": 1523611575,
"val": 2
},
"connector_name": "toto",
"initial_output": "output",
"last_update_date": 1523611575,
"snooze": null,
"resource": "res2",
"ticket": null,
"hard_limit": null
},
"infos": {},
"_id": "b6c41fcc-3efc-11e8-98c0-fe000ce69ce4"
}],
"total": 101,
"last": 5,
"first": 1,
"truncated": false
}],
"success": true
}
Please register or sign in to comment