Class CfnMetricFilter.MetricTransformationProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnMetricFilter.MetricTransformationProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnMetricFilter.MetricTransformationProperty
CfnMetricFilter.MetricTransformationProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.CfnMetricFilter.MetricTransformationProperty
CfnMetricFilter.MetricTransformationProperty.Builder, CfnMetricFilter.MetricTransformationProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnMetricFilter.MetricTransformationProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Number
(Optional) The value to emit when a filter pattern does not match a log event.final Object
The fields to use as dimensions for the metric.final String
The name of the CloudWatch metric.final String
A custom namespace to contain your metric in CloudWatch.final String
The value that is published to the CloudWatch metric.final String
getUnit()
The unit to assign to the metric.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnMetricFilter.MetricTransformationProperty.Builder
.
-
-
Method Details
-
getMetricName
Description copied from interface:CfnMetricFilter.MetricTransformationProperty
The name of the CloudWatch metric.- Specified by:
getMetricName
in interfaceCfnMetricFilter.MetricTransformationProperty
- See Also:
-
getMetricNamespace
Description copied from interface:CfnMetricFilter.MetricTransformationProperty
A custom namespace to contain your metric in CloudWatch.Use namespaces to group together metrics that are similar. For more information, see Namespaces .
- Specified by:
getMetricNamespace
in interfaceCfnMetricFilter.MetricTransformationProperty
- See Also:
-
getMetricValue
Description copied from interface:CfnMetricFilter.MetricTransformationProperty
The value that is published to the CloudWatch metric.For example, if you're counting the occurrences of a particular term like
Error
, specify 1 for the metric value. If you're counting the number of bytes transferred, reference the value that is in the log event by using $. followed by the name of the field that you specified in the filter pattern, such as$.size
.- Specified by:
getMetricValue
in interfaceCfnMetricFilter.MetricTransformationProperty
- See Also:
-
getDefaultValue
Description copied from interface:CfnMetricFilter.MetricTransformationProperty
(Optional) The value to emit when a filter pattern does not match a log event.This value can be null.
- Specified by:
getDefaultValue
in interfaceCfnMetricFilter.MetricTransformationProperty
- See Also:
-
getDimensions
Description copied from interface:CfnMetricFilter.MetricTransformationProperty
The fields to use as dimensions for the metric. One metric filter can include as many as three dimensions.Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as
IPAddress
orrequestID
as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric.CloudWatch Logs disables a metric filter if it generates 1000 different name/value pairs for your specified dimensions within a certain amount of time. This helps to prevent accidental high charges.
You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see Creating a Billing Alarm to Monitor Your Estimated AWS Charges .
- Specified by:
getDimensions
in interfaceCfnMetricFilter.MetricTransformationProperty
- See Also:
-
getUnit
Description copied from interface:CfnMetricFilter.MetricTransformationProperty
The unit to assign to the metric.If you omit this, the unit is set as
None
.- Specified by:
getUnit
in interfaceCfnMetricFilter.MetricTransformationProperty
- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-