Autogenerated update (2017-11-10)
Update: - adexchangebuyer2_v2beta1 - analyticsreporting_v4 - cloudtrace_v1 - cloudtrace_v2 - container_v1 - container_v1beta1 - deploymentmanager_alpha - deploymentmanager_v2beta - firebasedynamiclinks_v1 - oslogin_v1alpha - oslogin_v1beta - people_v1 - servicemanagement_v1 - serviceuser_v1 - youtube_partner_v1
This commit is contained in:
1 parent
c387e3f320
commit
b3f83d598e
40 files changed
+1187
-282
No files matched your search
@@ -116,7 +116,8 @@ module Google
|
||||
class BatchWriteSpansRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A collection of spans.
|
||||
# A list of new spans. The span names must not match existing
|
||||
# spans, or the results are undefined.
|
||||
# Corresponds to the JSON property `spans`
|
||||
# @return [Array<Google::Apis::CloudtraceV2::Span>]
|
||||
attr_accessor :spans
|
||||
@@ -162,12 +163,12 @@ module Google
|
||||
# @return [Google::Apis::CloudtraceV2::Attributes]
|
||||
attr_accessor :attributes
|
||||
|
||||
# `SPAN_ID` identifies a span within a trace.
|
||||
# The [SPAN_ID] for a span within a trace.
|
||||
# Corresponds to the JSON property `spanId`
|
||||
# @return [String]
|
||||
attr_accessor :span_id
|
||||
|
||||
# `TRACE_ID` identifies a trace within a project.
|
||||
# The [TRACE_ID] for a trace within a project.
|
||||
# Corresponds to the JSON property `traceId`
|
||||
# @return [String]
|
||||
attr_accessor :trace_id
|
||||
@@ -323,9 +324,10 @@ module Google
|
||||
|
||||
# The resource name of the span in the following format:
|
||||
# projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
|
||||
# identifier for a trace within a project.
|
||||
# [SPAN_ID] is a unique identifier for a span within a trace,
|
||||
# assigned when the span is created.
|
||||
# identifier for a trace within a project;
|
||||
# it is a 32-character hexadecimal encoding of a 16-byte array.
|
||||
# [SPAN_ID] is a unique identifier for a span within a trace; it
|
||||
# is a 16-character hexadecimal encoding of an 8-byte array.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
@@ -336,16 +338,16 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :parent_span_id
|
||||
|
||||
# A highly recommended but not required flag that identifies when a trace
|
||||
# crosses a process boundary. True when the parent_span belongs to the
|
||||
# same process as the current span.
|
||||
# (Optional) Set this parameter to indicate whether this span is in
|
||||
# the same process as its parent. If you do not set this parameter,
|
||||
# Stackdriver Trace is unable to take advantage of this helpful
|
||||
# information.
|
||||
# Corresponds to the JSON property `sameProcessAsParentSpan`
|
||||
# @return [Boolean]
|
||||
attr_accessor :same_process_as_parent_span
|
||||
alias_method :same_process_as_parent_span?, :same_process_as_parent_span
|
||||
|
||||
# The [SPAN_ID] portion of the span's resource name.
|
||||
# The ID is a 16-character hexadecimal encoding of an 8-byte array.
|
||||
# Corresponds to the JSON property `spanId`
|
||||
# @return [String]
|
||||
attr_accessor :span_id
|
||||
@@ -696,12 +698,12 @@ module Google
|
||||
# @return [Fixnum]
|
||||
attr_accessor :truncated_byte_count
|
||||
|
||||
# The shortened string. For example, if the original string was 500
|
||||
# bytes long and the limit of the string was 128 bytes, then this
|
||||
# value contains the first 128 bytes of the 500-byte string. Note that
|
||||
# truncation always happens on the character boundary, to ensure that
|
||||
# truncated string is still valid UTF8. In case of multi-byte characters,
|
||||
# size of truncated string can be less than truncation limit.
|
||||
# The shortened string. For example, if the original string is 500
|
||||
# bytes long and the limit of the string is 128 bytes, then
|
||||
# `value` contains the first 128 bytes of the 500-byte string.
|
||||
# Truncation always happens on a UTF8 character boundary. If there
|
||||
# are multi-byte characters in the string, then the length of the
|
||||
# shortened string might be less than the size limit.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
@@ -22,10 +22,9 @@ module Google
|
||||
module CloudtraceV2
|
||||
# Stackdriver Trace API
|
||||
#
|
||||
# Send and retrieve trace data from Stackdriver Trace. Data is generated and
|
||||
# available by default for all App Engine applications. Data from other
|
||||
# applications can be written to Stackdriver Trace for display, reporting, and
|
||||
# analysis.
|
||||
# Sends application trace data to Stackdriver Trace for viewing. Trace data is
|
||||
# collected for all App Engine applications by default. Trace data from other
|
||||
# applications can be provided using this API.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/cloudtrace_v2'
|
||||
@@ -50,14 +49,11 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Sends new spans to Stackdriver Trace or updates existing traces. If the
|
||||
# name of a trace that you send matches that of an existing trace, new spans
|
||||
# are added to the existing trace. Attempt to update existing spans results
|
||||
# undefined behavior. If the name does not match, a new trace is created
|
||||
# with given set of spans.
|
||||
# Sends new spans to new or existing traces. You cannot update
|
||||
# existing spans.
|
||||
# @param [String] name
|
||||
# Required. Name of the project where the spans belong. The format is
|
||||
# `projects/PROJECT_ID`.
|
||||
# Required. The name of the project where the spans belong. The format is
|
||||
# `projects/[PROJECT_ID]`.
|
||||
# @param [Google::Apis::CloudtraceV2::BatchWriteSpansRequest] batch_write_spans_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -88,13 +84,14 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a new Span.
|
||||
# Creates a new span.
|
||||
# @param [String] name
|
||||
# The resource name of the span in the following format:
|
||||
# projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique
|
||||
# identifier for a trace within a project.
|
||||
# [SPAN_ID] is a unique identifier for a span within a trace,
|
||||
# assigned when the span is created.
|
||||
# identifier for a trace within a project;
|
||||
# it is a 32-character hexadecimal encoding of a 16-byte array.
|
||||
# [SPAN_ID] is a unique identifier for a span within a trace; it
|
||||
# is a 16-character hexadecimal encoding of an 8-byte array.
|
||||
# @param [Google::Apis::CloudtraceV2::Span] span_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -114,7 +111,7 @@ module Google
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_trace_span(name, span_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v2/{+name}', options)
|
||||
command = make_simple_command(:post, 'v2/{+name}/spans', options)
|
||||
command.request_representation = Google::Apis::CloudtraceV2::Span::Representation
|
||||
command.request_object = span_object
|
||||
command.response_representation = Google::Apis::CloudtraceV2::Span::Representation
|
||||
|
||||
Reference in new issue
Block a user