google_monitoring_alert_policy

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 AlertStrategy

type AlertStrategy struct {
	// AutoClose: string, optional
	AutoClose terra.StringValue `hcl:"auto_close,attr"`
	// AlertStrategyNotificationChannelStrategy: min=0
	NotificationChannelStrategy []AlertStrategyNotificationChannelStrategy `hcl:"notification_channel_strategy,block" validate:"min=0"`
	// AlertStrategyNotificationRateLimit: optional
	NotificationRateLimit *AlertStrategyNotificationRateLimit `hcl:"notification_rate_limit,block"`
}

type AlertStrategyAttributes

type AlertStrategyAttributes struct {
	// contains filtered or unexported fields
}

func (AlertStrategyAttributes) AutoClose

func (as AlertStrategyAttributes) AutoClose() terra.StringValue

func (AlertStrategyAttributes) InternalRef

func (as AlertStrategyAttributes) InternalRef() (terra.Reference, error)

func (AlertStrategyAttributes) InternalTokens

func (as AlertStrategyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AlertStrategyAttributes) InternalWithRef

func (AlertStrategyAttributes) NotificationChannelStrategy

func (AlertStrategyAttributes) NotificationRateLimit

type AlertStrategyNotificationChannelStrategy

type AlertStrategyNotificationChannelStrategy struct {
	// NotificationChannelNames: list of string, optional
	NotificationChannelNames terra.ListValue[terra.StringValue] `hcl:"notification_channel_names,attr"`
	// RenotifyInterval: string, optional
	RenotifyInterval terra.StringValue `hcl:"renotify_interval,attr"`
}

type AlertStrategyNotificationChannelStrategyAttributes

type AlertStrategyNotificationChannelStrategyAttributes struct {
	// contains filtered or unexported fields
}

func (AlertStrategyNotificationChannelStrategyAttributes) InternalRef

func (AlertStrategyNotificationChannelStrategyAttributes) InternalTokens

func (AlertStrategyNotificationChannelStrategyAttributes) InternalWithRef

func (AlertStrategyNotificationChannelStrategyAttributes) NotificationChannelNames

func (AlertStrategyNotificationChannelStrategyAttributes) RenotifyInterval

type AlertStrategyNotificationChannelStrategyState

type AlertStrategyNotificationChannelStrategyState struct {
	NotificationChannelNames []string `json:"notification_channel_names"`
	RenotifyInterval         string   `json:"renotify_interval"`
}

type AlertStrategyNotificationRateLimit

type AlertStrategyNotificationRateLimit struct {
	// Period: string, optional
	Period terra.StringValue `hcl:"period,attr"`
}

type AlertStrategyNotificationRateLimitAttributes

type AlertStrategyNotificationRateLimitAttributes struct {
	// contains filtered or unexported fields
}

func (AlertStrategyNotificationRateLimitAttributes) InternalRef

func (AlertStrategyNotificationRateLimitAttributes) InternalTokens

func (AlertStrategyNotificationRateLimitAttributes) InternalWithRef

func (AlertStrategyNotificationRateLimitAttributes) Period

type AlertStrategyNotificationRateLimitState

type AlertStrategyNotificationRateLimitState struct {
	Period string `json:"period"`
}

type AlertStrategyState

type AlertStrategyState struct {
	AutoClose                   string                                          `json:"auto_close"`
	NotificationChannelStrategy []AlertStrategyNotificationChannelStrategyState `json:"notification_channel_strategy"`
	NotificationRateLimit       []AlertStrategyNotificationRateLimitState       `json:"notification_rate_limit"`
}

type Args

