Class: Google::Devtools::Cloudtrace::V1::ListTracesRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb

Overview

The request message for the +ListTraces+ method. All fields are required unless specified.

Defined Under Namespace

Modules: ViewType

Instance Attribute Summary collapse

Instance Attribute Details

#end_timeGoogle::Protobuf::Timestamp

Returns Start of the time interval (inclusive) during which the trace data was collected from the application.

Returns:

  • (Google::Protobuf::Timestamp)

    Start of the time interval (inclusive) during which the trace data was collected from the application.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb', line 147

class ListTracesRequest
  # Type of data returned for traces in the list.
  module ViewType
    # Default is +MINIMAL+ if unspecified.
    VIEW_TYPE_UNSPECIFIED = 0

    # Minimal view of the trace record that contains only the project
    # and trace IDs.
    MINIMAL = 1

    # Root span view of the trace record that returns the root spans along
    # with the minimal trace data.
    ROOTSPAN = 2

    # Complete view of the trace record that contains the actual trace data.
    # This is equivalent to calling the REST +get+ or RPC +GetTrace+ method
    # using the ID of each listed trace.
    COMPLETE = 3
  end
end

#filterString

Returns An optional filter for the request.

Returns:

  • (String)

    An optional filter for the request.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb', line 147

class ListTracesRequest
  # Type of data returned for traces in the list.
  module ViewType
    # Default is +MINIMAL+ if unspecified.
    VIEW_TYPE_UNSPECIFIED = 0

    # Minimal view of the trace record that contains only the project
    # and trace IDs.
    MINIMAL = 1

    # Root span view of the trace record that returns the root spans along
    # with the minimal trace data.
    ROOTSPAN = 2

    # Complete view of the trace record that contains the actual trace data.
    # This is equivalent to calling the REST +get+ or RPC +GetTrace+ method
    # using the ID of each listed trace.
    COMPLETE = 3
  end
end

#order_byString

Returns Field used to sort the returned traces. Optional. Can be one of the following:

  • +trace_id+
  • +name+ (+name+ field of root span in the trace)
  • +duration+ (difference between +end_time+ and +start_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.

Returns:

  • (String)

    Field used to sort the returned traces. Optional. Can be one of the following:

    • +trace_id+
    • +name+ (+name+ field of root span in the trace)
    • +duration+ (difference between +end_time+ and +start_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.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb', line 147

class ListTracesRequest
  # Type of data returned for traces in the list.
  module ViewType
    # Default is +MINIMAL+ if unspecified.
    VIEW_TYPE_UNSPECIFIED = 0

    # Minimal view of the trace record that contains only the project
    # and trace IDs.
    MINIMAL = 1

    # Root span view of the trace record that returns the root spans along
    # with the minimal trace data.
    ROOTSPAN = 2

    # Complete view of the trace record that contains the actual trace data.
    # This is equivalent to calling the REST +get+ or RPC +GetTrace+ method
    # using the ID of each listed trace.
    COMPLETE = 3
  end
end

#page_sizeInteger

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. Optional.

Returns:

  • (Integer)

    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. Optional.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb', line 147

class ListTracesRequest
  # Type of data returned for traces in the list.
  module ViewType
    # Default is +MINIMAL+ if unspecified.
    VIEW_TYPE_UNSPECIFIED = 0

    # Minimal view of the trace record that contains only the project
    # and trace IDs.
    MINIMAL = 1

    # Root span view of the trace record that returns the root spans along
    # with the minimal trace data.
    ROOTSPAN = 2

    # Complete view of the trace record that contains the actual trace data.
    # This is equivalent to calling the REST +get+ or RPC +GetTrace+ method
    # using the ID of each listed trace.
    COMPLETE = 3
  end
end

#page_tokenString

Returns Token identifying the page of results to return. If provided, use the value of the +next_page_token+ field from a previous request. Optional.

Returns:

  • (String)

    Token identifying the page of results to return. If provided, use the value of the +next_page_token+ field from a previous request. Optional.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb', line 147

class ListTracesRequest
  # Type of data returned for traces in the list.
  module ViewType
    # Default is +MINIMAL+ if unspecified.
    VIEW_TYPE_UNSPECIFIED = 0

    # Minimal view of the trace record that contains only the project
    # and trace IDs.
    MINIMAL = 1

    # Root span view of the trace record that returns the root spans along
    # with the minimal trace data.
    ROOTSPAN = 2

    # Complete view of the trace record that contains the actual trace data.
    # This is equivalent to calling the REST +get+ or RPC +GetTrace+ method
    # using the ID of each listed trace.
    COMPLETE = 3
  end
end

#project_idString

Returns ID of the Cloud project where the trace data is stored.

Returns:

  • (String)

    ID of the Cloud project where the trace data is stored.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb', line 147

class ListTracesRequest
  # Type of data returned for traces in the list.
  module ViewType
    # Default is +MINIMAL+ if unspecified.
    VIEW_TYPE_UNSPECIFIED = 0

    # Minimal view of the trace record that contains only the project
    # and trace IDs.
    MINIMAL = 1

    # Root span view of the trace record that returns the root spans along
    # with the minimal trace data.
    ROOTSPAN = 2

    # Complete view of the trace record that contains the actual trace data.
    # This is equivalent to calling the REST +get+ or RPC +GetTrace+ method
    # using the ID of each listed trace.
    COMPLETE = 3
  end
end

#start_timeGoogle::Protobuf::Timestamp

Returns End of the time interval (inclusive) during which the trace data was collected from the application.

Returns:

  • (Google::Protobuf::Timestamp)

    End of the time interval (inclusive) during which the trace data was collected from the application.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb', line 147

class ListTracesRequest
  # Type of data returned for traces in the list.
  module ViewType
    # Default is +MINIMAL+ if unspecified.
    VIEW_TYPE_UNSPECIFIED = 0

    # Minimal view of the trace record that contains only the project
    # and trace IDs.
    MINIMAL = 1

    # Root span view of the trace record that returns the root spans along
    # with the minimal trace data.
    ROOTSPAN = 2

    # Complete view of the trace record that contains the actual trace data.
    # This is equivalent to calling the REST +get+ or RPC +GetTrace+ method
    # using the ID of each listed trace.
    COMPLETE = 3
  end
end

#viewGoogle::Devtools::Cloudtrace::V1::ListTracesRequest::ViewType

Returns Type of data returned for traces in the list. Optional. Default is +MINIMAL+.

Returns:



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb', line 147

class ListTracesRequest
  # Type of data returned for traces in the list.
  module ViewType
    # Default is +MINIMAL+ if unspecified.
    VIEW_TYPE_UNSPECIFIED = 0

    # Minimal view of the trace record that contains only the project
    # and trace IDs.
    MINIMAL = 1

    # Root span view of the trace record that returns the root spans along
    # with the minimal trace data.
    ROOTSPAN = 2

    # Complete view of the trace record that contains the actual trace data.
    # This is equivalent to calling the REST +get+ or RPC +GetTrace+ method
    # using the ID of each listed trace.
    COMPLETE = 3
  end
end