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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.CfnMetricFilter.MetricTransformationProperty
CfnMetricFilter.MetricTransformationProperty.Builder, CfnMetricFilter.MetricTransformationProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnMetricFilter.MetricTransformationProperty.Builder.protectedJsii$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.JsonNodefinal booleanfinal Number(Optional) The value to emit when a filter pattern does not match a log event.final ObjectThe fields to use as dimensions for the metric.final StringThe name of the CloudWatch metric.final StringA custom namespace to contain your metric in CloudWatch.final StringThe value that is published to the CloudWatch metric.final StringgetUnit()The unit to assign to the metric.final inthashCode()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.MetricTransformationPropertyThe name of the CloudWatch metric.- Specified by:
getMetricNamein interfaceCfnMetricFilter.MetricTransformationProperty- See Also:
-
getMetricNamespace
Description copied from interface:CfnMetricFilter.MetricTransformationPropertyA custom namespace to contain your metric in CloudWatch.Use namespaces to group together metrics that are similar. For more information, see Namespaces .
- Specified by:
getMetricNamespacein interfaceCfnMetricFilter.MetricTransformationProperty- See Also:
-
getMetricValue
Description copied from interface:CfnMetricFilter.MetricTransformationPropertyThe 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:
getMetricValuein 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:
getDefaultValuein interfaceCfnMetricFilter.MetricTransformationProperty- See Also:
-
getDimensions
Description copied from interface:CfnMetricFilter.MetricTransformationPropertyThe 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
IPAddressorrequestIDas 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:
getDimensionsin interfaceCfnMetricFilter.MetricTransformationProperty- See Also:
-
getUnit
Description copied from interface:CfnMetricFilter.MetricTransformationPropertyThe unit to assign to the metric.If you omit this, the unit is set as
None.- Specified by:
getUnitin interfaceCfnMetricFilter.MetricTransformationProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-