awscloudwatch

package
v1.124.0-devpreview Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlarmBase_IsConstruct

func AlarmBase_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func AlarmBase_IsResource

func AlarmBase_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func Alarm_IsConstruct

func Alarm_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func Alarm_IsResource

func Alarm_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func CfnAlarm_CFN_RESOURCE_TYPE_NAME

func CfnAlarm_CFN_RESOURCE_TYPE_NAME() *string

func CfnAlarm_IsCfnElement

func CfnAlarm_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnAlarm_IsCfnResource

func CfnAlarm_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnAlarm_IsConstruct

func CfnAlarm_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnAnomalyDetector_CFN_RESOURCE_TYPE_NAME

func CfnAnomalyDetector_CFN_RESOURCE_TYPE_NAME() *string

func CfnAnomalyDetector_IsCfnElement

func CfnAnomalyDetector_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnAnomalyDetector_IsCfnResource

func CfnAnomalyDetector_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnAnomalyDetector_IsConstruct

func CfnAnomalyDetector_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnCompositeAlarm_CFN_RESOURCE_TYPE_NAME

func CfnCompositeAlarm_CFN_RESOURCE_TYPE_NAME() *string

func CfnCompositeAlarm_IsCfnElement

func CfnCompositeAlarm_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnCompositeAlarm_IsCfnResource

func CfnCompositeAlarm_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnCompositeAlarm_IsConstruct

func CfnCompositeAlarm_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnDashboard_CFN_RESOURCE_TYPE_NAME

func CfnDashboard_CFN_RESOURCE_TYPE_NAME() *string

func CfnDashboard_IsCfnElement

func CfnDashboard_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnDashboard_IsCfnResource

func CfnDashboard_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnDashboard_IsConstruct

func CfnDashboard_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnInsightRule_CFN_RESOURCE_TYPE_NAME

func CfnInsightRule_CFN_RESOURCE_TYPE_NAME() *string

func CfnInsightRule_IsCfnElement

func CfnInsightRule_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnInsightRule_IsCfnResource

func CfnInsightRule_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnInsightRule_IsConstruct

func CfnInsightRule_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnMetricStream_CFN_RESOURCE_TYPE_NAME

func CfnMetricStream_CFN_RESOURCE_TYPE_NAME() *string

func CfnMetricStream_IsCfnElement

func CfnMetricStream_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnMetricStream_IsCfnResource

func CfnMetricStream_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnMetricStream_IsConstruct

func CfnMetricStream_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func Color_BLUE

func Color_BLUE() *string

func Color_BROWN

func Color_BROWN() *string

func Color_GREEN

func Color_GREEN() *string

func Color_GREY

func Color_GREY() *string

func Color_ORANGE

func Color_ORANGE() *string

func Color_PINK

func Color_PINK() *string

func Color_PURPLE

func Color_PURPLE() *string

func Color_RED

func Color_RED() *string

func CompositeAlarm_IsConstruct

func CompositeAlarm_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CompositeAlarm_IsResource

func CompositeAlarm_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func Dashboard_IsConstruct

func Dashboard_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func Dashboard_IsResource

func Dashboard_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func Metric_GrantPutMetricData

func Metric_GrantPutMetricData(grantee awsiam.IGrantable) awsiam.Grant

Grant permissions to the given identity to write metrics. Experimental.

func NewAlarmBase_Override

func NewAlarmBase_Override(a AlarmBase, scope constructs.Construct, id *string, props *awscdk.ResourceProps)

Experimental.

func NewAlarmRule_Override

func NewAlarmRule_Override(a AlarmRule)

Experimental.

func NewAlarmStatusWidget_Override

func NewAlarmStatusWidget_Override(a AlarmStatusWidget, props *AlarmStatusWidgetProps)

Experimental.

func NewAlarmWidget_Override

func NewAlarmWidget_Override(a AlarmWidget, props *AlarmWidgetProps)

Experimental.

func NewAlarm_Override

func NewAlarm_Override(a Alarm, scope constructs.Construct, id *string, props *AlarmProps)

Experimental.

func NewCfnAlarm_Override

func NewCfnAlarm_Override(c CfnAlarm, scope awscdk.Construct, id *string, props *CfnAlarmProps)

Create a new `AWS::CloudWatch::Alarm`.

func NewCfnAnomalyDetector_Override

func NewCfnAnomalyDetector_Override(c CfnAnomalyDetector, scope awscdk.Construct, id *string, props *CfnAnomalyDetectorProps)

Create a new `AWS::CloudWatch::AnomalyDetector`.

func NewCfnCompositeAlarm_Override

func NewCfnCompositeAlarm_Override(c CfnCompositeAlarm, scope awscdk.Construct, id *string, props *CfnCompositeAlarmProps)

Create a new `AWS::CloudWatch::CompositeAlarm`.

func NewCfnDashboard_Override

func NewCfnDashboard_Override(c CfnDashboard, scope awscdk.Construct, id *string, props *CfnDashboardProps)

Create a new `AWS::CloudWatch::Dashboard`.

func NewCfnInsightRule_Override

func NewCfnInsightRule_Override(c CfnInsightRule, scope awscdk.Construct, id *string, props *CfnInsightRuleProps)

Create a new `AWS::CloudWatch::InsightRule`.

func NewCfnMetricStream_Override

func NewCfnMetricStream_Override(c CfnMetricStream, scope awscdk.Construct, id *string, props *CfnMetricStreamProps)

Create a new `AWS::CloudWatch::MetricStream`.

func NewColor_Override

func NewColor_Override(c Color)

Experimental.

func NewColumn_Override

func NewColumn_Override(c Column, widgets ...IWidget)

Experimental.

func NewCompositeAlarm_Override

func NewCompositeAlarm_Override(c CompositeAlarm, scope constructs.Construct, id *string, props *CompositeAlarmProps)

Experimental.

func NewConcreteWidget_Override

func NewConcreteWidget_Override(c ConcreteWidget, width *float64, height *float64)

Experimental.

func NewDashboard_Override

func NewDashboard_Override(d Dashboard, scope constructs.Construct, id *string, props *DashboardProps)

Experimental.

func NewGraphWidget_Override

func NewGraphWidget_Override(g GraphWidget, props *GraphWidgetProps)

Experimental.

func NewLogQueryWidget_Override

func NewLogQueryWidget_Override(l LogQueryWidget, props *LogQueryWidgetProps)

Experimental.

func NewMathExpression_Override

func NewMathExpression_Override(m MathExpression, props *MathExpressionProps)

Experimental.

func NewMetric_Override

func NewMetric_Override(m Metric, props *MetricProps)

Experimental.

func NewRow_Override

func NewRow_Override(r Row, widgets ...IWidget)

Experimental.

func NewSingleValueWidget_Override

func NewSingleValueWidget_Override(s SingleValueWidget, props *SingleValueWidgetProps)

Experimental.

func NewSpacer_Override

func NewSpacer_Override(s Spacer, props *SpacerProps)

Experimental.

func NewTextWidget_Override

func NewTextWidget_Override(t TextWidget, props *TextWidgetProps)

Experimental.

Types

type Alarm

type Alarm interface {
	AlarmBase
	AlarmActionArns() *[]*string
	SetAlarmActionArns(val *[]*string)
	AlarmArn() *string
	AlarmName() *string
	Env() *awscdk.ResourceEnvironment
	InsufficientDataActionArns() *[]*string
	SetInsufficientDataActionArns(val *[]*string)
	Metric() IMetric
	Node() awscdk.ConstructNode
	OkActionArns() *[]*string
	SetOkActionArns(val *[]*string)
	PhysicalName() *string
	Stack() awscdk.Stack
	AddAlarmAction(actions ...IAlarmAction)
	AddInsufficientDataAction(actions ...IAlarmAction)
	AddOkAction(actions ...IAlarmAction)
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RenderAlarmRule() *string
	Synthesize(session awscdk.ISynthesisSession)
	ToAnnotation() *HorizontalAnnotation
	ToString() *string
	Validate() *[]*string
}

An alarm on a CloudWatch metric. Experimental.

func NewAlarm

func NewAlarm(scope constructs.Construct, id *string, props *AlarmProps) Alarm

Experimental.

type AlarmActionConfig

type AlarmActionConfig struct {
	// Return the ARN that should be used for a CloudWatch Alarm action.
	// Experimental.
	AlarmActionArn *string `json:"alarmActionArn"`
}

Properties for an alarm action. Experimental.

type AlarmBase

