Module: A2::Client::ConfigMgmt
- Included in:
- A2::Client
- Defined in:
- lib/a2/client/config_mgmt.rb
Instance Method Summary collapse
- #list_all_checked_in_nodes(query_string = '') ⇒ Object
- #list_all_missing_nodes_count(query_string = '?durations=3d&durations=1w&durations=2w&durations=1M&durations=3M') ⇒ Object
- #list_all_node_runs(node_id, query_string = '') ⇒ Object
- #list_all_node_status_counts(query_string = '') ⇒ Object
- #list_all_organizations ⇒ Object
- #show_attributes(node_id) ⇒ Object
- #show_node_run(node_id, run_id, query_string = '') ⇒ Object
Instance Method Details
#list_all_checked_in_nodes(query_string = '') ⇒ Object
4 5 6 |
# File 'lib/a2/client/config_mgmt.rb', line 4 def list_all_checked_in_nodes(query_string = '') get "/api/v0/cfgmgmt/nodes#{query_string}" end |
#list_all_missing_nodes_count(query_string = '?durations=3d&durations=1w&durations=2w&durations=1M&durations=3M') ⇒ Object
8 9 10 |
# File 'lib/a2/client/config_mgmt.rb', line 8 def list_all_missing_nodes_count(query_string = '?durations=3d&durations=1w&durations=2w&durations=1M&durations=3M') get "/api/v0/cfgmgmt/stats/missing_node_duration_counts#{query_string}" end |
#list_all_node_runs(node_id, query_string = '') ⇒ Object
12 13 14 |
# File 'lib/a2/client/config_mgmt.rb', line 12 def list_all_node_runs(node_id, query_string = '') get "/api/v0/cfgmgmt/nodes/#{node_id}/runs#{query_string}" end |
#list_all_node_status_counts(query_string = '') ⇒ Object
16 17 18 |
# File 'lib/a2/client/config_mgmt.rb', line 16 def list_all_node_status_counts(query_string = '') get "/api/v0/cfgmgmt/stats/node_counts#{query_string}" end |
#list_all_organizations ⇒ Object
20 21 22 |
# File 'lib/a2/client/config_mgmt.rb', line 20 def list_all_organizations get '/api/v0/cfgmgmt/organizations' end |
#show_attributes(node_id) ⇒ Object
24 25 26 |
# File 'lib/a2/client/config_mgmt.rb', line 24 def show_attributes(node_id) get "/api/v0/cfgmgmt/nodes/#{node_id}/attribute" end |
#show_node_run(node_id, run_id, query_string = '') ⇒ Object
28 29 30 |
# File 'lib/a2/client/config_mgmt.rb', line 28 def show_node_run(node_id, run_id, query_string = '') get "/api/v0/cfgmgmt/nodes/#{node_id}/runs/#{run_id}#{query_string}" end |