Class: CadenceThrift::PendingActivityInfo

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb

Constant Summary collapse

ACTIVITYID =
10
ACTIVITYTYPE =
20
STATE =
30
HEARTBEATDETAILS =
40
LASTHEARTBEATTIMESTAMP =
50
LASTSTARTEDTIMESTAMP =
60
ATTEMPT =
70
MAXIMUMATTEMPTS =
80
SCHEDULEDTIMESTAMP =
90
EXPIRATIONTIMESTAMP =
100
LASTFAILUREREASON =
110
LASTWORKERIDENTITY =
120
LASTFAILUREDETAILS =
130
FIELDS =
{
  ACTIVITYID => {:type => ::Thrift::Types::STRING, :name => 'activityID', :optional => true},
  ACTIVITYTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'activityType', :class => ::CadenceThrift::ActivityType, :optional => true},
  STATE => {:type => ::Thrift::Types::I32, :name => 'state', :optional => true, :enum_class => ::CadenceThrift::PendingActivityState},
  HEARTBEATDETAILS => {:type => ::Thrift::Types::STRING, :name => 'heartbeatDetails', :binary => true, :optional => true},
  LASTHEARTBEATTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'lastHeartbeatTimestamp', :optional => true},
  LASTSTARTEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'lastStartedTimestamp', :optional => true},
  ATTEMPT => {:type => ::Thrift::Types::I32, :name => 'attempt', :optional => true},
  MAXIMUMATTEMPTS => {:type => ::Thrift::Types::I32, :name => 'maximumAttempts', :optional => true},
  SCHEDULEDTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'scheduledTimestamp', :optional => true},
  EXPIRATIONTIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'expirationTimestamp', :optional => true},
  LASTFAILUREREASON => {:type => ::Thrift::Types::STRING, :name => 'lastFailureReason', :optional => true},
  LASTWORKERIDENTITY => {:type => ::Thrift::Types::STRING, :name => 'lastWorkerIdentity', :optional => true},
  LASTFAILUREDETAILS => {:type => ::Thrift::Types::STRING, :name => 'lastFailureDetails', :binary => true, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



4274
# File 'lib/gen/thrift/shared_types.rb', line 4274

def struct_fields; FIELDS; end

#validateObject



4276
4277
4278
4279
4280
# File 'lib/gen/thrift/shared_types.rb', line 4276

def validate
  unless @state.nil? || ::CadenceThrift::PendingActivityState::VALID_VALUES.include?(@state)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field state!')
  end
end