#[non_exhaustive]pub struct ListTracesRequest {
pub project_id: String,
pub view: ViewType,
pub page_size: i32,
pub page_token: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub filter: String,
pub order_by: String,
/* private fields */
}Expand description
The request message for the ListTraces method. All fields are required
unless specified.
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.project_id: StringRequired. ID of the Cloud project where the trace data is stored.
view: ViewTypeOptional. Type of data returned for traces in the list. Default is
MINIMAL.
page_size: i32Optional. Maximum number of traces to return. If not specified or <= 0, the implementation selects a reasonable value. The implementation may return fewer traces than the requested page size.
page_token: StringToken identifying the page of results to return. If provided, use the
value of the next_page_token field from a previous request.
start_time: Option<Timestamp>Start of the time interval (inclusive) during which the trace data was collected from the application.
end_time: Option<Timestamp>End of the time interval (inclusive) during which the trace data was collected from the application.
filter: StringOptional. A filter against labels for the request.
By default, searches use prefix matching. To specify exact match, prepend
a plus symbol (+) to the search term.
Multiple terms are ANDed. Syntax:
root:NAME_PREFIXorNAME_PREFIX: Return traces where any root span starts withNAME_PREFIX.+root:NAMEor+NAME: Return traces where any root span’s name is exactlyNAME.span:NAME_PREFIX: Return traces where any span starts withNAME_PREFIX.+span:NAME: Return traces where any span’s name is exactlyNAME.latency:DURATION: Return traces whose overall latency is greater or equal to thanDURATION. Accepted units are nanoseconds (ns), milliseconds (ms), and seconds (s). Default isms. For example,latency:24msreturns traces whose overall latency is greater than or equal to 24 milliseconds.label:LABEL_KEY: Return all traces containing the specified label key (exact match, case-sensitive) regardless of the key:value pair’s value (including empty values).LABEL_KEY:VALUE_PREFIX: Return all traces containing the specified label key (exact match, case-sensitive) whose value starts withVALUE_PREFIX. Both a key and a value must be specified.+LABEL_KEY:VALUE: Return all traces containing a key:value pair exactly matching the specified text. Both a key and a value must be specified.method:VALUE: Equivalent to/http/method:VALUE.url:VALUE: Equivalent to/http/url:VALUE.
order_by: StringOptional. Field used to sort the returned traces. Can be one of the following:
trace_idname(namefield of root span in the trace)duration(difference betweenend_timeandstart_timefields of the root span)start(start_timefield of the root span)
Descending order can be specified by appending desc to the sort field
(for example, name desc).
Only one sort field is permitted.
Implementations§
Source§impl ListTracesRequest
impl ListTracesRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
use wkt::Timestamp;
let x = ListTracesRequest::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
use wkt::Timestamp;
let x = ListTracesRequest::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = ListTracesRequest::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ListTracesRequest
impl Clone for ListTracesRequest
Source§fn clone(&self) -> ListTracesRequest
fn clone(&self) -> ListTracesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more