Class: Infrawrench::CostAlertsGetNamespace
- Inherits:
-
Object
- Object
- Infrawrench::CostAlertsGetNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.cost_alerts.get
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
List change-based cost alerts.
-
#get_org_org_id_cost_alerts_id(id:, org_id: nil, request_options: nil) ⇒ Hash
Get a cost alert.
-
#initialize(transport) ⇒ CostAlertsGetNamespace
constructor
private
A new instance of CostAlertsGetNamespace.
Constructor Details
#initialize(transport) ⇒ CostAlertsGetNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CostAlertsGetNamespace.
3273 3274 3275 |
# File 'lib/infrawrench/client.rb', line 3273 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
List change-based cost alerts
Requires permission: costs:read.
GET /api/org/orgId/cost-alerts
3288 3289 3290 3291 3292 3293 3294 3295 |
# File 'lib/infrawrench/client.rb', line 3288 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/cost-alerts", path_params: { "orgId" => org_id }, request_options: ) end |
#get_org_org_id_cost_alerts_id(id:, org_id: nil, request_options: nil) ⇒ Hash
Get a cost alert
Requires permission: costs:read.
GET /api/org/orgId/cost-alerts/id
Raises on 404: Not found
3311 3312 3313 3314 3315 3316 3317 3318 |
# File 'lib/infrawrench/client.rb', line 3311 def get_org_org_id_cost_alerts_id(id:, org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/cost-alerts/{id}", path_params: { "orgId" => org_id, "id" => id }, request_options: ) end |