Interface AlarmState
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
State
@Generated("mdsal-binding-generator")
public interface AlarmState
extends org.opendaylight.yangtools.yang.binding.DataObject
Operational state data for device alarms
This class represents the following YANG schema fragment defined in module openconfig-alarms
grouping alarm-state {
leaf id {
type string;
}
leaf resource {
type string;
}
leaf text {
type string;
}
leaf time-created {
type oc-types:timeticks64;
}
leaf severity {
type identityref {
base OPENCONFIG_ALARM_SEVERITY;
}
}
leaf type-id {
type union {
type string;
type identityref {
base OPENCONFIG_ALARM_TYPE_ID;
}
}
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class represents the following YANG schema fragment defined in module openconfig-alarms -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Return id, ornullif it is not present.Return resource, ornullif it is not present.Return severity, ornullif it is not present.getText()Return text, ornullif it is not present.Return timeCreated, ornullif it is not present.Return typeId, ornullif it is not present.Class<? extends AlarmState>default @NonNull StringReturn id, guaranteed to be non-null.default @NonNull StringReturn resource, guaranteed to be non-null.default @NonNull OPENCONFIGALARMSEVERITYReturn severity, guaranteed to be non-null.default @NonNull StringReturn text, guaranteed to be non-null.default @NonNull Timeticks64Return timeCreated, guaranteed to be non-null.default @NonNull AlarmState.TypeIdReturn typeId, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends AlarmState> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getId
String getId()Return id, ornullif it is not present.Unique ID for the alarm -- this will not be a configurable parameter on many implementations- Returns:
Stringid, ornullif it is not present.
-
requireId
Return id, guaranteed to be non-null.Unique ID for the alarm -- this will not be a configurable parameter on many implementations- Returns:
Stringid, guaranteed to be non-null.- Throws:
NoSuchElementException- if id is not present
-
getResource
String getResource()Return resource, ornullif it is not present.The item that is under alarm within the device. The resource may be a reference to an item which is defined elsewhere in the model. For example, it may be a platform/component, interfaces/interface, terminal-device/logical-channels/channel, etc. In this case the system should match the name of the referenced item exactly. The referenced item could alternatively be the path of the item within the model.- Returns:
Stringresource, ornullif it is not present.
-
requireResource
Return resource, guaranteed to be non-null.The item that is under alarm within the device. The resource may be a reference to an item which is defined elsewhere in the model. For example, it may be a platform/component, interfaces/interface, terminal-device/logical-channels/channel, etc. In this case the system should match the name of the referenced item exactly. The referenced item could alternatively be the path of the item within the model.- Returns:
Stringresource, guaranteed to be non-null.- Throws:
NoSuchElementException- if resource is not present
-
getText
String getText()Return text, ornullif it is not present.The string used to inform operators about the alarm. This MUST contain enough information for an operator to be able to understand the problem. If this string contains structure, this format should be clearly documented for programs to be able to parse that information- Returns:
Stringtext, ornullif it is not present.
-
requireText
Return text, guaranteed to be non-null.The string used to inform operators about the alarm. This MUST contain enough information for an operator to be able to understand the problem. If this string contains structure, this format should be clearly documented for programs to be able to parse that information- Returns:
Stringtext, guaranteed to be non-null.- Throws:
NoSuchElementException- if text is not present
-
getTimeCreated
Timeticks64 getTimeCreated()Return timeCreated, ornullif it is not present.The time at which the alarm was raised by the system. This value is expressed relative to the Unix Epoch.- Returns:
Timeticks64timeCreated, ornullif it is not present.
-
requireTimeCreated
Return timeCreated, guaranteed to be non-null.The time at which the alarm was raised by the system. This value is expressed relative to the Unix Epoch.- Returns:
Timeticks64timeCreated, guaranteed to be non-null.- Throws:
NoSuchElementException- if timeCreated is not present
-
getSeverity
OPENCONFIGALARMSEVERITY getSeverity()Return severity, ornullif it is not present.The severity level indicating the criticality and impact of the alarm- Returns:
OPENCONFIGALARMSEVERITYseverity, ornullif it is not present.
-
requireSeverity
Return severity, guaranteed to be non-null.The severity level indicating the criticality and impact of the alarm- Returns:
OPENCONFIGALARMSEVERITYseverity, guaranteed to be non-null.- Throws:
NoSuchElementException- if severity is not present
-
getTypeId
AlarmState.TypeId getTypeId()Return typeId, ornullif it is not present.The abbreviated name of the alarm, for example LOS, EQPT, or OTS. Also referred to in different systems as condition type, alarm identifier, or alarm mnemonic. It is recommended to use the OPENCONFIG_ALARM_TYPE_ID identities where possible and only use the string type when the desired identityref is not yet defined- Returns:
TypeIdtypeId, ornullif it is not present.
-
requireTypeId
Return typeId, guaranteed to be non-null.The abbreviated name of the alarm, for example LOS, EQPT, or OTS. Also referred to in different systems as condition type, alarm identifier, or alarm mnemonic. It is recommended to use the OPENCONFIG_ALARM_TYPE_ID identities where possible and only use the string type when the desired identityref is not yet defined- Returns:
TypeIdtypeId, guaranteed to be non-null.- Throws:
NoSuchElementException- if typeId is not present
-