Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaEvaluation

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

Overview

An evaluation is a single execution (or run) of an evaluation process. It encapsulates the state of the evaluation and the resulting data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaEvaluation

Returns a new instance of GoogleCloudDiscoveryengineV1betaEvaluation.



18750
18751
18752
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18750

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

Instance Attribute Details

#create_timeString

Output only. Timestamp the Evaluation was created at. Corresponds to the JSON property createTime

Returns:

  • (String)


18706
18707
18708
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18706

def create_time
  @create_time
end

#end_timeString

Output only. Timestamp the Evaluation was completed at. Corresponds to the JSON property endTime

Returns:

  • (String)


18711
18712
18713
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18711

def end_time
  @end_time
end

#errorGoogle::Apis::DiscoveryengineV1::GoogleRpcStatus

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



18721
18722
18723
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18721

def error
  @error
end

#error_samplesArray<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>

Output only. A sample of errors encountered while processing the request. Corresponds to the JSON property errorSamples



18726
18727
18728
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18726

def error_samples
  @error_samples
end

#evaluation_specGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec

Describes the specification of the evaluation. Corresponds to the JSON property evaluationSpec



18731
18732
18733
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18731

def evaluation_spec
  @evaluation_spec
end

#nameString

Identifier. The full resource name of the Evaluation, in the format of projects/project/locations/location/evaluations/evaluation`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Corresponds to the JSON propertyname`

Returns:

  • (String)


18738
18739
18740
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18738

def name
  @name
end

#quality_metricsGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaQualityMetrics

Describes the metrics produced by the evaluation. Corresponds to the JSON property qualityMetrics



18743
18744
18745
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18743

def quality_metrics
  @quality_metrics
end

#stateString

Output only. The state of the evaluation. Corresponds to the JSON property state

Returns:

  • (String)


18748
18749
18750
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18748

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18755

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @error = args[:error] if args.key?(:error)
  @error_samples = args[:error_samples] if args.key?(:error_samples)
  @evaluation_spec = args[:evaluation_spec] if args.key?(:evaluation_spec)
  @name = args[:name] if args.key?(:name)
  @quality_metrics = args[:quality_metrics] if args.key?(:quality_metrics)
  @state = args[:state] if args.key?(:state)
end