type Args struct {
	// Combiner: string, required
	Combiner terra.StringValue `hcl:"combiner,attr" validate:"required"`
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// NotificationChannels: list of string, optional
	NotificationChannels terra.ListValue[terra.StringValue] `hcl:"notification_channels,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Severity: string, optional
	Severity terra.StringValue `hcl:"severity,attr"`
	// UserLabels: map of string, optional
	UserLabels terra.MapValue[terra.StringValue] `hcl:"user_labels,attr"`
	// AlertStrategy: optional
	AlertStrategy *AlertStrategy `hcl:"alert_strategy,block"`
	// Conditions: min=1
	Conditions []Conditions `hcl:"conditions,block" validate:"min=1"`
	// Documentation: optional
	Documentation *Documentation `hcl:"documentation,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_monitoring_alert_policy.

type Conditions

type Conditions struct {
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// ConditionsConditionAbsent: optional
	ConditionAbsent *ConditionsConditionAbsent `hcl:"condition_absent,block"`
	// ConditionsConditionMatchedLog: optional
	ConditionMatchedLog *ConditionsConditionMatchedLog `hcl:"condition_matched_log,block"`
	// ConditionsConditionMonitoringQueryLanguage: optional
	ConditionMonitoringQueryLanguage *ConditionsConditionMonitoringQueryLanguage `hcl:"condition_monitoring_query_language,block"`
	// ConditionsConditionPrometheusQueryLanguage: optional
	ConditionPrometheusQueryLanguage *ConditionsConditionPrometheusQueryLanguage `hcl:"condition_prometheus_query_language,block"`
	// ConditionsConditionThreshold: optional
	ConditionThreshold *ConditionsConditionThreshold `hcl:"condition_threshold,block"`
}

type ConditionsAttributes

type ConditionsAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsAttributes) ConditionAbsent

func (ConditionsAttributes) ConditionMatchedLog

func (ConditionsAttributes) ConditionMonitoringQueryLanguage

func (ConditionsAttributes) ConditionPrometheusQueryLanguage

func (ConditionsAttributes) ConditionThreshold

func (ConditionsAttributes) DisplayName

func (c ConditionsAttributes) DisplayName() terra.StringValue

func (ConditionsAttributes) InternalRef

func (c ConditionsAttributes) InternalRef() (terra.Reference, error)

func (ConditionsAttributes) InternalTokens

func (c ConditionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConditionsAttributes) InternalWithRef

func (ConditionsAttributes) Name

type ConditionsConditionAbsent

type ConditionsConditionAbsent struct {
	// Duration: string, required
	Duration terra.StringValue `hcl:"duration,attr" validate:"required"`
	// Filter: string, optional
	Filter terra.StringValue `hcl:"filter,attr"`
	// ConditionsConditionAbsentAggregations: min=0
	Aggregations []ConditionsConditionAbsentAggregations `hcl:"aggregations,block" validate:"min=0"`
	// ConditionsConditionAbsentTrigger: optional
	Trigger *ConditionsConditionAbsentTrigger `hcl:"trigger,block"`
}

type ConditionsConditionAbsentAggregations

type ConditionsConditionAbsentAggregations struct {
	// AlignmentPeriod: string, optional
	AlignmentPeriod terra.StringValue `hcl:"alignment_period,attr"`
	// CrossSeriesReducer: string, optional
	CrossSeriesReducer terra.StringValue `hcl:"cross_series_reducer,attr"`
	// GroupByFields: list of string, optional
	GroupByFields terra.ListValue[terra.StringValue] `hcl:"group_by_fields,attr"`
	// PerSeriesAligner: string, optional
	PerSeriesAligner terra.StringValue `hcl:"per_series_aligner,attr"`
}

type ConditionsConditionAbsentAggregationsAttributes

type ConditionsConditionAbsentAggregationsAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionAbsentAggregationsAttributes) AlignmentPeriod

func (ConditionsConditionAbsentAggregationsAttributes) CrossSeriesReducer

func (ConditionsConditionAbsentAggregationsAttributes) GroupByFields

func (ConditionsConditionAbsentAggregationsAttributes) InternalRef

func (ConditionsConditionAbsentAggregationsAttributes) InternalTokens

