![]() |
![]()
| ![]() |
![]()
NAMEPaws::CloudWatchLogs::MetricTransformation USAGEThis class represents one of two things: Arguments in a call to a service Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object. As an example, if Att1 is expected to be a Paws::CloudWatchLogs::MetricTransformation object: $service_obj->Method(Att1 => { DefaultValue => $value, ..., Unit => $value }); Results returned from an API call Use accessors for each attribute. If Att1 is expected to be an Paws::CloudWatchLogs::MetricTransformation object: $result = $service_obj->Method(...); $result->Att1->DefaultValue DESCRIPTIONIndicates how to transform ingested log events to metric data in a CloudWatch metric. ATTRIBUTESDefaultValue => Num(Optional) The value to emit when a filter pattern does not match a log event. This value can be null. Dimensions => Paws::CloudWatchLogs::DimensionsThe 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" or "requestID" as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric. To help prevent accidental high charges, Amazon disables a metric filter if it generates 1000 different name/value pairs for the dimensions that you have specified within a certain amount of time. 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html). REQUIRED MetricName => StrThe name of the CloudWatch metric. REQUIRED MetricNamespace => StrA custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace). REQUIRED MetricValue => StrThe value to publish to the CloudWatch metric when a filter pattern matches a log event. Unit => StrThe unit to assign to the metric. If you omit this, the unit is set as "None". SEE ALSOThis class forms part of Paws, describing an object used in Paws::CloudWatchLogs BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|