Interface ListMetricsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<ListMetricsRequest.Builder,,ListMetricsRequest> SdkBuilder<ListMetricsRequest.Builder,,ListMetricsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListMetricsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondimensions(Collection<DimensionFilter> dimensions) The dimensions to filter against.dimensions(Consumer<DimensionFilter.Builder>... dimensions) The dimensions to filter against.dimensions(DimensionFilter... dimensions) The dimensions to filter against.includeLinkedAccounts(Boolean includeLinkedAccounts) If you are using this operation in a monitoring account, specifytrueto include metrics from source accounts in the returned data.metricName(String metricName) The name of the metric to filter against.The metric namespace to filter against.The token returned by a previous call to indicate that there is more data available.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.owningAccount(String owningAccount) When you use this operation in a monitoring account, use this field to return metrics only from one source account.recentlyActive(String recentlyActive) To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value ofPT3H.recentlyActive(RecentlyActive recentlyActive) To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value ofPT3H.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
namespace
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
- Parameters:
namespace- The metric namespace to filter against. Only the namespace that matches exactly will be returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
- Parameters:
metricName- The name of the metric to filter against. Only the metrics with names that match exactly will be returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions to filter against. Only the dimension with names that match exactly will be returned. If you specify one dimension name and a metric has that dimension and also other dimensions, it will be returned.
- Parameters:
dimensions- The dimensions to filter against. Only the dimension with names that match exactly will be returned. If you specify one dimension name and a metric has that dimension and also other dimensions, it will be returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions to filter against. Only the dimension with names that match exactly will be returned. If you specify one dimension name and a metric has that dimension and also other dimensions, it will be returned.
- Parameters:
dimensions- The dimensions to filter against. Only the dimension with names that match exactly will be returned. If you specify one dimension name and a metric has that dimension and also other dimensions, it will be returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions to filter against. Only the dimension with names that match exactly will be returned. If you specify one dimension name and a metric has that dimension and also other dimensions, it will be returned.
This is a convenience method that creates an instance of theDimensionFilter.Builderavoiding the need to create one manually viaDimensionFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todimensions(List<DimensionFilter>).- Parameters:
dimensions- a consumer that will call methods onDimensionFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token returned by a previous call to indicate that there is more data available.
- Parameters:
nextToken- The token returned by a previous call to indicate that there is more data available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recentlyActive
To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value of
PT3H. This is the only valid value for this parameter.The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 50 minutes more than the specified time interval.
- Parameters:
recentlyActive- To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value ofPT3H. This is the only valid value for this parameter.The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 50 minutes more than the specified time interval.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recentlyActive
To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value of
PT3H. This is the only valid value for this parameter.The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 50 minutes more than the specified time interval.
- Parameters:
recentlyActive- To filter the results to show only metrics that have had data points published in the past three hours, specify this parameter with a value ofPT3H. This is the only valid value for this parameter.The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 50 minutes more than the specified time interval.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includeLinkedAccounts
If you are using this operation in a monitoring account, specify
trueto include metrics from source accounts in the returned data.The default is
false.- Parameters:
includeLinkedAccounts- If you are using this operation in a monitoring account, specifytrueto include metrics from source accounts in the returned data.The default is
false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owningAccount
When you use this operation in a monitoring account, use this field to return metrics only from one source account. To do so, specify that source account ID in this field, and also specify
trueforIncludeLinkedAccounts.- Parameters:
owningAccount- When you use this operation in a monitoring account, use this field to return metrics only from one source account. To do so, specify that source account ID in this field, and also specifytrueforIncludeLinkedAccounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListMetricsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListMetricsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-