class Google::Apis::CloudtraceV2beta1::TraceSink
Describes a sink used to export traces to a BigQuery dataset. The sink must be created within a project.
Attributes
Required. The canonical sink resource name, unique within the project. Must be of the form: project//traceSinks/. 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` @return [String]
OutputConfig
contains a destination for writing trace data. Corresponds to the JSON property `outputConfig` @return [Google::Apis::CloudtraceV2beta1::OutputConfig]
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](/iam/docs/granting-roles-to-service-accounts# granting_access_to_a_service_account_for_a_resource). To create tables and write data this account will need the dataEditor role. Read more about roles in the [BigQuery documentation](cloud.google.com/bigquery/docs/access- control). E.g.: “service-00000001@00000002.iam.gserviceaccount.com” Corresponds to the JSON property `writerIdentity` @return [String]
Public Class Methods
# File lib/google/apis/cloudtrace_v2beta1/classes.rb, line 120 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/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