[−][src]Struct rusoto_sagemaker::Filter
A conditional statement for a search expression that includes a Boolean operator, a resource property, and a value.
If you don't specify an Operator
and a Value
, the filter searches for only the specified property. For example, defining a Filter
for the FailureReason
for the TrainingJob
Resource
searches for training job objects that have a value in the FailureReason
field.
If you specify a Value
, but not an Operator
, Amazon SageMaker uses the equals operator as the default.
In search, there are several property types:
- Metrics
-
To define a metric filter, enter a value using the form
"Metrics.<name>"
, where<name>
is a metric name. For example, the following filter searches for training jobs with an"accuracy"
metric greater than"0.9"
:{
"Name": "Metrics.accuracy",
"Operator": "GREATERTHAN",
"Value": "0.9"
}
- HyperParameters
-
To define a hyperparameter filter, enter a value with the form
"HyperParameters.<name>"
. Decimal hyperparameter values are treated as a decimal in a comparison if the specifiedValue
is also a decimal value. If the specifiedValue
is an integer, the decimal hyperparameter values are treated as integers. For example, the following filter is satisfied by training jobs with a"learningrate"
hyperparameter that is less than"0.5"
:{
"Name": "HyperParameters.learningrate",
"Operator": "LESSTHAN",
"Value": "0.5"
}
- Tags
-
To define a tag filter, enter a value with the form
"Tags.<key>"
.
Fields
name: String
A property name. For example, TrainingJobName
. For the list of valid property names returned in a search result for each supported resource, see TrainingJob properties. You must specify a valid property name for the resource.
operator: Option<String>
A Boolean binary operator that is used to evaluate the filter. The operator field contains one of the following values:
- Equals
-
The specified resource in
Name
equals the specifiedValue
. - NotEquals
-
The specified resource in
Name
does not equal the specifiedValue
. - GreaterThan
-
The specified resource in
Name
is greater than the specifiedValue
. Not supported for text-based properties. - GreaterThanOrEqualTo
-
The specified resource in
Name
is greater than or equal to the specifiedValue
. Not supported for text-based properties. - LessThan
-
The specified resource in
Name
is less than the specifiedValue
. Not supported for text-based properties. - LessThanOrEqualTo
-
The specified resource in
Name
is less than or equal to the specifiedValue
. Not supported for text-based properties. - Contains
-
Only supported for text-based properties. The word-list of the property contains the specified
Value
.
If you have specified a filter Value
, the default is Equals
.
value: Option<String>
A value used with Resource
and Operator
to determine if objects satisfy the filter's condition. For numerical properties, Value
must be an integer or floating-point decimal. For timestamp properties, Value
must be an ISO 8601 date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS
.
Trait Implementations
impl PartialEq<Filter> for Filter
[src]
impl Default for Filter
[src]
impl Clone for Filter
[src]
fn clone(&self) -> Filter
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Filter
[src]
impl Serialize for Filter
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self