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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudtrace_v2beta1/classes.rb,
lib/google/apis/cloudtrace_v2beta1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ TraceSink

Returns a new instance of TraceSink.



119
120
121
# File 'lib/google/apis/cloudtrace_v2beta1/classes.rb', line 119

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

Instance Attribute Details

#nameString

Identifier. The canonical sink resource name, unique within the project. Must be of the form: projects/[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)


100
101
102
# File 'lib/google/apis/cloudtrace_v2beta1/classes.rb', line 100

def name
  @name
end

#output_configGoogle::Apis::CloudtraceV2beta1::OutputConfig

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



105
106
107
# File 'lib/google/apis/cloudtrace_v2beta1/classes.rb', line 105

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 to write data, this account needs 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)


117
118
119
# File 'lib/google/apis/cloudtrace_v2beta1/classes.rb', line 117

def writer_identity
  @writer_identity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



124
125
126
127
128
# File 'lib/google/apis/cloudtrace_v2beta1/classes.rb', line 124

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