Module: Ovh::Api::Models::CloudProjectAiAppCustomMetricsAggregationTypeEnum

Defined in:
lib/ovh-api/models/cloud_project_ai_app_custom_metrics_aggregation_type_enum.rb

Constant Summary collapse

AVERAGE =
'AVERAGE'
MAX =
'MAX'
MIN =
'MIN'
SUM =
'SUM'

Class Method Summary collapse

Class Method Details

.allObject



16
17
18
19
20
21
22
23
# File 'lib/ovh-api/models/cloud_project_ai_app_custom_metrics_aggregation_type_enum.rb', line 16

def self.all
  @all ||= [
    AVERAGE,
    MAX,
    MIN,
    SUM,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ovh-api/models/cloud_project_ai_app_custom_metrics_aggregation_type_enum.rb', line 25

def self.valid?(value)
  all.include?(value)
end