Class OperationsMetricOptions
Options for configuring metrics that considers multiple operations.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class OperationsMetricOptions : Object, IOperationsMetricOptions, ISystemErrorsForOperationsMetricOptions, IMetricOptions, ICommonMetricOptions
Syntax (vb)
Public Class OperationsMetricOptions
Inherits Object
Implements IOperationsMetricOptions, ISystemErrorsForOperationsMetricOptions, IMetricOptions, ICommonMetricOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.CloudWatch;
using Amazon.CDK.AWS.DynamoDB;
var operationsMetricOptions = new OperationsMetricOptions {
Account = "account",
Color = "color",
DimensionsMap = new Dictionary<string, string> {
{ "dimensionsMapKey", "dimensionsMap" }
},
Label = "label",
Operations = new [] { Operation.GET_ITEM },
Period = Duration.Minutes(30),
Region = "region",
StackAccount = "stackAccount",
StackRegion = "stackRegion",
Statistic = "statistic",
Unit = Unit.SECONDS
};
Synopsis
Constructors
Operations |
Properties
Account | Account which this metric comes from. |
Color | The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The |
Dimensions |
Dimensions of the metric. |
Label | Label for this metric when added to a Graph in a Dashboard. |
Operations | The operations to apply the metric to. |
Period | The period over which the specified statistic is applied. |
Region | Region which this metric comes from. |
Stack |
Account of the stack this metric is attached to. |
Stack |
Region of the stack this metric is attached to. |
Statistic | What function to use for aggregating. |
Unit | Unit used to filter the metric stream. |
Constructors
OperationsMetricOptions()
public OperationsMetricOptions()
Properties
Account
Account which this metric comes from.
public string Account { get; set; }
Property Value
System.
Remarks
Default: - Deployment account.
Color
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.
public string Color { get; set; }
Property Value
System.
Remarks
Default: - Automatic color
DimensionsMap
Dimensions of the metric.
public IDictionary<string, string> DimensionsMap { get; set; }
Property Value
System.
Remarks
Default: - No dimensions.
Label
Label for this metric when added to a Graph in a Dashboard.
public string Label { get; set; }
Property Value
System.
Remarks
You can use dynamic labels to show summary information about the entire displayed time series in the legend. For example, if you use:
[max: ${MAX}] MyMetric
As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend.
Default: - No label
Operations
The operations to apply the metric to.
public Operation[] Operations { get; set; }
Property Value
Remarks
Default: - All operations available by DynamoDB tables will be considered.
Period
The period over which the specified statistic is applied.
public Duration Period { get; set; }
Property Value
Remarks
Default: Duration.minutes(5)
Region
Region which this metric comes from.
public string Region { get; set; }
Property Value
System.
Remarks
Default: - Deployment region.
StackAccount
Account of the stack this metric is attached to.
public string StackAccount { get; set; }
Property Value
System.
Remarks
Default: - Deployment account.
StackRegion
Region of the stack this metric is attached to.
public string StackRegion { get; set; }
Property Value
System.
Remarks
Default: - Deployment region.
Statistic
What function to use for aggregating.
public string Statistic { get; set; }
Property Value
System.
Remarks
Use the aws_cloudwatch.Stats
helper class to construct valid input strings.
Can be one of the following:
Default: Average
Unit
Unit used to filter the metric stream.
public Nullable<Unit> Unit { get; set; }
Property Value
System.
Remarks
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.
Default: - All metric datums in the given metric stream