type AlarmBase interface {
	awscdk.Resource
	IAlarm
	AlarmActionArns() *[]*string
	SetAlarmActionArns(val *[]*string)
	AlarmArn() *string
	AlarmName() *string
	Env() *awscdk.ResourceEnvironment
	InsufficientDataActionArns() *[]*string
	SetInsufficientDataActionArns(val *[]*string)
	Node() awscdk.ConstructNode
	OkActionArns() *[]*string
	SetOkActionArns(val *[]*string)
	PhysicalName() *string
	Stack() awscdk.Stack
	AddAlarmAction(actions ...IAlarmAction)
	AddInsufficientDataAction(actions ...IAlarmAction)
	AddOkAction(actions ...IAlarmAction)
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RenderAlarmRule() *string
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

The base class for Alarm and CompositeAlarm resources. Experimental.

type AlarmProps

type AlarmProps struct {
	// The number of periods over which data is compared to the specified threshold.
	// Experimental.
	EvaluationPeriods *float64 `json:"evaluationPeriods"`
	// The value against which the specified statistic is compared.
	// Experimental.
	Threshold *float64 `json:"threshold"`
	// Whether the actions for this alarm are enabled.
	// Experimental.
	ActionsEnabled *bool `json:"actionsEnabled"`
	// Description for the alarm.
	// Experimental.
	AlarmDescription *string `json:"alarmDescription"`
	// Name of the alarm.
	// Experimental.
	AlarmName *string `json:"alarmName"`
	// Comparison to use to check if metric is breaching.
	// Experimental.
	ComparisonOperator ComparisonOperator `json:"comparisonOperator"`
	// The number of datapoints that must be breaching to trigger the alarm.
	//
	// This is used only if you are setting an "M
	// out of N" alarm. In that case, this value is the M. For more information, see Evaluating an Alarm in the Amazon
	// CloudWatch User Guide.
	// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation
	//
	// Experimental.
	DatapointsToAlarm *float64 `json:"datapointsToAlarm"`
	// Specifies whether to evaluate the data and potentially change the alarm state if there are too few data points to be statistically significant.
	//
	// Used only for alarms that are based on percentiles.
	// Experimental.
	EvaluateLowSampleCountPercentile *string `json:"evaluateLowSampleCountPercentile"`
	// The period over which the specified statistic is applied.
	//
	// Cannot be used with `MathExpression` objects.
	// Deprecated: Use `metric.with({ period: ... })` to encode the period into the Metric object
	Period awscdk.Duration `json:"period"`
	// What function to use for aggregating.
	//
	// Can be one of the following:
	//
	// - "Minimum" | "min"
	// - "Maximum" | "max"
	// - "Average" | "avg"
	// - "Sum" | "sum"
	// - "SampleCount | "n"
	// - "pNN.NN"
	//
	// Cannot be used with `MathExpression` objects.
	// Deprecated: Use `metric.with({ statistic: ... })` to encode the period into the Metric object
	Statistic *string `json:"statistic"`
	// Sets how this alarm is to handle missing data points.
	// Experimental.
	TreatMissingData TreatMissingData `json:"treatMissingData"`
	// The metric to add the alarm on.
	//
	// Metric objects can be obtained from most resources, or you can construct
	// custom Metric objects by instantiating one.
	// Experimental.
	Metric IMetric `json:"metric"`
}

Properties for Alarms. Experimental.

type AlarmRule

type AlarmRule interface {
}

Class with static functions to build AlarmRule for Composite Alarms. Experimental.

func NewAlarmRule

func NewAlarmRule() AlarmRule

Experimental.

type AlarmState

type AlarmState string

Enumeration indicates state of Alarm used in building Alarm Rule. Experimental.

const (
	AlarmState_ALARM             AlarmState = "ALARM"
	AlarmState_OK                AlarmState = "OK"
	AlarmState_INSUFFICIENT_DATA AlarmState = "INSUFFICIENT_DATA"
)

type AlarmStatusWidget

type AlarmStatusWidget interface {
	ConcreteWidget
	Height() *float64
	Width() *float64
	X() *float64
	SetX(val *float64)
	Y() *float64
	SetY(val *float64)
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

A dashboard widget that displays alarms in a grid view. Experimental.

func NewAlarmStatusWidget

func NewAlarmStatusWidget(props *AlarmStatusWidgetProps) AlarmStatusWidget

Experimental.

type AlarmStatusWidgetProps

type AlarmStatusWidgetProps struct {
	// CloudWatch Alarms to show in widget.
	// Experimental.
	Alarms *[]IAlarm `json:"alarms"`
	// Height of the widget.
	// Experimental.
	Height *float64 `json:"height"`
	// The title of the widget.
	// Experimental.
	Title *string `json:"title"`
	// Width of the widget, in a grid of 24 units wide.
	// Experimental.
	Width *float64 `json:"width"`
}

Properties for an Alarm Status Widget. Experimental.

type AlarmWidget

type AlarmWidget interface {
	ConcreteWidget
	Height() *float64
	Width() *float64
	X() *float64
	SetX(val *float64)
	Y() *float64
	SetY(val *float64)
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

Display the metric associated with an alarm, including the alarm line. Experimental.

func NewAlarmWidget

func NewAlarmWidget(props *AlarmWidgetProps) AlarmWidget

Experimental.

type AlarmWidgetProps

type AlarmWidgetProps struct {
	// Height of the widget.
	// Experimental.
	Height *float64 `json:"height"`
	// The region the metrics of this graph should be taken from.
	// Experimental.
	Region *string `json:"region"`
	// Title for the graph.
	// Experimental.
	Title *string `json:"title"`
	// Width of the widget, in a grid of 24 units wide.
	// Experimental.
	Width *float64 `json:"width"`
	// The alarm to show.
	// Experimental.
	Alarm IAlarm `json:"alarm"`
	// Left Y axis.
	// Experimental.
	LeftYAxis *YAxisProps `json:"leftYAxis"`
}

Properties for an AlarmWidget. Experimental.

type CfnAlarm

type CfnAlarm interface {
	awscdk.CfnResource
	awscdk.IInspectable
	ActionsEnabled() interface{}
	SetActionsEnabled(val interface{})
	AlarmActions() *[]*string
	SetAlarmActions(val *[]*string)
	AlarmDescription() *string
	SetAlarmDescription(val *string)
	AlarmName() *string
	SetAlarmName(val *string)
	AttrArn() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	ComparisonOperator() *string
	SetComparisonOperator(val *string)
	CreationStack() *[]*string
	DatapointsToAlarm() *float64
	SetDatapointsToAlarm(val *float64)
	Dimensions() interface{}
	SetDimensions(val interface{})
	EvaluateLowSampleCountPercentile() *string
	SetEvaluateLowSampleCountPercentile(val *string)
	EvaluationPeriods() *float64
	SetEvaluationPeriods(val *float64)
	ExtendedStatistic() *string
	SetExtendedStatistic(val *string)
	InsufficientDataActions() *[]*string
	SetInsufficientDataActions(val *[]*string)
	LogicalId() *string
	MetricName() *string
	SetMetricName(val *string)
	Metrics() interface{}
	SetMetrics(val interface{})
	Namespace() *string
	SetNamespace(val *string)
	Node() awscdk.ConstructNode
	OkActions() *[]*string
	SetOkActions(val *[]*string)
	Period() *float64
	SetPeriod(val *float64)
	Ref() *string
	Stack() awscdk.Stack
	Statistic() *string
	SetStatistic(val *string)
	Threshold() *float64
	SetThreshold(val *float64)
	ThresholdMetricId() *string
	SetThresholdMetricId(val *string)
	TreatMissingData() *string
	SetTreatMissingData(val *string)
	Unit() *string
	SetUnit(val *string)
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::CloudWatch::Alarm`.

func NewCfnAlarm

func NewCfnAlarm(scope awscdk.Construct, id *string, props *CfnAlarmProps) CfnAlarm

Create a new `AWS::CloudWatch::Alarm`.

type CfnAlarmProps

type CfnAlarmProps struct {
	// `AWS::CloudWatch::Alarm.ComparisonOperator`.
	ComparisonOperator *string `json:"comparisonOperator"`
	// `AWS::CloudWatch::Alarm.EvaluationPeriods`.
	EvaluationPeriods *float64 `json:"evaluationPeriods"`
	// `AWS::CloudWatch::Alarm.ActionsEnabled`.
	ActionsEnabled interface{} `json:"actionsEnabled"`
	// `AWS::CloudWatch::Alarm.AlarmActions`.
	AlarmActions *[]*string `json:"alarmActions"`
	// `AWS::CloudWatch::Alarm.AlarmDescription`.
	AlarmDescription *string `json:"alarmDescription"`
	// `AWS::CloudWatch::Alarm.AlarmName`.
	AlarmName *string `json:"alarmName"`
	// `AWS::CloudWatch::Alarm.DatapointsToAlarm`.
	DatapointsToAlarm *float64 `json:"datapointsToAlarm"`
	// `AWS::CloudWatch::Alarm.Dimensions`.
	Dimensions interface{} `json:"dimensions"`
	// `AWS::CloudWatch::Alarm.EvaluateLowSampleCountPercentile`.
	EvaluateLowSampleCountPercentile *string `json:"evaluateLowSampleCountPercentile"`
	// `AWS::CloudWatch::Alarm.ExtendedStatistic`.
	ExtendedStatistic *string `json:"extendedStatistic"`
	// `AWS::CloudWatch::Alarm.InsufficientDataActions`.
	InsufficientDataActions *[]*string `json:"insufficientDataActions"`
	// `AWS::CloudWatch::Alarm.MetricName`.
	MetricName *string `json:"metricName"`
	// `AWS::CloudWatch::Alarm.Metrics`.
	Metrics interface{} `json:"metrics"`
	// `AWS::CloudWatch::Alarm.Namespace`.
	Namespace *string `json:"namespace"`
	// `AWS::CloudWatch::Alarm.OKActions`.
	OkActions *[]*string `json:"okActions"`
	// `AWS::CloudWatch::Alarm.Period`.
	Period *float64 `json:"period"`
	// `AWS::CloudWatch::Alarm.Statistic`.
	Statistic *string `json:"statistic"`
	// `AWS::CloudWatch::Alarm.Threshold`.
	Threshold *float64 `json:"threshold"`
	// `AWS::CloudWatch::Alarm.ThresholdMetricId`.
	ThresholdMetricId *string `json:"thresholdMetricId"`
	// `AWS::CloudWatch::Alarm.TreatMissingData`.
	TreatMissingData *string `json:"treatMissingData"`
	// `AWS::CloudWatch::Alarm.Unit`.
	Unit *string `json:"unit"`
}

Properties for defining a `AWS::CloudWatch::Alarm`.

type CfnAlarm_DimensionProperty

type CfnAlarm_DimensionProperty struct {
	// `CfnAlarm.DimensionProperty.Name`.
	Name *string `json:"name"`
	// `CfnAlarm.DimensionProperty.Value`.
	Value *string `json:"value"`
}

type CfnAlarm_MetricDataQueryProperty

type CfnAlarm_MetricDataQueryProperty struct {
	// `CfnAlarm.MetricDataQueryProperty.Id`.
	Id *string `json:"id"`
	// `CfnAlarm.MetricDataQueryProperty.AccountId`.
	AccountId *string `json:"accountId"`
	// `CfnAlarm.MetricDataQueryProperty.Expression`.
	Expression *string `json:"expression"`
	// `CfnAlarm.MetricDataQueryProperty.Label`.
	Label *string `json:"label"`
	// `CfnAlarm.MetricDataQueryProperty.MetricStat`.
	MetricStat interface{} `json:"metricStat"`
	// `CfnAlarm.MetricDataQueryProperty.Period`.
	Period *float64 `json:"period"`
	// `CfnAlarm.MetricDataQueryProperty.ReturnData`.
	ReturnData interface{} `json:"returnData"`
}

type CfnAlarm_MetricProperty

type CfnAlarm_MetricProperty struct {
	// `CfnAlarm.MetricProperty.Dimensions`.
	Dimensions interface{} `json:"dimensions"`
	// `CfnAlarm.MetricProperty.MetricName`.
	MetricName *string `json:"metricName"`
	// `CfnAlarm.MetricProperty.Namespace`.
	Namespace *string `json:"namespace"`
}

type CfnAlarm_MetricStatProperty

type CfnAlarm_MetricStatProperty struct {
	// `CfnAlarm.MetricStatProperty.Metric`.
	Metric interface{} `json:"metric"`
	// `CfnAlarm.MetricStatProperty.Period`.
	Period *float64 `json:"period"`
	// `CfnAlarm.MetricStatProperty.Stat`.
	Stat *string `json:"stat"`
	// `CfnAlarm.MetricStatProperty.Unit`.
	Unit *string `json:"unit"`
}

type CfnAnomalyDetector

type CfnAnomalyDetector interface {
	awscdk.CfnResource
	awscdk.IInspectable
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	Configuration() interface{}
	SetConfiguration(val interface{})
	CreationStack() *[]*string
	Dimensions() interface{}
	SetDimensions(val interface{})
	LogicalId() *string
	MetricName() *string
	SetMetricName(val *string)
	Namespace() *string
	SetNamespace(val *string)
	Node() awscdk.ConstructNode
	Ref() *string
	Stack() awscdk.Stack
	Stat() *string
	SetStat(val *string)
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::CloudWatch::AnomalyDetector`.

func NewCfnAnomalyDetector

func NewCfnAnomalyDetector(scope awscdk.Construct, id *string, props *CfnAnomalyDetectorProps) CfnAnomalyDetector

Create a new `AWS::CloudWatch::AnomalyDetector`.

type CfnAnomalyDetectorProps

type CfnAnomalyDetectorProps struct {
	// `AWS::CloudWatch::AnomalyDetector.MetricName`.
	MetricName *string `json:"metricName"`
	// `AWS::CloudWatch::AnomalyDetector.Namespace`.
	Namespace *string `json:"namespace"`
	// `AWS::CloudWatch::AnomalyDetector.Stat`.
	Stat *string `json:"stat"`
	// `AWS::CloudWatch::AnomalyDetector.Configuration`.
	Configuration interface{} `json:"configuration"`
	// `AWS::CloudWatch::AnomalyDetector.Dimensions`.
	Dimensions interface{} `json:"dimensions"`
}

Properties for defining a `AWS::CloudWatch::AnomalyDetector`.

type CfnAnomalyDetector_ConfigurationProperty

type CfnAnomalyDetector_ConfigurationProperty struct {
	// `CfnAnomalyDetector.ConfigurationProperty.ExcludedTimeRanges`.
	ExcludedTimeRanges interface{} `json:"excludedTimeRanges"`
	// `CfnAnomalyDetector.ConfigurationProperty.MetricTimeZone`.
	MetricTimeZone *string `json:"metricTimeZone"`
}

type CfnAnomalyDetector_DimensionProperty

type CfnAnomalyDetector_DimensionProperty struct {
	// `CfnAnomalyDetector.DimensionProperty.Name`.
	Name *string `json:"name"`
	// `CfnAnomalyDetector.DimensionProperty.Value`.
	Value *string `json:"value"`
}

type CfnAnomalyDetector_RangeProperty

type CfnAnomalyDetector_RangeProperty struct {
	// `CfnAnomalyDetector.RangeProperty.EndTime`.
	EndTime *string `json:"endTime"`
	// `CfnAnomalyDetector.RangeProperty.StartTime`.
	StartTime *string `json:"startTime"`
}

type CfnCompositeAlarm

type CfnCompositeAlarm interface {
	awscdk.CfnResource
	awscdk.IInspectable
	ActionsEnabled() interface{}
	SetActionsEnabled(val interface{})
	AlarmActions() *[]*string
	SetAlarmActions(val *[]*string)
	AlarmDescription() *string
	SetAlarmDescription(val *string)
	AlarmName() *string
	SetAlarmName(val *string)
	AlarmRule() *string
	SetAlarmRule(val *string)
	AttrArn() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	InsufficientDataActions() *[]*string
	SetInsufficientDataActions(val *[]*string)
	LogicalId() *string
	Node() awscdk.ConstructNode
	OkActions() *[]*string
	SetOkActions(val *[]*string)
	Ref() *string
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::CloudWatch::CompositeAlarm`.

func NewCfnCompositeAlarm

func NewCfnCompositeAlarm(scope awscdk.Construct, id *string, props *CfnCompositeAlarmProps) CfnCompositeAlarm

Create a new `AWS::CloudWatch::CompositeAlarm`.

type CfnCompositeAlarmProps

type CfnCompositeAlarmProps struct {
	// `AWS::CloudWatch::CompositeAlarm.AlarmName`.
	AlarmName *string `json:"alarmName"`
	// `AWS::CloudWatch::CompositeAlarm.AlarmRule`.
	AlarmRule *string `json:"alarmRule"`
	// `AWS::CloudWatch::CompositeAlarm.ActionsEnabled`.
	ActionsEnabled interface{} `json:"actionsEnabled"`
	// `AWS::CloudWatch::CompositeAlarm.AlarmActions`.
	AlarmActions *[]*string `json:"alarmActions"`
	// `AWS::CloudWatch::CompositeAlarm.AlarmDescription`.
	AlarmDescription *string `json:"alarmDescription"`
	// `AWS::CloudWatch::CompositeAlarm.InsufficientDataActions`.
	InsufficientDataActions *[]*string `json:"insufficientDataActions"`
	// `AWS::CloudWatch::CompositeAlarm.OKActions`.
	OkActions *[]*string `json:"okActions"`
}

Properties for defining a `AWS::CloudWatch::CompositeAlarm`.

type CfnDashboard

type CfnDashboard interface {
	awscdk.CfnResource
	awscdk.IInspectable
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	DashboardBody() *string
	SetDashboardBody(val *string)
	DashboardName() *string
	SetDashboardName(val *string)
	LogicalId() *string
	Node() awscdk.ConstructNode
	Ref() *string
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::CloudWatch::Dashboard`.

func NewCfnDashboard

func NewCfnDashboard(scope awscdk.Construct, id *string, props *CfnDashboardProps) CfnDashboard

Create a new `AWS::CloudWatch::Dashboard`.

type CfnDashboardProps

type CfnDashboardProps struct {
	// `AWS::CloudWatch::Dashboard.DashboardBody`.
	DashboardBody *string `json:"dashboardBody"`
	// `AWS::CloudWatch::Dashboard.DashboardName`.
	DashboardName *string `json:"dashboardName"`
}

Properties for defining a `AWS::CloudWatch::Dashboard`.

type CfnInsightRule

type CfnInsightRule interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AttrArn() *string
	AttrRuleName() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	LogicalId() *string
	Node() awscdk.ConstructNode
	Ref() *string
	RuleBody() *string
	SetRuleBody(val *string)
	RuleName() *string
	SetRuleName(val *string)
	RuleState() *string
	SetRuleState(val *string)
	Stack() awscdk.Stack
	Tags() awscdk.TagManager
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::CloudWatch::InsightRule`.

func NewCfnInsightRule

func NewCfnInsightRule(scope awscdk.Construct, id *string, props *CfnInsightRuleProps) CfnInsightRule

Create a new `AWS::CloudWatch::InsightRule`.

type CfnInsightRuleProps

type CfnInsightRuleProps struct {
	// `AWS::CloudWatch::InsightRule.RuleBody`.
	RuleBody *string `json:"ruleBody"`
	// `AWS::CloudWatch::InsightRule.RuleName`.
	RuleName *string `json:"ruleName"`
	// `AWS::CloudWatch::InsightRule.RuleState`.
	RuleState *string `json:"ruleState"`
	// `AWS::CloudWatch::InsightRule.Tags`.
	Tags interface{} `json:"tags"`
}

Properties for defining a `AWS::CloudWatch::InsightRule`.

type CfnMetricStream

type CfnMetricStream interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AttrArn() *string
	AttrCreationDate() *string
	AttrLastUpdateDate() *string
	AttrState() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	ExcludeFilters() interface{}
	SetExcludeFilters(val interface{})
	FirehoseArn() *string
	SetFirehoseArn(val *string)
	IncludeFilters() interface{}
	SetIncludeFilters(val interface{})
	LogicalId() *string
	Name() *string
	SetName(val *string)
	Node() awscdk.ConstructNode
	OutputFormat() *string
	SetOutputFormat(val *string)
	Ref() *string
	RoleArn() *string
	SetRoleArn(val *string)
	Stack() awscdk.Stack
	Tags() awscdk.TagManager
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::CloudWatch::MetricStream`.

func NewCfnMetricStream

func NewCfnMetricStream(scope awscdk.Construct, id *string, props *CfnMetricStreamProps) CfnMetricStream

Create a new `AWS::CloudWatch::MetricStream`.

type CfnMetricStreamProps

type CfnMetricStreamProps struct {
	// `AWS::CloudWatch::MetricStream.FirehoseArn`.
	FirehoseArn *string `json:"firehoseArn"`
	// `AWS::CloudWatch::MetricStream.OutputFormat`.
	OutputFormat *string `json:"outputFormat"`
	// `AWS::CloudWatch::MetricStream.RoleArn`.
	RoleArn *string `json:"roleArn"`
	// `AWS::CloudWatch::MetricStream.ExcludeFilters`.
	ExcludeFilters interface{} `json:"excludeFilters"`
	// `AWS::CloudWatch::MetricStream.IncludeFilters`.
	IncludeFilters interface{} `json:"includeFilters"`
	// `AWS::CloudWatch::MetricStream.Name`.
	Name *string `json:"name"`
	// `AWS::CloudWatch::MetricStream.Tags`.
	Tags *[]*awscdk.CfnTag `json:"tags"`
}

Properties for defining a `AWS::CloudWatch::MetricStream`.

type CfnMetricStream_MetricStreamFilterProperty

type CfnMetricStream_MetricStreamFilterProperty struct {
	// `CfnMetricStream.MetricStreamFilterProperty.Namespace`.
	Namespace *string `json:"namespace"`
}

type Color

type Color interface {
}

A set of standard colours that can be used in annotations in a GraphWidget. Experimental.

func NewColor

func NewColor() Color

Experimental.

type Column

type Column interface {
	IWidget
	Height() *float64
	Width() *float64
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

A widget that contains other widgets in a vertical column.

Widgets will be laid out next to each other Experimental.

func NewColumn

func NewColumn(widgets ...IWidget) Column

Experimental.

type CommonMetricOptions

type CommonMetricOptions struct {
	// Account which this metric comes from.
	// Experimental.
	Account *string `json:"account"`
	// The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The `Color` class has a set of standard colors that can be used here.
	// Experimental.
	Color *string `json:"color"`
	// Dimensions of the metric.
	// Deprecated: Use 'dimensionsMap' instead.
	Dimensions *map[string]interface{} `json:"dimensions"`
	// Dimensions of the metric.
	// Experimental.
	DimensionsMap *map[string]*string `json:"dimensionsMap"`
	// Label for this metric when added to a Graph in a Dashboard.
	// Experimental.
	Label *string `json:"label"`
	// The period over which the specified statistic is applied.
	// Experimental.
	Period awscdk.Duration `json:"period"`
	// Region which this metric comes from.
	// Experimental.
	Region *string `json:"region"`
	// What function to use for aggregating.
	//
	// Can be one of the following:
	//
	// - "Minimum" | "min"
	// - "Maximum" | "max"
	// - "Average" | "avg"
	// - "Sum" | "sum"
	// - "SampleCount | "n"
	// - "pNN.NN"
	// Experimental.
	Statistic *string `json:"statistic"`
	// Unit used to filter the metric stream.
	//
	// Only refer to datums emitted to the metric stream with the given unit and
	// ignore all others. Only useful when datums are being emitted to the same
	// metric stream under different units.
	//
	// The default is to use all matric datums in the stream, regardless of unit,
	// which is recommended in nearly all cases.
	//
	// CloudWatch does not honor this property for graphs.
	// Experimental.
	Unit Unit `json:"unit"`
}

Options shared by most methods accepting metric options. Experimental.

type ComparisonOperator

type ComparisonOperator string

Comparison operator for evaluating alarms. Experimental.

const (
	ComparisonOperator_GREATER_THAN_OR_EQUAL_TO_THRESHOLD              ComparisonOperator = "GREATER_THAN_OR_EQUAL_TO_THRESHOLD"
	ComparisonOperator_GREATER_THAN_THRESHOLD                          ComparisonOperator = "GREATER_THAN_THRESHOLD"
	ComparisonOperator_LESS_THAN_THRESHOLD                             ComparisonOperator = "LESS_THAN_THRESHOLD"
	ComparisonOperator_LESS_THAN_OR_EQUAL_TO_THRESHOLD                 ComparisonOperator = "LESS_THAN_OR_EQUAL_TO_THRESHOLD"
	ComparisonOperator_LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD ComparisonOperator = "LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD"
	ComparisonOperator_GREATER_THAN_UPPER_THRESHOLD                    ComparisonOperator = "GREATER_THAN_UPPER_THRESHOLD"
	ComparisonOperator_LESS_THAN_LOWER_THRESHOLD                       ComparisonOperator = "LESS_THAN_LOWER_THRESHOLD"
)

type CompositeAlarm

type CompositeAlarm interface {
	AlarmBase
	AlarmActionArns() *[]*string
	SetAlarmActionArns(val *[]*string)
	AlarmArn() *string
	AlarmName() *string
	Env() *awscdk.ResourceEnvironment
	InsufficientDataActionArns() *[]*string
	SetInsufficientDataActionArns(val *[]*string)
	Node() awscdk.ConstructNode
	OkActionArns() *[]*string
	SetOkActionArns(val *[]*string)
	PhysicalName() *string
	Stack() awscdk.Stack
	AddAlarmAction(actions ...IAlarmAction)
	AddInsufficientDataAction(actions ...IAlarmAction)
	AddOkAction(actions ...IAlarmAction)
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	RenderAlarmRule() *string
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

A Composite Alarm based on Alarm Rule. Experimental.

func NewCompositeAlarm

func NewCompositeAlarm(scope constructs.Construct, id *string, props *CompositeAlarmProps) CompositeAlarm

Experimental.

type CompositeAlarmProps

type CompositeAlarmProps struct {
	// Expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.
	// Experimental.
	AlarmRule IAlarmRule `json:"alarmRule"`
	// Whether the actions for this alarm are enabled.
	// Experimental.
	ActionsEnabled *bool `json:"actionsEnabled"`
	// Description for the alarm.
	// Experimental.
	AlarmDescription *string `json:"alarmDescription"`
	// Name of the alarm.
	// Experimental.
	CompositeAlarmName *string `json:"compositeAlarmName"`
}

Properties for creating a Composite Alarm. Experimental.

type ConcreteWidget

type ConcreteWidget interface {
	IWidget
	Height() *float64
	Width() *float64
	X() *float64
	SetX(val *float64)
	Y() *float64
	SetY(val *float64)
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

A real CloudWatch widget that has its own fixed size and remembers its position.

This is in contrast to other widgets which exist for layout purposes. Experimental.

type CreateAlarmOptions

type CreateAlarmOptions struct {
	// The number of periods over which data is compared to the specified threshold.
	// Experimental.
	EvaluationPeriods *float64 `json:"evaluationPeriods"`
	// The value against which the specified statistic is compared.
	// Experimental.
	Threshold *float64 `json:"threshold"`
	// Whether the actions for this alarm are enabled.
	// Experimental.
	ActionsEnabled *bool `json:"actionsEnabled"`
	// Description for the alarm.
	// Experimental.
	AlarmDescription *string `json:"alarmDescription"`
	// Name of the alarm.
	// Experimental.
	AlarmName *string `json:"alarmName"`
	// Comparison to use to check if metric is breaching.
	// Experimental.
	ComparisonOperator ComparisonOperator `json:"comparisonOperator"`
	// The number of datapoints that must be breaching to trigger the alarm.
	//
	// This is used only if you are setting an "M
	// out of N" alarm. In that case, this value is the M. For more information, see Evaluating an Alarm in the Amazon
	// CloudWatch User Guide.
	// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation
	//
	// Experimental.
	DatapointsToAlarm *float64 `json:"datapointsToAlarm"`
	// Specifies whether to evaluate the data and potentially change the alarm state if there are too few data points to be statistically significant.
	//
	// Used only for alarms that are based on percentiles.
	// Experimental.
	EvaluateLowSampleCountPercentile *string `json:"evaluateLowSampleCountPercentile"`
	// The period over which the specified statistic is applied.
	//
	// Cannot be used with `MathExpression` objects.
	// Deprecated: Use `metric.with({ period: ... })` to encode the period into the Metric object
	Period awscdk.Duration `json:"period"`
	// What function to use for aggregating.
	//
	// Can be one of the following:
	//
	// - "Minimum" | "min"
	// - "Maximum" | "max"
	// - "Average" | "avg"
	// - "Sum" | "sum"
	// - "SampleCount | "n"
	// - "pNN.NN"
	//
	// Cannot be used with `MathExpression` objects.
	// Deprecated: Use `metric.with({ statistic: ... })` to encode the period into the Metric object
	Statistic *string `json:"statistic"`
	// Sets how this alarm is to handle missing data points.
	// Experimental.
	TreatMissingData TreatMissingData `json:"treatMissingData"`
}

Properties needed to make an alarm from a metric. Experimental.

type Dashboard

type Dashboard interface {
	awscdk.Resource
	Env() *awscdk.ResourceEnvironment
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	AddWidgets(widgets ...IWidget)
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

A CloudWatch dashboard. Experimental.

func NewDashboard

func NewDashboard(scope constructs.Construct, id *string, props *DashboardProps) Dashboard

Experimental.

type DashboardProps

type DashboardProps struct {
	// Name of the dashboard.
	//
	// If set, must only contain alphanumerics, dash (-) and underscore (_)
	// Experimental.
	DashboardName *string `json:"dashboardName"`
	// The end of the time range to use for each widget on the dashboard when the dashboard loads.
	//
	// If you specify a value for end, you must also specify a value for start.
	// Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
	// Experimental.
	End *string `json:"end"`
	// Use this field to specify the period for the graphs when the dashboard loads.
	//
	// Specifying `Auto` causes the period of all graphs on the dashboard to automatically adapt to the time range of the dashboard.
	// Specifying `Inherit` ensures that the period set for each graph is always obeyed.
	// Experimental.
	PeriodOverride PeriodOverride `json:"periodOverride"`
	// The start of the time range to use for each widget on the dashboard.
	//
	// You can specify start without specifying end to specify a relative time range that ends with the current time.
	// In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for
	// minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months.
	// You can also use start along with an end field, to specify an absolute time range.
	// When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
	// Experimental.
	Start *string `json:"start"`
	// Initial set of widgets on the dashboard.
	//
	// One array represents a row of widgets.
	// Experimental.
	Widgets *[]*[]IWidget `json:"widgets"`
}

Properties for defining a CloudWatch Dashboard. Experimental.

type Dimension

type Dimension struct {
	// Name of the dimension.
	// Experimental.
	Name *string `json:"name"`
	// Value of the dimension.
	// Experimental.
	Value interface{} `json:"value"`
}

Metric dimension. See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html

Experimental.

type GraphWidget

type GraphWidget interface {
	ConcreteWidget
	Height() *float64
	Width() *float64
	X() *float64
	SetX(val *float64)
	Y() *float64
	SetY(val *float64)
	AddLeftMetric(metric IMetric)
	AddRightMetric(metric IMetric)
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

A dashboard widget that displays metrics. Experimental.

func NewGraphWidget

func NewGraphWidget(props *GraphWidgetProps) GraphWidget

Experimental.

type GraphWidgetProps

type GraphWidgetProps struct {
	// Height of the widget.
	// Experimental.
	Height *float64 `json:"height"`
	// The region the metrics of this graph should be taken from.
	// Experimental.
	Region *string `json:"region"`
	// Title for the graph.
	// Experimental.
	Title *string `json:"title"`
	// Width of the widget, in a grid of 24 units wide.
	// Experimental.
	Width *float64 `json:"width"`
	// Metrics to display on left Y axis.
	// Experimental.
	Left *[]IMetric `json:"left"`
	// Annotations for the left Y axis.
	// Experimental.
	LeftAnnotations *[]*HorizontalAnnotation `json:"leftAnnotations"`
	// Left Y axis.
	// Experimental.
	LeftYAxis *YAxisProps `json:"leftYAxis"`
	// Position of the legend.
	// Experimental.
	LegendPosition LegendPosition `json:"legendPosition"`
	// Whether the graph should show live data.
	// Experimental.
	LiveData *bool `json:"liveData"`
	// The default period for all metrics in this widget.
	//
	// The period is the length of time represented by one data point on the graph.
	// This default can be overridden within each metric definition.
	// Experimental.
	Period awscdk.Duration `json:"period"`
	// Metrics to display on right Y axis.
	// Experimental.
	Right *[]IMetric `json:"right"`
	// Annotations for the right Y axis.
	// Experimental.
	RightAnnotations *[]*HorizontalAnnotation `json:"rightAnnotations"`
	// Right Y axis.
	// Experimental.
	RightYAxis *YAxisProps `json:"rightYAxis"`
	// Whether to show the value from the entire time range. Only applicable for Bar and Pie charts.
	//
	// If false, values will be from the most recent period of your chosen time range;
	// if true, shows the value from the entire time range.
	// Experimental.
	SetPeriodToTimeRange *bool `json:"setPeriodToTimeRange"`
	// Whether the graph should be shown as stacked lines.
	// Experimental.
	Stacked *bool `json:"stacked"`
	// The default statistic to be displayed for each metric.
	//
	// This default can be overridden within the definition of each individual metric
	// Experimental.
	Statistic *string `json:"statistic"`
	// Display this metric.
	// Experimental.
	View GraphWidgetView `json:"view"`
}

Properties for a GraphWidget. Experimental.

type GraphWidgetView

type GraphWidgetView string

Types of view. Experimental.

const (
	GraphWidgetView_TIME_SERIES GraphWidgetView = "TIME_SERIES"
	GraphWidgetView_BAR         GraphWidgetView = "BAR"
	GraphWidgetView_PIE         GraphWidgetView = "PIE"
)

type HorizontalAnnotation

type HorizontalAnnotation struct {
	// The value of the annotation.
	// Experimental.
	Value *float64 `json:"value"`
	// The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The `Color` class has a set of standard colors that can be used here.
	// Experimental.
	Color *string `json:"color"`
	// Add shading above or below the annotation.
	// Experimental.
	Fill Shading `json:"fill"`
	// Label for the annotation.
	// Experimental.
	Label *string `json:"label"`
	// Whether the annotation is visible.
	// Experimental.
	Visible *bool `json:"visible"`
}

Horizontal annotation to be added to a graph. Experimental.

type IAlarm

type IAlarm interface {
	IAlarmRule
	awscdk.IResource
	// Alarm ARN (i.e. arn:aws:cloudwatch:<region>:<account-id>:alarm:Foo).
	// Experimental.
	AlarmArn() *string
	// Name of the alarm.
	// Experimental.
	AlarmName() *string
}

Represents a CloudWatch Alarm. Experimental.

func Alarm_FromAlarmArn

func Alarm_FromAlarmArn(scope constructs.Construct, id *string, alarmArn *string) IAlarm

Import an existing CloudWatch alarm provided an ARN. Experimental.

func CompositeAlarm_FromCompositeAlarmArn

func CompositeAlarm_FromCompositeAlarmArn(scope constructs.Construct, id *string, compositeAlarmArn *string) IAlarm

Import an existing CloudWatch composite alarm provided an ARN. Experimental.

func CompositeAlarm_FromCompositeAlarmName

func CompositeAlarm_FromCompositeAlarmName(scope constructs.Construct, id *string, compositeAlarmName *string) IAlarm

Import an existing CloudWatch composite alarm provided an Name. Experimental.

type IAlarmAction

type IAlarmAction interface {
	// Return the properties required to send alarm actions to this CloudWatch alarm.
	// Experimental.
	Bind(scope awscdk.Construct, alarm IAlarm) *AlarmActionConfig
}

Interface for objects that can be the targets of CloudWatch alarm actions. Experimental.

type IAlarmRule

type IAlarmRule interface {
	// serialized representation of Alarm Rule to be used when building the Composite Alarm resource.
	// Experimental.
	RenderAlarmRule() *string
}

Interface for Alarm Rule. Experimental.

func AlarmRule_AllOf

func AlarmRule_AllOf(operands ...IAlarmRule) IAlarmRule

function to join all provided AlarmRules with AND operator. Experimental.

func AlarmRule_AnyOf

func AlarmRule_AnyOf(operands ...IAlarmRule) IAlarmRule

function to join all provided AlarmRules with OR operator. Experimental.

func AlarmRule_FromAlarm

func AlarmRule_FromAlarm(alarm IAlarm, alarmState AlarmState) IAlarmRule

function to build Rule Expression for given IAlarm and AlarmState. Experimental.

func AlarmRule_FromBoolean

func AlarmRule_FromBoolean(value *bool) IAlarmRule

function to build TRUE/FALSE intent for Rule Expression. Experimental.

func AlarmRule_FromString

func AlarmRule_FromString(alarmRule *string) IAlarmRule

function to build Rule Expression for given Alarm Rule string. Experimental.

func AlarmRule_Not

func AlarmRule_Not(operand IAlarmRule) IAlarmRule

function to wrap provided AlarmRule in NOT operator. Experimental.

type IMetric

type IMetric interface {
	// Turn this metric object into an alarm configuration.
	// Deprecated: Use `toMetricConfig()` instead.
	ToAlarmConfig() *MetricAlarmConfig
	// Turn this metric object into a graph configuration.
	// Deprecated: Use `toMetricConfig()` instead.
	ToGraphConfig() *MetricGraphConfig
	// Inspect the details of the metric object.
	// Experimental.
	ToMetricConfig() *MetricConfig
}

Interface for metrics. Experimental.

type IWidget

type IWidget interface {
	// Place the widget at a given position.
	// Experimental.
	Position(x *float64, y *float64)
	// Return the widget JSON for use in the dashboard.
	// Experimental.
	ToJson() *[]interface{}
	// The amount of vertical grid units the widget will take up.
	// Experimental.
	Height() *float64
	// The amount of horizontal grid units the widget will take up.
	// Experimental.
	Width() *float64
}

A single dashboard widget. Experimental.

type LegendPosition

type LegendPosition string

The position of the legend on a GraphWidget. Experimental.

const (
	LegendPosition_BOTTOM LegendPosition = "BOTTOM"
	LegendPosition_RIGHT  LegendPosition = "RIGHT"
	LegendPosition_HIDDEN LegendPosition = "HIDDEN"
)

type LogQueryVisualizationType

type LogQueryVisualizationType string

Types of view. Experimental.

const (
	LogQueryVisualizationType_TABLE       LogQueryVisualizationType = "TABLE"
	LogQueryVisualizationType_LINE        LogQueryVisualizationType = "LINE"
	LogQueryVisualizationType_STACKEDAREA LogQueryVisualizationType = "STACKEDAREA"
	LogQueryVisualizationType_BAR         LogQueryVisualizationType = "BAR"
	LogQueryVisualizationType_PIE         LogQueryVisualizationType = "PIE"
)

type LogQueryWidget

type LogQueryWidget interface {
	ConcreteWidget
	Height() *float64
	Width() *float64
	X() *float64
	SetX(val *float64)
	Y() *float64
	SetY(val *float64)
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

Display query results from Logs Insights. Experimental.

func NewLogQueryWidget

func NewLogQueryWidget(props *LogQueryWidgetProps) LogQueryWidget

Experimental.

type LogQueryWidgetProps

type LogQueryWidgetProps struct {
	// Names of log groups to query.
	// Experimental.
	LogGroupNames *[]*string `json:"logGroupNames"`
	// Height of the widget.
	// Experimental.
	Height *float64 `json:"height"`
	// A sequence of lines to use to build the query.
	//
	// The query will be built by joining the lines together using `\n|`.
	// Experimental.
	QueryLines *[]*string `json:"queryLines"`
	// Full query string for log insights.
	//
	// Be sure to prepend every new line with a newline and pipe character
	// (`\n|`).
	// Experimental.
	QueryString *string `json:"queryString"`
	// The region the metrics of this widget should be taken from.
	// Experimental.
	Region *string `json:"region"`
	// Title for the widget.
	// Experimental.
	Title *string `json:"title"`
	// The type of view to use.
	// Experimental.
	View LogQueryVisualizationType `json:"view"`
	// Width of the widget, in a grid of 24 units wide.
	// Experimental.
	Width *float64 `json:"width"`
}

Properties for a Query widget. Experimental.

type MathExpression

type MathExpression interface {
	IMetric
	Color() *string
	Expression() *string
	Label() *string
	Period() awscdk.Duration
	UsingMetrics() *map[string]IMetric
	CreateAlarm(scope awscdk.Construct, id *string, props *CreateAlarmOptions) Alarm
	ToAlarmConfig() *MetricAlarmConfig
	ToGraphConfig() *MetricGraphConfig
	ToMetricConfig() *MetricConfig
	ToString() *string
	With(props *MathExpressionOptions) MathExpression
}

A math expression built with metric(s) emitted by a service.

The math expression is a combination of an expression (x+y) and metrics to apply expression on. It also contains metadata which is used only in graphs, such as color and label. It makes sense to embed this in here, so that compound constructs can attach that metadata to metrics they expose.

This class does not represent a resource, so hence is not a construct. Instead, MathExpression is an abstraction that makes it easy to specify metrics for use in both alarms and graphs. Experimental.

func NewMathExpression

func NewMathExpression(props *MathExpressionProps) MathExpression

Experimental.

type MathExpressionOptions

type MathExpressionOptions struct {
	// Color for this metric when added to a Graph in a Dashboard.
	// Experimental.
	Color *string `json:"color"`
	// Label for this metric when added to a Graph in a Dashboard.
	// Experimental.
	Label *string `json:"label"`
	// The period over which the expression's statistics are applied.
	//
	// This period overrides all periods in the metrics used in this
	// math expression.
	// Experimental.
	Period awscdk.Duration `json:"period"`
}

Configurable options for MathExpressions. Experimental.

type MathExpressionProps

type MathExpressionProps struct {
	// Color for this metric when added to a Graph in a Dashboard.
	// Experimental.
	Color *string `json:"color"`
	// Label for this metric when added to a Graph in a Dashboard.
	// Experimental.
	Label *string `json:"label"`
	// The period over which the expression's statistics are applied.
	//
	// This period overrides all periods in the metrics used in this
	// math expression.
	// Experimental.
	Period awscdk.Duration `json:"period"`
	// The expression defining the metric.
	// Experimental.
	Expression *string `json:"expression"`
	// The metrics used in the expression, in a map.
	//
	// The key is the identifier that represents the given metric in the
	// expression, and the value is the actual Metric object.
	// Experimental.
	UsingMetrics *map[string]IMetric `json:"usingMetrics"`
}

Properties for a MathExpression. Experimental.

type Metric

type Metric interface {
	IMetric
	Account() *string
	Color() *string
	Dimensions() *map[string]interface{}
	Label() *string
	MetricName() *string
	Namespace() *string
	Period() awscdk.Duration
	Region() *string
	Statistic() *string
	Unit() Unit
	AttachTo(scope constructs.IConstruct) Metric
	CreateAlarm(scope awscdk.Construct, id *string, props *CreateAlarmOptions) Alarm
	ToAlarmConfig() *MetricAlarmConfig
	ToGraphConfig() *MetricGraphConfig
	ToMetricConfig() *MetricConfig
	ToString() *string
	With(props *MetricOptions) Metric
}

A metric emitted by a service.

The metric is a combination of a metric identifier (namespace, name and dimensions) and an aggregation function (statistic, period and unit).

It also contains metadata which is used only in graphs, such as color and label. It makes sense to embed this in here, so that compound constructs can attach that metadata to metrics they expose.

This class does not represent a resource, so hence is not a construct. Instead, Metric is an abstraction that makes it easy to specify metrics for use in both alarms and graphs. Experimental.

func NewMetric

func NewMetric(props *MetricProps) Metric

Experimental.

type MetricAlarmConfig

type MetricAlarmConfig struct {
	// Name of the metric.
	// Deprecated: Replaced by MetricConfig
	MetricName *string `json:"metricName"`
	// Namespace of the metric.
	// Deprecated: Replaced by MetricConfig
	Namespace *string `json:"namespace"`
	// How many seconds to aggregate over.
	// Deprecated: Replaced by MetricConfig
	Period *float64 `json:"period"`
	// The dimensions to apply to the alarm.
	// Deprecated: Replaced by MetricConfig
	Dimensions *[]*Dimension `json:"dimensions"`
	// Percentile aggregation function to use.
	// Deprecated: Replaced by MetricConfig
	ExtendedStatistic *string `json:"extendedStatistic"`
	// Simple aggregation function to use.
	// Deprecated: Replaced by MetricConfig
	Statistic Statistic `json:"statistic"`
	// The unit of the alarm.
	// Deprecated: Replaced by MetricConfig
	Unit Unit `json:"unit"`
}

Properties used to construct the Metric identifying part of an Alarm. Deprecated: Replaced by MetricConfig

type MetricConfig

type MetricConfig struct {
	// In case the metric is a math expression, the details of the math expression.
	// Experimental.
	MathExpression *MetricExpressionConfig `json:"mathExpression"`
	// In case the metric represents a query, the details of the query.
	// Experimental.
	MetricStat *MetricStatConfig `json:"metricStat"`
	// Additional properties which will be rendered if the metric is used in a dashboard.
	//
	// Examples are 'label' and 'color', but any key in here will be
	// added to dashboard graphs.
	// Experimental.
	RenderingProperties *map[string]interface{} `json:"renderingProperties"`
}

Properties of a rendered metric. Experimental.

type MetricExpressionConfig

type MetricExpressionConfig struct {
	// Math expression for the metric.
	// Experimental.
	Expression *string `json:"expression"`
	// How many seconds to aggregate over.
	// Experimental.
	Period *float64 `json:"period"`
	// Metrics used in the math expression.
	// Experimental.
	UsingMetrics *map[string]IMetric `json:"usingMetrics"`
}

Properties for a concrete metric. Experimental.

type MetricGraphConfig

type MetricGraphConfig struct {
	// Name of the metric.
	// Deprecated: Replaced by MetricConfig
	MetricName *string `json:"metricName"`
	// Namespace of the metric.
	// Deprecated: Replaced by MetricConfig
	Namespace *string `json:"namespace"`
	// How many seconds to aggregate over.
	// Deprecated: Use `period` in `renderingProperties`
	Period *float64 `json:"period"`
	// Rendering properties override yAxis parameter of the widget object.
	// Deprecated: Replaced by MetricConfig
	RenderingProperties *MetricRenderingProperties `json:"renderingProperties"`
	// Color for the graph line.
	// Deprecated: Use `color` in `renderingProperties`
	Color *string `json:"color"`
	// The dimensions to apply to the alarm.
	// Deprecated: Replaced by MetricConfig
	Dimensions *[]*Dimension `json:"dimensions"`
	// Label for the metric.
	// Deprecated: Use `label` in `renderingProperties`
	Label *string `json:"label"`
	// Aggregation function to use (can be either simple or a percentile).
	// Deprecated: Use `stat` in `renderingProperties`
	Statistic *string `json:"statistic"`
	// The unit of the alarm.
	// Deprecated: not used in dashboard widgets
	Unit Unit `json:"unit"`
}

Properties used to construct the Metric identifying part of a Graph. Deprecated: Replaced by MetricConfig

type MetricOptions

type MetricOptions struct {
	// Account which this metric comes from.
	// Experimental.
	Account *string `json:"account"`
	// The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The `Color` class has a set of standard colors that can be used here.
	// Experimental.
	Color *string `json:"color"`
	// Dimensions of the metric.
	// Deprecated: Use 'dimensionsMap' instead.
	Dimensions *map[string]interface{} `json:"dimensions"`
	// Dimensions of the metric.
	// Experimental.
	DimensionsMap *map[string]*string `json:"dimensionsMap"`
	// Label for this metric when added to a Graph in a Dashboard.
	// Experimental.
	Label *string `json:"label"`
	// The period over which the specified statistic is applied.
	// Experimental.
	Period awscdk.Duration `json:"period"`
	// Region which this metric comes from.
	// Experimental.
	Region *string `json:"region"`
	// What function to use for aggregating.
	//
	// Can be one of the following:
	//
	// - "Minimum" | "min"
	// - "Maximum" | "max"
	// - "Average" | "avg"
	// - "Sum" | "sum"
	// - "SampleCount | "n"
	// - "pNN.NN"
	// Experimental.
	Statistic *string `json:"statistic"`
	// Unit used to filter the metric stream.
	//
	// Only refer to datums emitted to the metric stream with the given unit and
	// ignore all others. Only useful when datums are being emitted to the same
	// metric stream under different units.
	//
	// The default is to use all matric datums in the stream, regardless of unit,
	// which is recommended in nearly all cases.
	//
	// CloudWatch does not honor this property for graphs.
	// Experimental.
	Unit Unit `json:"unit"`
}

Properties of a metric that can be changed. Experimental.

type MetricProps

type MetricProps struct {
	// Account which this metric comes from.
	// Experimental.
	Account *string `json:"account"`
	// The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The `Color` class has a set of standard colors that can be used here.
	// Experimental.
	Color *string `json:"color"`
	// Dimensions of the metric.
	// Deprecated: Use 'dimensionsMap' instead.
	Dimensions *map[string]interface{} `json:"dimensions"`
	// Dimensions of the metric.
	// Experimental.
	DimensionsMap *map[string]*string `json:"dimensionsMap"`
	// Label for this metric when added to a Graph in a Dashboard.
	// Experimental.
	Label *string `json:"label"`
	// The period over which the specified statistic is applied.
	// Experimental.
	Period awscdk.Duration `json:"period"`
	// Region which this metric comes from.
	// Experimental.
	Region *string `json:"region"`
	// What function to use for aggregating.
	//
	// Can be one of the following:
	//
	// - "Minimum" | "min"
	// - "Maximum" | "max"
	// - "Average" | "avg"
	// - "Sum" | "sum"
	// - "SampleCount | "n"
	// - "pNN.NN"
	// Experimental.
	Statistic *string `json:"statistic"`
	// Unit used to filter the metric stream.
	//
	// Only refer to datums emitted to the metric stream with the given unit and
	// ignore all others. Only useful when datums are being emitted to the same
	// metric stream under different units.
	//
	// The default is to use all matric datums in the stream, regardless of unit,
	// which is recommended in nearly all cases.
	//
	// CloudWatch does not honor this property for graphs.
	// Experimental.
	Unit Unit `json:"unit"`
	// Name of the metric.
	// Experimental.
	MetricName *string `json:"metricName"`
	// Namespace of the metric.
	// Experimental.
	Namespace *string `json:"namespace"`
}

Properties for a metric. Experimental.

type MetricRenderingProperties

type MetricRenderingProperties struct {
	// How many seconds to aggregate over.
	// Deprecated: Replaced by MetricConfig.
	Period *float64 `json:"period"`
	// The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The `Color` class has a set of standard colors that can be used here.
	// Deprecated: Replaced by MetricConfig.
	Color *string `json:"color"`
	// Label for the metric.
	// Deprecated: Replaced by MetricConfig.
	Label *string `json:"label"`
	// Aggregation function to use (can be either simple or a percentile).
	// Deprecated: Replaced by MetricConfig.
	Stat *string `json:"stat"`
}

Custom rendering properties that override the default rendering properties specified in the yAxis parameter of the widget object. Deprecated: Replaced by MetricConfig.

type MetricStatConfig

type MetricStatConfig struct {
	// Name of the metric.
	// Experimental.
	MetricName *string `json:"metricName"`
	// Namespace of the metric.
	// Experimental.
	Namespace *string `json:"namespace"`
	// How many seconds to aggregate over.
	// Experimental.
	Period awscdk.Duration `json:"period"`
	// Aggregation function to use (can be either simple or a percentile).
	// Experimental.
	Statistic *string `json:"statistic"`
	// Account which this metric comes from.
	// Experimental.
	Account *string `json:"account"`
	// The dimensions to apply to the alarm.
	// Experimental.
	Dimensions *[]*Dimension `json:"dimensions"`
	// Region which this metric comes from.
	// Experimental.
	Region *string `json:"region"`
	// Unit used to filter the metric stream.
	//
	// Only refer to datums emitted to the metric stream with the given unit and
	// ignore all others. Only useful when datums are being emitted to the same
	// metric stream under different units.
	//
	// This field has been renamed from plain `unit` to clearly communicate
	// its purpose.
	// Experimental.
	UnitFilter Unit `json:"unitFilter"`
}

Properties for a concrete metric.

NOTE: `unit` is no longer on this object since it is only used for `Alarms`, and doesn't mean what one would expect it to mean there anyway. It is most likely to be misused. Experimental.

type MetricWidgetProps

type MetricWidgetProps struct {
	// Height of the widget.
	// Experimental.
	Height *float64 `json:"height"`
	// The region the metrics of this graph should be taken from.
	// Experimental.
	Region *string `json:"region"`
	// Title for the graph.
	// Experimental.
	Title *string `json:"title"`
	// Width of the widget, in a grid of 24 units wide.
	// Experimental.
	Width *float64 `json:"width"`
}

Basic properties for widgets that display metrics. Experimental.

type PeriodOverride

type PeriodOverride string

Specify the period for graphs when the CloudWatch dashboard loads. Experimental.

const (
	PeriodOverride_AUTO    PeriodOverride = "AUTO"
	PeriodOverride_INHERIT PeriodOverride = "INHERIT"
)

type Row

type Row interface {
	IWidget
	Height() *float64
	Width() *float64
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

A widget that contains other widgets in a horizontal row.

Widgets will be laid out next to each other Experimental.

func NewRow

func NewRow(widgets ...IWidget) Row

Experimental.

type Shading

type Shading string

Fill shading options that will be used with an annotation. Experimental.

const (
	Shading_NONE  Shading = "NONE"
	Shading_ABOVE Shading = "ABOVE"
	Shading_BELOW Shading = "BELOW"
)

type SingleValueWidget

type SingleValueWidget interface {
	ConcreteWidget
	Height() *float64
	Width() *float64
	X() *float64
	SetX(val *float64)
	Y() *float64
	SetY(val *float64)
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

A dashboard widget that displays the most recent value for every metric. Experimental.

func NewSingleValueWidget

func NewSingleValueWidget(props *SingleValueWidgetProps) SingleValueWidget

Experimental.

type SingleValueWidgetProps

type SingleValueWidgetProps struct {
	// Height of the widget.
	// Experimental.
	Height *float64 `json:"height"`
	// The region the metrics of this graph should be taken from.
	// Experimental.
	Region *string `json:"region"`
	// Title for the graph.
	// Experimental.
	Title *string `json:"title"`
	// Width of the widget, in a grid of 24 units wide.
	// Experimental.
	Width *float64 `json:"width"`
	// Metrics to display.
	// Experimental.
	Metrics *[]IMetric `json:"metrics"`
	// Whether to show as many digits as can fit, before rounding.
	// Experimental.
	FullPrecision *bool `json:"fullPrecision"`
	// Whether to show the value from the entire time range.
	// Experimental.
	SetPeriodToTimeRange *bool `json:"setPeriodToTimeRange"`
}

Properties for a SingleValueWidget. Experimental.

type Spacer

type Spacer interface {
	IWidget
	Height() *float64
	Width() *float64
	Position(_x *float64, _y *float64)
	ToJson() *[]interface{}
}

A widget that doesn't display anything but takes up space. Experimental.

func NewSpacer

func NewSpacer(props *SpacerProps) Spacer

Experimental.

type SpacerProps

type SpacerProps struct {
	// Height of the spacer.
	// Experimental.
	Height *float64 `json:"height"`
	// Width of the spacer.
	// Experimental.
	Width *float64 `json:"width"`
}

Props of the spacer. Experimental.

type Statistic

type Statistic string

Statistic to use over the aggregation period. Experimental.

const (
	Statistic_SAMPLE_COUNT Statistic = "SAMPLE_COUNT"
	Statistic_AVERAGE      Statistic = "AVERAGE"
	Statistic_SUM          Statistic = "SUM"
	Statistic_MINIMUM      Statistic = "MINIMUM"
	Statistic_MAXIMUM      Statistic = "MAXIMUM"
)

type TextWidget

type TextWidget interface {
	ConcreteWidget
	Height() *float64
	Width() *float64
	X() *float64
	SetX(val *float64)
	Y() *float64
	SetY(val *float64)
	Position(x *float64, y *float64)
	ToJson() *[]interface{}
}

A dashboard widget that displays MarkDown. Experimental.

func NewTextWidget

func NewTextWidget(props *TextWidgetProps) TextWidget

Experimental.

type TextWidgetProps

type TextWidgetProps struct {
	// The text to display, in MarkDown format.
	// Experimental.
	Markdown *string `json:"markdown"`
	// Height of the widget.
	// Experimental.
	Height *float64 `json:"height"`
	// Width of the widget, in a grid of 24 units wide.
	// Experimental.
	Width *float64 `json:"width"`
}

Properties for a Text widget. Experimental.

type TreatMissingData

type TreatMissingData string

Specify how missing data points are treated during alarm evaluation. Experimental.

const (
	TreatMissingData_BREACHING     TreatMissingData = "BREACHING"
	TreatMissingData_NOT_BREACHING TreatMissingData = "NOT_BREACHING"
	TreatMissingData_IGNORE        TreatMissingData = "IGNORE"
	TreatMissingData_MISSING       TreatMissingData = "MISSING"
)

type Unit

type Unit string

Unit for metric. Experimental.

const (
	Unit_SECONDS              Unit = "SECONDS"
	Unit_MICROSECONDS         Unit = "MICROSECONDS"
	Unit_MILLISECONDS         Unit = "MILLISECONDS"
	Unit_BYTES                Unit = "BYTES"
	Unit_KILOBYTES            Unit = "KILOBYTES"
	Unit_MEGABYTES            Unit = "MEGABYTES"
	Unit_GIGABYTES            Unit = "GIGABYTES"
	Unit_TERABYTES            Unit = "TERABYTES"
	Unit_BITS                 Unit = "BITS"
	Unit_KILOBITS             Unit = "KILOBITS"
	Unit_MEGABITS             Unit = "MEGABITS"
	Unit_GIGABITS             Unit = "GIGABITS"
	Unit_TERABITS             Unit = "TERABITS"
	Unit_PERCENT              Unit = "PERCENT"
	Unit_COUNT                Unit = "COUNT"
	Unit_BYTES_PER_SECOND     Unit = "BYTES_PER_SECOND"
	Unit_KILOBYTES_PER_SECOND Unit = "KILOBYTES_PER_SECOND"
	Unit_MEGABYTES_PER_SECOND Unit = "MEGABYTES_PER_SECOND"
	Unit_GIGABYTES_PER_SECOND Unit = "GIGABYTES_PER_SECOND"
	Unit_TERABYTES_PER_SECOND Unit = "TERABYTES_PER_SECOND"
	Unit_BITS_PER_SECOND      Unit = "BITS_PER_SECOND"
	Unit_KILOBITS_PER_SECOND  Unit = "KILOBITS_PER_SECOND"
	Unit_MEGABITS_PER_SECOND  Unit = "MEGABITS_PER_SECOND"
	Unit_GIGABITS_PER_SECOND  Unit = "GIGABITS_PER_SECOND"
	Unit_TERABITS_PER_SECOND  Unit = "TERABITS_PER_SECOND"
	Unit_COUNT_PER_SECOND     Unit = "COUNT_PER_SECOND"
	Unit_NONE                 Unit = "NONE"
)

type YAxisProps

type YAxisProps struct {
	// The label.
	// Experimental.
	Label *string `json:"label"`
	// The max value.
	// Experimental.
	Max *float64 `json:"max"`
	// The min value.
	// Experimental.
	Min *float64 `json:"min"`
	// Whether to show units.
	// Experimental.
	ShowUnits *bool `json:"showUnits"`
}

Properties for a Y-Axis. Experimental.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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