Bump version, regen APIs
This commit is contained in:
1 parent
b8f6f7c2fe
commit
9237ba59cb
241 files changed
+53894
-50212
No files matched your search
@@ -22,6 +22,121 @@ module Google
|
||||
module Apis
|
||||
module CloudtraceV1
|
||||
|
||||
# List of new or updated traces.
|
||||
class Traces
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of traces.
|
||||
# Corresponds to the JSON property `traces`
|
||||
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
||||
attr_accessor :traces
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@traces = args[:traces] if args.key?(:traces)
|
||||
end
|
||||
end
|
||||
|
||||
# A span represents a single timed event within a trace. Spans can be nested
|
||||
# and form a trace tree. Often, a trace contains a root span that describes the
|
||||
# end-to-end latency of an operation and, optionally, one or more subspans for
|
||||
# its suboperations. Spans do not need to be contiguous. There may be gaps
|
||||
# between spans in a trace.
|
||||
class TraceSpan
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
||||
# and displayed in the Stackdriver Trace tool in the
|
||||
# `% dynamic print site_values.console_name %`.
|
||||
# The name may be a method name or some other per-call site name.
|
||||
# For the same executable and the same call point, a best practice is
|
||||
# to use a consistent name, which makes it easier to correlate
|
||||
# cross-trace spans.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
||||
# unique within a trace.
|
||||
# Corresponds to the JSON property `spanId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :span_id
|
||||
|
||||
# ID of the parent span, if any. Optional.
|
||||
# Corresponds to the JSON property `parentSpanId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :parent_span_id
|
||||
|
||||
# End time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# Start time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# Distinguishes between spans generated in a particular context. For example,
|
||||
# two spans with the same name may be distinguished using `RPC_CLIENT`
|
||||
# and `RPC_SERVER` to identify queueing latency associated with the span.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# Collection of labels associated with the span. Label keys must be less than
|
||||
# 128 bytes. Label values must be less than 16 kilobytes (10MB for
|
||||
# `/stacktrace` values).
|
||||
# Some predefined label keys exist, or you may create your own. When creating
|
||||
# your own, we recommend the following formats:
|
||||
# * `/category/product/key` for agents of well-known products (e.g.
|
||||
# `/db/mongodb/read_size`).
|
||||
# * `short_host/path/key` for domain-specific keys (e.g.
|
||||
# `foo.com/myproduct/bar`)
|
||||
# Predefined labels include:
|
||||
# * `/agent`
|
||||
# * `/component`
|
||||
# * `/error/message`
|
||||
# * `/error/name`
|
||||
# * `/http/client_city`
|
||||
# * `/http/client_country`
|
||||
# * `/http/client_protocol`
|
||||
# * `/http/client_region`
|
||||
# * `/http/host`
|
||||
# * `/http/method`
|
||||
# * `/http/redirected_url`
|
||||
# * `/http/request/size`
|
||||
# * `/http/response/size`
|
||||
# * `/http/status_code`
|
||||
# * `/http/url`
|
||||
# * `/http/user_agent`
|
||||
# * `/pid`
|
||||
# * `/stacktrace`
|
||||
# * `/tid`
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@span_id = args[:span_id] if args.key?(:span_id)
|
||||
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for the `ListTraces` method.
|
||||
class ListTracesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -101,121 +216,6 @@ module Google
|
||||
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
||||
end
|
||||
end
|
||||
|
||||
# List of new or updated traces.
|
||||
class Traces
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of traces.
|
||||
# Corresponds to the JSON property `traces`
|
||||
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
|
||||
attr_accessor :traces
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@traces = args[:traces] if args.key?(:traces)
|
||||
end
|
||||
end
|
||||
|
||||
# A span represents a single timed event within a trace. Spans can be nested
|
||||
# and form a trace tree. Often, a trace contains a root span that describes the
|
||||
# end-to-end latency of an operation and, optionally, one or more subspans for
|
||||
# its suboperations. Spans do not need to be contiguous. There may be gaps
|
||||
# between spans in a trace.
|
||||
class TraceSpan
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Collection of labels associated with the span. Label keys must be less than
|
||||
# 128 bytes. Label values must be less than 16 kilobytes (10MB for
|
||||
# `/stacktrace` values).
|
||||
# Some predefined label keys exist, or you may create your own. When creating
|
||||
# your own, we recommend the following formats:
|
||||
# * `/category/product/key` for agents of well-known products (e.g.
|
||||
# `/db/mongodb/read_size`).
|
||||
# * `short_host/path/key` for domain-specific keys (e.g.
|
||||
# `foo.com/myproduct/bar`)
|
||||
# Predefined labels include:
|
||||
# * `/agent`
|
||||
# * `/component`
|
||||
# * `/error/message`
|
||||
# * `/error/name`
|
||||
# * `/http/client_city`
|
||||
# * `/http/client_country`
|
||||
# * `/http/client_protocol`
|
||||
# * `/http/client_region`
|
||||
# * `/http/host`
|
||||
# * `/http/method`
|
||||
# * `/http/redirected_url`
|
||||
# * `/http/request/size`
|
||||
# * `/http/response/size`
|
||||
# * `/http/status_code`
|
||||
# * `/http/url`
|
||||
# * `/http/user_agent`
|
||||
# * `/pid`
|
||||
# * `/stacktrace`
|
||||
# * `/tid`
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# Name of the span. Must be less than 128 bytes. The span name is sanitized
|
||||
# and displayed in the Stackdriver Trace tool in the
|
||||
# `% dynamic print site_values.console_name %`.
|
||||
# The name may be a method name or some other per-call site name.
|
||||
# For the same executable and the same call point, a best practice is
|
||||
# to use a consistent name, which makes it easier to correlate
|
||||
# cross-trace spans.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Identifier for the span. Must be a 64-bit integer other than 0 and
|
||||
# unique within a trace.
|
||||
# Corresponds to the JSON property `spanId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :span_id
|
||||
|
||||
# ID of the parent span, if any. Optional.
|
||||
# Corresponds to the JSON property `parentSpanId`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :parent_span_id
|
||||
|
||||
# End time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# Start time of the span in nanoseconds from the UNIX epoch.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# Distinguishes between spans generated in a particular context. For example,
|
||||
# two spans with the same name may be distinguished using `RPC_CLIENT`
|
||||
# and `RPC_SERVER` to identify queueing latency associated with the span.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@span_id = args[:span_id] if args.key?(:span_id)
|
||||
@parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,6 +22,18 @@ module Google
|
||||
module Apis
|
||||
module CloudtraceV1
|
||||
|
||||
class Traces
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TraceSpan
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListTracesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -41,15 +53,24 @@ module Google
|
||||
end
|
||||
|
||||
class Traces
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
end
|
||||
|
||||
class TraceSpan
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :span_id, :numeric_string => true, as: 'spanId'
|
||||
property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :kind, as: 'kind'
|
||||
hash :labels, as: 'labels'
|
||||
end
|
||||
end
|
||||
|
||||
class ListTracesResponse
|
||||
@@ -76,27 +97,6 @@ module Google
|
||||
property :trace_id, as: 'traceId'
|
||||
end
|
||||
end
|
||||
|
||||
class Traces
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class TraceSpan
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
hash :labels, as: 'labels'
|
||||
property :name, as: 'name'
|
||||
property :span_id, :numeric_string => true, as: 'spanId'
|
||||
property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
|
||||
property :end_time, as: 'endTime'
|
||||
property :start_time, as: 'startTime'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -90,13 +90,6 @@ module Google
|
||||
# Returns of a list of traces that match the specified filter conditions.
|
||||
# @param [String] project_id
|
||||
# ID of the Cloud project where the trace data is stored.
|
||||
# @param [Fixnum] page_size
|
||||
# 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.
|
||||
# @param [String] view
|
||||
# Type of data returned for traces in the list. Optional. Default is
|
||||
# `MINIMAL`.
|
||||
# @param [String] order_by
|
||||
# Field used to sort the returned traces. Optional.
|
||||
# Can be one of the following:
|
||||
@@ -140,12 +133,19 @@ module Google
|
||||
# @param [String] end_time
|
||||
# End of the time interval (inclusive) during which the trace data was
|
||||
# collected from the application.
|
||||
# @param [String] page_token
|
||||
# Token identifying the page of results to return. If provided, use the
|
||||
# value of the `next_page_token` field from a previous request. Optional.
|
||||
# @param [String] start_time
|
||||
# Start of the time interval (inclusive) during which the trace data was
|
||||
# collected from the application.
|
||||
# @param [String] page_token
|
||||
# Token identifying the page of results to return. If provided, use the
|
||||
# value of the `next_page_token` field from a previous request. Optional.
|
||||
# @param [Fixnum] page_size
|
||||
# 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.
|
||||
# @param [String] view
|
||||
# Type of data returned for traces in the list. Optional. Default is
|
||||
# `MINIMAL`.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
@@ -163,18 +163,18 @@ module Google
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_traces(project_id, page_size: nil, view: nil, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
|
||||
command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
|
||||
command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['endTime'] = end_time unless end_time.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['startTime'] = start_time unless start_time.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
||||
Reference in new issue
Block a user