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.
3996 3997 3998 |
# File 'lib/infrawrench/client.rb', line 3996 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
4011 4012 4013 4014 4015 4016 4017 4018 |
# File 'lib/infrawrench/client.rb', line 4011 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
4034 4035 4036 4037 4038 4039 4040 4041 |
# File 'lib/infrawrench/client.rb', line 4034 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 |