< Home

Data Model

The configuration model file matching alarm query is huawei-system-alarm.yang.

Table 1 Alarm query configuration objects
Object Description Value Remarks
/huawei-system-alarm:fetch-alarm-records/input/device-identifier/id Specifies the ESN of a switch. - N/A
/huawei-system-alarm:fetch-alarm-records/input/alarm-status Specifies the alarm status. Currently, the value can only be not-cleared, which indicates that an alarm is not cleared. N/A
/huawei-system-alarm:fetch-alarm-records/input/newer-than/start-time Specifies the alarm timestamp. The value is the format of YYYY-MM-DDTHH:MM:SSZ. Alarms generated after this time are queried. N/A
/huawei-system-alarm:fetch-alarm-records/input/severity Specifies the alarm severity. The value is of the enumerated type. The options are listed as follows in descending order of severity:
  • critical
  • major
  • minor
  • warning
  • indeterminate
The alarm severity needs to be configured by the below, is, or above object, which is a sub-object of severity.
  • below: Queries alarms with the severity lower than the specified severity.
  • is: Queries alarms with the specified severity.
  • above: Queries alarms with the severity higher than the specified severity.
Table 2 Alarm information returned by the switch
Object Description
/huawei-system-alarm:fetch-alarm-records/output/device-identifier/id ESN of the switch.
/huawei-system-alarm:fetch-alarm-records/output/need-refetch/flag Whether to continue the alarm query:
  • true
  • false

Currently, the value of this object is false.

/huawei-system-alarm:fetch-alarm-records/output/alarm-records/alarm-type-id Alarm type:
  • communicationsAlarm
  • qualityOfServiceAlarm
  • processingErrorAlarm
  • environmentalAlarm
  • equipmentAlarm
/huawei-system-alarm:fetch-alarm-records/output/alarm-records/alarm-type-qualifier Alarm identifier.
/huawei-system-alarm:fetch-alarm-records/output/alarm-records/resource OID of the alarm.
/huawei-system-alarm:fetch-alarm-records/output/alarm-records/alt-resource Whether the alarm is a new alarm or a clear alarm.
  • The value 1 indicates a new alarm.
  • The value 0 indicates a clear alarm.

Currently, the value of this object is 1.

/huawei-system-alarm:fetch-alarm-records/output/alarm-records/status-change/event-time Alarm timestamp.
/huawei-system-alarm:fetch-alarm-records/output/alarm-records/status-change/perceived-severity Alarm severity:
  • 1: Critical
  • 2: Major
  • 3: Minor
  • 4: Warning
  • 5: Indeterminate
/huawei-system-alarm:fetch-alarm-records/output/alarm-records/status-change/alarm-text Details about the alarm.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >