awscloudwatch

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 54

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlarmBase_IsConstruct

func AlarmBase_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

func AlarmBase_IsResource

func AlarmBase_IsResource(construct constructs.IConstruct) *bool

Check whether the given construct is a Resource.

func Alarm_IsConstruct

func Alarm_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

func Alarm_IsResource

func Alarm_IsResource(construct constructs.IConstruct) *bool

Check whether the given construct is a Resource.

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.

func CfnAlarm_IsCfnResource

func CfnAlarm_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnAlarm_IsConstruct

func CfnAlarm_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

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.

func CfnAnomalyDetector_IsCfnResource

func CfnAnomalyDetector_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnAnomalyDetector_IsConstruct

func CfnAnomalyDetector_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

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.

func CfnCompositeAlarm_IsCfnResource

func CfnCompositeAlarm_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnCompositeAlarm_IsConstruct

func CfnCompositeAlarm_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

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.

func CfnDashboard_IsCfnResource

func CfnDashboard_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnDashboard_IsConstruct

func CfnDashboard_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

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.

func CfnInsightRule_IsCfnResource

func CfnInsightRule_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnInsightRule_IsConstruct

func CfnInsightRule_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

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.

func CfnMetricStream_IsCfnResource

func CfnMetricStream_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnMetricStream_IsConstruct

func CfnMetricStream_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

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

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

func CompositeAlarm_IsResource

func CompositeAlarm_IsResource(construct constructs.IConstruct) *bool

Check whether the given construct is a Resource.

func Dashboard_IsConstruct

func Dashboard_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

func Dashboard_IsResource

func Dashboard_IsResource(construct constructs.IConstruct) *bool

Check whether the given construct is a Resource.

func Metric_GrantPutMetricData

func Metric_GrantPutMetricData(grantee awsiam.IGrantable) awsiam.Grant

Grant permissions to the given identity to write metrics.

func NewAlarmBase_Override

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

func NewAlarmRule_Override

func NewAlarmRule_Override(a AlarmRule)

func NewAlarmStatusWidget_Override

func NewAlarmStatusWidget_Override(a AlarmStatusWidget, props *AlarmStatusWidgetProps)

func NewAlarmWidget_Override

func NewAlarmWidget_Override(a AlarmWidget, props *AlarmWidgetProps)

func NewAlarm_Override

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

func NewCfnAlarm_Override

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

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

func NewCfnAnomalyDetector_Override

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

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

func NewCfnCompositeAlarm_Override

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

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

func NewCfnDashboard_Override

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

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

func NewCfnInsightRule_Override

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

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

func NewCfnMetricStream_Override

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

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

func NewColor_Override

func NewColor_Override(c Color)

func NewColumn_Override

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

func NewCompositeAlarm_Override

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

func NewConcreteWidget_Override

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

func NewDashboard_Override

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

func NewGraphWidget_Override

func NewGraphWidget_Override(g GraphWidget, props *GraphWidgetProps)

func NewLogQueryWidget_Override

func NewLogQueryWidget_Override(l LogQueryWidget, props *LogQueryWidgetProps)

func NewMathExpression_Override

func NewMathExpression_Override(m MathExpression, props *MathExpressionProps)

func NewMetric_Override

func NewMetric_Override(m Metric, props *MetricProps)

func NewRow_Override

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

func NewSingleValueWidget_Override

func NewSingleValueWidget_Override(s SingleValueWidget, props *SingleValueWidgetProps)

func NewSpacer_Override

func NewSpacer_Override(s Spacer, props *SpacerProps)

func NewTextWidget_Override

func NewTextWidget_Override(t TextWidget, props *TextWidgetProps)

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() constructs.Node
	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
	RenderAlarmRule() *string
	ToAnnotation() *HorizontalAnnotation
	ToString() *string
}

An alarm on a CloudWatch metric.

TODO: EXAMPLE

func NewAlarm

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

type AlarmActionConfig

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

Properties for an alarm action.

TODO: EXAMPLE

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() constructs.Node
	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
	RenderAlarmRule() *string
	ToString() *string
}

The base class for Alarm and CompositeAlarm resources.

type AlarmProps

type AlarmProps struct {
	// Whether the actions for this alarm are enabled.
	ActionsEnabled *bool `json:"actionsEnabled"`
	// Description for the alarm.
	AlarmDescription *string `json:"alarmDescription"`
	// Name of the alarm.
	AlarmName *string `json:"alarmName"`
	// Comparison to use to check if metric is breaching.
	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
	//
	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.
	EvaluateLowSampleCountPercentile *string `json:"evaluateLowSampleCountPercentile"`
	// The number of periods over which data is compared to the specified threshold.
	EvaluationPeriods *float64 `json:"evaluationPeriods"`
	// The value against which the specified statistic is compared.
	Threshold *float64 `json:"threshold"`
	// Sets how this alarm is to handle missing data points.
	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.
	Metric IMetric `json:"metric"`
}

Properties for Alarms.

TODO: EXAMPLE

type AlarmRule

type AlarmRule interface {
}

Class with static functions to build AlarmRule for Composite Alarms.

TODO: EXAMPLE

func NewAlarmRule

func NewAlarmRule() AlarmRule

type AlarmState

type AlarmState string

Enumeration indicates state of Alarm used in building Alarm Rule.

TODO: EXAMPLE

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.

TODO: EXAMPLE

func NewAlarmStatusWidget

func NewAlarmStatusWidget(props *AlarmStatusWidgetProps) AlarmStatusWidget

type AlarmStatusWidgetProps

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

Properties for an Alarm Status Widget.

TODO: EXAMPLE

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.

TODO: EXAMPLE

func NewAlarmWidget

func NewAlarmWidget(props *AlarmWidgetProps) AlarmWidget

type AlarmWidgetProps

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

Properties for an AlarmWidget.

TODO: EXAMPLE

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() constructs.Node
	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)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

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

TODO: EXAMPLE

func NewCfnAlarm

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

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

type CfnAlarmProps

type CfnAlarmProps struct {
	// `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.ComparisonOperator`.
	ComparisonOperator *string `json:"comparisonOperator"`
	// `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.EvaluationPeriods`.
	EvaluationPeriods *float64 `json:"evaluationPeriods"`
	// `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`.

TODO: EXAMPLE

type CfnAlarm_DimensionProperty

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

TODO: EXAMPLE

type CfnAlarm_MetricDataQueryProperty

type CfnAlarm_MetricDataQueryProperty struct {
	// `CfnAlarm.MetricDataQueryProperty.AccountId`.
	AccountId *string `json:"accountId"`
	// `CfnAlarm.MetricDataQueryProperty.Expression`.
	Expression *string `json:"expression"`
	// `CfnAlarm.MetricDataQueryProperty.Id`.
	Id *string `json:"id"`
	// `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"`
}

TODO: EXAMPLE

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"`
}

TODO: EXAMPLE

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"`
}

TODO: EXAMPLE

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
	MetricMathAnomalyDetector() interface{}
	SetMetricMathAnomalyDetector(val interface{})
	MetricName() *string
	SetMetricName(val *string)
	Namespace() *string
	SetNamespace(val *string)
	Node() constructs.Node
	Ref() *string
	SingleMetricAnomalyDetector() interface{}
	SetSingleMetricAnomalyDetector(val interface{})
	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)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

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

TODO: EXAMPLE

func NewCfnAnomalyDetector

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

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

type CfnAnomalyDetectorProps

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

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

TODO: EXAMPLE

type CfnAnomalyDetector_ConfigurationProperty

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

TODO: EXAMPLE

type CfnAnomalyDetector_DimensionProperty

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

TODO: EXAMPLE

type CfnAnomalyDetector_MetricDataQueryProperty

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

TODO: EXAMPLE

type CfnAnomalyDetector_MetricMathAnomalyDetectorProperty

type CfnAnomalyDetector_MetricMathAnomalyDetectorProperty struct {
	// `CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.MetricDataQueries`.
	MetricDataQueries interface{} `json:"metricDataQueries"`
}

TODO: EXAMPLE

type CfnAnomalyDetector_MetricProperty

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

TODO: EXAMPLE

type CfnAnomalyDetector_MetricStatProperty

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

TODO: EXAMPLE

type CfnAnomalyDetector_RangeProperty

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

TODO: EXAMPLE

type CfnAnomalyDetector_SingleMetricAnomalyDetectorProperty

type CfnAnomalyDetector_SingleMetricAnomalyDetectorProperty struct {
	// `CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty.Dimensions`.
	Dimensions interface{} `json:"dimensions"`
	// `CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty.MetricName`.
	MetricName *string `json:"metricName"`
	// `CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty.Namespace`.
	Namespace *string `json:"namespace"`
	// `CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty.Stat`.
	Stat *string `json:"stat"`
}

