| Name | Type | Description | Notes |
|---|---|---|---|
| Kind | AlertRuleConditionKind | ||
| Operator | Pointer to AlertRuleConditionOperator | [optional] | |
| Threshold | Pointer to float32 | [optional] | |
| Function | Pointer to AlertRuleConditionFunction | [optional] | |
| Promql | string |
func NewAlertRuleCondition(kind AlertRuleConditionKind, promql string, ) *AlertRuleCondition
NewAlertRuleCondition instantiates a new AlertRuleCondition 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 NewAlertRuleConditionWithDefaults() *AlertRuleCondition
NewAlertRuleConditionWithDefaults instantiates a new AlertRuleCondition 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 *AlertRuleCondition) GetKind() AlertRuleConditionKind
GetKind returns the Kind field if non-nil, zero value otherwise.
func (o *AlertRuleCondition) GetKindOk() (*AlertRuleConditionKind, bool)
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlertRuleCondition) SetKind(v AlertRuleConditionKind)
SetKind sets Kind field to given value.
func (o *AlertRuleCondition) GetOperator() AlertRuleConditionOperator
GetOperator returns the Operator field if non-nil, zero value otherwise.
func (o *AlertRuleCondition) GetOperatorOk() (*AlertRuleConditionOperator, bool)
GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlertRuleCondition) SetOperator(v AlertRuleConditionOperator)
SetOperator sets Operator field to given value.
func (o *AlertRuleCondition) HasOperator() bool
HasOperator returns a boolean if a field has been set.
func (o *AlertRuleCondition) GetThreshold() float32
GetThreshold returns the Threshold field if non-nil, zero value otherwise.
func (o *AlertRuleCondition) GetThresholdOk() (*float32, 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 *AlertRuleCondition) SetThreshold(v float32)
SetThreshold sets Threshold field to given value.
func (o *AlertRuleCondition) HasThreshold() bool
HasThreshold returns a boolean if a field has been set.
func (o *AlertRuleCondition) GetFunction() AlertRuleConditionFunction
GetFunction returns the Function field if non-nil, zero value otherwise.
func (o *AlertRuleCondition) GetFunctionOk() (*AlertRuleConditionFunction, bool)
GetFunctionOk returns a tuple with the Function field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlertRuleCondition) SetFunction(v AlertRuleConditionFunction)
SetFunction sets Function field to given value.
func (o *AlertRuleCondition) HasFunction() bool
HasFunction returns a boolean if a field has been set.
func (o *AlertRuleCondition) GetPromql() string
GetPromql returns the Promql field if non-nil, zero value otherwise.
func (o *AlertRuleCondition) GetPromqlOk() (*string, bool)
GetPromqlOk returns a tuple with the Promql field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AlertRuleCondition) SetPromql(v string)
SetPromql sets Promql field to given value.