Documentation ¶
Index ¶
- type Metric
- type MetricAttributes
- func (m MetricAttributes) Dimensions() terra.MapValue[terra.StringValue]
- func (m MetricAttributes) InternalRef() (terra.Reference, error)
- func (m MetricAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (m MetricAttributes) InternalWithRef(ref terra.Reference) MetricAttributes
- func (m MetricAttributes) MetricName() terra.StringValue
- func (m MetricAttributes) Namespace() terra.StringValue
- func (m MetricAttributes) Period() terra.NumberValue
- func (m MetricAttributes) Stat() terra.StringValue
- func (m MetricAttributes) Unit() terra.StringValue
- type MetricQuery
- type MetricQueryAttributes
- func (mq MetricQueryAttributes) AccountId() terra.StringValue
- func (mq MetricQueryAttributes) Expression() terra.StringValue
- func (mq MetricQueryAttributes) Id() terra.StringValue
- func (mq MetricQueryAttributes) InternalRef() (terra.Reference, error)
- func (mq MetricQueryAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (mq MetricQueryAttributes) InternalWithRef(ref terra.Reference) MetricQueryAttributes
- func (mq MetricQueryAttributes) Label() terra.StringValue
- func (mq MetricQueryAttributes) Metric() terra.ListValue[MetricAttributes]
- func (mq MetricQueryAttributes) Period() terra.NumberValue
- func (mq MetricQueryAttributes) ReturnData() terra.BoolValue
- type MetricQueryState
- type MetricState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { // Dimensions: map of string, optional Dimensions terra.MapValue[terra.StringValue] `hcl:"dimensions,attr"` // MetricName: string, required MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"` // Namespace: string, optional Namespace terra.StringValue `hcl:"namespace,attr"` // Period: number, required Period terra.NumberValue `hcl:"period,attr" validate:"required"` // Stat: string, required Stat terra.StringValue `hcl:"stat,attr" validate:"required"` // Unit: string, optional Unit terra.StringValue `hcl:"unit,attr"` }
type MetricAttributes ¶
type MetricAttributes struct {
// contains filtered or unexported fields
}
func (MetricAttributes) Dimensions ¶
func (m MetricAttributes) Dimensions() terra.MapValue[terra.StringValue]
func (MetricAttributes) InternalRef ¶
func (m MetricAttributes) InternalRef() (terra.Reference, error)
func (MetricAttributes) InternalTokens ¶
func (m MetricAttributes) InternalTokens() (hclwrite.Tokens, error)
func (MetricAttributes) InternalWithRef ¶
func (m MetricAttributes) InternalWithRef(ref terra.Reference) MetricAttributes
func (MetricAttributes) MetricName ¶
func (m MetricAttributes) MetricName() terra.StringValue
func (MetricAttributes) Namespace ¶
func (m MetricAttributes) Namespace() terra.StringValue
func (MetricAttributes) Period ¶
func (m MetricAttributes) Period() terra.NumberValue
func (MetricAttributes) Stat ¶
func (m MetricAttributes) Stat() terra.StringValue
func (MetricAttributes) Unit ¶
func (m MetricAttributes) Unit() terra.StringValue
type MetricQuery ¶
type MetricQuery struct { // AccountId: string, optional AccountId terra.StringValue `hcl:"account_id,attr"` // Expression: string, optional Expression terra.StringValue `hcl:"expression,attr"` // Id: string, required Id terra.StringValue `hcl:"id,attr" validate:"required"` // Label: string, optional Label terra.StringValue `hcl:"label,attr"` // Period: number, optional Period terra.NumberValue `hcl:"period,attr"` // ReturnData: bool, optional ReturnData terra.BoolValue `hcl:"return_data,attr"` // Metric: optional Metric *Metric `hcl:"metric,block"` }
type MetricQueryAttributes ¶
type MetricQueryAttributes struct {
// contains filtered or unexported fields
}
func (MetricQueryAttributes) AccountId ¶
func (mq MetricQueryAttributes) AccountId() terra.StringValue
func (MetricQueryAttributes) Expression ¶
func (mq MetricQueryAttributes) Expression() terra.StringValue
func (MetricQueryAttributes) Id ¶
func (mq MetricQueryAttributes) Id() terra.StringValue
func (MetricQueryAttributes) InternalRef ¶
func (mq MetricQueryAttributes) InternalRef() (terra.Reference, error)
func (MetricQueryAttributes) InternalTokens ¶
func (mq MetricQueryAttributes) InternalTokens() (hclwrite.Tokens, error)
func (MetricQueryAttributes) InternalWithRef ¶
func (mq MetricQueryAttributes) InternalWithRef(ref terra.Reference) MetricQueryAttributes
func (MetricQueryAttributes) Label ¶
func (mq MetricQueryAttributes) Label() terra.StringValue
func (MetricQueryAttributes) Metric ¶
func (mq MetricQueryAttributes) Metric() terra.ListValue[MetricAttributes]
func (MetricQueryAttributes) Period ¶
func (mq MetricQueryAttributes) Period() terra.NumberValue
func (MetricQueryAttributes) ReturnData ¶
func (mq MetricQueryAttributes) ReturnData() terra.BoolValue
type MetricQueryState ¶
Click to show internal directories.
Click to hide internal directories.