TODO: EXAMPLE

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() constructs.Node
	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)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

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

TODO: EXAMPLE

func NewCfnCompositeAlarm

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

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

type CfnCompositeAlarmProps

type CfnCompositeAlarmProps struct {
	// `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.AlarmName`.
	AlarmName *string `json:"alarmName"`
	// `AWS::CloudWatch::CompositeAlarm.AlarmRule`.
	AlarmRule *string `json:"alarmRule"`
	// `AWS::CloudWatch::CompositeAlarm.InsufficientDataActions`.
	InsufficientDataActions *[]*string `json:"insufficientDataActions"`
	// `AWS::CloudWatch::CompositeAlarm.OKActions`.
	OkActions *[]*string `json:"okActions"`
}

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

TODO: EXAMPLE

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() constructs.Node
	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)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

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

TODO: EXAMPLE

func NewCfnDashboard

func NewCfnDashboard(scope constructs.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`.

TODO: EXAMPLE

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() constructs.Node
	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)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

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

TODO: EXAMPLE

func NewCfnInsightRule

func NewCfnInsightRule(scope constructs.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`.

TODO: EXAMPLE

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() constructs.Node
	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)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

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

TODO: EXAMPLE

func NewCfnMetricStream

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

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

type CfnMetricStreamProps

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

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

TODO: EXAMPLE

type CfnMetricStream_MetricStreamFilterProperty

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

TODO: EXAMPLE

type Color

type Color interface {
}

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

TODO: EXAMPLE

func NewColor

func NewColor() Color

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

TODO: EXAMPLE

func NewColumn

func NewColumn(widgets ...IWidget) Column

type CommonMetricOptions

type CommonMetricOptions struct {
	// Account which this metric comes from.
	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.
	Color *string `json:"color"`
	// Dimensions of the metric.
	DimensionsMap *map[string]*string `json:"dimensionsMap"`
	// Label for this metric when added to a Graph in a Dashboard.
	Label *string `json:"label"`
	// The period over which the specified statistic is applied.
	Period awscdk.Duration `json:"period"`
	// Region which this metric comes from.
	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"
	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.
	Unit Unit `json:"unit"`
}

Options shared by most methods accepting metric options.

TODO: EXAMPLE

type ComparisonOperator

type ComparisonOperator string

Comparison operator for evaluating alarms.

TODO: EXAMPLE

const (
	ComparisonOperator_GREATER_THAN_OR_EQUAL_TO_THRESHOLD              ComparisonOperator = "GREATER_THAN_OR_EQUAL_TO_THRESHOLD"
	ComparisonOperator_GREATER_THAN_THRESHOLD                          ComparisonOperator = "GREATER_THAN_THRESHOLD"
	ComparisonOperator_GREATER_THAN_UPPER_THRESHOLD                    ComparisonOperator = "GREATER_THAN_UPPER_THRESHOLD"
	ComparisonOperator_LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD ComparisonOperator = "LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD"
	ComparisonOperator_LESS_THAN_LOWER_THRESHOLD                       ComparisonOperator = "LESS_THAN_LOWER_THRESHOLD"
	ComparisonOperator_LESS_THAN_OR_EQUAL_TO_THRESHOLD                 ComparisonOperator = "LESS_THAN_OR_EQUAL_TO_THRESHOLD"
	ComparisonOperator_LESS_THAN_THRESHOLD                             ComparisonOperator = "LESS_THAN_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() constructs.Node
	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
	RenderAlarmRule() *string
	ToString() *string
}

A Composite Alarm based on Alarm Rule.

TODO: EXAMPLE

func NewCompositeAlarm

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

type CompositeAlarmProps

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

Properties for creating a Composite Alarm.

TODO: EXAMPLE

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.

type CreateAlarmOptions

type CreateAlarmOptions struct {
	// Whether the actions for this alarm are enabled.
	ActionsEnabled *bool `json:"actionsEnabled"`
	// Description for the alarm.
	AlarmDescription *string `json:"alarmDescription"`
	// Name of the alarm.
	AlarmName *string `json:"alarmName"`
	// Comparison to use to check if metric is breaching.
	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
	//
	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.
	EvaluateLowSampleCountPercentile *string `json:"evaluateLowSampleCountPercentile"`
	// The number of periods over which data is compared to the specified threshold.
	EvaluationPeriods *float64 `json:"evaluationPeriods"`
	// The value against which the specified statistic is compared.
	Threshold *float64 `json:"threshold"`
	// Sets how this alarm is to handle missing data points.
	TreatMissingData TreatMissingData `json:"treatMissingData"`
}

