pub struct RemoveQueryBuilder { /* private fields */ }
Expand description
Builder for a remove query request.
Implementations§
Source§impl RemoveQueryBuilder
impl RemoveQueryBuilder
Sourcepub fn start(self, time: SystemTime) -> Self
pub fn start(self, time: SystemTime) -> Self
Set the start time of the query.
Sourcepub fn start_us(self, time_us: u64) -> Self
pub fn start_us(self, time_us: u64) -> Self
Set the start time of the query as a unix timestamp in microseconds.
Sourcepub fn stop(self, time: SystemTime) -> Self
pub fn stop(self, time: SystemTime) -> Self
Set the end time of the query.
Sourcepub fn stop_us(self, time_us: u64) -> Self
pub fn stop_us(self, time_us: u64) -> Self
Set the end time of the query as a unix timestamp in microseconds.
Sourcepub fn when(self, condition: Value) -> Self
pub fn when(self, condition: Value) -> Self
Set the condition for the query. This will remove all records that match the condition. This is a destructive operation.
Sourcepub fn strict(self, strict: bool) -> Self
pub fn strict(self, strict: bool) -> Self
Set the query to be strict. If the query is strict, the query will return an error if any of the conditions are invalid. default: false
Sourcepub fn include(self, labels: Labels) -> Self
👎Deprecated since 1.13.0: Use the when
method to set the labels to include in the query.
pub fn include(self, labels: Labels) -> Self
when
method to set the labels to include in the query.Set the labels to include in the query.
Sourcepub fn add_include<Str>(self, key: Str, value: Str) -> Self
👎Deprecated since 1.13.0: Use the when
method to set the labels to include in the query.
pub fn add_include<Str>(self, key: Str, value: Str) -> Self
when
method to set the labels to include in the query.Add a label to include in the query.
Sourcepub fn exclude(self, labels: Labels) -> Self
👎Deprecated since 1.13.0: Use the when
method to set the labels to exclude from the query.
pub fn exclude(self, labels: Labels) -> Self
when
method to set the labels to exclude from the query.Set the labels to exclude from the query.
Sourcepub fn add_exclude<Str>(self, key: Str, value: Str) -> Self
👎Deprecated since 1.13.0: Use the when
method to add a label to exclude from the query.
pub fn add_exclude<Str>(self, key: Str, value: Str) -> Self
when
method to add a label to exclude from the query.Add a label to exclude from the query.
Sourcepub fn each_s(self, each_s: f64) -> Self
pub fn each_s(self, each_s: f64) -> Self
Set S, to return a record every S seconds. default: return all records
Auto Trait Implementations§
impl Freeze for RemoveQueryBuilder
impl !RefUnwindSafe for RemoveQueryBuilder
impl Send for RemoveQueryBuilder
impl Sync for RemoveQueryBuilder
impl Unpin for RemoveQueryBuilder
impl !UnwindSafe for RemoveQueryBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more