Class: Google::Apis::CloudtraceV2beta1::TraceSink
- Inherits:
-
Object
- Object
- Google::Apis::CloudtraceV2beta1::TraceSink
- 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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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
#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
108 109 110 |
# File 'generated/google/apis/cloudtrace_v2beta1/classes.rb', line 108 def name @name end |
#output_config ⇒ Google::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_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
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 |