wazuh-ruby-client 0.3.3 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codeql-analysis.yml +70 -0
- data/.rubocop.yml +59 -0
- data/CHANGELOG.md +35 -0
- data/README.md +18 -1
- data/Rakefile +5 -1
- data/docs/Wazuh/Api/Endpoints/ActiveResponse.html +10 -13
- data/docs/Wazuh/Api/Endpoints/Agents.html +483 -204
- data/docs/Wazuh/Api/Endpoints/Cache.html +7 -7
- data/docs/Wazuh/Api/Endpoints/Ciscat.html +10 -13
- data/docs/Wazuh/Api/Endpoints/Cluster.html +52 -58
- data/docs/Wazuh/Api/Endpoints/Decoders.html +27 -39
- data/docs/Wazuh/Api/Endpoints/Experimental.html +63 -96
- data/docs/Wazuh/Api/Endpoints/Lists.html +15 -21
- data/docs/Wazuh/Api/Endpoints/Manager.html +44 -62
- data/docs/Wazuh/Api/Endpoints/Rootcheck.html +36 -52
- data/docs/Wazuh/Api/Endpoints/Rules.html +49 -68
- data/docs/Wazuh/Api/Endpoints/SecurityConfigurationAssessment.html +20 -31
- data/docs/Wazuh/Api/Endpoints/Summary.html +7 -7
- data/docs/Wazuh/Api/Endpoints/Syscheck.html +26 -33
- data/docs/Wazuh/Api/Endpoints/Syscollector.html +43 -61
- data/docs/Wazuh/Api/Endpoints/V4/ActiveResponse.html +198 -0
- data/docs/Wazuh/Api/Endpoints/V4/Agents.html +1079 -0
- data/docs/Wazuh/Api/Endpoints/V4/Cache.html +195 -0
- data/docs/Wazuh/Api/Endpoints/V4/Ciscat.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Cluster.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Decoders.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Experimental.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Lists.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Manager.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Rootcheck.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Rules.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/SecurityConfigurationAssessment.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Summary.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Syscheck.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Syscollector.html +126 -0
- data/docs/Wazuh/Api/Endpoints/V4/Vulnerabilities.html +399 -0
- data/docs/Wazuh/Api/Endpoints/V4.html +403 -0
- data/docs/Wazuh/Api/Endpoints.html +9 -14
- data/docs/Wazuh/Api/Errors/WazuhError.html +9 -9
- data/docs/Wazuh/Api/Errors.html +6 -6
- data/docs/Wazuh/Api.html +7 -7
- data/docs/Wazuh/Client.html +35 -190
- data/docs/Wazuh/Config.html +20 -11
- data/docs/Wazuh/Logger.html +6 -6
- data/docs/Wazuh/Sawyer/Connection/Token.html +208 -0
- data/docs/Wazuh/Sawyer/Connection.html +19 -7
- data/docs/Wazuh/Sawyer/Request.html +78 -6
- data/docs/Wazuh/Sawyer.html +8 -8
- data/docs/Wazuh.html +16 -16
- data/docs/WazuhRubyClient.html +7 -7
- data/docs/_index.html +149 -7
- data/docs/class_list.html +3 -3
- data/docs/css/style.css +2 -2
- data/docs/file.README.html +39 -18
- data/docs/file_list.html +2 -2
- data/docs/frames.html +2 -2
- data/docs/index.html +39 -18
- data/docs/js/app.js +25 -3
- data/docs/method_list.html +269 -69
- data/docs/top-level-namespace.html +6 -6
- data/lib/wazuh/api/endpoints/agents.rb +1 -1
- data/lib/wazuh/api/endpoints/rootcheck.rb +1 -1
- data/lib/wazuh/api/endpoints/security_configuration_assessment.rb +1 -1
- data/lib/wazuh/api/endpoints/syscollector.rb +1 -1
- data/lib/wazuh/api/endpoints/v4/cluster.rb +127 -0
- data/lib/wazuh/api/endpoints/v4/vulnerabilities.rb +47 -0
- data/lib/wazuh/api/endpoints/v4.rb +2 -1
- data/lib/wazuh/client.rb +0 -1
- data/lib/wazuh/sawyer/connection.rb +1 -1
- data/lib/wazuh/sawyer/request.rb +26 -16
- data/lib/wazuh/version.rb +1 -1
- data/lib/wazuh-ruby-client/version.rb +1 -1
- metadata +23 -3
- data/.travis.yml +0 -7
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Wazuh::Api::Endpoints::Syscheck
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Wazuh::Api::Endpoints::Syscheck";
|
19
19
|
relpath = '../../../';
|
20
20
|
</script>
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
<dl>
|
78
78
|
<dt>Included in:</dt>
|
79
|
-
<dd><span class='object_link'><a href="../Endpoints.html" title="Wazuh::Api::Endpoints (module)">Wazuh::Api::Endpoints</a></span></dd>
|
79
|
+
<dd><span class='object_link'><a href="../Endpoints.html" title="Wazuh::Api::Endpoints (module)">Wazuh::Api::Endpoints</a></span>, <span class='object_link'><a href="V4/Syscheck.html" title="Wazuh::Api::Endpoints::V4::Syscheck (module)">V4::Syscheck</a></span></dd>
|
80
80
|
</dl>
|
81
81
|
|
82
82
|
|
@@ -169,8 +169,7 @@
|
|
169
169
|
|
170
170
|
|
171
171
|
<span class="summary_desc"><div class='inline'>
|
172
|
-
<p>Runs syscheck and rootcheck on an agent (Wazuh launches both processes
|
173
|
-
simultaneously).</p>
|
172
|
+
<p>Runs syscheck and rootcheck on an agent (Wazuh launches both processes simultaneously).</p>
|
174
173
|
</div></span>
|
175
174
|
|
176
175
|
</li>
|
@@ -194,8 +193,7 @@ simultaneously).</p>
|
|
194
193
|
|
195
194
|
|
196
195
|
<span class="summary_desc"><div class='inline'>
|
197
|
-
<p>Runs syscheck and rootcheck on all agents (Wazuh launches both processes
|
198
|
-
simultaneously).</p>
|
196
|
+
<p>Runs syscheck and rootcheck on all agents (Wazuh launches both processes simultaneously).</p>
|
199
197
|
</div></span>
|
200
198
|
|
201
199
|
</li>
|
@@ -287,12 +285,12 @@ simultaneously).</p>
|
|
287
285
|
<pre class="lines">
|
288
286
|
|
289
287
|
|
288
|
+
44
|
290
289
|
45
|
291
|
-
46
|
292
|
-
47</pre>
|
290
|
+
46</pre>
|
293
291
|
</td>
|
294
292
|
<td>
|
295
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line
|
293
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line 44</span>
|
296
294
|
|
297
295
|
<span class='kw'>def</span> <span class='id identifier rubyid_clear_syscheck_database'>clear_syscheck_database</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='rparen'>)</span>
|
298
296
|
<span class='id identifier rubyid_delete'>delete</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
@@ -355,12 +353,12 @@ simultaneously).</p>
|
|
355
353
|
<pre class="lines">
|
356
354
|
|
357
355
|
|
356
|
+
53
|
358
357
|
54
|
359
|
-
55
|
360
|
-
56</pre>
|
358
|
+
55</pre>
|
361
359
|
</td>
|
362
360
|
<td>
|
363
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line
|
361
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line 53</span>
|
364
362
|
|
365
363
|
<span class='kw'>def</span> <span class='id identifier rubyid_last_syscheck_scan'>last_syscheck_scan</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='rparen'>)</span>
|
366
364
|
<span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/last_scan</span><span class='tstring_end'>"</span></span>
|
@@ -382,8 +380,7 @@ simultaneously).</p>
|
|
382
380
|
</h3><div class="docstring">
|
383
381
|
<div class="discussion">
|
384
382
|
|
385
|
-
<p>Runs syscheck and rootcheck on an agent (Wazuh launches both processes
|
386
|
-
simultaneously).</p>
|
383
|
+
<p>Runs syscheck and rootcheck on an agent (Wazuh launches both processes simultaneously).</p>
|
387
384
|
|
388
385
|
|
389
386
|
</div>
|
@@ -424,12 +421,12 @@ simultaneously).</p>
|
|
424
421
|
<pre class="lines">
|
425
422
|
|
426
423
|
|
424
|
+
69
|
427
425
|
70
|
428
|
-
71
|
429
|
-
72</pre>
|
426
|
+
71</pre>
|
430
427
|
</td>
|
431
428
|
<td>
|
432
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line
|
429
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line 69</span>
|
433
430
|
|
434
431
|
<span class='kw'>def</span> <span class='id identifier rubyid_run_syscheck'>run_syscheck</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='rparen'>)</span>
|
435
432
|
<span class='id identifier rubyid_put'>put</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
@@ -451,8 +448,7 @@ simultaneously).</p>
|
|
451
448
|
</h3><div class="docstring">
|
452
449
|
<div class="discussion">
|
453
450
|
|
454
|
-
<p>Runs syscheck and rootcheck on all agents (Wazuh launches both processes
|
455
|
-
simultaneously).</p>
|
451
|
+
<p>Runs syscheck and rootcheck on all agents (Wazuh launches both processes simultaneously).</p>
|
456
452
|
|
457
453
|
|
458
454
|
</div>
|
@@ -473,12 +469,12 @@ simultaneously).</p>
|
|
473
469
|
<pre class="lines">
|
474
470
|
|
475
471
|
|
472
|
+
60
|
476
473
|
61
|
477
|
-
62
|
478
|
-
63</pre>
|
474
|
+
62</pre>
|
479
475
|
</td>
|
480
476
|
<td>
|
481
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line
|
477
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line 60</span>
|
482
478
|
|
483
479
|
<span class='kw'>def</span> <span class='id identifier rubyid_run_syscheck_all_agents'>run_syscheck_all_agents</span>
|
484
480
|
<span class='id identifier rubyid_put'>put</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/syscheck</span><span class='tstring_end'>'</span></span>
|
@@ -582,8 +578,7 @@ simultaneously).</p>
|
|
582
578
|
</span>
|
583
579
|
|
584
580
|
— <div class='inline'>
|
585
|
-
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at
|
586
|
-
the beginning to list in ascending or descending order.</p>
|
581
|
+
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.</p>
|
587
582
|
</div>
|
588
583
|
|
589
584
|
</li>
|
@@ -724,15 +719,13 @@ the beginning to list in ascending or descending order.</p>
|
|
724
719
|
|
725
720
|
35
|
726
721
|
36
|
727
|
-
37
|
728
|
-
38</pre>
|
722
|
+
37</pre>
|
729
723
|
</td>
|
730
724
|
<td>
|
731
725
|
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscheck.rb', line 35</span>
|
732
726
|
|
733
727
|
<span class='kw'>def</span> <span class='id identifier rubyid_syscheck_files'>syscheck_files</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
734
|
-
<span class='id identifier
|
735
|
-
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
|
728
|
+
<span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
736
729
|
<span class='kw'>end</span></pre>
|
737
730
|
</td>
|
738
731
|
</tr>
|
@@ -744,9 +737,9 @@ the beginning to list in ascending or descending order.</p>
|
|
744
737
|
</div>
|
745
738
|
|
746
739
|
<div id="footer">
|
747
|
-
Generated on
|
740
|
+
Generated on Thu Feb 3 21:40:18 2022 by
|
748
741
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
749
|
-
0.9.
|
742
|
+
0.9.25 (ruby-2.6.3).
|
750
743
|
</div>
|
751
744
|
|
752
745
|
</div>
|
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Wazuh::Api::Endpoints::Syscollector
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.25
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "Wazuh::Api::Endpoints::Syscollector";
|
19
19
|
relpath = '../../../';
|
20
20
|
</script>
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
<dl>
|
78
78
|
<dt>Included in:</dt>
|
79
|
-
<dd><span class='object_link'><a href="../Endpoints.html" title="Wazuh::Api::Endpoints (module)">Wazuh::Api::Endpoints</a></span></dd>
|
79
|
+
<dd><span class='object_link'><a href="../Endpoints.html" title="Wazuh::Api::Endpoints (module)">Wazuh::Api::Endpoints</a></span>, <span class='object_link'><a href="V4/Syscollector.html" title="Wazuh::Api::Endpoints::V4::Syscollector (module)">V4::Syscollector</a></span></dd>
|
80
80
|
</dl>
|
81
81
|
|
82
82
|
|
@@ -503,8 +503,7 @@
|
|
503
503
|
</span>
|
504
504
|
|
505
505
|
— <div class='inline'>
|
506
|
-
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at
|
507
|
-
the beginning to list in ascending or descending order.</p>
|
506
|
+
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.</p>
|
508
507
|
</div>
|
509
508
|
|
510
509
|
</li>
|
@@ -619,15 +618,13 @@ the beginning to list in ascending or descending order.</p>
|
|
619
618
|
|
620
619
|
40
|
621
620
|
41
|
622
|
-
42
|
623
|
-
43</pre>
|
621
|
+
42</pre>
|
624
622
|
</td>
|
625
623
|
<td>
|
626
624
|
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line 40</span>
|
627
625
|
|
628
626
|
<span class='kw'>def</span> <span class='id identifier rubyid_netaddr'>netaddr</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
629
|
-
<span class='id identifier
|
630
|
-
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
|
627
|
+
<span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscollector/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/netaddr</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
631
628
|
<span class='kw'>end</span></pre>
|
632
629
|
</td>
|
633
630
|
</tr>
|
@@ -728,8 +725,7 @@ the beginning to list in ascending or descending order.</p>
|
|
728
725
|
</span>
|
729
726
|
|
730
727
|
— <div class='inline'>
|
731
|
-
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at
|
732
|
-
the beginning to list in ascending or descending order.</p>
|
728
|
+
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.</p>
|
733
729
|
</div>
|
734
730
|
|
735
731
|
</li>
|
@@ -914,17 +910,15 @@ the beginning to list in ascending or descending order.</p>
|
|
914
910
|
<pre class="lines">
|
915
911
|
|
916
912
|
|
913
|
+
76
|
917
914
|
77
|
918
|
-
78
|
919
|
-
79
|
920
|
-
80</pre>
|
915
|
+
78</pre>
|
921
916
|
</td>
|
922
917
|
<td>
|
923
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line
|
918
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line 76</span>
|
924
919
|
|
925
920
|
<span class='kw'>def</span> <span class='id identifier rubyid_netiface'>netiface</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
926
|
-
<span class='id identifier
|
927
|
-
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
|
921
|
+
<span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscollector/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/netiface</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
928
922
|
<span class='kw'>end</span></pre>
|
929
923
|
</td>
|
930
924
|
</tr>
|
@@ -1025,8 +1019,7 @@ the beginning to list in ascending or descending order.</p>
|
|
1025
1019
|
</span>
|
1026
1020
|
|
1027
1021
|
— <div class='inline'>
|
1028
|
-
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at
|
1029
|
-
the beginning to list in ascending or descending order.</p>
|
1022
|
+
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.</p>
|
1030
1023
|
</div>
|
1031
1024
|
|
1032
1025
|
</li>
|
@@ -1126,17 +1119,15 @@ the beginning to list in ascending or descending order.</p>
|
|
1126
1119
|
<pre class="lines">
|
1127
1120
|
|
1128
1121
|
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
107</pre>
|
1122
|
+
102
|
1123
|
+
103
|
1124
|
+
104</pre>
|
1133
1125
|
</td>
|
1134
1126
|
<td>
|
1135
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line
|
1127
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line 102</span>
|
1136
1128
|
|
1137
1129
|
<span class='kw'>def</span> <span class='id identifier rubyid_netproto'>netproto</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1138
|
-
<span class='id identifier
|
1139
|
-
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
|
1130
|
+
<span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscollector/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/netproto</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1140
1131
|
<span class='kw'>end</span></pre>
|
1141
1132
|
</td>
|
1142
1133
|
</tr>
|
@@ -1233,12 +1224,12 @@ the beginning to list in ascending or descending order.</p>
|
|
1233
1224
|
<pre class="lines">
|
1234
1225
|
|
1235
1226
|
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1227
|
+
112
|
1228
|
+
113
|
1229
|
+
114</pre>
|
1239
1230
|
</td>
|
1240
1231
|
<td>
|
1241
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line
|
1232
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line 112</span>
|
1242
1233
|
|
1243
1234
|
<span class='kw'>def</span> <span class='id identifier rubyid_os'>os</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1244
1235
|
<span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscollector/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/os</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
|
@@ -1342,8 +1333,7 @@ the beginning to list in ascending or descending order.</p>
|
|
1342
1333
|
</span>
|
1343
1334
|
|
1344
1335
|
— <div class='inline'>
|
1345
|
-
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at
|
1346
|
-
the beginning to list in ascending or descending order.</p>
|
1336
|
+
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.</p>
|
1347
1337
|
</div>
|
1348
1338
|
|
1349
1339
|
</li>
|
@@ -1456,17 +1446,15 @@ the beginning to list in ascending or descending order.</p>
|
|
1456
1446
|
<pre class="lines">
|
1457
1447
|
|
1458
1448
|
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
146</pre>
|
1449
|
+
140
|
1450
|
+
141
|
1451
|
+
142</pre>
|
1463
1452
|
</td>
|
1464
1453
|
<td>
|
1465
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line
|
1454
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line 140</span>
|
1466
1455
|
|
1467
1456
|
<span class='kw'>def</span> <span class='id identifier rubyid_packages'>packages</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1468
|
-
<span class='id identifier
|
1469
|
-
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
|
1457
|
+
<span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscollector/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/packages</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1470
1458
|
<span class='kw'>end</span></pre>
|
1471
1459
|
</td>
|
1472
1460
|
</tr>
|
@@ -1567,8 +1555,7 @@ the beginning to list in ascending or descending order.</p>
|
|
1567
1555
|
</span>
|
1568
1556
|
|
1569
1557
|
— <div class='inline'>
|
1570
|
-
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at
|
1571
|
-
the beginning to list in ascending or descending order.</p>
|
1558
|
+
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.</p>
|
1572
1559
|
</div>
|
1573
1560
|
|
1574
1561
|
</li>
|
@@ -1707,17 +1694,15 @@ the beginning to list in ascending or descending order.</p>
|
|
1707
1694
|
<pre class="lines">
|
1708
1695
|
|
1709
1696
|
|
1710
|
-
|
1711
|
-
|
1712
|
-
|
1713
|
-
180</pre>
|
1697
|
+
173
|
1698
|
+
174
|
1699
|
+
175</pre>
|
1714
1700
|
</td>
|
1715
1701
|
<td>
|
1716
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line
|
1702
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line 173</span>
|
1717
1703
|
|
1718
1704
|
<span class='kw'>def</span> <span class='id identifier rubyid_ports'>ports</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1719
|
-
<span class='id identifier
|
1720
|
-
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
|
1705
|
+
<span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscollector/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/ports</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1721
1706
|
<span class='kw'>end</span></pre>
|
1722
1707
|
</td>
|
1723
1708
|
</tr>
|
@@ -1818,8 +1803,7 @@ the beginning to list in ascending or descending order.</p>
|
|
1818
1803
|
</span>
|
1819
1804
|
|
1820
1805
|
— <div class='inline'>
|
1821
|
-
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at
|
1822
|
-
the beginning to list in ascending or descending order.</p>
|
1806
|
+
<p>Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.</p>
|
1823
1807
|
</div>
|
1824
1808
|
|
1825
1809
|
</li>
|
@@ -2049,17 +2033,15 @@ the beginning to list in ascending or descending order.</p>
|
|
2049
2033
|
<pre class="lines">
|
2050
2034
|
|
2051
2035
|
|
2052
|
-
|
2053
|
-
|
2054
|
-
|
2055
|
-
229</pre>
|
2036
|
+
221
|
2037
|
+
222
|
2038
|
+
223</pre>
|
2056
2039
|
</td>
|
2057
2040
|
<td>
|
2058
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line
|
2041
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/syscollector.rb', line 221</span>
|
2059
2042
|
|
2060
2043
|
<span class='kw'>def</span> <span class='id identifier rubyid_processes'>processes</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
2061
|
-
<span class='id identifier
|
2062
|
-
<span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
|
2044
|
+
<span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>get</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/syscollector/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/processes</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
2063
2045
|
<span class='kw'>end</span></pre>
|
2064
2046
|
</td>
|
2065
2047
|
</tr>
|
@@ -2071,9 +2053,9 @@ the beginning to list in ascending or descending order.</p>
|
|
2071
2053
|
</div>
|
2072
2054
|
|
2073
2055
|
<div id="footer">
|
2074
|
-
Generated on
|
2056
|
+
Generated on Thu Feb 3 21:40:18 2022 by
|
2075
2057
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2076
|
-
0.9.
|
2058
|
+
0.9.25 (ruby-2.6.3).
|
2077
2059
|
</div>
|
2078
2060
|
|
2079
2061
|
</div>
|