SystemErrorsForOperationsMetricOptions Struct
Options for configuring a system errors metric that considers multiple operations.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const systemErrorsForOperationsMetricOptions: dynamodb.SystemErrorsForOperationsMetricOptions = {
account: 'account',
color: 'color',
dimensionsMap: {
dimensionsMapKey: 'dimensionsMap',
},
id: 'id',
label: 'label',
operations: [dynamodb.Operation.GET_ITEM],
period: cdk.Duration.minutes(30),
region: 'region',
stackAccount: 'stackAccount',
stackRegion: 'stackRegion',
statistic: 'statistic',
unit: cloudwatch.Unit.SECONDS,
visible: false,
};
Properties
dimensionsMap{ [key: string]: string }dimensions_maptyping.Mapping[str, str]dimensionsMapMap<String, String>DimensionsMapIDictionary<string, string>DimensionsMap*map[string]*string= No dimensions.#The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
notes
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.
operationsOperation[]operationstyping.List[Operation]operationsList<Operation>OperationsOperation[]Operations*[]Operation= All operations available by Dyna…#default
Default: All operations available by DynamoDB tables will be considered.
stackAccountstringstack_accountstrstackAccountStringStackAccountstringStackAccount*string= Deployment account.#stackRegionstringstack_regionstrstackRegionStringStackRegionstringStackRegion*string= Deployment region.#notes
Use the aws_cloudwatch.Stats helper class to construct valid input strings.
Can be one of the following:
- "Minimum" | "min"
- "Maximum" | "max"
- "Average" | "avg"
- "Sum" | "sum"
- "SampleCount | "n"
- "pNN.NN"
- "tmNN.NN" | "tm(NN.NN%:NN.NN%)"
- "iqm"
- "wmNN.NN" | "wm(NN.NN%:NN.NN%)"
- "tcNN.NN" | "tc(NN.NN%:NN.NN%)"
- "tsNN.NN" | "ts(NN.NN%:NN.NN%)"
notes · default
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
Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results.