func (ConditionsConditionAbsentAggregationsAttributes) InternalWithRef

func (ConditionsConditionAbsentAggregationsAttributes) PerSeriesAligner

type ConditionsConditionAbsentAggregationsState

type ConditionsConditionAbsentAggregationsState struct {
	AlignmentPeriod    string   `json:"alignment_period"`
	CrossSeriesReducer string   `json:"cross_series_reducer"`
	GroupByFields      []string `json:"group_by_fields"`
	PerSeriesAligner   string   `json:"per_series_aligner"`
}

type ConditionsConditionAbsentAttributes

type ConditionsConditionAbsentAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionAbsentAttributes) Aggregations

func (ConditionsConditionAbsentAttributes) Duration

func (ConditionsConditionAbsentAttributes) Filter

func (ConditionsConditionAbsentAttributes) InternalRef

func (ConditionsConditionAbsentAttributes) InternalTokens

func (ConditionsConditionAbsentAttributes) InternalWithRef

func (ConditionsConditionAbsentAttributes) Trigger

type ConditionsConditionAbsentState

type ConditionsConditionAbsentState struct {
	Duration     string                                       `json:"duration"`
	Filter       string                                       `json:"filter"`
	Aggregations []ConditionsConditionAbsentAggregationsState `json:"aggregations"`
	Trigger      []ConditionsConditionAbsentTriggerState      `json:"trigger"`
}

type ConditionsConditionAbsentTrigger

type ConditionsConditionAbsentTrigger struct {
	// Count: number, optional
	Count terra.NumberValue `hcl:"count,attr"`
	// Percent: number, optional
	Percent terra.NumberValue `hcl:"percent,attr"`
}

type ConditionsConditionAbsentTriggerAttributes

type ConditionsConditionAbsentTriggerAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionAbsentTriggerAttributes) Count

func (ConditionsConditionAbsentTriggerAttributes) InternalRef

func (ConditionsConditionAbsentTriggerAttributes) InternalTokens

func (ConditionsConditionAbsentTriggerAttributes) InternalWithRef

func (ConditionsConditionAbsentTriggerAttributes) Percent

type ConditionsConditionAbsentTriggerState

type ConditionsConditionAbsentTriggerState struct {
	Count   float64 `json:"count"`
	Percent float64 `json:"percent"`
}

type ConditionsConditionMatchedLog

type ConditionsConditionMatchedLog struct {
	// Filter: string, required
	Filter terra.StringValue `hcl:"filter,attr" validate:"required"`
	// LabelExtractors: map of string, optional
	LabelExtractors terra.MapValue[terra.StringValue] `hcl:"label_extractors,attr"`
}

type ConditionsConditionMatchedLogAttributes

type ConditionsConditionMatchedLogAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionMatchedLogAttributes) Filter

func (ConditionsConditionMatchedLogAttributes) InternalRef

func (ConditionsConditionMatchedLogAttributes) InternalTokens

func (ConditionsConditionMatchedLogAttributes) InternalWithRef

func (ConditionsConditionMatchedLogAttributes) LabelExtractors

type ConditionsConditionMatchedLogState

type ConditionsConditionMatchedLogState struct {
	Filter          string            `json:"filter"`
	LabelExtractors map[string]string `json:"label_extractors"`
}

type ConditionsConditionMonitoringQueryLanguage

type ConditionsConditionMonitoringQueryLanguage struct {
	// Duration: string, required
	Duration terra.StringValue `hcl:"duration,attr" validate:"required"`
	// EvaluationMissingData: string, optional
	EvaluationMissingData terra.StringValue `hcl:"evaluation_missing_data,attr"`
	// Query: string, required
	Query terra.StringValue `hcl:"query,attr" validate:"required"`
	// ConditionsConditionMonitoringQueryLanguageTrigger: optional
	Trigger *ConditionsConditionMonitoringQueryLanguageTrigger `hcl:"trigger,block"`
}

