Name | Type | Description | Notes |
---|---|---|---|
TimeRange | string | The relative time range of the monitor. | |
Threshold | float64 | The data value for the condition. This defines the threshold for when to trigger. Threshold value is not applicable for `MissingData` and `ResolvedMissingData` triggerTypes and will be ignored if specified. | [default to 0.0] |
ThresholdType | string | The comparison type for the `threshold` evaluation. This defines how you want the data value compared. Valid values: 1. `LessThan`: Less than than the configured threshold. 2. `GreaterThan`: Greater than the configured threshold. 3. `LessThanOrEqual`: Less than or equal to the configured threshold. 4. `GreaterThanOrEqual`: Greater than or equal to the configured threshold. ThresholdType value is not applicable for `MissingData` and `ResolvedMissingData` triggerTypes and will be ignored if specified. | [default to "GreaterThanOrEqual"] |
OccurrenceType | string | The criteria to evaluate the threshold and thresholdType in the given time range. Valid values: 1. `AtLeastOnce`: Trigger if the threshold is met at least once. (NOTE: This is the only valid value if monitorType is `Metrics`.) 2. `Always`: Trigger if the threshold is met continuously. (NOTE: This is the only valid value if monitorType is `Metrics`.) 3. `ResultCount`: Trigger if the threshold is met against the count of results. (NOTE: This is the only valid value if monitorType is `Logs`.) 4. `MissingData`: Trigger if the data is missing. (NOTE: This is valid for both `Logs` and `Metrics` monitorTypes) |
func NewMetricsStaticConditionAllOf(timeRange string, threshold float64, thresholdType string, occurrenceType string, ) *MetricsStaticConditionAllOf
NewMetricsStaticConditionAllOf instantiates a new MetricsStaticConditionAllOf 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 NewMetricsStaticConditionAllOfWithDefaults() *MetricsStaticConditionAllOf
NewMetricsStaticConditionAllOfWithDefaults instantiates a new MetricsStaticConditionAllOf 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 *MetricsStaticConditionAllOf) GetTimeRange() string
GetTimeRange returns the TimeRange field if non-nil, zero value otherwise.
func (o *MetricsStaticConditionAllOf) GetTimeRangeOk() (*string, bool)
GetTimeRangeOk returns a tuple with the TimeRange field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricsStaticConditionAllOf) SetTimeRange(v string)
SetTimeRange sets TimeRange field to given value.
func (o *MetricsStaticConditionAllOf) GetThreshold() float64
GetThreshold returns the Threshold field if non-nil, zero value otherwise.
func (o *MetricsStaticConditionAllOf) GetThresholdOk() (*float64, bool)
GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricsStaticConditionAllOf) SetThreshold(v float64)
SetThreshold sets Threshold field to given value.
func (o *MetricsStaticConditionAllOf) GetThresholdType() string
GetThresholdType returns the ThresholdType field if non-nil, zero value otherwise.
func (o *MetricsStaticConditionAllOf) GetThresholdTypeOk() (*string, bool)
GetThresholdTypeOk returns a tuple with the ThresholdType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricsStaticConditionAllOf) SetThresholdType(v string)
SetThresholdType sets ThresholdType field to given value.
func (o *MetricsStaticConditionAllOf) GetOccurrenceType() string
GetOccurrenceType returns the OccurrenceType field if non-nil, zero value otherwise.
func (o *MetricsStaticConditionAllOf) GetOccurrenceTypeOk() (*string, bool)
GetOccurrenceTypeOk returns a tuple with the OccurrenceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *MetricsStaticConditionAllOf) SetOccurrenceType(v string)
SetOccurrenceType sets OccurrenceType field to given value.