{"type":"api","title":"Update Alarm Severity Settings","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/3ba2ebf1-2c82-351f-9129-0701a2a03db6","info":{"title":"APIs exposed by Alarm Rest service","description":"APIs exposed by Alarm Rest service.","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/EMF/fault-emf-api-overview.md"}},"openapi":"3.0.1","servers":[{"url":"https://{server_ip}:30603/crosswork/alarm/v1","description":"Generated server url"}]},"spec":{"tags":["alarm-rest"],"summary":"Update Alarm Severity Settings","description":"Supported Actions : Update Alarm Severity Configuration\n\nPayload attributes: \n\u003cb\u003esourceType\u003c/b\u003e: string (Severity Configuration Change should be 'scc') \n\u003cb\u003esourceValue\u003c/b\u003e: string (for example 'critical' or 'major' 'minor' or 'warning' or 'information') \n\u003cb\u003eeventTypes\u003c/b\u003e: array of strings (eventTypes can be single eventType or comma seperated for example ['ROUTING-MPLS_TE-5-S2L_BFD_DOWN']) ","operationId":"collectSeverityAndAlarmAgeDetail","parameters":[{"name":"Authorization","in":"header","required":true,"description":"Bearer token for authorization","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"Configuration for alarm severity settings","properties":{"sourceType":{"type":"string","description":"Type of source for severity configuration","enum":["scc"],"example":"scc"},"sourceValue":{"type":"string","description":"Value for the source type","enum":["critical","major","minor","warning","information"],"example":"major"},"eventTypes":{"type":"array","description":"List of event types associated with the severity","items":{"type":"string"}}},"$$ref":"#/components/schemas/severityconfig"},"example":{"sourceType":"scc","sourceValue":"minor","eventTypes":["ROUTING-MPLS_TE-5-S2L_BFD_DOWN"]}}},"required":true},"responses":{"200":{"description":"Successful response indicating the status of alarm Severity update.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"OK","description":"The status of the operation."},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Headers associated with the response.","example":{}},"body":{"type":"string","example":"Severity configuration update success","description":"Message indicating the success of the severity configuration update."}}},"example":{"status":"OK","headers":{},"body":"Severity configuration update success"}}}},"403":{"description":"Authentication and Authorization errors"},"500":{"description":"operation-failed Response with error"}},"__originalOperationId":"collectSeverityAndAlarmAgeDetail","method":"post","path":"/severity-config"}}