Class: Openlayer::Models::InferencePipelineRetrieveUsersResponse::Item

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

Instance Attribute 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:, cost:, date_of_first_record:, date_of_last_record:, records:, sessions:, tokens:) ⇒ Object

Parameters:

  • id (String)

    The unique user identifier

  • cost (Float)

    Total cost for this user

  • date_of_first_record (Time)

    Timestamp of the user’s first event/trace

  • date_of_last_record (Time)

    Timestamp of the user’s last event/trace

  • records (Integer)

    Total number of traces/rows for this user

  • sessions (Integer)

    Count of unique sessions for this user

  • tokens (Float)

    Total token count for this user



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/openlayer/models/inference_pipeline_retrieve_users_response.rb', line 17

class Item < Openlayer::Internal::Type::BaseModel
  # @!attribute id
  #   The unique user identifier
  #
  #   @return [String]
  required :id, String

  # @!attribute cost
  #   Total cost for this user
  #
  #   @return [Float]
  required :cost, Float

  # @!attribute date_of_first_record
  #   Timestamp of the user's first event/trace
  #
  #   @return [Time]
  required :date_of_first_record, Time, api_name: :dateOfFirstRecord

  # @!attribute date_of_last_record
  #   Timestamp of the user's last event/trace
  #
  #   @return [Time]
  required :date_of_last_record, Time, api_name: :dateOfLastRecord

  # @!attribute records
  #   Total number of traces/rows for this user
  #
  #   @return [Integer]
  required :records, Integer

  # @!attribute sessions
  #   Count of unique sessions for this user
  #
  #   @return [Integer]
  required :sessions, Integer

  # @!attribute tokens
  #   Total token count for this user
  #
  #   @return [Float]
  required :tokens, Float

  # @!method initialize(id:, cost:, date_of_first_record:, date_of_last_record:, records:, sessions:, tokens:)
  #   @param id [String] The unique user identifier
  #
  #   @param cost [Float] Total cost for this user
  #
  #   @param date_of_first_record [Time] Timestamp of the user's first event/trace
  #
  #   @param date_of_last_record [Time] Timestamp of the user's last event/trace
  #
  #   @param records [Integer] Total number of traces/rows for this user
  #
  #   @param sessions [Integer] Count of unique sessions for this user
  #
  #   @param tokens [Float] Total token count for this user
end

Instance Attribute Details

#costFloat

Total cost for this user

Returns:

  • (Float)


28
# File 'lib/openlayer/models/inference_pipeline_retrieve_users_response.rb', line 28

required :cost, Float

#date_of_first_recordTime

Timestamp of the user’s first event/trace

Returns:

  • (Time)


34
# File 'lib/openlayer/models/inference_pipeline_retrieve_users_response.rb', line 34

required :date_of_first_record, Time, api_name: :dateOfFirstRecord

#date_of_last_recordTime

Timestamp of the user’s last event/trace

Returns:

  • (Time)


40
# File 'lib/openlayer/models/inference_pipeline_retrieve_users_response.rb', line 40

required :date_of_last_record, Time, api_name: :dateOfLastRecord

#idString

The unique user identifier

Returns:

  • (String)


22
# File 'lib/openlayer/models/inference_pipeline_retrieve_users_response.rb', line 22

required :id, String

#recordsInteger

Total number of traces/rows for this user

Returns:

  • (Integer)


46
# File 'lib/openlayer/models/inference_pipeline_retrieve_users_response.rb', line 46

required :records, Integer

#sessionsInteger

Count of unique sessions for this user

Returns:

  • (Integer)


52
# File 'lib/openlayer/models/inference_pipeline_retrieve_users_response.rb', line 52

required :sessions, Integer

#tokensFloat

Total token count for this user

Returns:

  • (Float)


58
# File 'lib/openlayer/models/inference_pipeline_retrieve_users_response.rb', line 58

required :tokens, Float