zabbix_sender_api 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 941c8d7d5179168c654a89712df253c202b9704fac194933bc48b8233d30052d
4
- data.tar.gz: eac54ddbb5a9976b43579e5609ae81d119a68b11a283eff5aaa4e5e3b25af334
3
+ metadata.gz: 93415b8d2f8a3e66c4bba5bf42e2dbefe31724fd4c2c2d4dca6ca70a3d782e05
4
+ data.tar.gz: 83a10fbe2eb3985eba732d0a05e1402bb2206bdaba68a00dad8952694d8c8e8e
5
5
  SHA512:
6
- metadata.gz: 4a63dec0276fabb920a0bb94398ea4727db7b8f6db65cf961e68c86f1dd588245f9525873000e62104781c77c111c4e9de379dc25ccc34d782165ff4eb39e61b
7
- data.tar.gz: a5c8dcb806341aa096ca806f45d37597a40385131602a6ea7cd8c6e4ed7b2ea6f227bd95cf52220dba30db2c964f85cdd3314754c7e2a42ebac24efde973eba8
6
+ metadata.gz: d73290ec3f32090fade5e2cd678be99e5bec833f759fca4a2aff292fbc35df05244b91fdf0c11efa78a85b3fb4944d204d95f0f41e11685795299036f05d9044
7
+ data.tar.gz: e3414fa8e2d7c91490f9db0fc5edb3f12702e1fa388b6f34536a3f2d8587fd7042939c99afdd895ad6e31bbc7d674adbd84770c960a66a949d1c25e5fe0ad1fb
data/CHANGELOG.md CHANGED
@@ -7,3 +7,5 @@
7
7
  - cleaned up a few issues + the docs
8
8
  # 1.1.2
9
9
  - This is just a documentation fix. rubydoc.info wasn't generating docs from the gem properly so docs are now in a gitlab "pages" site.
10
+ # 1.1.3
11
+ - BUG fix for Discovery when using Socket mode.
@@ -189,8 +189,17 @@ class Pipe < Connection
189
189
  # file in one of the usual places and zabbix_sender is on your path, it'll probably
190
190
  # just work
191
191
  #
192
- def initialize(proxy: Zabbix::AgentConfiguration.zabbixProxy, path: 'zabbix_sender')
192
+ # After v1.1.3 you need to pay attention to whether your pipe connection is
193
+ # going to be moving NanosecondItemData or not. The default behavior is as before
194
+ # (it's assumed that you're not sending ns stuff). If you toggle the nanos switch when you
195
+ # construct pipe though, you'll cause an alteration in the command line switches that presumes
196
+ # that the item data type is the nanosecond subclass. In other words: if you want to
197
+ # build nanosecond item data and you want to send that through a shell pipe, you have to ensure
198
+ # that the shell pipe's command is also aware of the fact that its sending ns data.
199
+ #
200
+ def initialize(proxy: Zabbix::AgentConfiguration.zabbixProxy, path: 'zabbix_sender', nanos: false)
193
201
  super(proxy: proxy)
202
+ @nanos = nanos
194
203
  @wait_thr = @stdout = @stderr = nil
195
204
  @exePath = path
196
205
  end
@@ -203,7 +212,7 @@ class Pipe < Connection
203
212
  def open
204
213
  self.flush
205
214
  #@pipe = IO.popen(%Q(#{@exePath} -z #{@targetHost} -vv -T -i-),'w')
