Class: Orb::Models::Alert
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::Alert
- Defined in:
- lib/orb/models/alert.rb
Overview
Defined Under Namespace
Modules: Type Classes: BalanceAlertStatus, Metric, Plan
Instance Attribute Summary collapse
-
#balance_alert_status ⇒ Array<Orb::Models::Alert::BalanceAlertStatus>?
The current status of the alert.
-
#created_at ⇒ Time
The creation time of the resource in Orb.
-
#currency ⇒ String?
The name of the currency the credit balance or invoice cost is denominated in.
-
#customer ⇒ Orb::Models::CustomerMinified?
The customer the alert applies to.
-
#enabled ⇒ Boolean
Whether the alert is enabled or disabled.
-
#id ⇒ String
Also referred to as alert_id in this documentation.
-
#metric ⇒ Orb::Models::Alert::Metric?
The metric the alert applies to.
-
#plan ⇒ Orb::Models::Alert::Plan?
The plan the alert applies to.
-
#subscription ⇒ Orb::Models::SubscriptionMinified?
The subscription the alert applies to.
-
#thresholds ⇒ Array<Orb::Models::Threshold>?
The thresholds that define the conditions under which the alert will be triggered.
-
#type ⇒ Symbol, Orb::Models::Alert::Type
The type of alert.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , external_plan_id: , name: , plan_version: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see Plan for more details.
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: , external_plan_id: , name: , plan_version: ) ⇒ Object
Some parameter documentations has been truncated, see Plan for more details.
The plan the alert applies to.
|
|
# File 'lib/orb/models/alert.rb', line 77
|
Instance Attribute Details
#balance_alert_status ⇒ Array<Orb::Models::Alert::BalanceAlertStatus>?
The current status of the alert. This field is only present for credit balance alerts.
73 74 75 |
# File 'lib/orb/models/alert.rb', line 73 optional :balance_alert_status, -> { Orb::Internal::Type::ArrayOf[Orb::Alert::BalanceAlertStatus] }, nil?: true |
#created_at ⇒ Time
The creation time of the resource in Orb.
17 |
# File 'lib/orb/models/alert.rb', line 17 required :created_at, Time |
#currency ⇒ String?
The name of the currency the credit balance or invoice cost is denominated in.
23 |
# File 'lib/orb/models/alert.rb', line 23 required :currency, String, nil?: true |
#customer ⇒ Orb::Models::CustomerMinified?
The customer the alert applies to.
29 |
# File 'lib/orb/models/alert.rb', line 29 required :customer, -> { Orb::CustomerMinified }, nil?: true |
#enabled ⇒ Boolean
Whether the alert is enabled or disabled.
35 |
# File 'lib/orb/models/alert.rb', line 35 required :enabled, Orb::Internal::Type::Boolean |
#id ⇒ String
Also referred to as alert_id in this documentation.
11 |
# File 'lib/orb/models/alert.rb', line 11 required :id, String |
#metric ⇒ Orb::Models::Alert::Metric?
The metric the alert applies to.
41 |
# File 'lib/orb/models/alert.rb', line 41 required :metric, -> { Orb::Alert::Metric }, nil?: true |
#plan ⇒ Orb::Models::Alert::Plan?
The plan the alert applies to.
47 |
# File 'lib/orb/models/alert.rb', line 47 required :plan, -> { Orb::Alert::Plan }, nil?: true |
#subscription ⇒ Orb::Models::SubscriptionMinified?
The subscription the alert applies to.
53 |
# File 'lib/orb/models/alert.rb', line 53 required :subscription, -> { Orb::SubscriptionMinified }, nil?: true |
#thresholds ⇒ Array<Orb::Models::Threshold>?
The thresholds that define the conditions under which the alert will be triggered.
60 |
# File 'lib/orb/models/alert.rb', line 60 required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }, nil?: true |
#type ⇒ Symbol, Orb::Models::Alert::Type
The type of alert. This must be a valid alert type.
66 |
# File 'lib/orb/models/alert.rb', line 66 required :type, enum: -> { Orb::Alert::Type } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/orb/models/alert.rb', line 174
|