| Name | Type | Description | Notes |
|---|---|---|---|
| Id | Pointer to string | The unique identifier for an alert condition. | [optional] |
| MonitorId | Pointer to string | The monitor identifier associated with an alert condition. | [optional] |
| Metric | Pointer to V2AlertConditionMetric | [optional] [default to "STATUS"] | |
| Comparator | Pointer to AlertConditionComparator | [optional] [default to "EQUAL"] | |
| Value | Pointer to string | The value to check to determine if an alert should be generated. | [optional] |
| AlarmDelay | Pointer to int32 | The amount of time to wait before sending an alert. This is useful to prevent alerts due to a flapping service. | [optional] |
| AlarmEvery | Pointer to int32 | How often an alert should be generated if an alert condition is still being met. | [optional] |
| AlarmUntilSilenced | Pointer to bool | A flag that determines if an alert should continue to trigger until it is resolved. | [optional] |
| Enabled | Pointer to bool | Whether an alert condition is enabled or not. | [optional] |
| MinimumLocations | Pointer to int32 | The minimum number of locations that the alert condition must be triggered for before an alert is generated. This should always be less than or equal to the number of locations a monitor has. | [optional] |
| CreatedAt | Pointer to time.Time | The date an alert condition was created. | [optional] |
| UpdatedAt | Pointer to time.Time | The date an alert condition was last updated. | [optional] |
func NewV2AlertCondition() *V2AlertCondition
NewV2AlertCondition instantiates a new V2AlertCondition 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 NewV2AlertConditionWithDefaults() *V2AlertCondition
NewV2AlertConditionWithDefaults instantiates a new V2AlertCondition 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 *V2AlertCondition) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetId(v string)
SetId sets Id field to given value.
func (o *V2AlertCondition) HasId() bool
HasId returns a boolean if a field has been set.
func (o *V2AlertCondition) GetMonitorId() string
GetMonitorId returns the MonitorId field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetMonitorIdOk() (*string, bool)
GetMonitorIdOk returns a tuple with the MonitorId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetMonitorId(v string)
SetMonitorId sets MonitorId field to given value.
func (o *V2AlertCondition) HasMonitorId() bool
HasMonitorId returns a boolean if a field has been set.
func (o *V2AlertCondition) GetMetric() V2AlertConditionMetric
GetMetric returns the Metric field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetMetricOk() (*V2AlertConditionMetric, bool)
GetMetricOk returns a tuple with the Metric field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetMetric(v V2AlertConditionMetric)
SetMetric sets Metric field to given value.
func (o *V2AlertCondition) HasMetric() bool
HasMetric returns a boolean if a field has been set.
func (o *V2AlertCondition) GetComparator() AlertConditionComparator
GetComparator returns the Comparator field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetComparatorOk() (*AlertConditionComparator, bool)
GetComparatorOk returns a tuple with the Comparator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetComparator(v AlertConditionComparator)
SetComparator sets Comparator field to given value.
func (o *V2AlertCondition) HasComparator() bool
HasComparator returns a boolean if a field has been set.
func (o *V2AlertCondition) GetValue() string
GetValue returns the Value field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetValueOk() (*string, 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 *V2AlertCondition) SetValue(v string)
SetValue sets Value field to given value.
func (o *V2AlertCondition) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o *V2AlertCondition) GetAlarmDelay() int32
GetAlarmDelay returns the AlarmDelay field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetAlarmDelayOk() (*int32, bool)
GetAlarmDelayOk returns a tuple with the AlarmDelay field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetAlarmDelay(v int32)
SetAlarmDelay sets AlarmDelay field to given value.
func (o *V2AlertCondition) HasAlarmDelay() bool
HasAlarmDelay returns a boolean if a field has been set.
func (o *V2AlertCondition) GetAlarmEvery() int32
GetAlarmEvery returns the AlarmEvery field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetAlarmEveryOk() (*int32, bool)
GetAlarmEveryOk returns a tuple with the AlarmEvery field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetAlarmEvery(v int32)
SetAlarmEvery sets AlarmEvery field to given value.
func (o *V2AlertCondition) HasAlarmEvery() bool
HasAlarmEvery returns a boolean if a field has been set.
func (o *V2AlertCondition) GetAlarmUntilSilenced() bool
GetAlarmUntilSilenced returns the AlarmUntilSilenced field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetAlarmUntilSilencedOk() (*bool, bool)
GetAlarmUntilSilencedOk returns a tuple with the AlarmUntilSilenced field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetAlarmUntilSilenced(v bool)
SetAlarmUntilSilenced sets AlarmUntilSilenced field to given value.
func (o *V2AlertCondition) HasAlarmUntilSilenced() bool
HasAlarmUntilSilenced returns a boolean if a field has been set.
func (o *V2AlertCondition) GetEnabled() bool
GetEnabled returns the Enabled field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetEnabledOk() (*bool, bool)
GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetEnabled(v bool)
SetEnabled sets Enabled field to given value.
func (o *V2AlertCondition) HasEnabled() bool
HasEnabled returns a boolean if a field has been set.
func (o *V2AlertCondition) GetMinimumLocations() int32
GetMinimumLocations returns the MinimumLocations field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetMinimumLocationsOk() (*int32, bool)
GetMinimumLocationsOk returns a tuple with the MinimumLocations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetMinimumLocations(v int32)
SetMinimumLocations sets MinimumLocations field to given value.
func (o *V2AlertCondition) HasMinimumLocations() bool
HasMinimumLocations returns a boolean if a field has been set.
func (o *V2AlertCondition) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *V2AlertCondition) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *V2AlertCondition) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
func (o *V2AlertCondition) GetUpdatedAtOk() (*time.Time, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *V2AlertCondition) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.
func (o *V2AlertCondition) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.