Properties needed to make an alarm from a metric.

TODO: EXAMPLE

type Dashboard

type Dashboard interface {
	awscdk.Resource
	Env() *awscdk.ResourceEnvironment
	Node() constructs.Node
	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
	ToString() *string
}

A CloudWatch dashboard.

TODO: EXAMPLE

func NewDashboard

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

type DashboardProps

type DashboardProps struct {
	// Name of the dashboard.
	//
	// If set, must only contain alphanumerics, dash (-) and underscore (_)
	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.
	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.
	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.
	Start *string `json:"start"`
	// Initial set of widgets on the dashboard.
	//
	// One array represents a row of widgets.
	Widgets *[]*[]IWidget `json:"widgets"`
}

Properties for defining a CloudWatch Dashboard.

TODO: EXAMPLE

type Dimension

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

Metric dimension.

TODO: EXAMPLE

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

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.

TODO: EXAMPLE

func NewGraphWidget

func NewGraphWidget(props *GraphWidgetProps) GraphWidget

type GraphWidgetProps

type GraphWidgetProps struct {
	// Height of the widget.
	Height *float64 `json:"height"`
	// The region the metrics of this graph should be taken from.
	Region *string `json:"region"`
	// Title for the graph.
	Title *string `json:"title"`
	// Width of the widget, in a grid of 24 units wide.
	Width *float64 `json:"width"`
	// Metrics to display on left Y axis.
	Left *[]IMetric `json:"left"`
	// Annotations for the left Y axis.
	LeftAnnotations *[]*HorizontalAnnotation `json:"leftAnnotations"`
	// Left Y axis.
	LeftYAxis *YAxisProps `json:"leftYAxis"`
	// Position of the legend.
	LegendPosition LegendPosition `json:"legendPosition"`
	// Whether the graph should show live data.
	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.
	Period awscdk.Duration `json:"period"`
	// Metrics to display on right Y axis.
	Right *[]IMetric `json:"right"`
	// Annotations for the right Y axis.
	RightAnnotations *[]*HorizontalAnnotation `json:"rightAnnotations"`
	// Right Y axis.
	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.
	SetPeriodToTimeRange *bool `json:"setPeriodToTimeRange"`
	// Whether the graph should be shown as stacked lines.
	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
	Statistic *string `json:"statistic"`
	// Display this metric.
	View GraphWidgetView `json:"view"`
}

Properties for a GraphWidget.

TODO: EXAMPLE

type GraphWidgetView

type GraphWidgetView string

Types of view.

TODO: EXAMPLE

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

type HorizontalAnnotation

type HorizontalAnnotation struct {
	// 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.
	Color *string `json:"color"`
	// Add shading above or below the annotation.
	Fill Shading `json:"fill"`
	// Label for the annotation.
	Label *string `json:"label"`
	// The value of the annotation.
	Value *float64 `json:"value"`
	// Whether the annotation is visible.
	Visible *bool `json:"visible"`
}

Horizontal annotation to be added to a graph.

TODO: EXAMPLE

type IAlarm

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

Represents a CloudWatch Alarm.

func Alarm_FromAlarmArn

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

Import an existing CloudWatch alarm provided an ARN.

func CompositeAlarm_FromCompositeAlarmArn

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

Import an existing CloudWatch composite alarm provided an ARN.

func CompositeAlarm_FromCompositeAlarmName

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

Import an existing CloudWatch composite alarm provided an Name.

type IAlarmAction

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

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

type IAlarmRule

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

Interface for Alarm Rule.

func AlarmRule_AllOf

func AlarmRule_AllOf(operands ...IAlarmRule) IAlarmRule

function to join all provided AlarmRules with AND operator.

func AlarmRule_AnyOf

func AlarmRule_AnyOf(operands ...IAlarmRule) IAlarmRule

function to join all provided AlarmRules with OR operator.

func AlarmRule_FromAlarm

func AlarmRule_FromAlarm(alarm IAlarm, alarmState AlarmState) IAlarmRule

function to build Rule Expression for given IAlarm and AlarmState.

