2017-03-30 22:30:51 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module TracingV1
|
|
|
|
|
|
|
|
class Trace
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Module
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Status
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Empty
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListTracesResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class Span
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class AttributeValue
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class BatchUpdateSpansRequest
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class StackTrace
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class TimeEvent
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class NetworkEvent
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListSpansResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class SpanUpdates
|
2017-03-30 22:30:51 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class StackFrame
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Link
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Annotation
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
|
|
end
|
|
|
|
|
|
|
|
class Trace
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :name, as: 'name'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Module
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :build_id, as: 'buildId'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :module, as: 'module'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Status
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :code, as: 'code'
|
2017-03-30 22:30:51 +00:00
|
|
|
property :message, as: 'message'
|
|
|
|
collection :details, as: 'details'
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Empty
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ListTracesResponse
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :traces, as: 'traces', class: Google::Apis::TracingV1::Trace, decorator: Google::Apis::TracingV1::Trace::Representation
|
|
|
|
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Span
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :local_end_time, as: 'localEndTime'
|
|
|
|
property :parent_id, as: 'parentId'
|
|
|
|
collection :time_events, as: 'timeEvents', class: Google::Apis::TracingV1::TimeEvent, decorator: Google::Apis::TracingV1::TimeEvent::Representation
|
|
|
|
|
|
|
|
property :status, as: 'status', class: Google::Apis::TracingV1::Status, decorator: Google::Apis::TracingV1::Status::Representation
|
|
|
|
|
|
|
|
property :name, as: 'name'
|
|
|
|
property :stack_trace, as: 'stackTrace', class: Google::Apis::TracingV1::StackTrace, decorator: Google::Apis::TracingV1::StackTrace::Representation
|
|
|
|
|
|
|
|
collection :links, as: 'links', class: Google::Apis::TracingV1::Link, decorator: Google::Apis::TracingV1::Link::Representation
|
|
|
|
|
|
|
|
hash :attributes, as: 'attributes', class: Google::Apis::TracingV1::AttributeValue, decorator: Google::Apis::TracingV1::AttributeValue::Representation
|
|
|
|
|
|
|
|
property :id, as: 'id'
|
|
|
|
property :local_start_time, as: 'localStartTime'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :has_remote_parent, as: 'hasRemoteParent'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class AttributeValue
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :string_value, as: 'stringValue'
|
|
|
|
property :bool_value, as: 'boolValue'
|
2017-03-31 19:53:27 +00:00
|
|
|
property :int_value, as: 'intValue'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class BatchUpdateSpansRequest
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
hash :span_updates, as: 'spanUpdates', class: Google::Apis::TracingV1::SpanUpdates, decorator: Google::Apis::TracingV1::SpanUpdates::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class StackTrace
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :stack_frame, as: 'stackFrame', class: Google::Apis::TracingV1::StackFrame, decorator: Google::Apis::TracingV1::StackFrame::Representation
|
|
|
|
|
|
|
|
property :stack_trace_hash_id, as: 'stackTraceHashId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class TimeEvent
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :network_event, as: 'networkEvent', class: Google::Apis::TracingV1::NetworkEvent, decorator: Google::Apis::TracingV1::NetworkEvent::Representation
|
|
|
|
|
|
|
|
property :annotation, as: 'annotation', class: Google::Apis::TracingV1::Annotation, decorator: Google::Apis::TracingV1::Annotation::Representation
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
property :local_time, as: 'localTime'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class NetworkEvent
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :message_size, as: 'messageSize'
|
2017-03-30 22:30:51 +00:00
|
|
|
property :kernel_time, as: 'kernelTime'
|
|
|
|
property :type, as: 'type'
|
|
|
|
property :message_id, as: 'messageId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class ListSpansResponse
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :spans, as: 'spans', class: Google::Apis::TracingV1::Span, decorator: Google::Apis::TracingV1::Span::Representation
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
property :next_page_token, as: 'nextPageToken'
|
2017-03-30 22:30:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 19:53:27 +00:00
|
|
|
class SpanUpdates
|
2017-03-30 22:30:51 +00:00
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
collection :spans, as: 'spans', class: Google::Apis::TracingV1::Span, decorator: Google::Apis::TracingV1::Span::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class StackFrame
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :file_name, as: 'fileName'
|
|
|
|
property :source_version, as: 'sourceVersion'
|
|
|
|
property :original_function_name, as: 'originalFunctionName'
|
2017-03-30 22:30:51 +00:00
|
|
|
property :function_name, as: 'functionName'
|
|
|
|
property :line_number, as: 'lineNumber'
|
|
|
|
property :load_module, as: 'loadModule', class: Google::Apis::TracingV1::Module, decorator: Google::Apis::TracingV1::Module::Representation
|
|
|
|
|
|
|
|
property :column_number, as: 'columnNumber'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Link
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :type, as: 'type'
|
|
|
|
property :trace_id, as: 'traceId'
|
|
|
|
property :span_id, as: 'spanId'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Annotation
|
|
|
|
# @private
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2017-03-31 19:53:27 +00:00
|
|
|
property :description, as: 'description'
|
2017-03-30 22:30:51 +00:00
|
|
|
hash :attributes, as: 'attributes', class: Google::Apis::TracingV1::AttributeValue, decorator: Google::Apis::TracingV1::AttributeValue::Representation
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|