Name | Type | Description | Notes |
---|---|---|---|
RuleId | int32 | The id of the corresponding rule | [readonly] |
AssetId | Pointer to NullableInt32 | ID of the corresponding asset | [optional] [readonly] |
Subtype | Pointer to NullableString | Type of asset data | [optional] [readonly] |
Attribute | Pointer to NullableString | Name of the attribute of the asset type | [optional] [readonly] |
Priority | Pointer to NullableInt32 | The priority of the alarm. The lower this value the higher the priority. | [optional] |
RequiresAcknowledge | Pointer to NullableBool | Requires the alarm an acknowledgment | [optional] [default to false] |
Value | Pointer to NullableFloat64 | The value which triggers the alarm | [optional] |
Timestamp | Pointer to NullableTime | Timestamp of the latest data change | [optional] |
GoneTimestamp | Pointer to NullableTime | Timestamp of the latest data change | [optional] [readonly] |
AcknowledgeTimestamp | Pointer to NullableTime | Timestamp of the latest data change | [optional] [readonly] |
Occurrences | Pointer to NullableInt32 | How often this alarm is triggered | [optional] [readonly] |
AcknowledgeText | Pointer to NullableString | Text of acknowledgement | [optional] [readonly] |
AcknowledgeUserId | Pointer to NullableString | User who acknowledged the alarm | [optional] [readonly] |
Message | map[string]interface{} | Message.yaml texts for alarm | |
AssetInfo | Pointer to NullableAsset | [optional] | |
RuleInfo | Pointer to NullableAlarmRule | [optional] | |
StatusCode | Pointer to int32 | The status code expecting when actually perform the operation. Some values are - 200: updated (ok) - 201: created - 204: deleted (no content) - 304: unchanged (not modified) - 400: problem (bad request) - 404: not found - 409: duplicated (conflict) - 422: unprocessable | [optional] |
func NewAlarmListen(ruleId int32, message map[string]interface{}, ) *AlarmListen
NewAlarmListen instantiates a new AlarmListen object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewAlarmListenWithDefaults() *AlarmListen
NewAlarmListenWithDefaults instantiates a new AlarmListen object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *AlarmListen) GetRuleId() int32
GetRuleId returns the RuleId field if non-nil, zero value otherwise.
func (o *AlarmListen) GetRuleIdOk() (*int32, bool)
GetRuleIdOk returns a tuple with the RuleId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetRuleId(v int32)
SetRuleId sets RuleId field to given value.
func (o *AlarmListen) GetAssetId() int32
GetAssetId returns the AssetId field if non-nil, zero value otherwise.
func (o *AlarmListen) GetAssetIdOk() (*int32, bool)
GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetAssetId(v int32)
SetAssetId sets AssetId field to given value.
func (o *AlarmListen) HasAssetId() bool
HasAssetId returns a boolean if a field has been set.
func (o *AlarmListen) SetAssetIdNil(b bool)
SetAssetIdNil sets the value for AssetId to be an explicit nil
func (o *AlarmListen) UnsetAssetId()
UnsetAssetId ensures that no value is present for AssetId, not even an explicit nil
func (o *AlarmListen) GetSubtype() string
GetSubtype returns the Subtype field if non-nil, zero value otherwise.
func (o *AlarmListen) GetSubtypeOk() (*string, bool)
GetSubtypeOk returns a tuple with the Subtype field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetSubtype(v string)
SetSubtype sets Subtype field to given value.
func (o *AlarmListen) HasSubtype() bool
HasSubtype returns a boolean if a field has been set.
func (o *AlarmListen) SetSubtypeNil(b bool)
SetSubtypeNil sets the value for Subtype to be an explicit nil
func (o *AlarmListen) UnsetSubtype()
UnsetSubtype ensures that no value is present for Subtype, not even an explicit nil
func (o *AlarmListen) GetAttribute() string
GetAttribute returns the Attribute field if non-nil, zero value otherwise.
func (o *AlarmListen) GetAttributeOk() (*string, bool)
GetAttributeOk returns a tuple with the Attribute field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetAttribute(v string)
SetAttribute sets Attribute field to given value.
func (o *AlarmListen) HasAttribute() bool
HasAttribute returns a boolean if a field has been set.
func (o *AlarmListen) SetAttributeNil(b bool)
SetAttributeNil sets the value for Attribute to be an explicit nil
func (o *AlarmListen) UnsetAttribute()
UnsetAttribute ensures that no value is present for Attribute, not even an explicit nil
func (o *AlarmListen) GetPriority() int32
GetPriority returns the Priority field if non-nil, zero value otherwise.
func (o *AlarmListen) GetPriorityOk() (*int32, bool)
GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetPriority(v int32)
SetPriority sets Priority field to given value.
func (o *AlarmListen) HasPriority() bool
HasPriority returns a boolean if a field has been set.
func (o *AlarmListen) SetPriorityNil(b bool)
SetPriorityNil sets the value for Priority to be an explicit nil
func (o *AlarmListen) UnsetPriority()
UnsetPriority ensures that no value is present for Priority, not even an explicit nil
func (o *AlarmListen) GetRequiresAcknowledge() bool
GetRequiresAcknowledge returns the RequiresAcknowledge field if non-nil, zero value otherwise.
func (o *AlarmListen) GetRequiresAcknowledgeOk() (*bool, bool)
GetRequiresAcknowledgeOk returns a tuple with the RequiresAcknowledge field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetRequiresAcknowledge(v bool)
SetRequiresAcknowledge sets RequiresAcknowledge field to given value.
func (o *AlarmListen) HasRequiresAcknowledge() bool
HasRequiresAcknowledge returns a boolean if a field has been set.
func (o *AlarmListen) SetRequiresAcknowledgeNil(b bool)
SetRequiresAcknowledgeNil sets the value for RequiresAcknowledge to be an explicit nil
func (o *AlarmListen) UnsetRequiresAcknowledge()
UnsetRequiresAcknowledge ensures that no value is present for RequiresAcknowledge, not even an explicit nil
func (o *AlarmListen) GetValue() float64
GetValue returns the Value field if non-nil, zero value otherwise.
func (o *AlarmListen) GetValueOk() (*float64, bool)
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetValue(v float64)
SetValue sets Value field to given value.
func (o *AlarmListen) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o *AlarmListen) SetValueNil(b bool)
SetValueNil sets the value for Value to be an explicit nil
func (o *AlarmListen) UnsetValue()
UnsetValue ensures that no value is present for Value, not even an explicit nil
func (o *AlarmListen) GetTimestamp() time.Time
GetTimestamp returns the Timestamp field if non-nil, zero value otherwise.
func (o *AlarmListen) GetTimestampOk() (*time.Time, bool)
GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetTimestamp(v time.Time)
SetTimestamp sets Timestamp field to given value.
func (o *AlarmListen) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (o *AlarmListen) SetTimestampNil(b bool)
SetTimestampNil sets the value for Timestamp to be an explicit nil
func (o *AlarmListen) UnsetTimestamp()
UnsetTimestamp ensures that no value is present for Timestamp, not even an explicit nil
func (o *AlarmListen) GetGoneTimestamp() time.Time
GetGoneTimestamp returns the GoneTimestamp field if non-nil, zero value otherwise.
func (o *AlarmListen) GetGoneTimestampOk() (*time.Time, bool)
GetGoneTimestampOk returns a tuple with the GoneTimestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetGoneTimestamp(v time.Time)
SetGoneTimestamp sets GoneTimestamp field to given value.
func (o *AlarmListen) HasGoneTimestamp() bool
HasGoneTimestamp returns a boolean if a field has been set.
func (o *AlarmListen) SetGoneTimestampNil(b bool)
SetGoneTimestampNil sets the value for GoneTimestamp to be an explicit nil
func (o *AlarmListen) UnsetGoneTimestamp()
UnsetGoneTimestamp ensures that no value is present for GoneTimestamp, not even an explicit nil
func (o *AlarmListen) GetAcknowledgeTimestamp() time.Time
GetAcknowledgeTimestamp returns the AcknowledgeTimestamp field if non-nil, zero value otherwise.
func (o *AlarmListen) GetAcknowledgeTimestampOk() (*time.Time, bool)
GetAcknowledgeTimestampOk returns a tuple with the AcknowledgeTimestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetAcknowledgeTimestamp(v time.Time)
SetAcknowledgeTimestamp sets AcknowledgeTimestamp field to given value.
func (o *AlarmListen) HasAcknowledgeTimestamp() bool
HasAcknowledgeTimestamp returns a boolean if a field has been set.
func (o *AlarmListen) SetAcknowledgeTimestampNil(b bool)
SetAcknowledgeTimestampNil sets the value for AcknowledgeTimestamp to be an explicit nil
func (o *AlarmListen) UnsetAcknowledgeTimestamp()
UnsetAcknowledgeTimestamp ensures that no value is present for AcknowledgeTimestamp, not even an explicit nil
func (o *AlarmListen) GetOccurrences() int32
GetOccurrences returns the Occurrences field if non-nil, zero value otherwise.
func (o *AlarmListen) GetOccurrencesOk() (*int32, bool)
GetOccurrencesOk returns a tuple with the Occurrences field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetOccurrences(v int32)
SetOccurrences sets Occurrences field to given value.
func (o *AlarmListen) HasOccurrences() bool
HasOccurrences returns a boolean if a field has been set.
func (o *AlarmListen) SetOccurrencesNil(b bool)
SetOccurrencesNil sets the value for Occurrences to be an explicit nil
func (o *AlarmListen) UnsetOccurrences()
UnsetOccurrences ensures that no value is present for Occurrences, not even an explicit nil
func (o *AlarmListen) GetAcknowledgeText() string
GetAcknowledgeText returns the AcknowledgeText field if non-nil, zero value otherwise.
func (o *AlarmListen) GetAcknowledgeTextOk() (*string, bool)
GetAcknowledgeTextOk returns a tuple with the AcknowledgeText field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetAcknowledgeText(v string)
SetAcknowledgeText sets AcknowledgeText field to given value.
func (o *AlarmListen) HasAcknowledgeText() bool
HasAcknowledgeText returns a boolean if a field has been set.
func (o *AlarmListen) SetAcknowledgeTextNil(b bool)
SetAcknowledgeTextNil sets the value for AcknowledgeText to be an explicit nil
func (o *AlarmListen) UnsetAcknowledgeText()
UnsetAcknowledgeText ensures that no value is present for AcknowledgeText, not even an explicit nil
func (o *AlarmListen) GetAcknowledgeUserId() string
GetAcknowledgeUserId returns the AcknowledgeUserId field if non-nil, zero value otherwise.
func (o *AlarmListen) GetAcknowledgeUserIdOk() (*string, bool)
GetAcknowledgeUserIdOk returns a tuple with the AcknowledgeUserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetAcknowledgeUserId(v string)
SetAcknowledgeUserId sets AcknowledgeUserId field to given value.
func (o *AlarmListen) HasAcknowledgeUserId() bool
HasAcknowledgeUserId returns a boolean if a field has been set.
func (o *AlarmListen) SetAcknowledgeUserIdNil(b bool)
SetAcknowledgeUserIdNil sets the value for AcknowledgeUserId to be an explicit nil
func (o *AlarmListen) UnsetAcknowledgeUserId()
UnsetAcknowledgeUserId ensures that no value is present for AcknowledgeUserId, not even an explicit nil
func (o *AlarmListen) GetMessage() map[string]interface{}
GetMessage returns the Message field if non-nil, zero value otherwise.
func (o *AlarmListen) GetMessageOk() (*map[string]interface{}, bool)
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetMessage(v map[string]interface{})
SetMessage sets Message field to given value.
func (o *AlarmListen) GetAssetInfo() Asset
GetAssetInfo returns the AssetInfo field if non-nil, zero value otherwise.
func (o *AlarmListen) GetAssetInfoOk() (*Asset, bool)
GetAssetInfoOk returns a tuple with the AssetInfo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetAssetInfo(v Asset)
SetAssetInfo sets AssetInfo field to given value.
func (o *AlarmListen) HasAssetInfo() bool
HasAssetInfo returns a boolean if a field has been set.
func (o *AlarmListen) SetAssetInfoNil(b bool)
SetAssetInfoNil sets the value for AssetInfo to be an explicit nil
func (o *AlarmListen) UnsetAssetInfo()
UnsetAssetInfo ensures that no value is present for AssetInfo, not even an explicit nil
func (o *AlarmListen) GetRuleInfo() AlarmRule
GetRuleInfo returns the RuleInfo field if non-nil, zero value otherwise.
func (o *AlarmListen) GetRuleInfoOk() (*AlarmRule, bool)
GetRuleInfoOk returns a tuple with the RuleInfo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetRuleInfo(v AlarmRule)
SetRuleInfo sets RuleInfo field to given value.
func (o *AlarmListen) HasRuleInfo() bool
HasRuleInfo returns a boolean if a field has been set.
func (o *AlarmListen) SetRuleInfoNil(b bool)
SetRuleInfoNil sets the value for RuleInfo to be an explicit nil
func (o *AlarmListen) UnsetRuleInfo()
UnsetRuleInfo ensures that no value is present for RuleInfo, not even an explicit nil
func (o *AlarmListen) GetStatusCode() int32
GetStatusCode returns the StatusCode field if non-nil, zero value otherwise.
func (o *AlarmListen) GetStatusCodeOk() (*int32, bool)
GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlarmListen) SetStatusCode(v int32)
SetStatusCode sets StatusCode field to given value.
func (o *AlarmListen) HasStatusCode() bool
HasStatusCode returns a boolean if a field has been set.