func AlarmRule_FromBoolean

func AlarmRule_FromBoolean(value *bool) IAlarmRule

function to build TRUE/FALSE intent for Rule Expression.

func AlarmRule_FromString

func AlarmRule_FromString(alarmRule *string) IAlarmRule

function to build Rule Expression for given Alarm Rule string.

func AlarmRule_Not

func AlarmRule_Not(operand IAlarmRule) IAlarmRule

function to wrap provided AlarmRule in NOT operator.

type IMetric

type IMetric interface {
	// Inspect the details of the metric object.
	ToMetricConfig() *MetricConfig
}

Interface for metrics.

type IWidget

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

A single dashboard widget.

type LegendPosition

type LegendPosition string

The position of the legend on a GraphWidget.

TODO: EXAMPLE

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

type LogQueryVisualizationType

type LogQueryVisualizationType string

Types of view.

TODO: EXAMPLE

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.

TODO: EXAMPLE

func NewLogQueryWidget

func NewLogQueryWidget(props *LogQueryWidgetProps) LogQueryWidget

type LogQueryWidgetProps

type LogQueryWidgetProps struct {
	// Names of log groups to query.
	LogGroupNames *[]*string `json:"logGroupNames"`
	// Height of the widget.
	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|`.
	QueryLines *[]*string `json:"queryLines"`
	// Full query string for log insights.
	//
	// Be sure to prepend every new line with a newline and pipe character
	// (`\n|`).
	QueryString *string `json:"queryString"`
	// The region the metrics of this widget should be taken from.
	Region *string `json:"region"`
	// Title for the widget.
	Title *string `json:"title"`
	// The type of view to use.
	View LogQueryVisualizationType `json:"view"`
	// Width of the widget, in a grid of 24 units wide.
	Width *float64 `json:"width"`
}

Properties for a Query widget.

TODO: EXAMPLE

type MathExpression

type MathExpression interface {
	IMetric
	Color() *string
	Expression() *string
	Label() *string
	Period() awscdk.Duration
	SearchAccount() *string
	SearchRegion() *string
	UsingMetrics() *map[string]IMetric
	CreateAlarm(scope constructs.Construct, id *string, props *CreateAlarmOptions) Alarm
	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.

MathExpression can also be used for search expressions. In this case, it also optionally accepts a searchRegion and searchAccount property for cross-environment search expressions.

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.

TODO: EXAMPLE

func NewMathExpression

func NewMathExpression(props *MathExpressionProps) MathExpression

type MathExpressionOptions

type MathExpressionOptions struct {
	// Color for this metric when added to a Graph in a Dashboard.
	Color *string `json:"color"`
	// Label for this metric when added to a Graph in a Dashboard.
	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.
	Period awscdk.Duration `json:"period"`
	// Account to evaluate search expressions within.
	//
	// Specifying a searchAccount has no effect to the account used
	// for metrics within the expression (passed via usingMetrics).
	SearchAccount *string `json:"searchAccount"`
	// Region to evaluate search expressions within.
	//
	// Specifying a searchRegion has no effect to the region used
	// for metrics within the expression (passed via usingMetrics).
	SearchRegion *string `json:"searchRegion"`
}

Configurable options for MathExpressions.

TODO: EXAMPLE

type MathExpressionProps

type MathExpressionProps struct {
	// Color for this metric when added to a Graph in a Dashboard.
	Color *string `json:"color"`
	// Label for this metric when added to a Graph in a Dashboard.
	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.
	Period awscdk.Duration `json:"period"`
	// Account to evaluate search expressions within.
	//
	// Specifying a searchAccount has no effect to the account used
	// for metrics within the expression (passed via usingMetrics).
	SearchAccount *string `json:"searchAccount"`
	// Region to evaluate search expressions within.
	//
	// Specifying a searchRegion has no effect to the region used
	// for metrics within the expression (passed via usingMetrics).
	SearchRegion *string `json:"searchRegion"`
	// The expression defining the metric.
	//
	// When an expression contains a SEARCH function, it cannot be used
	// within an Alarm.
	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.
	UsingMetrics *map[string]IMetric `json:"usingMetrics"`
}

Properties for a MathExpression.

TODO: EXAMPLE

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 constructs.Construct, id *string, props *CreateAlarmOptions) Alarm
	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.

TODO: EXAMPLE

func NewMetric

func NewMetric(props *MetricProps) Metric

type MetricConfig

type MetricConfig struct {
	// In case the metric is a math expression, the details of the math expression.
	MathExpression *MetricExpressionConfig `json:"mathExpression"`
	// In case the metric represents a query, the details of the query.
	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.
	RenderingProperties *map[string]interface{} `json:"renderingProperties"`
}

Properties of a rendered metric.

TODO: EXAMPLE

type MetricExpressionConfig

type MetricExpressionConfig struct {
	// Math expression for the metric.
	Expression *string `json:"expression"`
	// How many seconds to aggregate over.
	Period *float64 `json:"period"`
	// Account to evaluate search expressions within.
	SearchAccount *string `json:"searchAccount"`
	// Region to evaluate search expressions within.
	SearchRegion *string `json:"searchRegion"`
	// Metrics used in the math expression.
	UsingMetrics *map[string]IMetric `json:"usingMetrics"`
}

Properties for a concrete metric.

TODO: EXAMPLE

type MetricOptions

type MetricOptions struct {
	// Account which this metric comes from.
	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.
	Color *string `json:"color"`
	// Dimensions of the metric.
	DimensionsMap *map[string]*string `json:"dimensionsMap"`
	// Label for this metric when added to a Graph in a Dashboard.
	Label *string `json:"label"`
	// The period over which the specified statistic is applied.
	Period awscdk.Duration `json:"period"`
	// Region which this metric comes from.
	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"
	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.
	Unit Unit `json:"unit"`
}

Properties of a metric that can be changed.

TODO: EXAMPLE

type MetricProps

type MetricProps struct {
	// Account which this metric comes from.
	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.
	Color *string `json:"color"`
	// Dimensions of the metric.
	DimensionsMap *map[string]*string `json:"dimensionsMap"`
	// Label for this metric when added to a Graph in a Dashboard.
	Label *string `json:"label"`
	// The period over which the specified statistic is applied.
	Period awscdk.Duration `json:"period"`
	// Region which this metric comes from.
	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"
	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.
	Unit Unit `json:"unit"`
	// Name of the metric.
	MetricName *string `json:"metricName"`
	// Namespace of the metric.
	Namespace *string `json:"namespace"`
}

Properties for a metric.

TODO: EXAMPLE

type MetricStatConfig

type MetricStatConfig struct {
	// Account which this metric comes from.
	Account *string `json:"account"`
	// The dimensions to apply to the alarm.
	Dimensions *[]*Dimension `json:"dimensions"`
	// Name of the metric.
	MetricName *string `json:"metricName"`
	// Namespace of the metric.
	Namespace *string `json:"namespace"`
	// How many seconds to aggregate over.
	Period awscdk.Duration `json:"period"`
	// Region which this metric comes from.
	Region *string `json:"region"`
	// Aggregation function to use (can be either simple or a percentile).
	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.
	//
	// This field has been renamed from plain `unit` to clearly communicate
	// its purpose.
	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.

TODO: EXAMPLE

type MetricWidgetProps

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

Basic properties for widgets that display metrics.

TODO: EXAMPLE

type PeriodOverride

type PeriodOverride string

Specify the period for graphs when the CloudWatch dashboard loads.

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

TODO: EXAMPLE

func NewRow

func NewRow(widgets ...IWidget) Row

type Shading

type Shading string

Fill shading options that will be used with an annotation.

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

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.

TODO: EXAMPLE

func NewSingleValueWidget

func NewSingleValueWidget(props *SingleValueWidgetProps) SingleValueWidget

type SingleValueWidgetProps

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

Properties for a SingleValueWidget.

TODO: EXAMPLE

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.

TODO: EXAMPLE

func NewSpacer

func NewSpacer(props *SpacerProps) Spacer

type SpacerProps

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

Props of the spacer.

TODO: EXAMPLE

type Statistic

type Statistic string

Statistic to use over the aggregation period.

TODO: EXAMPLE

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.

TODO: EXAMPLE

func NewTextWidget

func NewTextWidget(props *TextWidgetProps) TextWidget

type TextWidgetProps

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

Properties for a Text widget.

TODO: EXAMPLE

type TreatMissingData

type TreatMissingData string

Specify how missing data points are treated during alarm evaluation.

TODO: EXAMPLE

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

type Unit

type Unit string

Unit for metric.

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

type YAxisProps

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

Properties for a Y-Axis.

TODO: EXAMPLE

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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