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

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

Overview

Defined Under Namespace

Modules: Subtype, Type Classes: Threshold

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(id: , comment_count: , creator_id: , date_archived: , date_created: , date_updated: , description: , name: , number: , origin_project_version_id: , subtype: , suggested: , thresholds: , type: , archived: nil, delay_window: nil, evaluation_window: nil, uses_ml_model: nil, uses_production_data: nil, uses_reference_dataset: nil, uses_training_dataset: nil, uses_validation_dataset: nil) ⇒ Object

Some parameter documentations has been truncated, see Openlayer::Models::Projects::TestCreateResponse for more details.

Parameters:

  • id (String) (defaults to: )

    The test id.

  • comment_count (Integer) (defaults to: )

    The number of comments on the test.

  • creator_id (String, nil) (defaults to: )

    The test creator id.

  • date_archived (Time, nil) (defaults to: )

    The date the test was archived.

  • date_created (Time) (defaults to: )

    The creation date.

  • date_updated (Time) (defaults to: )

    The last updated date.

  • description (Object, nil) (defaults to: )

    The test description.

  • name (String) (defaults to: )

    The test name.

  • number (Integer) (defaults to: )

    The test number.

  • origin_project_version_id (String, nil) (defaults to: )

    The project version (commit) id where the test was created.

  • subtype (Symbol, Openlayer::Models::Projects::TestCreateResponse::Subtype) (defaults to: )

    The test subtype.

  • suggested (Boolean) (defaults to: )

    Whether the test is suggested or user-created.

  • thresholds (Array<Openlayer::Models::Projects::TestCreateResponse::Threshold>) (defaults to: )
  • type (Symbol, Openlayer::Models::Projects::TestCreateResponse::Type) (defaults to: )

    The test type.

  • archived (Boolean) (defaults to: nil)

    Whether the test is archived.

  • delay_window (Float, nil) (defaults to: nil)

    The delay window in seconds. Only applies to tests that use production data.

  • evaluation_window (Float, nil) (defaults to: nil)

    The evaluation window in seconds. Only applies to tests that use production data

  • uses_ml_model (Boolean) (defaults to: nil)

    Whether the test uses an ML model.

  • uses_production_data (Boolean) (defaults to: nil)

    Whether the test uses production data (monitoring mode only).

  • uses_reference_dataset (Boolean) (defaults to: nil)

    Whether the test uses a reference dataset (monitoring mode only).

  • uses_training_dataset (Boolean) (defaults to: nil)

    Whether the test uses a training dataset.

  • uses_validation_dataset (Boolean) (defaults to: nil)

    Whether the test uses a validation dataset.



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

Instance Attribute Details

#archivedBoolean?

Whether the test is archived.

Returns:

  • (Boolean, nil)


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

optional :archived, Openlayer::Internal::Type::Boolean

#delay_windowFloat?

The delay window in seconds. Only applies to tests that use production data.

Returns:

  • (Float, nil)


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

optional :delay_window, Float, api_name: :delayWindow, nil?: true

#descriptionObject?

The test description.

Returns:

  • (Object, nil)


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

required :description, Openlayer::Internal::Type::Unknown, nil?: true

#evaluation_windowFloat?

The evaluation window in seconds. Only applies to tests that use production data.

Returns:

  • (Float, nil)


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

optional :evaluation_window, Float, api_name: :evaluationWindow, nil?: true

#nameString

The test name.

Returns:

  • (String)


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

required :name, String

#subtypeSymbol, Openlayer::Models::Projects::TestCreateResponse::Subtype

The test subtype.



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

required :subtype, enum: -> { Openlayer::Models::Projects::TestCreateResponse::Subtype }

#thresholdsArray<Openlayer::Models::Projects::TestCreateResponse::Threshold>



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

required :thresholds,
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Projects::TestCreateResponse::Threshold] }

#typeSymbol, Openlayer::Models::Projects::TestCreateResponse::Type

The test type.



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

required :type, enum: -> { Openlayer::Models::Projects::TestCreateResponse::Type }

#uses_ml_modelBoolean?

Whether the test uses an ML model.

Returns:

  • (Boolean, nil)


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

optional :uses_ml_model, Openlayer::Internal::Type::Boolean, api_name: :usesMlModel

#uses_production_dataBoolean?

Whether the test uses production data (monitoring mode only).

Returns:

  • (Boolean, nil)


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

optional :uses_production_data, Openlayer::Internal::Type::Boolean, api_name: :usesProductionData

#uses_reference_datasetBoolean?

Whether the test uses a reference dataset (monitoring mode only).

Returns:

  • (Boolean, nil)


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

optional :uses_reference_dataset, Openlayer::Internal::Type::Boolean, api_name: :usesReferenceDataset

#uses_training_datasetBoolean?

Whether the test uses a training dataset.

Returns:

  • (Boolean, nil)


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

optional :uses_training_dataset, Openlayer::Internal::Type::Boolean, api_name: :usesTrainingDataset

#uses_validation_datasetBoolean?

Whether the test uses a validation dataset.

Returns:

  • (Boolean, nil)


85
86
87
# File 'lib/openlayer/models/projects/test_create_response.rb', line 85

optional :uses_validation_dataset,
Openlayer::Internal::Type::Boolean,
api_name: :usesValidationDataset

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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