206
- cmd = %Q(#{@exePath} -z #{@targetHost} -vv -T -i-)
215
+ cmd = %Q(#{@exePath} -z #{@targetHost} -vv #{@nanos ? '-T -N' : '-T'} -i-)
207
216
  @pipe,@stdout,@stderr,@wait_thr = Open3.popen3(cmd)
208
217
  end
209
218
 
@@ -285,6 +294,38 @@ class ItemData
285
294
  end
286
295
  end
287
296
 
297
+ ##
298
+ # NanosecondItemData instances hold the k-v pair of a value and its timestamp
299
+ # along with the hostname to which the data belongs. This differs from
300
+ # ItemData in that it renders nanosecond fields as well.
301
+ class NanosecondItemData < ItemData
302
+ ##
303
+ # Render the ItemData instance as a line of text that can be piped into zabbix_sender - nanosecond form
304
+ def to_senderline
305
+ if @timestamp.to_i == 0
306
+ puts %Q("#{@hostname}" #{@key} #{@timestamp.to_i} #{@value}\n)
307
+ abort("Attempt was made to render a timestamp of zero. You DO NOT want this - it can kill db performance. Fix it.")
308
+ end
309
+ return %Q("#{@hostname}" #{@key} #{@timestamp.to_i} #{@timestamp.nsec} #{@value}\n)
310
+ end
311
+ ##
312
+ # Render the ItemData instance as an object suitable for conversion to json, for socket transmission - nanosecond form
313
+ def to_senderstruct
314
+ if @timestamp.to_i == 0
315
+ puts %Q("#{@hostname}" #{@key} #{@timestamp.to_i} #{@value}\n)
316
+ abort("Attempt was made to render a timestamp of zero. You DO NOT want this - it can kill db performance. Fix it.")
317
+ else
318
+ return item = {
319
+ host: @hostname,
320
+ key: @key,
321
+ value: @value,
322
+ clock: @timestamp.to_i,
323
+ ns: @timestamp.nsec
324
+ }
325
+ end
326
+ end
327
+ end
328
+
288
329
  ##
289
330
  # Discovery instances are a special type of ItemData that you will typically
290
331
  # create and hang on to as you accumulate (discover) related entities. You
@@ -353,15 +394,22 @@ class Batch
353
394
  # This is an array of all the ItemData and Discovery instances that have been added
354
395
  # to this discovery since instantiation.
355
396
  #
356
- attr_reader :data
397
+ attr_reader :data,:itemclass
357
398
 
358
399
  ##
359
- # Both parameters are optional - reasonable defaults are provided.
400
+ # All parameters are optional - reasonable defaults are provided.
360
401
  #
361
402
  # Bear in mind that the hostname and timestamp values you provide here will be applied
362
403
  # to all the ItemData and Discovery objects you add via the addItemData() and
363
404
  # addDiscovery() methods by default (unless you override them when you add them)
364
- def initialize(timestamp: Time.now, hostname: Zabbix::AgentConfiguration.zabbixHostname)
405
+ #
406
+ # If you want the items in this batch to be sent to zabbix with their nanosecond component,
407
+ # you must pass NanosecondItemData as the itemclass. In addition, if you intend to send
408
+ # the batch via a pipe (rather than a socket) you must ensure that you've set nanos to true
409
+ # when you construct the pipe.
410
+ #
411
+ def initialize(timestamp: Time.now, hostname: Zabbix::AgentConfiguration.zabbixHostname, itemclass: ItemData)
412
+ @itemclass = itemclass
365
413
  @time = timestamp
366
414
  @hostname = hostname
367
415
  @data = Array.new
@@ -373,7 +421,7 @@ class Batch
373
421
  # timestamp and hostname associated with the instance of Batch that you're working with
374
422
  #
375
423
  def addItemData(key: nil,value: nil,timestamp: @time, hostname: @hostname)
376
- @data.push(ItemData.new(key: key,value: value,timestamp: timestamp,hostname: hostname))
424
+ @data.push(@itemclass.new(key: key,value: value,timestamp: timestamp,hostname: hostname))
377
425
  end
378
426
 
379
427
  ##
@@ -1,3 +1,3 @@
1
1
  module ZabbixSenderApi
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Zabbix::AgentConfiguration
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -102,7 +102,7 @@
102
102
  <h2>Overview</h2><div class="docstring">
103
103
  <div class="discussion">
104
104
 
105
- <p>AgentConfiguration holds data that&#39;s scraped from a zabbix_agentd config file. It&#39;s initialized when the gem is required. You may optionally re-initialize the class with your own list of paths to search. If it finds configuration you can access it with class methods. This is not meant to be instantiated.</p>
105
+ <p>AgentConfiguration holds data thats scraped from a zabbix_agentd config file. Its initialized when the gem is required. You may optionally re-initialize the class with your own list of paths to search. If it finds configuration you can access it with class methods. This is not meant to be instantiated.</p>
106
106
 
107
107
 
108
108
  </div>
@@ -223,7 +223,7 @@
223
223
  </h3><div class="docstring">
224
224
  <div class="discussion">
225
225
 
226
- <p>You may optionally pass an array of full paths to agent conf files to look for during initialization. By default some common places are checked, but you can specify your own. If you call this you&#39;ll re-initialize the class, which will scan for values in any of the listed files it happens to find.</p>
226
+ <p>You may optionally pass an array of full paths to agent conf files to look for during initialization. By default some common places are checked, but you can specify your own. If you call this youll re-initialize the class, which will scan for values in any of the listed files it happens to find.</p>
227
227
 
228
228
 
229
229
  </div>
@@ -403,9 +403,9 @@
403
403
  </div>
404
404
 
405
405
  <div id="footer">
406
- Generated on Sat Sep 18 21:55:40 2021 by
407
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
408
- 0.9.26 (ruby-2.7.4).
406
+ Generated on Fri Jan 3 16:13:55 2025 by
407
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
408
+ 0.9.36 (ruby-3.2.2).
409
409
  </div>
410
410
 
411
411
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Zabbix::Sender::Batch
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -102,11 +102,11 @@
102
102
  <h2>Overview</h2><div class="docstring">
103
103
  <div class="discussion">
104
104
 
105
- <p>Batch instances hold all the data and discovery that you collect as your program does its thing with source data. Once you&#39;ve done all your data collection, you can:</p>
105
+ <p>Batch instances hold all the data and discovery that you collect as your program does its thing with source data. Once youve done all your data collection, you can:</p>
106
106
  <ul><li>
107
107
  <p>Send the batch instance to an instance of Pipe to have it transmitted to zabbix</p>
108
108
  </li><li>
109
- <p>puts mybatch.to_senderline to output the zabbix_sender input text </p>
109
+ <p>puts mybatch.to_senderline to output the zabbix_sender input text</p>
110
110
  </li><li>
111
111
  <p>Use it to help feed data into zabbix by whatever other mechanism you might be using, e.g. a ruby implementation of the zabbix sender protocol</p>
112
112
  </li></ul>
@@ -146,6 +146,35 @@
146
146
 
147
147
 
148
148
 
149
+ <span class="summary_desc"><div class='inline'>
150
+ <p>This is an array of all the ItemData and Discovery instances that have been added to this discovery since instantiation.</p>
151
+ </div></span>
152
+
153
+ </li>
154
+
155
+
156
+ <li class="public ">
157
+ <span class="summary_signature">
158
+
159
+ <a href="#itemclass-instance_method" title="#itemclass (instance method)">#<strong>itemclass</strong> &#x21d2; Object </a>
160
+
161
+
162
+
163
+ </span>
164
+
165
+
166
+
167
+
168
+ <span class="note title readonly">readonly</span>
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
149
178
  <span class="summary_desc"><div class='inline'>
150
179
  <p>This is an array of all the ItemData and Discovery instances that have been added to this discovery since instantiation.</p>
151
180
  </div></span>
@@ -232,7 +261,7 @@
232
261
 
233
262
 
234
263
  <span class="summary_desc"><div class='inline'>
235
- <p>Append another batch&#39;s data into this one.</p>
264
+ <p>Append another batchs data into this one.</p>
236
265
  </div></span>
237
266
 
238
267
  </li>
@@ -241,7 +270,7 @@
241
270
  <li class="public ">
242
271
  <span class="summary_signature">
243
272
 
244
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(timestamp: Time.now, hostname: Zabbix::AgentConfiguration.zabbixHostname) &#x21d2; Batch </a>
273
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(timestamp: Time.now, hostname: Zabbix::AgentConfiguration.zabbixHostname, itemclass: ItemData) &#x21d2; Batch </a>
245
274
 
246
275
 
247
276
 
@@ -258,7 +287,7 @@
258
287
 
259
288
 
260
289
  <span class="summary_desc"><div class='inline'>
261
- <p>Both parameters are optional - reasonable defaults are provided.</p>
290
+ <p>All parameters are optional - reasonable defaults are provided.</p>
262
291
  </div></span>
263
292
 
264
293
  </li>
@@ -321,7 +350,7 @@
321
350
  <div class="method_details first">
322
351
  <h3 class="signature first" id="initialize-instance_method">
323
352
 
324
- #<strong>initialize</strong>(timestamp: Time.now, hostname: Zabbix::AgentConfiguration.zabbixHostname) &#x21d2; <tt><span class='object_link'><a href="" title="Zabbix::Sender::Batch (class)">Batch</a></span></tt>
353
+ #<strong>initialize</strong>(timestamp: Time.now, hostname: Zabbix::AgentConfiguration.zabbixHostname, itemclass: ItemData) &#x21d2; <tt><span class='object_link'><a href="" title="Zabbix::Sender::Batch (class)">Batch</a></span></tt>
325
354
 
326
355
 
327
356
 
@@ -330,9 +359,11 @@
330
359
  </h3><div class="docstring">
331
360
  <div class="discussion">
332
361
 
333
- <p>Both parameters are optional - reasonable defaults are provided.</p>
362
+ <p>All parameters are optional - reasonable defaults are provided.</p>
363
+
364
+ <p>Bear in mind that the hostname and timestamp values you provide here will be applied to all the ItemData and Discovery objects you add via the addItemData() and addDiscovery() methods by default (unless you override them when you add them)</p>
334
365
 
335
- <p>Bear in mind that the hostname and timestamp values you provide here will be applied to all the ItemData and Discovery objects you add via the addItemData() and addDiscovery() methods by default (unless you override them when you add them)</p>
366
+ <p>If you want the items in this batch to be sent to zabbix with their nanosecond component, you must pass NanosecondItemData as the itemclass. In addition, if you intend to send the batch via a pipe (rather than a socket) you must ensure that you’ve set nanos to true when you construct the pipe.</p>
336
367
 
337
368
 
338
369
  </div>
@@ -346,16 +377,18 @@
346
377
  <pre class="lines">
347
378
 
348
379
 
349
- 364
350
- 365
351
- 366
352
- 367
353
- 368</pre>
380
+ 411
381
+ 412
382
+ 413
383
+ 414
384
+ 415
385
+ 416</pre>
354
386
  </td>
355
387
  <td>
356
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 364</span>
388
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 411</span>
357
389
 
358
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>timestamp:</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='comma'>,</span> <span class='label'>hostname:</span> <span class='const'><span class='object_link'><a href="../../Zabbix.html" title="Zabbix (module)">Zabbix</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../AgentConfiguration.html" title="Zabbix::AgentConfiguration (class)">AgentConfiguration</a></span></span><span class='period'>.</span><span class='id identifier rubyid_zabbixHostname'><span class='object_link'><a href="../AgentConfiguration.html#zabbixHostname-class_method" title="Zabbix::AgentConfiguration.zabbixHostname (method)">zabbixHostname</a></span></span><span class='rparen'>)</span>
390
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>timestamp:</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='comma'>,</span> <span class='label'>hostname:</span> <span class='const'><span class='object_link'><a href="../../Zabbix.html" title="Zabbix (module)">Zabbix</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../AgentConfiguration.html" title="Zabbix::AgentConfiguration (class)">AgentConfiguration</a></span></span><span class='period'>.</span><span class='id identifier rubyid_zabbixHostname'><span class='object_link'><a href="../AgentConfiguration.html#zabbixHostname-class_method" title="Zabbix::AgentConfiguration.zabbixHostname (method)">zabbixHostname</a></span></span><span class='comma'>,</span> <span class='label'>itemclass:</span> <span class='const'><span class='object_link'><a href="ItemData.html" title="Zabbix::Sender::ItemData (class)">ItemData</a></span></span><span class='rparen'>)</span>
391
+ <span class='ivar'>@itemclass</span> <span class='op'>=</span> <span class='id identifier rubyid_itemclass'>itemclass</span>
359
392
  <span class='ivar'>@time</span> <span class='op'>=</span> <span class='id identifier rubyid_timestamp'>timestamp</span>
360
393
  <span class='ivar'>@hostname</span> <span class='op'>=</span> <span class='id identifier rubyid_hostname'>hostname</span>
361
394
  <span class='ivar'>@data</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
@@ -398,12 +431,12 @@
398
431
  <pre class="lines">
399
432
 
400
433
 
401
- 356
402
- 357
403
- 358</pre>
434
+ 397
435
+ 398
436
+ 399</pre>
404
437
  </td>
405
438
  <td>
406
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 356</span>
439
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 397</span>
407
440
 
408
441
  <span class='kw'>def</span> <span class='id identifier rubyid_data'>data</span>
409
442
  <span class='ivar'>@data</span>
@@ -413,6 +446,49 @@
413
446
  </table>
414
447
  </div>
415
448
 
449
+
450
+ <span id=""></span>
451
+ <div class="method_details ">
452
+ <h3 class="signature " id="itemclass-instance_method">
453
+
454
+ #<strong>itemclass</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
455
+
456
+
457
+
458
+
459
+
460
+ </h3><div class="docstring">
461
+ <div class="discussion">
462
+
463
+ <p>This is an array of all the ItemData and Discovery instances that have been added to this discovery since instantiation.</p>
464
+
465
+
466
+ </div>
467
+ </div>
468
+ <div class="tags">
469
+
470
+
471
+ </div><table class="source_code">
472
+ <tr>
473
+ <td>
474
+ <pre class="lines">
475
+
476
+
477
+ 397
478
+ 398
479
+ 399</pre>
480
+ </td>
481
+ <td>
482
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 397</span>
483
+
484
+ <span class='kw'>def</span> <span class='id identifier rubyid_itemclass'>itemclass</span>
485
+ <span class='ivar'>@itemclass</span>
486
+ <span class='kw'>end</span></pre>
487
+ </td>
488
+ </tr>
489
+ </table>
490
+ </div>
491
+
416
492
  </div>
417
493
 
418
494
 
@@ -432,9 +508,9 @@
432
508
  </h3><div class="docstring">
433
509
  <div class="discussion">
434
510
 
435
- <p>Add a discovery object to this batch of data. The object will be added to the top of the item list.</p>
511
+ <p>Add a discovery object to this batch of data. The object will be added to the top of the item list.</p>
436
512
 
437
- <p>If you did not specifically provide a hostname or a timestamp when you instantiated the Discovery, they&#39;ll given the ones provided when this instance of Batch was constructed.</p>
513
+ <p>If you did not specifically provide a hostname or a timestamp when you instantiated the Discovery, theyll given the ones provided when this instance of Batch was constructed.</p>
438
514
 
439
515
 
440
516
  </div>
@@ -448,17 +524,17 @@
448
524
  <pre class="lines">
449
525
 
450
526
 
451
- 387
452
- 388
453
- 389
454
- 390
455
- 391
456
- 392
457
- 393
458
- 394</pre>
527
+ 435
528
+ 436
529
+ 437
530
+ 438
531
+ 439
532
+ 440
533
+ 441
534
+ 442</pre>
459
535
  </td>
460
536
  <td>
461
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 387</span>
537
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 435</span>
462
538
 
463
539
  <span class='kw'>def</span> <span class='id identifier rubyid_addDiscovery'>addDiscovery</span><span class='lparen'>(</span><span class='id identifier rubyid_aDiscovery'>aDiscovery</span><span class='rparen'>)</span>
464
540
  <span class='comment'># It doesn&#39;t matter right now really as zabbix has to digest the disco
@@ -485,7 +561,7 @@
485
561
  </h3><div class="docstring">
486
562
  <div class="discussion">
487
563
 
488
- <p>Create a new instance of ItemData and add that instance to the list of data that this batch contains. You must provide a key and a value. You <strong>can</strong> provide a timestamp and a hostname. If you do not provide a timestamp or hostname, they will be given the timestamp and hostname associated with the instance of Batch that you&#39;re working with</p>
564
+ <p>Create a new instance of ItemData and add that instance to the list of data that this batch contains. You must provide a key and a value. You <strong>can</strong> provide a timestamp and a hostname. If you do not provide a timestamp or hostname, they will be given the timestamp and hostname associated with the instance of Batch that youre working with</p>
489
565
 
490
566
 
491
567
  </div>
@@ -499,15 +575,15 @@
499
575
  <pre class="lines">
500
576
 
501
577
 
502
- 375
503
- 376
504
- 377</pre>
578
+ 423
579
+ 424
580
+ 425</pre>
505
581
  </td>
506
582
  <td>
507
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 375</span>
583
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 423</span>
508
584
 
509
585
  <span class='kw'>def</span> <span class='id identifier rubyid_addItemData'>addItemData</span><span class='lparen'>(</span><span class='label'>key:</span> <span class='kw'>nil</span><span class='comma'>,</span><span class='label'>value:</span> <span class='kw'>nil</span><span class='comma'>,</span><span class='label'>timestamp:</span> <span class='ivar'>@time</span><span class='comma'>,</span> <span class='label'>hostname:</span> <span class='ivar'>@hostname</span><span class='rparen'>)</span>
510
- <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="ItemData.html" title="Zabbix::Sender::ItemData (class)">ItemData</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ItemData.html#initialize-instance_method" title="Zabbix::Sender::ItemData#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>key:</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span><span class='label'>value:</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span><span class='label'>timestamp:</span> <span class='id identifier rubyid_timestamp'>timestamp</span><span class='comma'>,</span><span class='label'>hostname:</span> <span class='id identifier rubyid_hostname'>hostname</span><span class='rparen'>)</span><span class='rparen'>)</span>
586
+ <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='ivar'>@itemclass</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>key:</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span><span class='label'>value:</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span><span class='label'>timestamp:</span> <span class='id identifier rubyid_timestamp'>timestamp</span><span class='comma'>,</span><span class='label'>hostname:</span> <span class='id identifier rubyid_hostname'>hostname</span><span class='rparen'>)</span><span class='rparen'>)</span>
511
587
  <span class='kw'>end</span></pre>
512
588
  </td>
513
589
  </tr>
@@ -526,7 +602,7 @@
526
602
  </h3><div class="docstring">
527
603
  <div class="discussion">
528
604
 
529
- <p>Append another batch&#39;s data into this one.</p>
605
+ <p>Append another batchs data into this one.</p>
530
606
 
531
607
 
532
608
  </div>
@@ -540,12 +616,12 @@
540
616
  <pre class="lines">
541
617
 
542
618
 
543
- 398
544
- 399
545
- 400</pre>
619
+ 446
620
+ 447
621
+ 448</pre>
546
622
  </td>
547
623
  <td>
548
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 398</span>
624
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 446</span>
549
625
 
550
626
  <span class='kw'>def</span> <span class='id identifier rubyid_appendBatch'>appendBatch</span><span class='lparen'>(</span><span class='id identifier rubyid_aBatch'>aBatch</span><span class='rparen'>)</span>
551
627
  <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_append'>append</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_aBatch'>aBatch</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
@@ -581,12 +657,12 @@
581
657
  <pre class="lines">
582
658
 
583
659
 
584
- 406
585
- 407
586
- 408</pre>
660
+ 454
661
+ 455
662
+ 456</pre>
587
663
  </td>
588
664
  <td>
589
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 406</span>
665
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 454</span>
590
666
 
591
667
  <span class='kw'>def</span> <span class='id identifier rubyid_to_senderline'>to_senderline</span>
592
668
  <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_line'>line</span><span class='op'>|</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_to_senderline'>to_senderline</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span>
@@ -622,16 +698,16 @@
622
698
  <pre class="lines">
623
699
 
624
700
 
625
- 412
626
- 413
627
- 414
628
- 415
629
- 416
630
- 417
631
- 418</pre>
701
+ 460
702
+ 461
703
+ 462
704
+ 463
705
+ 464
706
+ 465
707
+ 466</pre>
632
708
  </td>
633
709
  <td>
634
- <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 412</span>
710
+ <pre class="code"><span class="info file"># File 'lib/zabbix_sender_api/api.rb', line 460</span>
635
711
 
636
712
  <span class='kw'>def</span> <span class='id identifier rubyid_to_senderstruct'>to_senderstruct</span>
637
713
  <span class='kw'>return</span> <span class='id identifier rubyid_batch'>batch</span> <span class='op'>=</span> <span class='lbrace'>{</span>
@@ -650,9 +726,9 @@
650
726
  </div>
651
727
 
652
728
  <div id="footer">
653
- Generated on Sat Sep 18 21:55:40 2021 by
654
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
655
- 0.9.26 (ruby-2.7.4).
729
+ Generated on Fri Jan 3 16:13:55 2025 by
730
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
731
+ 0.9.36 (ruby-3.2.2).
656
732
  </div>
657
733
 
658
734
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Zabbix::Sender::Connection
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -210,7 +210,7 @@
210
210
 
211
211
 
212
212
  <span class="summary_desc"><div class='inline'>
213
- <p>Closes the zabbix_sender pipe if it&#39;s open.</p>
213
+ <p>Closes the zabbix_sender pipe if its open.</p>
214
214
  </div></span>
215
215
 
216
216
  </li>
@@ -334,7 +334,7 @@
334
334
 
335
335
  <p>Initialize a new Connector object. Proxy is optional.</p>
336
336
 
337
- <p>An attempt is made to provide sane default values. If you have a zabbix_agentd.conf file in one of the usual places and zabbix_sender is on your path, it&#39;ll probably just work</p>
337
+ <p>An attempt is made to provide sane default values. If you have a zabbix_agentd.conf file in one of the usual places and zabbix_sender is on your path, itll probably just work</p>
338
338
 
339
339
 
340
340
  </div>
@@ -475,7 +475,7 @@
475
475
  </h3><div class="docstring">
476
476
  <div class="discussion">
477
477
 
478
- <p>Closes the zabbix_sender pipe if it&#39;s open</p>
478
+ <p>Closes the zabbix_sender pipe if its open</p>
479
479
 
480
480
 
481
481
  </div>
@@ -640,9 +640,9 @@
640
640
  </div>
641
641
 
642
642
  <div id="footer">
643
- Generated on Sat Sep 18 21:55:40 2021 by
644
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
645
- 0.9.26 (ruby-2.7.4).
643
+ Generated on Fri Jan 3 16:13:55 2025 by
644
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
645
+ 0.9.36 (ruby-3.2.2).
646
646
  </div>
647
647
 
648
648
  </div>