azurerm_monitor_scheduled_query_rules_alert_v2

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 ActionState struct {
	ActionGroups     []string          `json:"action_groups"`
	CustomProperties map[string]string `json:"custom_properties"`
}

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 (CriteriaAttributes) FailingPeriods

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 (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 (CriteriaDimensionAttributes) Name

func (CriteriaDimensionAttributes) Operator

func (CriteriaDimensionAttributes) Values

type CriteriaDimensionState

type CriteriaDimensionState struct {
	Name     string   `json:"name"`
	Operator string   `json:"operator"`
	Values   []string `json:"values"`
}

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 (CriteriaFailingPeriodsAttributes) InternalTokens

func (fp CriteriaFailingPeriodsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CriteriaFailingPeriodsAttributes) InternalWithRef

func (CriteriaFailingPeriodsAttributes) MinimumFailingPeriodsToTriggerAlert

func (fp CriteriaFailingPeriodsAttributes) MinimumFailingPeriodsToTriggerAlert() terra.NumberValue

func (CriteriaFailingPeriodsAttributes) NumberOfEvaluationPeriods

func (fp CriteriaFailingPeriodsAttributes) NumberOfEvaluationPeriods() terra.NumberValue

type CriteriaFailingPeriodsState

type CriteriaFailingPeriodsState struct {
	MinimumFailingPeriodsToTriggerAlert float64 `json:"minimum_failing_periods_to_trigger_alert"`
	NumberOfEvaluationPeriods           float64 `json:"number_of_evaluation_periods"`
}

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 (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

type IdentityState

type IdentityState struct {
	IdentityIds []string `json:"identity_ids"`
	PrincipalId string   `json:"principal_id"`
	TenantId    string   `json:"tenant_id"`
	Type        string   `json:"type"`
}

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 New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

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) DependOn

func (amsqrav *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (amsqrav *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (amsqrav *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (amsqrav *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (amsqrav *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (amsqrav *Resource) State() (*azurermMonitorScheduledQueryRulesAlertV2State, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (amsqrav *Resource) StateMust() *azurermMonitorScheduledQueryRulesAlertV2State

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (amsqrav *Resource) Type() string

Type returns the Terraform object type 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 (TimeoutsAttributes) Delete

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 (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL