Class: Stigg::Models::V1::EventReportParams::Event
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::EventReportParams::Event
- Defined in:
- lib/stigg/models/v1/event_report_params.rb
Defined Under Namespace
Modules: Dimension
Instance Attribute Summary collapse
-
#customer_id ⇒ String
Customer id.
-
#dimensions ⇒ Hash{Symbol=>String, Float, Boolean}?
Dimensions associated with the usage event.
-
#event_name ⇒ String
The name of the usage event.
-
#idempotency_key ⇒ String
Idempotency key.
-
#resource_id ⇒ String?
Resource id.
-
#timestamp ⇒ Time?
Timestamp.
Instance Method Summary collapse
- #initialize(events:, x_account_id: nil, x_environment_id: nil, request_options: {}) ⇒ Object constructor
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(events:, x_account_id: nil, x_environment_id: nil, request_options: {}) ⇒ Object
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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/stigg/models/v1/event_report_params.rb', line 36 class Event < Stigg::Internal::Type::BaseModel # @!attribute customer_id # Customer id # # @return [String] required :customer_id, String, api_name: :customerId # @!attribute event_name # The name of the usage event # # @return [String] required :event_name, String, api_name: :eventName # @!attribute idempotency_key # Idempotency key # # @return [String] required :idempotency_key, String, api_name: :idempotencyKey # @!attribute dimensions # Dimensions associated with the usage event # # @return [Hash{Symbol=>String, Float, Boolean}, nil] optional :dimensions, -> { Stigg::Internal::Type::HashOf[union: Stigg::V1::EventReportParams::Event::Dimension] } # @!attribute resource_id # Resource id # # @return [String, nil] optional :resource_id, String, api_name: :resourceId, nil?: true # @!attribute timestamp # Timestamp # # @return [Time, nil] optional :timestamp, Time # @!method initialize(customer_id:, event_name:, idempotency_key:, dimensions: nil, resource_id: nil, timestamp: nil) # Raw usage event # # @param customer_id [String] Customer id # # @param event_name [String] The name of the usage event # # @param idempotency_key [String] Idempotency key # # @param dimensions [Hash{Symbol=>String, Float, Boolean}] Dimensions associated with the usage event # # @param resource_id [String, nil] Resource id # # @param timestamp [Time] Timestamp module Dimension extend Stigg::Internal::Type::Union variant String variant Float variant Stigg::Internal::Type::Boolean # @!method self.variants # @return [Array(String, Float, Boolean)] end end |
Instance Attribute Details
#customer_id ⇒ String
Customer id
41 |
# File 'lib/stigg/models/v1/event_report_params.rb', line 41 required :customer_id, String, api_name: :customerId |
#dimensions ⇒ Hash{Symbol=>String, Float, Boolean}?
Dimensions associated with the usage event
59 60 |
# File 'lib/stigg/models/v1/event_report_params.rb', line 59 optional :dimensions, -> { Stigg::Internal::Type::HashOf[union: Stigg::V1::EventReportParams::Event::Dimension] } |
#event_name ⇒ String
The name of the usage event
47 |
# File 'lib/stigg/models/v1/event_report_params.rb', line 47 required :event_name, String, api_name: :eventName |
#idempotency_key ⇒ String
Idempotency key
53 |
# File 'lib/stigg/models/v1/event_report_params.rb', line 53 required :idempotency_key, String, api_name: :idempotencyKey |
#resource_id ⇒ String?
Resource id
66 |
# File 'lib/stigg/models/v1/event_report_params.rb', line 66 optional :resource_id, String, api_name: :resourceId, nil?: true |
#timestamp ⇒ Time?
Timestamp
72 |
# File 'lib/stigg/models/v1/event_report_params.rb', line 72 optional :timestamp, Time |