github.com/enbility/spine-go@v0.7.0/model/alarm.go (about) 1 package model 2 3 type AlarmIdType uint 4 5 type AlarmTypeType string 6 7 const ( 8 AlarmTypeTypeAlarmCancelled AlarmTypeType = "alarmCancelled" 9 AlarmTypeTypeUnderThreshold AlarmTypeType = "underThreshold" 10 AlarmTypeTypeOverThreshold AlarmTypeType = "overThreshold" 11 ) 12 13 type AlarmDataType struct { 14 AlarmId *AlarmIdType `json:"alarmId,omitempty" eebus:"key"` 15 ThresholdId *ThresholdIdType `json:"thresholdId,omitempty"` 16 Timestamp *AbsoluteOrRelativeTimeType `json:"timestamp,omitempty"` 17 AlarmType *AlarmTypeType `json:"alarmType,omitempty"` 18 MeasuredValue *ScaledNumberType `json:"measuredValue,omitempty"` 19 EvaluationPeriod *TimePeriodType `json:"evaluationPeriod,omitempty"` 20 ScopeType *ScopeTypeType `json:"scopeType,omitempty"` 21 Label *LabelType `json:"label,omitempty"` 22 Description *DescriptionType `json:"description,omitempty"` 23 } 24 25 type AlarmDataElementsType struct { 26 AlarmId *ElementTagType `json:"alarmId,omitempty"` 27 ThresholdId *ElementTagType `json:"thresholdId,omitempty"` 28 Timestamp *ElementTagType `json:"timestamp,omitempty"` 29 AlarmType *ElementTagType `json:"alarmType,omitempty"` 30 MeasuredValue *ScaledNumberElementsType `json:"measuredValue,omitempty"` 31 EvaluationPeriod *TimePeriodElementsType `json:"evaluationPeriod,omitempty"` 32 ScopeType *ElementTagType `json:"scopeType,omitempty"` 33 Label *ElementTagType `json:"label,omitempty"` 34 Description *ElementTagType `json:"description,omitempty"` 35 } 36 37 type AlarmListDataType struct { 38 AlarmListData []AlarmDataType `json:"alarmListData,omitempty"` 39 } 40 41 type AlarmListDataSelectorsType struct { 42 AlarmId *AlarmIdType `json:"alarmId,omitempty"` 43 ScopeType *ScopeTypeType `json:"scopeType,omitempty"` 44 }