Class MetricConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.oam.model.MetricConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricConfiguration.Builder,MetricConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class MetricConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricConfiguration.Builder,MetricConfiguration>
This structure contains the
Filterparameter which you can use to specify which metric namespaces are to be shared from this source account to the monitoring account.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetricConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringfilter()Use this field to specify which metrics are to be shared with the monitoring account.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends MetricConfiguration.Builder>serializableBuilderClass()MetricConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
filter
public final String filter()
Use this field to specify which metrics are to be shared with the monitoring account. Use the term
Namespaceand one or more of the following operands. Use single quotation marks (') around namespace names. The matching of namespace names is case sensitive. Each filter has a limit of five conditional operands. Conditional operands areANDandOR.-
=and!= -
AND -
OR -
LIKEandNOT LIKE. These can be used only as prefix searches. Include a%at the end of the string that you want to search for and include. -
INandNOT IN, using parentheses( )
Examples:
-
Namespace NOT LIKE 'AWS/%'includes only namespaces that don't start withAWS/, such as custom namespaces. -
Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')includes only the metrics in the EC2, Elastic Load Balancing, and Amazon S3 namespaces. -
Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'includes only the EC2 namespace and your custom namespaces.
If you are updating a link that uses filters, you can specify
*as the only value for thefilterparameter to delete the filter and share all metric namespaces with the monitoring account.- Returns:
- Use this field to specify which metrics are to be shared with the monitoring account. Use the term
Namespaceand one or more of the following operands. Use single quotation marks (') around namespace names. The matching of namespace names is case sensitive. Each filter has a limit of five conditional operands. Conditional operands areANDandOR.-
=and!= -
AND -
OR -
LIKEandNOT LIKE. These can be used only as prefix searches. Include a%at the end of the string that you want to search for and include. -
INandNOT IN, using parentheses( )
Examples:
-
Namespace NOT LIKE 'AWS/%'includes only namespaces that don't start withAWS/, such as custom namespaces. -
Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3')includes only the metrics in the EC2, Elastic Load Balancing, and Amazon S3 namespaces. -
Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%'includes only the EC2 namespace and your custom namespaces.
If you are updating a link that uses filters, you can specify
*as the only value for thefilterparameter to delete the filter and share all metric namespaces with the monitoring account. -
-
-
toBuilder
public MetricConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricConfiguration.Builder,MetricConfiguration>
-
builder
public static MetricConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends MetricConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-