Class: Infrawrench::QueryMonitorsGetNamespace
- Inherits:
-
Object
- Object
- Infrawrench::QueryMonitorsGetNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.query_monitors.get
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
List query monitors.
-
#get_org_org_id_query_monitors_monitor_id(monitor_id:, org_id: nil, request_options: nil) ⇒ Hash
Get one query monitor.
-
#initialize(transport) ⇒ QueryMonitorsGetNamespace
constructor
private
A new instance of QueryMonitorsGetNamespace.
Constructor Details
#initialize(transport) ⇒ QueryMonitorsGetNamespace
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 QueryMonitorsGetNamespace.
11920 11921 11922 |
# File 'lib/infrawrench/client.rb', line 11920 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
List query monitors
GET /api/org/orgId/query-monitors
11933 11934 11935 11936 11937 11938 11939 11940 |
# File 'lib/infrawrench/client.rb', line 11933 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/query-monitors", path_params: { "orgId" => org_id }, request_options: ) end |
#get_org_org_id_query_monitors_monitor_id(monitor_id:, org_id: nil, request_options: nil) ⇒ Hash
Get one query monitor
GET /api/org/orgId/query-monitors/monitorId
Raises on 404: Not found
11954 11955 11956 11957 11958 11959 11960 11961 |
# File 'lib/infrawrench/client.rb', line 11954 def get_org_org_id_query_monitors_monitor_id(monitor_id:, org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/query-monitors/{monitorId}", path_params: { "orgId" => org_id, "monitorId" => monitor_id }, request_options: ) end |