Struct google_api_proto::google::devtools::cloudtrace::v1::ListTracesRequest
source · pub struct ListTracesRequest {
pub project_id: String,
pub view: i32,
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,
}
Expand description
The request message for the ListTraces
method. All fields are required
unless specified.
Fields§
§project_id: String
Required. ID of the Cloud project where the trace data is stored.
view: i32
Optional. Type of data returned for traces in the list. Default is
MINIMAL
.
page_size: i32
Optional. 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: String
Token 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: String
Optional. 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_PREFIX
orNAME_PREFIX
: Return traces where any root span starts withNAME_PREFIX
.+root:NAME
or+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:24ms
returns 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: String
Optional. Field used to sort the returned traces. Can be one of the following:
trace_id
name
(name
field of root span in the trace)duration
(difference betweenend_time
andstart_time
fields of the root span)start
(start_time
field 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§
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 moresource§impl Debug for ListTracesRequest
impl Debug for ListTracesRequest
source§impl Default for ListTracesRequest
impl Default for ListTracesRequest
source§impl Message for ListTracesRequest
impl Message for ListTracesRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ListTracesRequest
impl PartialEq for ListTracesRequest
source§fn eq(&self, other: &ListTracesRequest) -> bool
fn eq(&self, other: &ListTracesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListTracesRequest
Auto Trait Implementations§
impl Freeze for ListTracesRequest
impl RefUnwindSafe for ListTracesRequest
impl Send for ListTracesRequest
impl Sync for ListTracesRequest
impl Unpin for ListTracesRequest
impl UnwindSafe for ListTracesRequest
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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