Class: Google::Apis::CloudtraceV2beta1::TraceSink
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2beta1::TraceSink
- 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
-
#name ⇒ String
Required.
-
#output_config ⇒ Google::Apis::CloudtraceV2beta1::OutputConfig
OutputConfig contains a destination for writing trace data.
-
#writer_identity ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TraceSink
constructor
A new instance of TraceSink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TraceSink
Returns a new instance of TraceSink.
120 121 122 |
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 120 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
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
101 102 103 |
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 101 def name @name end |
#output_config ⇒ Google::Apis::CloudtraceV2beta1::OutputConfig
OutputConfig contains a destination for writing trace data.
Corresponds to the JSON property outputConfig
106 107 108 |
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 106 def output_config @output_config end |
#writer_identity ⇒ String
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
118 119 120 |
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 118 def writer_identity @writer_identity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
125 126 127 128 129 |
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 125 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 |