Reference documentation and code samples for the Cloud Trace V1 API class Google::Cloud::Trace::V1::ListTracesRequest.
The request message for the ListTraces method. All fields are required
unless specified.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#end_time
def end_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — End of the time interval (inclusive) during which the trace data was collected from the application.
#end_time=
def end_time=(value) -> ::Google::Protobuf::Timestamp- value (::Google::Protobuf::Timestamp) — End of the time interval (inclusive) during which the trace data was collected from the application.
- (::Google::Protobuf::Timestamp) — End of the time interval (inclusive) during which the trace data was collected from the application.
#filter
def filter() -> ::String-
(::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_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.
-
#filter=
def filter=(value) -> ::String-
value (::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_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.
-
-
(::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_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
def order_by() -> ::String-
(::String) — Optional. Field used to sort the returned traces.
Can be one of the following:
-
trace_id -
name(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
descto the sort field (for example,name desc).Only one sort field is permitted.
-
#order_by=
def order_by=(value) -> ::String-
value (::String) — Optional. Field used to sort the returned traces.
Can be one of the following:
-
trace_id -
name(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
descto the sort field (for example,name desc).Only one sort field is permitted.
-
-
(::String) — Optional. Field used to sort the returned traces.
Can be one of the following:
-
trace_id -
name(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
descto the sort field (for example,name desc).Only one sort field is permitted.
-
#page_size
def page_size() -> ::Integer- (::Integer) — 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_size=
def page_size=(value) -> ::Integer- value (::Integer) — 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.
- (::Integer) — 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
def page_token() -> ::String-
(::String) — Token identifying the page of results to return. If provided, use the
value of the
next_page_tokenfield from a previous request.
#page_token=
def page_token=(value) -> ::String-
value (::String) — Token identifying the page of results to return. If provided, use the
value of the
next_page_tokenfield from a previous request.
-
(::String) — Token identifying the page of results to return. If provided, use the
value of the
next_page_tokenfield from a previous request.
#project_id
def project_id() -> ::String- (::String) — Required. ID of the Cloud project where the trace data is stored.
#project_id=
def project_id=(value) -> ::String- value (::String) — Required. ID of the Cloud project where the trace data is stored.
- (::String) — Required. ID of the Cloud project where the trace data is stored.
#start_time
def start_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Start of the time interval (inclusive) during which the trace data was collected from the application.
#start_time=
def start_time=(value) -> ::Google::Protobuf::Timestamp- value (::Google::Protobuf::Timestamp) — Start of the time interval (inclusive) during which the trace data was collected from the application.
- (::Google::Protobuf::Timestamp) — Start of the time interval (inclusive) during which the trace data was collected from the application.
#view
def view() -> ::Google::Cloud::Trace::V1::ListTracesRequest::ViewType-
(::Google::Cloud::Trace::V1::ListTracesRequest::ViewType) — Optional. Type of data returned for traces in the list. Default is
MINIMAL.
#view=
def view=(value) -> ::Google::Cloud::Trace::V1::ListTracesRequest::ViewType-
value (::Google::Cloud::Trace::V1::ListTracesRequest::ViewType) — Optional. Type of data returned for traces in the list. Default is
MINIMAL.
-
(::Google::Cloud::Trace::V1::ListTracesRequest::ViewType) — Optional. Type of data returned for traces in the list. Default is
MINIMAL.