#[non_exhaustive]pub struct SearchMonitorsOptionalParams {
pub query: Option<String>,
pub page: Option<i64>,
pub per_page: Option<i64>,
pub sort: Option<String>,
}
Expand description
SearchMonitorsOptionalParams is a struct for passing parameters to the method MonitorsAPI::search_monitors
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.query: Option<String>
After entering a search query in your Manage Monitor page use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated manage monitor documentation page to learn more.
The query can contain any number of space-separated monitor attributes, for instance query="type:metric status:alert"
.
page: Option<i64>
Page to start paginating from.
per_page: Option<i64>
Number of monitors to return per page.
sort: Option<String>
String for sort order, composed of field and sort order separate by a comma, for example name,asc
. Supported sort directions: asc
, desc
. Supported fields:
name
status
tags
Implementations§
Source§impl SearchMonitorsOptionalParams
impl SearchMonitorsOptionalParams
Sourcepub fn query(self, value: String) -> Self
pub fn query(self, value: String) -> Self
After entering a search query in your Manage Monitor page use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated manage monitor documentation page to learn more.
The query can contain any number of space-separated monitor attributes, for instance query="type:metric status:alert"
.
Trait Implementations§
Source§impl Clone for SearchMonitorsOptionalParams
impl Clone for SearchMonitorsOptionalParams
Source§fn clone(&self) -> SearchMonitorsOptionalParams
fn clone(&self) -> SearchMonitorsOptionalParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more