@@ -65,27 +65,23 @@ class Alert < Orb::Internal::Type::BaseModel
6565 # @return [Symbol, Orb::Models::Alert::Type]
6666 required :type , enum : -> { Orb ::Models ::Alert ::Type }
6767
68- # @!parse
69- # # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
70- # # usage, or credit balance and trigger webhooks when a threshold is exceeded.
71- # #
72- # # Alerts created through the API can be scoped to either customers or
73- # # subscriptions.
74- # #
75- # # @param id [String]
76- # # @param created_at [Time]
77- # # @param currency [String, nil]
78- # # @param customer [Orb::Models::Alert::Customer, nil]
79- # # @param enabled [Boolean]
80- # # @param metric [Orb::Models::Alert::Metric, nil]
81- # # @param plan [Orb::Models::Alert::Plan, nil]
82- # # @param subscription [Orb::Models::Alert::Subscription, nil]
83- # # @param thresholds [Array<Orb::Models::Alert::Threshold>, nil]
84- # # @param type [Symbol, Orb::Models::Alert::Type]
85- # #
86- # def initialize(id:, created_at:, currency:, customer:, enabled:, metric:, plan:, subscription:, thresholds:, type:, **) = super
87-
88- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
68+ # @!method initialize(id:, created_at:, currency:, customer:, enabled:, metric:, plan:, subscription:, thresholds:, type:)
69+ # [Alerts within Orb](/product-catalog/configuring-alerts) monitor spending,
70+ # usage, or credit balance and trigger webhooks when a threshold is exceeded.
71+ #
72+ # Alerts created through the API can be scoped to either customers or
73+ # subscriptions.
74+ #
75+ # @param id [String]
76+ # @param created_at [Time]
77+ # @param currency [String, nil]
78+ # @param customer [Orb::Models::Alert::Customer, nil]
79+ # @param enabled [Boolean]
80+ # @param metric [Orb::Models::Alert::Metric, nil]
81+ # @param plan [Orb::Models::Alert::Plan, nil]
82+ # @param subscription [Orb::Models::Alert::Subscription, nil]
83+ # @param thresholds [Array<Orb::Models::Alert::Threshold>, nil]
84+ # @param type [Symbol, Orb::Models::Alert::Type]
8985
9086 # @see Orb::Models::Alert#customer
9187 class Customer < Orb ::Internal ::Type ::BaseModel
@@ -99,15 +95,11 @@ class Customer < Orb::Internal::Type::BaseModel
9995 # @return [String, nil]
10096 required :external_customer_id , String , nil? : true
10197
102- # @!parse
103- # # The customer the alert applies to.
104- # #
105- # # @param id [String]
106- # # @param external_customer_id [String, nil]
107- # #
108- # def initialize(id:, external_customer_id:, **) = super
109-
110- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
98+ # @!method initialize(id:, external_customer_id:)
99+ # The customer the alert applies to.
100+ #
101+ # @param id [String]
102+ # @param external_customer_id [String, nil]
111103 end
112104
113105 # @see Orb::Models::Alert#metric
@@ -117,14 +109,10 @@ class Metric < Orb::Internal::Type::BaseModel
117109 # @return [String]
118110 required :id , String
119111
120- # @!parse
121- # # The metric the alert applies to.
122- # #
123- # # @param id [String]
124- # #
125- # def initialize(id:, **) = super
126-
127- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
112+ # @!method initialize(id:)
113+ # The metric the alert applies to.
114+ #
115+ # @param id [String]
128116 end
129117
130118 # @see Orb::Models::Alert#plan
@@ -152,17 +140,13 @@ class Plan < Orb::Internal::Type::BaseModel
152140 # @return [String]
153141 required :plan_version , String
154142
155- # @!parse
156- # # The plan the alert applies to.
157- # #
158- # # @param id [String, nil]
159- # # @param external_plan_id [String, nil]
160- # # @param name [String, nil]
161- # # @param plan_version [String]
162- # #
163- # def initialize(id:, external_plan_id:, name:, plan_version:, **) = super
164-
165- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
143+ # @!method initialize(id:, external_plan_id:, name:, plan_version:)
144+ # The plan the alert applies to.
145+ #
146+ # @param id [String, nil]
147+ # @param external_plan_id [String, nil]
148+ # @param name [String, nil]
149+ # @param plan_version [String]
166150 end
167151
168152 # @see Orb::Models::Alert#subscription
@@ -172,14 +156,10 @@ class Subscription < Orb::Internal::Type::BaseModel
172156 # @return [String]
173157 required :id , String
174158
175- # @!parse
176- # # The subscription the alert applies to.
177- # #
178- # # @param id [String]
179- # #
180- # def initialize(id:, **) = super
181-
182- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
159+ # @!method initialize(id:)
160+ # The subscription the alert applies to.
161+ #
162+ # @param id [String]
183163 end
184164
185165 class Threshold < Orb ::Internal ::Type ::BaseModel
@@ -191,15 +171,11 @@ class Threshold < Orb::Internal::Type::BaseModel
191171 # @return [Float]
192172 required :value , Float
193173
194- # @!parse
195- # # Thresholds are used to define the conditions under which an alert will be
196- # # triggered.
197- # #
198- # # @param value [Float]
199- # #
200- # def initialize(value:, **) = super
201-
202- # def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
174+ # @!method initialize(value:)
175+ # Thresholds are used to define the conditions under which an alert will be
176+ # triggered.
177+ #
178+ # @param value [Float]
203179 end
204180
205181 # The type of alert. This must be a valid alert type.
@@ -214,11 +190,8 @@ module Type
214190 USAGE_EXCEEDED = :usage_exceeded
215191 COST_EXCEEDED = :cost_exceeded
216192
217- finalize!
218-
219- # @!parse
220- # # @return [Array<Symbol>]
221- # def self.values; end
193+ # @!method self.values
194+ # @return [Array<Symbol>]
222195 end
223196 end
224197 end
0 commit comments