Class: ExperimentStatistics
- Inherits:
-
Object
- Object
- ExperimentStatistics
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/experiment_model_types.rb
Constant Summary collapse
- ALLEXPERIMENTCOUNT =
1
- COMPLETEDEXPERIMENTCOUNT =
2
- CANCELLEDEXPERIMENTCOUNT =
3
- FAILEDEXPERIMENTCOUNT =
4
- CREATEDEXPERIMENTCOUNT =
5
- RUNNINGEXPERIMENTCOUNT =
6
- ALLEXPERIMENTS =
7
- COMPLETEDEXPERIMENTS =
8
- FAILEDEXPERIMENTS =
9
- CANCELLEDEXPERIMENTS =
10
- CREATEDEXPERIMENTS =
11
- RUNNINGEXPERIMENTS =
12
- FIELDS =
{ ALLEXPERIMENTCOUNT => {:type => ::Thrift::Types::I32, :name => 'allExperimentCount'}, COMPLETEDEXPERIMENTCOUNT => {:type => ::Thrift::Types::I32, :name => 'completedExperimentCount'}, CANCELLEDEXPERIMENTCOUNT => {:type => ::Thrift::Types::I32, :name => 'cancelledExperimentCount', :optional => true}, FAILEDEXPERIMENTCOUNT => {:type => ::Thrift::Types::I32, :name => 'failedExperimentCount'}, CREATEDEXPERIMENTCOUNT => {:type => ::Thrift::Types::I32, :name => 'createdExperimentCount'}, RUNNINGEXPERIMENTCOUNT => {:type => ::Thrift::Types::I32, :name => 'runningExperimentCount'}, ALLEXPERIMENTS => {:type => ::Thrift::Types::LIST, :name => 'allExperiments', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ExperimentSummaryModel}}, COMPLETEDEXPERIMENTS => {:type => ::Thrift::Types::LIST, :name => 'completedExperiments', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ExperimentSummaryModel}, :optional => true}, FAILEDEXPERIMENTS => {:type => ::Thrift::Types::LIST, :name => 'failedExperiments', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ExperimentSummaryModel}, :optional => true}, CANCELLEDEXPERIMENTS => {:type => ::Thrift::Types::LIST, :name => 'cancelledExperiments', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ExperimentSummaryModel}, :optional => true}, CREATEDEXPERIMENTS => {:type => ::Thrift::Types::LIST, :name => 'createdExperiments', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ExperimentSummaryModel}, :optional => true}, RUNNINGEXPERIMENTS => {:type => ::Thrift::Types::LIST, :name => 'runningExperiments', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ExperimentSummaryModel}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
233 |
# File 'lib/experiment_model_types.rb', line 233 def struct_fields; FIELDS; end |
#validate ⇒ Object
235 236 237 238 239 240 241 242 |
# File 'lib/experiment_model_types.rb', line 235 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field allExperimentCount is unset!') unless @allExperimentCount raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field completedExperimentCount is unset!') unless @completedExperimentCount raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field failedExperimentCount is unset!') unless @failedExperimentCount raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field createdExperimentCount is unset!') unless @createdExperimentCount raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field runningExperimentCount is unset!') unless @runningExperimentCount raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field allExperiments is unset!') unless @allExperiments end |