Skip to content

Latest commit

 

History

History
114 lines (61 loc) · 4.93 KB

MetricsStaticCondition.md

File metadata and controls

114 lines (61 loc) · 4.93 KB

MetricsStaticCondition

Properties

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)

Methods

NewMetricsStaticCondition

func NewMetricsStaticCondition(timeRange string, threshold float64, thresholdType string, occurrenceType string, ) *MetricsStaticCondition

NewMetricsStaticCondition instantiates a new MetricsStaticCondition 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

NewMetricsStaticConditionWithDefaults

func NewMetricsStaticConditionWithDefaults() *MetricsStaticCondition

NewMetricsStaticConditionWithDefaults instantiates a new MetricsStaticCondition 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

GetTimeRange

func (o *MetricsStaticCondition) GetTimeRange() string

GetTimeRange returns the TimeRange field if non-nil, zero value otherwise.

GetTimeRangeOk

func (o *MetricsStaticCondition) 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.

SetTimeRange

func (o *MetricsStaticCondition) SetTimeRange(v string)

SetTimeRange sets TimeRange field to given value.

GetThreshold

func (o *MetricsStaticCondition) GetThreshold() float64

GetThreshold returns the Threshold field if non-nil, zero value otherwise.

GetThresholdOk

func (o *MetricsStaticCondition) 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.

SetThreshold

func (o *MetricsStaticCondition) SetThreshold(v float64)

SetThreshold sets Threshold field to given value.

GetThresholdType

func (o *MetricsStaticCondition) GetThresholdType() string

GetThresholdType returns the ThresholdType field if non-nil, zero value otherwise.

GetThresholdTypeOk

func (o *MetricsStaticCondition) 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.

SetThresholdType

func (o *MetricsStaticCondition) SetThresholdType(v string)

SetThresholdType sets ThresholdType field to given value.

GetOccurrenceType

func (o *MetricsStaticCondition) GetOccurrenceType() string

GetOccurrenceType returns the OccurrenceType field if non-nil, zero value otherwise.

GetOccurrenceTypeOk

func (o *MetricsStaticCondition) 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.

SetOccurrenceType

func (o *MetricsStaticCondition) SetOccurrenceType(v string)

SetOccurrenceType sets OccurrenceType field to given value.

[Back to Model list] [Back to API list] [Back to README]