{"type":"model","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":{"type":"object","description":"Payload for updating syslog configurations","properties":{"mnemonic":{"type":"string","description":"Mnemonic identifier for the syslog event","example":"LINEPROTO-5-UPDOWN"},"mnemonicregex":{"type":"string","description":"Regular expression for matching mnemonics","example":"%(\\S+-\\d-\\S+):"},"regexDetails":{"type":"array","description":"Details of regex patterns used in syslog","items":{"type":"object","properties":{"groupIndex":{"type":"integer","description":"Index of the regex group","example":1},"regex":{"type":"string","description":"Regex pattern for matching log details","example":"Interface\\s*(\\S+)\\s*"},"variableName":{"type":"string","description":"Name of the variable extracted by regex","example":"interfacename"}},"required":["groupIndex","regex","variableName"]}},"eventDetails":{"type":"array","description":"Details of events associated with the syslog","items":{"type":"object","properties":{"eventType":{"type":"string","description":"Type of event associated with the syslog","example":"LINEPROTO-5-DOWN"},"category":{"type":"string","description":"Category of the event","example":"Switches and Routers"},"defaultSeverity":{"type":"string","description":"Default severity level of the event","example":"MINOR"},"description":{"type":"string","description":"Description of the event","example":"Line protocol on Interface $interfacename , changed state to $status"},"asid":{"type":"string","description":"ASID associated with the event","example":"$deviceUuid:$interfacename:LINEPROTO-5-UPDOWN"},"locationQuery":{"type":"string","description":"Query to determine event location","example":"select id,name,classname from protocolendpoint where name= :$interfacename and owningentityid = :$owningEntityId and classname != 'PhysicalProtocolEndpoint' and classname != 'IpProtocolEndpoint'"},"autoClear":{"type":"string","description":"Duration in minutes for auto-clearing the event","example":"120"},"probableCause":{"type":"string","description":"Probable cause of the event","example":"probable cause"},"recommendationAction":{"type":"string","description":"Recommended action for the event","example":"recommended action"},"matchConditions":{"type":"array","description":"Conditions to match for the event","items":{"type":"object","properties":{"variableName":{"type":"string","description":"Name of the variable for condition matching","example":"status"},"expectedValues":{"type":"string","description":"Expected values for the condition","example":"Down"},"operator":{"type":"string","description":"Operator for the condition","example":"="}}}}},"required":["eventType","category","defaultSeverity","description","asid"]}}},"required":["mnemonic","mnemonicregex","regexDetails","eventDetails"],"$$ref":"#/components/schemas/SyslogUpdateRequest","title":"SyslogUpdateRequest"}}