Module: Wazuh::Api::Endpoints::V4::Cluster
Instance Method Summary
collapse
-
#check_nodes_config(options = {}) ⇒ Object
(also: #get_conf_validation)
-
#cluster_status(options = {}) ⇒ Object
-
#local_node_config(options = {}) ⇒ Object
-
#local_node_info(options = {}) ⇒ Object
(also: #get_cluster_node)
-
#node_active_configuration(node_id, component, configuration, options = {}) ⇒ Object
(also: #get_node_config)
-
#node_config(node_id, options = {}) ⇒ Object
(also: #get_configuration_node)
-
#node_info(node_id, options = {}) ⇒ Object
(also: #get_info_node)
-
#node_logs(node_id, options = {}) ⇒ Object
(also: #get_log_node)
-
#node_logs_summary(node_id, options = {}) ⇒ Object
(also: #get_log_summary_node)
-
#node_stats(node_id, options = {}) ⇒ Object
(also: #get_stats_node)
-
#node_stats_analysisd(node_id, options = {}) ⇒ Object
(also: #get_stats_analysisd_node)
-
#node_stats_hour(node_id, options = {}) ⇒ Object
(also: #get_stats_hourly_node)
-
#node_stats_remoted(node_id, options = {}) ⇒ Object
(also: #get_stats_remoted_node)
-
#node_stats_week(node_id, options = {}) ⇒ Object
(also: #get_stats_weekly_node)
-
#node_status(node_id, options = {}) ⇒ Object
(also: #get_status_node)
-
#nodes_api_config(options = {}) ⇒ Object
(also: #get_api_config)
-
#nodes_healthcheck(options = {}) ⇒ Object
-
#nodes_info(options = {}) ⇒ Object
(also: #get_cluster_nodes)
-
#restart_nodes(options = {}) ⇒ Object
(also: #put_restart)
Methods included from Cluster
#analysisd_stats, #check_configuration, #check_configuration_by_node, #cluster_configuration, #cluster_healthcheck, #cluster_logs_by_node, #cluster_logs_summary_by_node, #component_configuration_by_node, #configuration_by_node, #delete_remote_file, #get_remote_file, #local_node, #node, #nodes, #nodes_stats, #nodes_stats_by_hourly, #nodes_stats_by_weekly, #remoted_stats, #restart_all_node, #restart_node, #update_remote_file
Instance Method Details
#check_nodes_config(options = {}) ⇒ Object
Also known as:
get_conf_validation
122
123
124
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 122
def check_nodes_config(options = {})
offset_request('get', "/cluster/configuration/validationj", options)
end
|
#cluster_status(options = {}) ⇒ Object
28
29
30
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 28
def cluster_status(options = {})
get '/cluster/status', options
end
|
#local_node_config(options = {}) ⇒ Object
33
34
35
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 33
def local_node_config(options = {})
offset_request('get', '/cluster/local/config', options)
end
|
#local_node_info(options = {}) ⇒ Object
Also known as:
get_cluster_node
9
10
11
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 9
def local_node_info(options = {})
offset_request('get', '/cluster/local/info', options)
end
|
#node_active_configuration(node_id, component, configuration, options = {}) ⇒ Object
Also known as:
get_node_config
129
130
131
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 129
def node_active_configuration(node_id, component, configuration, options = {})
offset_request('get', "/cluster/#{node_id}/configuration/#{component}/#{configuration}", options)
end
|
#node_config(node_id, options = {}) ⇒ Object
Also known as:
get_configuration_node
59
60
61
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 59
def node_config(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/configuration", options)
end
|
#node_info(node_id, options = {}) ⇒ Object
Also known as:
get_info_node
52
53
54
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 52
def node_info(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/info", options)
end
|
#node_logs(node_id, options = {}) ⇒ Object
Also known as:
get_log_node
101
102
103
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 101
def node_logs(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/logs", options)
end
|
#node_logs_summary(node_id, options = {}) ⇒ Object
Also known as:
get_log_summary_node
108
109
110
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 108
def node_logs_summary(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/logs/summary", options)
end
|
#node_stats(node_id, options = {}) ⇒ Object
Also known as:
get_stats_node
66
67
68
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 66
def node_stats(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/stats", options)
end
|
#node_stats_analysisd(node_id, options = {}) ⇒ Object
Also known as:
get_stats_analysisd_node
87
88
89
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 87
def node_stats_analysisd(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/stats/analysisd", options)
end
|
#node_stats_hour(node_id, options = {}) ⇒ Object
Also known as:
get_stats_hourly_node
73
74
75
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 73
def node_stats_hour(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/stats/hourly", options)
end
|
#node_stats_remoted(node_id, options = {}) ⇒ Object
Also known as:
get_stats_remoted_node
94
95
96
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 94
def node_stats_remoted(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/stats/remoted", options)
end
|
#node_stats_week(node_id, options = {}) ⇒ Object
Also known as:
get_stats_weekly_node
80
81
82
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 80
def node_stats_week(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/stats/weekly", options)
end
|
#node_status(node_id, options = {}) ⇒ Object
Also known as:
get_status_node
45
46
47
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 45
def node_status(node_id, options = {})
offset_request('get', "/cluster/#{node_id}/status", options)
end
|
#nodes_api_config(options = {}) ⇒ Object
Also known as:
get_api_config
38
39
40
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 38
def nodes_api_config(options = {})
offset_request('get', '/cluster/api/config', options)
end
|
#nodes_healthcheck(options = {}) ⇒ Object
23
24
25
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 23
def nodes_healthcheck(options = {})
offset_request('get', '/cluster/healthcheck', options)
end
|
#nodes_info(options = {}) ⇒ Object
Also known as:
get_cluster_nodes
16
17
18
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 16
def nodes_info(options = {})
offset_request('get', '/cluster/nodes', options)
end
|
#restart_nodes(options = {}) ⇒ Object
Also known as:
put_restart
115
116
117
|
# File 'lib/wazuh/api/endpoints/v4/cluster.rb', line 115
def restart_nodes(options = {})
offset_request('put', "/cluster/restart", options)
end
|