Cloud Trace API - Class Google::Cloud::Trace::ResultSet (v0.44.0)

Reference documentation and code samples for the Cloud Trace API class Google::Cloud::Trace::ResultSet.

ResultSet represents the results of a list_traces request. It is an enumerable of the traces found, plus information about the request and a token to get the next page of results.

Inherits

  • Object

Includes

  • Enumerable

Methods

#each

def each(&block)

An each method that supports the Enumerable module. Iterates over the results and yields each, as a TraceRecord object, to the given block. If no block is provided, returns an Enumerator.

#end_time

def end_time() -> Time, nil

The end_time query parameter.

Returns
  • (Time, nil)

#filter

def filter() -> String, nil

The filter query parameter.

Returns
  • (String, nil)

#next_page

def next_page() -> Google::Cloud::Trace::ResultSet

Queries the service for the next page of results and returns a new ResultSet for that page. Returns nil if there are no more results.

#next_page_token

def next_page_token() -> String, nil

The token to pass to list_traces to get the next page, or nil if this is the last page.

Returns
  • (String, nil)

#order_by

def order_by() -> String, nil

The order_by query parameter.

Returns
  • (String, nil)

#page_size

def page_size() -> Integer, nil

The page_size query parameter.

Returns
  • (Integer, nil)

#page_token

def page_token() -> String, nil

The page token used to obtain this page of results.

Returns
  • (String, nil)

#project

def project() -> String

The project ID string.

Returns
  • (String)

#results_pending?

def results_pending?() -> Boolean

Returns true if at least one more page of results can be retrieved.

Returns
  • (Boolean)

#size

def size() -> Integer

Returns the number of traces in this page of results.

Returns
  • (Integer)

#start_time

def start_time() -> Time, nil

The start_time query parameter.

Returns
  • (Time, nil)

#view

def view() -> Symbol, nil

The view query parameter.

Returns
  • (Symbol, nil)