Class: Openlayer::Models::Projects::TestCreateResponse::Threshold

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/projects/test_create_response.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_response.rb', line 291

Instance Attribute Details

#insight_nameSymbol, ...

The insight name to be evaluated.



250
251
252
# File 'lib/openlayer/models/projects/test_create_response.rb', line 250

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

#insight_parametersArray<Openlayer::Models::Projects::TestCreateResponse::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’]



260
261
262
263
# File 'lib/openlayer/models/projects/test_create_response.rb', line 260

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

#measurementString?

The measurement to be evaluated.

Returns:

  • (String, nil)


269
# File 'lib/openlayer/models/projects/test_create_response.rb', line 269

optional :measurement, String

#operatorSymbol, ...

The operator to be used for the evaluation.



275
# File 'lib/openlayer/models/projects/test_create_response.rb', line 275

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

#threshold_modeSymbol, ...

Whether to use automatic anomaly detection or manual thresholds



281
282
283
# File 'lib/openlayer/models/projects/test_create_response.rb', line 281

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

#valueFloat, ...

The value to be compared.

Returns:

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


289
# File 'lib/openlayer/models/projects/test_create_response.rb', line 289

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openlayer/models/projects/test_create_response.rb', line 348