Documentation
¶
Index ¶
- type Action
- type ActionAttributes
- func (a ActionAttributes) ActionGroups() terra.ListValue[terra.StringValue]
- func (a ActionAttributes) CustomProperties() terra.MapValue[terra.StringValue]
- func (a ActionAttributes) InternalRef() (terra.Reference, error)
- func (a ActionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (a ActionAttributes) InternalWithRef(ref terra.Reference) ActionAttributes
- type ActionState
- type Args
- type Criteria
- type CriteriaAttributes
- func (c CriteriaAttributes) Dimension() terra.ListValue[CriteriaDimensionAttributes]
- func (c CriteriaAttributes) FailingPeriods() terra.ListValue[CriteriaFailingPeriodsAttributes]
- func (c CriteriaAttributes) InternalRef() (terra.Reference, error)
- func (c CriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c CriteriaAttributes) InternalWithRef(ref terra.Reference) CriteriaAttributes
- func (c CriteriaAttributes) MetricMeasureColumn() terra.StringValue
- func (c CriteriaAttributes) Operator() terra.StringValue
- func (c CriteriaAttributes) Query() terra.StringValue
- func (c CriteriaAttributes) ResourceIdColumn() terra.StringValue
- func (c CriteriaAttributes) Threshold() terra.NumberValue
- func (c CriteriaAttributes) TimeAggregationMethod() terra.StringValue
- type CriteriaDimension
- type CriteriaDimensionAttributes
- func (d CriteriaDimensionAttributes) InternalRef() (terra.Reference, error)
- func (d CriteriaDimensionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (d CriteriaDimensionAttributes) InternalWithRef(ref terra.Reference) CriteriaDimensionAttributes
- func (d CriteriaDimensionAttributes) Name() terra.StringValue
- func (d CriteriaDimensionAttributes) Operator() terra.StringValue
- func (d CriteriaDimensionAttributes) Values() terra.ListValue[terra.StringValue]
- type CriteriaDimensionState
- type CriteriaFailingPeriods
- type CriteriaFailingPeriodsAttributes
- func (fp CriteriaFailingPeriodsAttributes) InternalRef() (terra.Reference, error)
- func (fp CriteriaFailingPeriodsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (fp CriteriaFailingPeriodsAttributes) InternalWithRef(ref terra.Reference) CriteriaFailingPeriodsAttributes
- func (fp CriteriaFailingPeriodsAttributes) MinimumFailingPeriodsToTriggerAlert() terra.NumberValue
- func (fp CriteriaFailingPeriodsAttributes) NumberOfEvaluationPeriods() terra.NumberValue
- type CriteriaFailingPeriodsState
- type CriteriaState
- type Identity
- type IdentityAttributes
- func (i IdentityAttributes) IdentityIds() terra.SetValue[terra.StringValue]
- func (i IdentityAttributes) InternalRef() (terra.Reference, error)
- func (i IdentityAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (i IdentityAttributes) InternalWithRef(ref terra.Reference) IdentityAttributes
- func (i IdentityAttributes) PrincipalId() terra.StringValue
- func (i IdentityAttributes) TenantId() terra.StringValue
- func (i IdentityAttributes) Type() terra.StringValue
- type IdentityState
- type Resource
- func (amsqrav *Resource) Attributes() azurermMonitorScheduledQueryRulesAlertV2Attributes
- func (amsqrav *Resource) Configuration() interface{}
- func (amsqrav *Resource) DependOn() terra.Reference
- func (amsqrav *Resource) Dependencies() terra.Dependencies
- func (amsqrav *Resource) ImportState(state io.Reader) error
- func (amsqrav *Resource) LifecycleManagement() *terra.Lifecycle
- func (amsqrav *Resource) LocalName() string
- func (amsqrav *Resource) State() (*azurermMonitorScheduledQueryRulesAlertV2State, bool)
- func (amsqrav *Resource) StateMust() *azurermMonitorScheduledQueryRulesAlertV2State
- func (amsqrav *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Read() terra.StringValue
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { // ActionGroups: list of string, optional ActionGroups terra.ListValue[terra.StringValue] `hcl:"action_groups,attr"` // CustomProperties: map of string, optional CustomProperties terra.MapValue[terra.StringValue] `hcl:"custom_properties,attr"` }
type ActionAttributes ¶
type ActionAttributes struct {
// contains filtered or unexported fields
}
func (ActionAttributes) ActionGroups ¶
func (a ActionAttributes) ActionGroups() terra.ListValue[terra.StringValue]
func (ActionAttributes) CustomProperties ¶
func (a ActionAttributes) CustomProperties() terra.MapValue[terra.StringValue]
func (ActionAttributes) InternalRef ¶
func (a ActionAttributes) InternalRef() (terra.Reference, error)
func (ActionAttributes) InternalTokens ¶
func (a ActionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ActionAttributes) InternalWithRef ¶
func (a ActionAttributes) InternalWithRef(ref terra.Reference) ActionAttributes
type ActionState ¶
type Args ¶
type Args struct { // AutoMitigationEnabled: bool, optional AutoMitigationEnabled terra.BoolValue `hcl:"auto_mitigation_enabled,attr"` // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // DisplayName: string, optional DisplayName terra.StringValue `hcl:"display_name,attr"` // Enabled: bool, optional Enabled terra.BoolValue `hcl:"enabled,attr"` // EvaluationFrequency: string, optional EvaluationFrequency terra.StringValue `hcl:"evaluation_frequency,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Location: string, required Location terra.StringValue `hcl:"location,attr" validate:"required"` // MuteActionsAfterAlertDuration: string, optional MuteActionsAfterAlertDuration terra.StringValue `hcl:"mute_actions_after_alert_duration,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // QueryTimeRangeOverride: string, optional QueryTimeRangeOverride terra.StringValue `hcl:"query_time_range_override,attr"` // ResourceGroupName: string, required ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"` // Scopes: list of string, required Scopes terra.ListValue[terra.StringValue] `hcl:"scopes,attr" validate:"required"` // Severity: number, required Severity terra.NumberValue `hcl:"severity,attr" validate:"required"` // SkipQueryValidation: bool, optional SkipQueryValidation terra.BoolValue `hcl:"skip_query_validation,attr"` // Tags: map of string, optional Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"` // TargetResourceTypes: list of string, optional TargetResourceTypes terra.ListValue[terra.StringValue] `hcl:"target_resource_types,attr"` // WindowDuration: string, required WindowDuration terra.StringValue `hcl:"window_duration,attr" validate:"required"` // WorkspaceAlertsStorageEnabled: bool, optional WorkspaceAlertsStorageEnabled terra.BoolValue `hcl:"workspace_alerts_storage_enabled,attr"` // Action: optional Action *Action `hcl:"action,block"` // Criteria: min=1 Criteria []Criteria `hcl:"criteria,block" validate:"min=1"` // Identity: optional Identity *Identity `hcl:"identity,block"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for azurerm_monitor_scheduled_query_rules_alert_v2.
type Criteria ¶
type Criteria struct { // MetricMeasureColumn: string, optional MetricMeasureColumn terra.StringValue `hcl:"metric_measure_column,attr"` // Operator: string, required Operator terra.StringValue `hcl:"operator,attr" validate:"required"` // Query: string, required Query terra.StringValue `hcl:"query,attr" validate:"required"` // ResourceIdColumn: string, optional ResourceIdColumn terra.StringValue `hcl:"resource_id_column,attr"` // Threshold: number, required Threshold terra.NumberValue `hcl:"threshold,attr" validate:"required"` // TimeAggregationMethod: string, required TimeAggregationMethod terra.StringValue `hcl:"time_aggregation_method,attr" validate:"required"` // CriteriaDimension: min=0 Dimension []CriteriaDimension `hcl:"dimension,block" validate:"min=0"` // CriteriaFailingPeriods: optional FailingPeriods *CriteriaFailingPeriods `hcl:"failing_periods,block"` }
type CriteriaAttributes ¶
type CriteriaAttributes struct {
// contains filtered or unexported fields
}
func (CriteriaAttributes) Dimension ¶
func (c CriteriaAttributes) Dimension() terra.ListValue[CriteriaDimensionAttributes]
func (CriteriaAttributes) FailingPeriods ¶
func (c CriteriaAttributes) FailingPeriods() terra.ListValue[CriteriaFailingPeriodsAttributes]
func (CriteriaAttributes) InternalRef ¶
func (c CriteriaAttributes) InternalRef() (terra.Reference, error)
func (CriteriaAttributes) InternalTokens ¶
func (c CriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CriteriaAttributes) InternalWithRef ¶
func (c CriteriaAttributes) InternalWithRef(ref terra.Reference) CriteriaAttributes
func (CriteriaAttributes) MetricMeasureColumn ¶
func (c CriteriaAttributes) MetricMeasureColumn() terra.StringValue
func (CriteriaAttributes) Operator ¶
func (c CriteriaAttributes) Operator() terra.StringValue
func (CriteriaAttributes) Query ¶
func (c CriteriaAttributes) Query() terra.StringValue
func (CriteriaAttributes) ResourceIdColumn ¶
func (c CriteriaAttributes) ResourceIdColumn() terra.StringValue
func (CriteriaAttributes) Threshold ¶
func (c CriteriaAttributes) Threshold() terra.NumberValue
func (CriteriaAttributes) TimeAggregationMethod ¶
func (c CriteriaAttributes) TimeAggregationMethod() terra.StringValue
type CriteriaDimension ¶
type CriteriaDimension struct { // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Operator: string, required Operator terra.StringValue `hcl:"operator,attr" validate:"required"` // Values: list of string, required Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"` }
type CriteriaDimensionAttributes ¶
type CriteriaDimensionAttributes struct {
// contains filtered or unexported fields
}
func (CriteriaDimensionAttributes) InternalRef ¶
func (d CriteriaDimensionAttributes) InternalRef() (terra.Reference, error)
func (CriteriaDimensionAttributes) InternalTokens ¶
func (d CriteriaDimensionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CriteriaDimensionAttributes) InternalWithRef ¶
func (d CriteriaDimensionAttributes) InternalWithRef(ref terra.Reference) CriteriaDimensionAttributes
func (CriteriaDimensionAttributes) Name ¶
func (d CriteriaDimensionAttributes) Name() terra.StringValue
func (CriteriaDimensionAttributes) Operator ¶
func (d CriteriaDimensionAttributes) Operator() terra.StringValue
func (CriteriaDimensionAttributes) Values ¶
func (d CriteriaDimensionAttributes) Values() terra.ListValue[terra.StringValue]
type CriteriaDimensionState ¶
type CriteriaFailingPeriods ¶
type CriteriaFailingPeriods struct { // MinimumFailingPeriodsToTriggerAlert: number, required MinimumFailingPeriodsToTriggerAlert terra.NumberValue `hcl:"minimum_failing_periods_to_trigger_alert,attr" validate:"required"` // NumberOfEvaluationPeriods: number, required NumberOfEvaluationPeriods terra.NumberValue `hcl:"number_of_evaluation_periods,attr" validate:"required"` }
type CriteriaFailingPeriodsAttributes ¶
type CriteriaFailingPeriodsAttributes struct {
// contains filtered or unexported fields
}
func (CriteriaFailingPeriodsAttributes) InternalRef ¶
func (fp CriteriaFailingPeriodsAttributes) InternalRef() (terra.Reference, error)
func (CriteriaFailingPeriodsAttributes) InternalTokens ¶
func (fp CriteriaFailingPeriodsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (CriteriaFailingPeriodsAttributes) InternalWithRef ¶
func (fp CriteriaFailingPeriodsAttributes) InternalWithRef(ref terra.Reference) CriteriaFailingPeriodsAttributes
func (CriteriaFailingPeriodsAttributes) MinimumFailingPeriodsToTriggerAlert ¶
func (fp CriteriaFailingPeriodsAttributes) MinimumFailingPeriodsToTriggerAlert() terra.NumberValue
func (CriteriaFailingPeriodsAttributes) NumberOfEvaluationPeriods ¶
func (fp CriteriaFailingPeriodsAttributes) NumberOfEvaluationPeriods() terra.NumberValue
type CriteriaState ¶
type CriteriaState struct { MetricMeasureColumn string `json:"metric_measure_column"` Operator string `json:"operator"` Query string `json:"query"` ResourceIdColumn string `json:"resource_id_column"` Threshold float64 `json:"threshold"` TimeAggregationMethod string `json:"time_aggregation_method"` Dimension []CriteriaDimensionState `json:"dimension"` FailingPeriods []CriteriaFailingPeriodsState `json:"failing_periods"` }
type Identity ¶
type Identity struct { // IdentityIds: set of string, optional IdentityIds terra.SetValue[terra.StringValue] `hcl:"identity_ids,attr"` // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` }
type IdentityAttributes ¶
type IdentityAttributes struct {
// contains filtered or unexported fields
}
func (IdentityAttributes) IdentityIds ¶
func (i IdentityAttributes) IdentityIds() terra.SetValue[terra.StringValue]
func (IdentityAttributes) InternalRef ¶
func (i IdentityAttributes) InternalRef() (terra.Reference, error)
func (IdentityAttributes) InternalTokens ¶
func (i IdentityAttributes) InternalTokens() (hclwrite.Tokens, error)
func (IdentityAttributes) InternalWithRef ¶
func (i IdentityAttributes) InternalWithRef(ref terra.Reference) IdentityAttributes
func (IdentityAttributes) PrincipalId ¶
func (i IdentityAttributes) PrincipalId() terra.StringValue
func (IdentityAttributes) TenantId ¶
func (i IdentityAttributes) TenantId() terra.StringValue
func (IdentityAttributes) Type ¶
func (i IdentityAttributes) Type() terra.StringValue
type IdentityState ¶
type Resource ¶
type Resource struct { Name string Args Args DependsOn terra.Dependencies Lifecycle *terra.Lifecycle // contains filtered or unexported fields }
Resource represents the Terraform resource azurerm_monitor_scheduled_query_rules_alert_v2.
func (*Resource) Attributes ¶
func (amsqrav *Resource) Attributes() azurermMonitorScheduledQueryRulesAlertV2Attributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (amsqrav *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (amsqrav *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
type Timeouts ¶
type Timeouts struct { // Create: string, optional Create terra.StringValue `hcl:"create,attr"` // Delete: string, optional Delete terra.StringValue `hcl:"delete,attr"` // Read: string, optional Read terra.StringValue `hcl:"read,attr"` // Update: string, optional Update terra.StringValue `hcl:"update,attr"` }
type TimeoutsAttributes ¶
type TimeoutsAttributes struct {
// contains filtered or unexported fields
}
func (TimeoutsAttributes) Create ¶
func (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
func (TimeoutsAttributes) InternalRef ¶
func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
func (TimeoutsAttributes) InternalTokens ¶
func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (TimeoutsAttributes) InternalWithRef ¶
func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
func (TimeoutsAttributes) Read ¶
func (t TimeoutsAttributes) Read() terra.StringValue
func (TimeoutsAttributes) Update ¶
func (t TimeoutsAttributes) Update() terra.StringValue
Click to show internal directories.
Click to hide internal directories.