The Marvis alerts retrieved from the Live Demo system REST API don't have the details that contain the action type and status. The alarm defs shows an example with this format:
{
"key": "non_compliant",
"display": "Non-compliant",
"group": "marvis",
"marvis_suggestion_category": "ap",
"severity": "critical",
"example": {
"severity": "critical",
"timestamp": 1629755015,
"last_seen": 1629755015,
"status": "open",
"license_requirement": "VNA",
"id": "5168b980-640b-43d8-85b8-ecee9eb17647",
"action_id": "5168b980-640b-43d8-85b8-ecee9eb17647",
"org_id": "aabbccdd-0000-1111-aaaa-123456abcdef",
"org_name": "EXAMPLE ORG",
"site_id": "ccddeeff-0000-1111-aaaa-123456abcdef",
"site_name": "EXAMPLE SITE",
"details": {
"action": "firmware_upgrade",
"category": "ap",
"status": "open",
"symptom": "non_compliant"
},
"impacted_entities": [
{
"entity_type": "ap",
"entity_mac": "aa2b3c4d5e6f",
"entity_name": "EXAMPLE AP",
"connected_switch_mac": "1a2b3c4d5e6f",
"connected_switch_name": "EXAMPLE SWITCH",
"entity_version": "0.10.24200",
"port_id": "40",
"recommended_version": "0.6.19032"
},
{
"entity_type": "ap",
"entity_mac": "bb2b3c4d5e6f",
"entity_name": "EXAMPLE AP 2",
"connected_switch_mac": "112b3c4d5e6f",
"connected_switch_name": "EXAMPLE SWITCH 2",
"entity_version": "0.6.19032",
"port_id": "24",
"recommended_version": "0.10.24200"
}
],
"suggestion": "firmware_upgrade",
"category": "ap",
"count": 1,
"type": "non_compliant",
"group": "marvis"
},
"fields": [
"entity_macs",
"port_ids",
"connected_switch_macs"
]
},
However, the alert from API is: {
"severity": "critical",
"timestamp": 1704423121,
"last_seen": 1704423121,
"impacted_entities": [
{
"entity_version": "0.12.27139",
"entity_type": "ap",
"entity_mac": "5c5b353e4d71",
"entity_name": "MC_TestAP2",
"recommended_version": "0.14.29091"
}
],
"org_id": "9777c1a0-6ef6-11e6-8bbf-02e208b2d34f",
"count": 1,
"site_id": "978c48e6-6ef6-11e6-8bbf-02e208b2d34f",
"id": "27e49d26-d094-41d9-9bb2-657f2d38eb48",
"type": "non_compliant",
"group": "marvis",
"entity_macs": [
"5c5b353e4d71"
]
}
Do we need to specify any configuration to enable the extra fields in the API response?
And, when a Marvis action is acted upon, like setting the status of the Marvis Action to 'Resolve', will the alert with the same id will be updated depicting the new action?
------------------------------
Udaykiran Reddy Matta
------------------------------