type ConditionsConditionMonitoringQueryLanguageAttributes

type ConditionsConditionMonitoringQueryLanguageAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionMonitoringQueryLanguageAttributes) Duration

func (ConditionsConditionMonitoringQueryLanguageAttributes) EvaluationMissingData

func (ConditionsConditionMonitoringQueryLanguageAttributes) InternalRef

func (ConditionsConditionMonitoringQueryLanguageAttributes) InternalTokens

func (ConditionsConditionMonitoringQueryLanguageAttributes) InternalWithRef

func (ConditionsConditionMonitoringQueryLanguageAttributes) Query

func (ConditionsConditionMonitoringQueryLanguageAttributes) Trigger

type ConditionsConditionMonitoringQueryLanguageState

type ConditionsConditionMonitoringQueryLanguageState struct {
	Duration              string                                                   `json:"duration"`
	EvaluationMissingData string                                                   `json:"evaluation_missing_data"`
	Query                 string                                                   `json:"query"`
	Trigger               []ConditionsConditionMonitoringQueryLanguageTriggerState `json:"trigger"`
}

type ConditionsConditionMonitoringQueryLanguageTrigger

type ConditionsConditionMonitoringQueryLanguageTrigger struct {
	// Count: number, optional
	Count terra.NumberValue `hcl:"count,attr"`
	// Percent: number, optional
	Percent terra.NumberValue `hcl:"percent,attr"`
}

type ConditionsConditionMonitoringQueryLanguageTriggerAttributes

type ConditionsConditionMonitoringQueryLanguageTriggerAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionMonitoringQueryLanguageTriggerAttributes) Count

func (ConditionsConditionMonitoringQueryLanguageTriggerAttributes) InternalRef

func (ConditionsConditionMonitoringQueryLanguageTriggerAttributes) InternalTokens

func (ConditionsConditionMonitoringQueryLanguageTriggerAttributes) InternalWithRef

func (ConditionsConditionMonitoringQueryLanguageTriggerAttributes) Percent

type ConditionsConditionMonitoringQueryLanguageTriggerState

type ConditionsConditionMonitoringQueryLanguageTriggerState struct {
	Count   float64 `json:"count"`
	Percent float64 `json:"percent"`
}

type ConditionsConditionPrometheusQueryLanguage

