Class: Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/test_list_results_response.rb,
sig/openlayer/models/test_list_results_response.rbs

Overview

See Also:

  • Openlayer::Models::TestListResultsResponse::LastUnskippedResult#goal

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::TestListResultsResponse::LastUnskippedResult::Goal for more details.

Parameters:

  • id (String)

    The test id.

  • comment_count (Integer)

    The number of comments on the test.

  • creator_id (String, nil)

    The test creator id.

  • date_archived (Time, nil)

    The date the test was archived.

  • date_created (Time)

    The creation date.

  • date_updated (Time)

    The last updated date.

  • description (Object, nil)

    The test description.

  • name (String)

    The test name.

  • number (Integer)

    The test number.

  • origin_project_version_id (String, nil)

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

  • subtype (Symbol, Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Subtype)

    The test subtype.

  • suggested (Boolean)

    Whether the test is suggested or user-created.

  • thresholds (Array<Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Threshold>)
  • type (Symbol, Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Type)

    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/test_list_results_response.rb', line 1151

Instance Attribute Details

#archivedBoolean?

Whether the test is archived.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1046
# File 'lib/openlayer/models/test_list_results_response.rb', line 1046

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

#comment_countInteger

Returns the value of attribute comment_count.

Returns:

  • (Integer)


982
983
984
# File 'sig/openlayer/models/test_list_results_response.rbs', line 982

def comment_count
  @comment_count
end

#creator_idString?

Returns the value of attribute creator_id.

Returns:

  • (String, nil)


984
985
986
# File 'sig/openlayer/models/test_list_results_response.rbs', line 984

def creator_id
  @creator_id
end

#date_archivedTime?

Returns the value of attribute date_archived.

Returns:

  • (Time, nil)


986
987
988
# File 'sig/openlayer/models/test_list_results_response.rbs', line 986

def date_archived
  @date_archived
end

#date_createdTime

Returns the value of attribute date_created.

Returns:

  • (Time)


988
989
990
# File 'sig/openlayer/models/test_list_results_response.rbs', line 988

def date_created
  @date_created
end

#date_updatedTime

Returns the value of attribute date_updated.

Returns:

  • (Time)


990
991
992
# File 'sig/openlayer/models/test_list_results_response.rbs', line 990

def date_updated
  @date_updated
end

#delay_windowFloat?

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

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


1052
# File 'lib/openlayer/models/test_list_results_response.rb', line 1052

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

#descriptionObject?

The test description.

Parameters:

  • value (top, nil)

Returns:

  • (Object, nil)


1015
# File 'lib/openlayer/models/test_list_results_response.rb', line 1015

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

#evaluation_windowFloat?

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

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


1059
# File 'lib/openlayer/models/test_list_results_response.rb', line 1059

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

#idString

Returns the value of attribute id.

Returns:

  • (String)


980
981
982
# File 'sig/openlayer/models/test_list_results_response.rbs', line 980

def id
  @id
end

#nameString

The test name.

Parameters:

  • value (String)

Returns:

  • (String)


1021
# File 'lib/openlayer/models/test_list_results_response.rb', line 1021

required :name, String

#numberInteger

Returns the value of attribute number.

Returns:

  • (Integer)


992
993
994
# File 'sig/openlayer/models/test_list_results_response.rbs', line 992

def number
  @number
end

#origin_project_version_idString?

Returns the value of attribute origin_project_version_id.

Returns:

  • (String, nil)


994
995
996
# File 'sig/openlayer/models/test_list_results_response.rbs', line 994

def origin_project_version_id
  @origin_project_version_id
end

#subtypeSymbol, Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Subtype

The test subtype.

Parameters:

  • value (Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::subtype)

Returns:



1027
1028
# File 'lib/openlayer/models/test_list_results_response.rb', line 1027

required :subtype,
enum: -> { Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Subtype }

#suggestedBoolean

Returns the value of attribute suggested.

Returns:

  • (Boolean)


996
997
998
# File 'sig/openlayer/models/test_list_results_response.rbs', line 996

def suggested
  @suggested
end

#thresholdsArray<Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Threshold>



1033
1034
# File 'lib/openlayer/models/test_list_results_response.rb', line 1033

required :thresholds,
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Threshold] }

#typeSymbol, Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Type

The test type.

Parameters:

  • value (Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::type_)

Returns:



1040
# File 'lib/openlayer/models/test_list_results_response.rb', line 1040

required :type, enum: -> { Openlayer::Models::TestListResultsResponse::LastUnskippedResult::Goal::Type }

#uses_ml_modelBoolean?

Whether the test uses an ML model.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1065
# File 'lib/openlayer/models/test_list_results_response.rb', line 1065

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

#uses_production_dataBoolean?

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

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1071
# File 'lib/openlayer/models/test_list_results_response.rb', line 1071

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

#uses_reference_datasetBoolean?

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

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1077
1078
1079
# File 'lib/openlayer/models/test_list_results_response.rb', line 1077

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

#uses_training_datasetBoolean?

Whether the test uses a training dataset.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1085
# File 'lib/openlayer/models/test_list_results_response.rb', line 1085

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

#uses_validation_datasetBoolean?

Whether the test uses a validation dataset.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1091
1092
1093
# File 'lib/openlayer/models/test_list_results_response.rb', line 1091

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openlayer/models/test_list_results_response.rb', line 1248

Instance Method Details

#to_hash{

Returns:

  • ({)


1023
# File 'sig/openlayer/models/test_list_results_response.rbs', line 1023

def to_hash: -> {