@@ -5,11 +5,10 @@ module Resources
55 class Alerts
66 # This endpoint retrieves an alert by its ID.
77 #
8- # @param alert_id [String]
9- #
10- # @param params [Orb::Models::AlertRetrieveParams, Hash{Symbol=>Object}] .
8+ # @overload retrieve(alert_id, request_options: {})
119 #
12- # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
10+ # @param alert_id [String]
11+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
1312 #
1413 # @return [Orb::Models::Alert]
1514 #
@@ -25,13 +24,11 @@ def retrieve(alert_id, params = {})
2524
2625 # This endpoint updates the thresholds of an alert.
2726 #
28- # @param alert_configuration_id [String]
29- #
30- # @param params [Orb::Models::AlertUpdateParams, Hash{Symbol=>Object}] .
31- #
32- # @option params [Array<Orb::Models::AlertUpdateParams::Threshold>] :thresholds The thresholds that define the values at which the alert will be triggered.
27+ # @overload update(alert_configuration_id, thresholds:, request_options: {})
3328 #
34- # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
29+ # @param alert_configuration_id [String]
30+ # @param thresholds [Array<Orb::Models::AlertUpdateParams::Threshold>]
31+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
3532 #
3633 # @return [Orb::Models::Alert]
3734 #
@@ -59,28 +56,18 @@ def update(alert_configuration_id, params)
5956 # This endpoint follows Orb's
6057 # [standardized pagination format](/api-reference/pagination).
6158 #
62- # @param params [Orb::Models::AlertListParams, Hash{Symbol=>Object}] .
63- #
64- # @option params [Time, nil] :created_at_gt
65- #
66- # @option params [Time, nil] :created_at_gte
67- #
68- # @option params [Time, nil] :created_at_lt
69- #
70- # @option params [Time, nil] :created_at_lte
59+ # @overload list(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, limit: nil, subscription_id: nil, request_options: {})
7160 #
72- # @option params [String, nil] :cursor Cursor for pagination. This can be populated by the `next_cursor` value returned
73- # from the initial request.
74- #
75- # @option params [String, nil] :customer_id Fetch alerts scoped to this customer_id
76- #
77- # @option params [String, nil] :external_customer_id Fetch alerts scoped to this external_customer_id
78- #
79- # @option params [Integer] :limit The number of items to fetch. Defaults to 20.
80- #
81- # @option params [String, nil] :subscription_id Fetch alerts scoped to this subscription_id
82- #
83- # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
61+ # @param created_at_gt [Time, nil]
62+ # @param created_at_gte [Time, nil]
63+ # @param created_at_lt [Time, nil]
64+ # @param created_at_lte [Time, nil]
65+ # @param cursor [String, nil]
66+ # @param customer_id [String, nil]
67+ # @param external_customer_id [String, nil]
68+ # @param limit [Integer]
69+ # @param subscription_id [String, nil]
70+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
8471 #
8572 # @return [Orb::Page<Orb::Models::Alert>]
8673 #
@@ -106,17 +93,13 @@ def list(params = {})
10693 # while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
10794 # require thresholds.
10895 #
109- # @param customer_id [String]
110- #
111- # @param params [Orb::Models::AlertCreateForCustomerParams, Hash{Symbol=>Object}] .
112- #
113- # @option params [String] :currency The case sensitive currency or custom pricing unit to use for this alert.
114- #
115- # @option params [Symbol, Orb::Models::AlertCreateForCustomerParams::Type] :type The type of alert to create. This must be a valid alert type.
116- #
117- # @option params [Array<Orb::Models::AlertCreateForCustomerParams::Threshold>, nil] :thresholds The thresholds that define the values at which the alert will be triggered.
96+ # @overload create_for_customer(customer_id, currency:, type:, thresholds: nil, request_options: {})
11897 #
119- # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
98+ # @param customer_id [String]
99+ # @param currency [String]
100+ # @param type [Symbol, Orb::Models::AlertCreateForCustomerParams::Type]
101+ # @param thresholds [Array<Orb::Models::AlertCreateForCustomerParams::Threshold>, nil]
102+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
120103 #
121104 # @return [Orb::Models::Alert]
122105 #
@@ -141,17 +124,13 @@ def create_for_customer(customer_id, params)
141124 # while `credit_balance_depleted` and `credit_balance_recovered` alerts do not
142125 # require thresholds.
143126 #
144- # @param external_customer_id [String]
145- #
146- # @param params [Orb::Models::AlertCreateForExternalCustomerParams, Hash{Symbol=>Object}] .
147- #
148- # @option params [String] :currency The case sensitive currency or custom pricing unit to use for this alert.
149- #
150- # @option params [Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type] :type The type of alert to create. This must be a valid alert type.
151- #
152- # @option params [Array<Orb::Models::AlertCreateForExternalCustomerParams::Threshold>, nil] :thresholds The thresholds that define the values at which the alert will be triggered.
127+ # @overload create_for_external_customer(external_customer_id, currency:, type:, thresholds: nil, request_options: {})
153128 #
154- # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
129+ # @param external_customer_id [String]
130+ # @param currency [String]
131+ # @param type [Symbol, Orb::Models::AlertCreateForExternalCustomerParams::Type]
132+ # @param thresholds [Array<Orb::Models::AlertCreateForExternalCustomerParams::Threshold>, nil]
133+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
155134 #
156135 # @return [Orb::Models::Alert]
157136 #
@@ -179,17 +158,13 @@ def create_for_external_customer(external_customer_id, params)
179158 # per metric that is a part of the subscription. Alerts are triggered based on
180159 # usage or cost conditions met during the current billing cycle.
181160 #
182- # @param subscription_id [String]
183- #
184- # @param params [Orb::Models::AlertCreateForSubscriptionParams, Hash{Symbol=>Object}] .
185- #
186- # @option params [Array<Orb::Models::AlertCreateForSubscriptionParams::Threshold>] :thresholds The thresholds that define the values at which the alert will be triggered.
187- #
188- # @option params [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type] :type The type of alert to create. This must be a valid alert type.
161+ # @overload create_for_subscription(subscription_id, thresholds:, type:, metric_id: nil, request_options: {})
189162 #
190- # @option params [String, nil] :metric_id The metric to track usage for.
191- #
192- # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
163+ # @param subscription_id [String]
164+ # @param thresholds [Array<Orb::Models::AlertCreateForSubscriptionParams::Threshold>]
165+ # @param type [Symbol, Orb::Models::AlertCreateForSubscriptionParams::Type]
166+ # @param metric_id [String, nil]
167+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
193168 #
194169 # @return [Orb::Models::Alert]
195170 #
@@ -209,13 +184,11 @@ def create_for_subscription(subscription_id, params)
209184 # a specific subscription, you must include the `subscription_id`. The
210185 # `subscription_id` is not required for customer or subscription level alerts.
211186 #
212- # @param alert_configuration_id [String]
213- #
214- # @param params [Orb::Models::AlertDisableParams, Hash{Symbol=>Object}] .
215- #
216- # @option params [String, nil] :subscription_id Used to update the status of a plan alert scoped to this subscription_id
187+ # @overload disable(alert_configuration_id, subscription_id: nil, request_options: {})
217188 #
218- # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
189+ # @param alert_configuration_id [String]
190+ # @param subscription_id [String, nil]
191+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
219192 #
220193 # @return [Orb::Models::Alert]
221194 #
@@ -235,13 +208,11 @@ def disable(alert_configuration_id, params = {})
235208 # specific subscription, you must include the `subscription_id`. The
236209 # `subscription_id` is not required for customer or subscription level alerts.
237210 #
238- # @param alert_configuration_id [String]
239- #
240- # @param params [Orb::Models::AlertEnableParams, Hash{Symbol=>Object}] .
211+ # @overload enable(alert_configuration_id, subscription_id: nil, request_options: {})
241212 #
242- # @option params [String, nil] :subscription_id Used to update the status of a plan alert scoped to this subscription_id
243- #
244- # @option params [Orb::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
213+ # @param alert_configuration_id [String]
214+ # @param subscription_id [String, nil]
215+ # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
245216 #
246217 # @return [Orb::Models::Alert]
247218 #
0 commit comments