Class: Openlayer::Models::Projects::TestCreateParams::Threshold

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/projects/test_create_params.rb

Defined Under Namespace

Modules: InsightName, Operator, ThresholdMode, Value Classes: InsightParameter

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(name: , value: ) ⇒ Object

Parameters:

  • name (String) (defaults to: )

    The name of the insight filter.

  • value (Object) (defaults to: )


# File 'lib/openlayer/models/projects/test_create_params.rb', line 222


Instance Attribute Details

#insight_nameSymbol, ...

The insight name to be evaluated.



179
180
181
# File 'lib/openlayer/models/projects/test_create_params.rb', line 179

optional :insight_name,
enum: -> { Openlayer::Projects::TestCreateParams::Threshold::InsightName },
api_name: :insightName

#insight_parametersArray<Openlayer::Models::Projects::TestCreateParams::Threshold::InsightParameter>?

The insight parameters. Required only for some test subtypes. For example, for tests that require a column name, the insight parameters will be [‘column_name’, ‘value’: ‘Age’]



189
190
191
192
193
194
# File 'lib/openlayer/models/projects/test_create_params.rb', line 189

optional :insight_parameters,
-> {
  Openlayer::Internal::Type::ArrayOf[Openlayer::Projects::TestCreateParams::Threshold::InsightParameter]
},
api_name: :insightParameters,
nil?: true

#measurementString?

The measurement to be evaluated.

Returns:

  • (String, nil)


200
# File 'lib/openlayer/models/projects/test_create_params.rb', line 200

optional :measurement, String

#operatorSymbol, ...

The operator to be used for the evaluation.



206
# File 'lib/openlayer/models/projects/test_create_params.rb', line 206

optional :operator, enum: -> { Openlayer::Projects::TestCreateParams::Threshold::Operator }

#threshold_modeSymbol, ...

Whether to use automatic anomaly detection or manual thresholds



212
213
214
# File 'lib/openlayer/models/projects/test_create_params.rb', line 212

optional :threshold_mode,
enum: -> { Openlayer::Projects::TestCreateParams::Threshold::ThresholdMode },
api_name: :thresholdMode

#valueFloat, ...

The value to be compared.

Returns:

  • (Float, Boolean, String, Array<String>, nil)


220
# File 'lib/openlayer/models/projects/test_create_params.rb', line 220

optional :value, union: -> { Openlayer::Projects::TestCreateParams::Threshold::Value }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openlayer/models/projects/test_create_params.rb', line 279