Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CloudLoggingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Specifies configuration for exporting evaluation results to Cloud Logging.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1CloudLoggingConfig

Returns a new instance of GoogleCloudAiplatformV1CloudLoggingConfig.



5069
5070
5071
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5069

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

Instance Attribute Details

#projectString

Optional. Google Cloud project to write logs to. Defaults to the request project. Corresponds to the JSON property project

Returns:

  • (String)


5051
5052
5053
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5051

def project
  @project
end

#resource_labelsHash<String,String>

Optional. MonitoredResource labels to associate the log with. The backend will automatically inject project and location. Corresponds to the JSON property resourceLabels

Returns:

  • (Hash<String,String>)


5057
5058
5059
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5057

def resource_labels
  @resource_labels
end

#resource_typeString

Optional. MonitoredResource type. Defaults to "global" if unspecified. Corresponds to the JSON property resourceType

Returns:

  • (String)


5062
5063
5064
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5062

def resource_type
  @resource_type
end

#tracing_contextGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1CloudLoggingConfigTracingContext

Tracing context for Observability correlation. Corresponds to the JSON property tracingContext



5067
5068
5069
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5067

def tracing_context
  @tracing_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5074
5075
5076
5077
5078
5079
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5074

def update!(**args)
  @project = args[:project] if args.key?(:project)
  @resource_labels = args[:resource_labels] if args.key?(:resource_labels)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
  @tracing_context = args[:tracing_context] if args.key?(:tracing_context)
end