@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricTransformation extends Object implements Serializable, Cloneable, StructuredPojo
Indicates how to transform ingested log events to metric data in a CloudWatch metric.
Constructor and Description |
---|
MetricTransformation() |
Modifier and Type | Method and Description |
---|---|
MetricTransformation |
clone() |
boolean |
equals(Object obj) |
Double |
getDefaultValue()
(Optional) The value to emit when a filter pattern does not match a log event.
|
String |
getMetricName()
The name of the CloudWatch metric.
|
String |
getMetricNamespace()
A custom namespace to contain your metric in CloudWatch.
|
String |
getMetricValue()
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDefaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event.
|
void |
setMetricName(String metricName)
The name of the CloudWatch metric.
|
void |
setMetricNamespace(String metricNamespace)
A custom namespace to contain your metric in CloudWatch.
|
void |
setMetricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
String |
toString()
Returns a string representation of this object.
|
MetricTransformation |
withDefaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event.
|
MetricTransformation |
withMetricName(String metricName)
The name of the CloudWatch metric.
|
MetricTransformation |
withMetricNamespace(String metricNamespace)
A custom namespace to contain your metric in CloudWatch.
|
MetricTransformation |
withMetricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
public void setMetricName(String metricName)
The name of the CloudWatch metric.
metricName
- The name of the CloudWatch metric.public String getMetricName()
The name of the CloudWatch metric.
public MetricTransformation withMetricName(String metricName)
The name of the CloudWatch metric.
metricName
- The name of the CloudWatch metric.public void setMetricNamespace(String metricNamespace)
A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.
metricNamespace
- A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are
similar. For more information, see Namespaces.public String getMetricNamespace()
A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.
public MetricTransformation withMetricNamespace(String metricNamespace)
A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.
metricNamespace
- A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are
similar. For more information, see Namespaces.public void setMetricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
metricValue
- The value to publish to the CloudWatch metric when a filter pattern matches a log event.public String getMetricValue()
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
public MetricTransformation withMetricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
metricValue
- The value to publish to the CloudWatch metric when a filter pattern matches a log event.public void setDefaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
defaultValue
- (Optional) The value to emit when a filter pattern does not match a log event. This value can be null.public Double getDefaultValue()
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
public MetricTransformation withDefaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
defaultValue
- (Optional) The value to emit when a filter pattern does not match a log event. This value can be null.public String toString()
toString
in class Object
Object.toString()
public MetricTransformation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.