You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::S3::Types::MetricsFilter
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::MetricsFilter
- Defined in:
- (unknown)
Overview
When passing MetricsFilter as input to an Aws::Client method, you can use a vanilla Hash:
{
prefix: "Prefix",
tag: {
key: "ObjectKey", # required
value: "Value", # required
},
and: {
prefix: "Prefix",
tags: [
{
key: "ObjectKey", # required
value: "Value", # required
},
],
},
}
Specifies a metrics configuration filter. The metrics configuration only includes objects that meet the filter's criteria. A filter must be a prefix, a tag, or a conjunction (MetricsAndOperator).
Returned by:
Instance Attribute Summary collapse
-
#and ⇒ Types::MetricsAndOperator
A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter.
-
#prefix ⇒ String
The prefix used when evaluating a metrics filter.
-
#tag ⇒ Types::Tag
The tag used when evaluating a metrics filter.
Instance Attribute Details
#and ⇒ Types::MetricsAndOperator
A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply.
#prefix ⇒ String
The prefix used when evaluating a metrics filter.
#tag ⇒ Types::Tag
The tag used when evaluating a metrics filter.