type ConditionsConditionPrometheusQueryLanguage struct {
	// AlertRule: string, optional
	AlertRule terra.StringValue `hcl:"alert_rule,attr"`
	// Duration: string, optional
	Duration terra.StringValue `hcl:"duration,attr"`
	// EvaluationInterval: string, optional
	EvaluationInterval terra.StringValue `hcl:"evaluation_interval,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Query: string, required
	Query terra.StringValue `hcl:"query,attr" validate:"required"`
	// RuleGroup: string, optional
	RuleGroup terra.StringValue `hcl:"rule_group,attr"`
}

type ConditionsConditionPrometheusQueryLanguageAttributes

type ConditionsConditionPrometheusQueryLanguageAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionPrometheusQueryLanguageAttributes) AlertRule

func (ConditionsConditionPrometheusQueryLanguageAttributes) Duration

func (ConditionsConditionPrometheusQueryLanguageAttributes) EvaluationInterval

func (ConditionsConditionPrometheusQueryLanguageAttributes) InternalRef

func (ConditionsConditionPrometheusQueryLanguageAttributes) InternalTokens

func (ConditionsConditionPrometheusQueryLanguageAttributes) InternalWithRef

func (ConditionsConditionPrometheusQueryLanguageAttributes) Labels

func (ConditionsConditionPrometheusQueryLanguageAttributes) Query

func (ConditionsConditionPrometheusQueryLanguageAttributes) RuleGroup

type ConditionsConditionPrometheusQueryLanguageState

type ConditionsConditionPrometheusQueryLanguageState struct {
	AlertRule          string            `json:"alert_rule"`
	Duration           string            `json:"duration"`
	EvaluationInterval string            `json:"evaluation_interval"`
	Labels             map[string]string `json:"labels"`
	Query              string            `json:"query"`
	RuleGroup          string            `json:"rule_group"`
}

type ConditionsConditionThreshold

type ConditionsConditionThreshold struct {
	// Comparison: string, required
	Comparison terra.StringValue `hcl:"comparison,attr" validate:"required"`
	// DenominatorFilter: string, optional
	DenominatorFilter terra.StringValue `hcl:"denominator_filter,attr"`
	// Duration: string, required
	Duration terra.StringValue `hcl:"duration,attr" validate:"required"`
	// EvaluationMissingData: string, optional
	EvaluationMissingData terra.StringValue `hcl:"evaluation_missing_data,attr"`
	// Filter: string, optional
	Filter terra.StringValue `hcl:"filter,attr"`
	// ThresholdValue: number, optional
	ThresholdValue terra.NumberValue `hcl:"threshold_value,attr"`
	// ConditionsConditionThresholdAggregations: min=0
	Aggregations []ConditionsConditionThresholdAggregations `hcl:"aggregations,block" validate:"min=0"`
	// ConditionsConditionThresholdDenominatorAggregations: min=0
	DenominatorAggregations []ConditionsConditionThresholdDenominatorAggregations `hcl:"denominator_aggregations,block" validate:"min=0"`
	// ConditionsConditionThresholdForecastOptions: optional
	ForecastOptions *ConditionsConditionThresholdForecastOptions `hcl:"forecast_options,block"`
	// ConditionsConditionThresholdTrigger: optional
	Trigger *ConditionsConditionThresholdTrigger `hcl:"trigger,block"`
}

type ConditionsConditionThresholdAggregations

type ConditionsConditionThresholdAggregations struct {
	// AlignmentPeriod: string, optional
	AlignmentPeriod terra.StringValue `hcl:"alignment_period,attr"`
	// CrossSeriesReducer: string, optional
	CrossSeriesReducer terra.StringValue `hcl:"cross_series_reducer,attr"`
	// GroupByFields: list of string, optional
	GroupByFields terra.ListValue[terra.StringValue] `hcl:"group_by_fields,attr"`
	// PerSeriesAligner: string, optional
	PerSeriesAligner terra.StringValue `hcl:"per_series_aligner,attr"`
}

type ConditionsConditionThresholdAggregationsAttributes

type ConditionsConditionThresholdAggregationsAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionThresholdAggregationsAttributes) AlignmentPeriod

func (ConditionsConditionThresholdAggregationsAttributes) CrossSeriesReducer

func (ConditionsConditionThresholdAggregationsAttributes) GroupByFields

func (ConditionsConditionThresholdAggregationsAttributes) InternalRef

func (ConditionsConditionThresholdAggregationsAttributes) InternalTokens

func (ConditionsConditionThresholdAggregationsAttributes) InternalWithRef

func (ConditionsConditionThresholdAggregationsAttributes) PerSeriesAligner

type ConditionsConditionThresholdAggregationsState

type ConditionsConditionThresholdAggregationsState struct {
	AlignmentPeriod    string   `json:"alignment_period"`
	CrossSeriesReducer string   `json:"cross_series_reducer"`
	GroupByFields      []string `json:"group_by_fields"`
	PerSeriesAligner   string   `json:"per_series_aligner"`
}

type ConditionsConditionThresholdAttributes

type ConditionsConditionThresholdAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionThresholdAttributes) Aggregations

func (ConditionsConditionThresholdAttributes) Comparison

func (ConditionsConditionThresholdAttributes) DenominatorFilter

func (ConditionsConditionThresholdAttributes) Duration

func (ConditionsConditionThresholdAttributes) EvaluationMissingData

func (ct ConditionsConditionThresholdAttributes) EvaluationMissingData() terra.StringValue

func (ConditionsConditionThresholdAttributes) Filter

func (ConditionsConditionThresholdAttributes) ForecastOptions

func (ConditionsConditionThresholdAttributes) InternalRef

func (ConditionsConditionThresholdAttributes) InternalTokens

func (ConditionsConditionThresholdAttributes) InternalWithRef

func (ConditionsConditionThresholdAttributes) ThresholdValue

func (ConditionsConditionThresholdAttributes) Trigger

type ConditionsConditionThresholdDenominatorAggregations

type ConditionsConditionThresholdDenominatorAggregations struct {
	// AlignmentPeriod: string, optional
	AlignmentPeriod terra.StringValue `hcl:"alignment_period,attr"`
	// CrossSeriesReducer: string, optional
	CrossSeriesReducer terra.StringValue `hcl:"cross_series_reducer,attr"`
	// GroupByFields: list of string, optional
	GroupByFields terra.ListValue[terra.StringValue] `hcl:"group_by_fields,attr"`
	// PerSeriesAligner: string, optional
	PerSeriesAligner terra.StringValue `hcl:"per_series_aligner,attr"`
}

type ConditionsConditionThresholdDenominatorAggregationsAttributes

type ConditionsConditionThresholdDenominatorAggregationsAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionThresholdDenominatorAggregationsAttributes) AlignmentPeriod

func (ConditionsConditionThresholdDenominatorAggregationsAttributes) CrossSeriesReducer

func (ConditionsConditionThresholdDenominatorAggregationsAttributes) GroupByFields

func (ConditionsConditionThresholdDenominatorAggregationsAttributes) InternalRef

func (ConditionsConditionThresholdDenominatorAggregationsAttributes) InternalTokens

func (ConditionsConditionThresholdDenominatorAggregationsAttributes) InternalWithRef

func (ConditionsConditionThresholdDenominatorAggregationsAttributes) PerSeriesAligner

type ConditionsConditionThresholdDenominatorAggregationsState

type ConditionsConditionThresholdDenominatorAggregationsState struct {
	AlignmentPeriod    string   `json:"alignment_period"`
	CrossSeriesReducer string   `json:"cross_series_reducer"`
	GroupByFields      []string `json:"group_by_fields"`
	PerSeriesAligner   string   `json:"per_series_aligner"`
}

type ConditionsConditionThresholdForecastOptions

type ConditionsConditionThresholdForecastOptions struct {
	// ForecastHorizon: string, required
	ForecastHorizon terra.StringValue `hcl:"forecast_horizon,attr" validate:"required"`
}

type ConditionsConditionThresholdForecastOptionsAttributes

type ConditionsConditionThresholdForecastOptionsAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionThresholdForecastOptionsAttributes) ForecastHorizon

func (ConditionsConditionThresholdForecastOptionsAttributes) InternalRef

func (ConditionsConditionThresholdForecastOptionsAttributes) InternalTokens

func (ConditionsConditionThresholdForecastOptionsAttributes) InternalWithRef

type ConditionsConditionThresholdForecastOptionsState

type ConditionsConditionThresholdForecastOptionsState struct {
	ForecastHorizon string `json:"forecast_horizon"`
}

type ConditionsConditionThresholdState

type ConditionsConditionThresholdState struct {
	Comparison              string                                                     `json:"comparison"`
	DenominatorFilter       string                                                     `json:"denominator_filter"`
	Duration                string                                                     `json:"duration"`
	EvaluationMissingData   string                                                     `json:"evaluation_missing_data"`
	Filter                  string                                                     `json:"filter"`
	ThresholdValue          float64                                                    `json:"threshold_value"`
	Aggregations            []ConditionsConditionThresholdAggregationsState            `json:"aggregations"`
	DenominatorAggregations []ConditionsConditionThresholdDenominatorAggregationsState `json:"denominator_aggregations"`
	ForecastOptions         []ConditionsConditionThresholdForecastOptionsState         `json:"forecast_options"`
	Trigger                 []ConditionsConditionThresholdTriggerState                 `json:"trigger"`
}

type ConditionsConditionThresholdTrigger

type ConditionsConditionThresholdTrigger struct {
	// Count: number, optional
	Count terra.NumberValue `hcl:"count,attr"`
	// Percent: number, optional
	Percent terra.NumberValue `hcl:"percent,attr"`
}

type ConditionsConditionThresholdTriggerAttributes

type ConditionsConditionThresholdTriggerAttributes struct {
	// contains filtered or unexported fields
}

func (ConditionsConditionThresholdTriggerAttributes) Count

func (ConditionsConditionThresholdTriggerAttributes) InternalRef

func (ConditionsConditionThresholdTriggerAttributes) InternalTokens

func (ConditionsConditionThresholdTriggerAttributes) InternalWithRef

func (ConditionsConditionThresholdTriggerAttributes) Percent

type ConditionsConditionThresholdTriggerState

type ConditionsConditionThresholdTriggerState struct {
	Count   float64 `json:"count"`
	Percent float64 `json:"percent"`
}

type ConditionsState

type ConditionsState struct {
	DisplayName                      string                                            `json:"display_name"`
	Name                             string                                            `json:"name"`
	ConditionAbsent                  []ConditionsConditionAbsentState                  `json:"condition_absent"`
	ConditionMatchedLog              []ConditionsConditionMatchedLogState              `json:"condition_matched_log"`
	ConditionMonitoringQueryLanguage []ConditionsConditionMonitoringQueryLanguageState `json:"condition_monitoring_query_language"`
	ConditionPrometheusQueryLanguage []ConditionsConditionPrometheusQueryLanguageState `json:"condition_prometheus_query_language"`
	ConditionThreshold               []ConditionsConditionThresholdState               `json:"condition_threshold"`
}

type CreationRecordAttributes

type CreationRecordAttributes struct {
	// contains filtered or unexported fields
}

func (CreationRecordAttributes) InternalRef

func (cr CreationRecordAttributes) InternalRef() (terra.Reference, error)

func (CreationRecordAttributes) InternalTokens

func (cr CreationRecordAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CreationRecordAttributes) InternalWithRef

func (CreationRecordAttributes) MutateTime

func (cr CreationRecordAttributes) MutateTime() terra.StringValue

func (CreationRecordAttributes) MutatedBy

type CreationRecordState

type CreationRecordState struct {
	MutateTime string `json:"mutate_time"`
	MutatedBy  string `json:"mutated_by"`
}

type Documentation

type Documentation struct {
	// Content: string, optional
	Content terra.StringValue `hcl:"content,attr"`
	// MimeType: string, optional
	MimeType terra.StringValue `hcl:"mime_type,attr"`
	// Subject: string, optional
	Subject terra.StringValue `hcl:"subject,attr"`
}

type DocumentationAttributes

type DocumentationAttributes struct {
	// contains filtered or unexported fields
}

func (DocumentationAttributes) Content

func (DocumentationAttributes) InternalRef

func (d DocumentationAttributes) InternalRef() (terra.Reference, error)

func (DocumentationAttributes) InternalTokens

func (d DocumentationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DocumentationAttributes) InternalWithRef

func (DocumentationAttributes) MimeType

func (DocumentationAttributes) Subject

type DocumentationState

type DocumentationState struct {
	Content  string `json:"content"`
	MimeType string `json:"mime_type"`
	Subject  string `json:"subject"`
}

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 google_monitoring_alert_policy.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gmap *Resource) Attributes() googleMonitoringAlertPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (gmap *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gmap *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gmap *Resource) State() (*googleMonitoringAlertPolicyState, bool)

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

func (*Resource) StateMust

func (gmap *Resource) StateMust() *googleMonitoringAlertPolicyState

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

func (*Resource) Type

func (gmap *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"`
	// 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) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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