#[non_exhaustive]pub struct TailLogEntriesRequest {
pub resource_names: Vec<String>,
pub filter: String,
pub buffer_window: Option<Duration>,
/* private fields */
}Expand description
The parameters to TailLogEntries.
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.resource_names: Vec<String>Required. Name of a parent resource from which to retrieve log entries:
projects/[PROJECT_ID]organizations/[ORGANIZATION_ID]billingAccounts/[BILLING_ACCOUNT_ID]folders/[FOLDER_ID]
May alternatively be one or more views:
projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
filter: StringOptional. Only log entries that match the filter are returned. An empty
filter matches all log entries in the resources listed in resource_names.
Referencing a parent resource that is not listed in resource_names will
cause the filter to return no results. The maximum length of a filter is
20,000 characters.
buffer_window: Option<Duration>Optional. The amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 milliseconds.
Implementations§
Source§impl TailLogEntriesRequest
impl TailLogEntriesRequest
Sourcepub fn set_resource_names<T, V>(self, v: T) -> Self
pub fn set_resource_names<T, V>(self, v: T) -> Self
Sets the value of resource_names.
§Example
let x = TailLogEntriesRequest::new().set_resource_names(["a", "b", "c"]);Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_buffer_window<T>(self, v: T) -> Self
pub fn set_buffer_window<T>(self, v: T) -> Self
Sets the value of buffer_window.
§Example
use wkt::Duration;
let x = TailLogEntriesRequest::new().set_buffer_window(Duration::default()/* use setters */);Sourcepub fn set_or_clear_buffer_window<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_buffer_window<T>(self, v: Option<T>) -> Self
Sets or clears the value of buffer_window.
§Example
use wkt::Duration;
let x = TailLogEntriesRequest::new().set_or_clear_buffer_window(Some(Duration::default()/* use setters */));
let x = TailLogEntriesRequest::new().set_or_clear_buffer_window(None::<Duration>);Trait Implementations§
Source§impl Clone for TailLogEntriesRequest
impl Clone for TailLogEntriesRequest
Source§fn clone(&self) -> TailLogEntriesRequest
fn clone(&self) -> TailLogEntriesRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TailLogEntriesRequest
impl Debug for TailLogEntriesRequest
Source§impl Default for TailLogEntriesRequest
impl Default for TailLogEntriesRequest
Source§fn default() -> TailLogEntriesRequest
fn default() -> TailLogEntriesRequest
Source§impl Message for TailLogEntriesRequest
impl Message for TailLogEntriesRequest
Source§impl PartialEq for TailLogEntriesRequest
impl PartialEq for TailLogEntriesRequest
impl StructuralPartialEq for TailLogEntriesRequest
Auto Trait Implementations§
impl Freeze for TailLogEntriesRequest
impl RefUnwindSafe for TailLogEntriesRequest
impl Send for TailLogEntriesRequest
impl Sync for TailLogEntriesRequest
impl Unpin for TailLogEntriesRequest
impl UnsafeUnpin for TailLogEntriesRequest
impl UnwindSafe for TailLogEntriesRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request