Class: Google::Apis::CloudtraceV2beta1::TraceSink

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudtrace_v2beta1/classes.rb,
generated/google/apis/cloudtrace_v2beta1/representations.rb,
generated/google/apis/cloudtrace_v2beta1/representations.rb

Overview

Describes a sink used to export traces to a BigQuery dataset. The sink must be created within a project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TraceSink

Returns a new instance of TraceSink.



131
132
133
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 131

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Required. The canonical sink resource name, unique within the project. Must be of the form: project/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: "projects/12345/traceSinks/my-project-trace-sink". Sink identifiers are limited to 256 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods. Corresponds to the JSON property name

Returns:

  • (String)


108
109
110
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 108

def name
  @name
end

#output_configGoogle::Apis::CloudtraceV2beta1::OutputConfig

OutputConfig contains a destination for writing trace data. Corresponds to the JSON property outputConfig



113
114
115
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 113

def output_config
  @output_config
end

#writer_identityString

Output only. A service account name for exporting the data. This field is set by sinks.create and sinks.update. The service account will need to be granted write access to the destination specified in the output configuration, see Granting access for a resource. To create tables and write data this account will need the dataEditor role. Read more about roles in the BigQuery documentation. E.g.: "service-00000001@00000002.iam.gserviceaccount.com" Corresponds to the JSON property writerIdentity

Returns:

  • (String)


129
130
131
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 129

def writer_identity
  @writer_identity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



136
137
138
139
140
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 136

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @output_config = args[:output_config] if args.key?(:output_config)
  @writer_identity = args[:writer_identity] if args.key?(:writer_identity)
end