trisulrp 1.5.0 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/trisulrp/trp.pb.rb +4 -125
- data/lib/trisulrp/trp.proto +6 -2
- data/test/test_http_volume.rb +3 -1
- data/trisulrp.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.4
|
data/lib/trisulrp/trp.pb.rb
CHANGED
@@ -85,29 +85,21 @@ module TRP
|
|
85
85
|
class Timestamp < ::ProtocolBuffers::Message
|
86
86
|
required :int64, :tv_sec, 1
|
87
87
|
required :int64, :tv_usec, 2, :default => 0
|
88
|
-
|
89
|
-
gen_methods! # new fields ignored after this point
|
90
88
|
end
|
91
89
|
|
92
90
|
class TimeInterval < ::ProtocolBuffers::Message
|
93
91
|
required ::TRP::Timestamp, :from, 1
|
94
92
|
required ::TRP::Timestamp, :to, 2
|
95
|
-
|
96
|
-
gen_methods! # new fields ignored after this point
|
97
93
|
end
|
98
94
|
|
99
95
|
class StatsTuple < ::ProtocolBuffers::Message
|
100
96
|
required ::TRP::Timestamp, :ts, 1
|
101
97
|
required :int64, :val, 2
|
102
|
-
|
103
|
-
gen_methods! # new fields ignored after this point
|
104
98
|
end
|
105
99
|
|
106
100
|
class MeterValues < ::ProtocolBuffers::Message
|
107
101
|
required :int32, :meter, 1
|
108
102
|
repeated ::TRP::StatsTuple, :values, 2
|
109
|
-
|
110
|
-
gen_methods! # new fields ignored after this point
|
111
103
|
end
|
112
104
|
|
113
105
|
class KeyStats < ::ProtocolBuffers::Message
|
@@ -115,8 +107,6 @@ module TRP
|
|
115
107
|
required :string, :counter_group, 2
|
116
108
|
required :string, :key, 3
|
117
109
|
repeated ::TRP::MeterValues, :meters, 4
|
118
|
-
|
119
|
-
gen_methods! # new fields ignored after this point
|
120
110
|
end
|
121
111
|
|
122
112
|
class KeyDetails < ::ProtocolBuffers::Message
|
@@ -124,29 +114,21 @@ module TRP
|
|
124
114
|
optional :string, :label, 2
|
125
115
|
optional :string, :description, 3
|
126
116
|
optional :int64, :metric, 4
|
127
|
-
|
128
|
-
gen_methods! # new fields ignored after this point
|
129
117
|
end
|
130
118
|
|
131
119
|
class SessionID < ::ProtocolBuffers::Message
|
132
120
|
required :int64, :slice_id, 1
|
133
121
|
required :int64, :session_id, 2
|
134
|
-
|
135
|
-
gen_methods! # new fields ignored after this point
|
136
122
|
end
|
137
123
|
|
138
124
|
class AlertID < ::ProtocolBuffers::Message
|
139
125
|
required :int64, :slice_id, 1
|
140
126
|
required :int64, :alert_id, 2
|
141
|
-
|
142
|
-
gen_methods! # new fields ignored after this point
|
143
127
|
end
|
144
128
|
|
145
129
|
class ResourceID < ::ProtocolBuffers::Message
|
146
130
|
required :int64, :slice_id, 1
|
147
131
|
required :int64, :resource_id, 2
|
148
|
-
|
149
|
-
gen_methods! # new fields ignored after this point
|
150
132
|
end
|
151
133
|
|
152
134
|
class CounterGroupDetails < ::ProtocolBuffers::Message
|
@@ -155,8 +137,6 @@ module TRP
|
|
155
137
|
optional :int64, :bucket_size, 3
|
156
138
|
optional ::TRP::TimeInterval, :time_interval, 4
|
157
139
|
optional :int64, :topper_bucket_size, 5
|
158
|
-
|
159
|
-
gen_methods! # new fields ignored after this point
|
160
140
|
end
|
161
141
|
|
162
142
|
class Message < ::ProtocolBuffers::Message
|
@@ -264,14 +244,10 @@ module TRP
|
|
264
244
|
optional ::TRP::KeyLookupResponse, :key_lookup_response, 50
|
265
245
|
optional ::TRP::GrepRequest, :grep_request, 51
|
266
246
|
optional ::TRP::GrepResponse, :grep_response, 52
|
267
|
-
|
268
|
-
gen_methods! # new fields ignored after this point
|
269
247
|
end
|
270
248
|
|
271
249
|
class HelloRequest < ::ProtocolBuffers::Message
|
272
250
|
required :string, :station_id, 1
|
273
|
-
|
274
|
-
gen_methods! # new fields ignored after this point
|
275
251
|
end
|
276
252
|
|
277
253
|
class HelloResponse < ::ProtocolBuffers::Message
|
@@ -282,29 +258,21 @@ module TRP
|
|
282
258
|
required ::TRP::Timestamp, :connection_start_time, 5
|
283
259
|
required ::TRP::Timestamp, :connection_up_time, 6
|
284
260
|
required ::TRP::AuthLevel, :current_auth_level, 7
|
285
|
-
|
286
|
-
gen_methods! # new fields ignored after this point
|
287
261
|
end
|
288
262
|
|
289
263
|
class ErrorResponse < ::ProtocolBuffers::Message
|
290
264
|
required :int64, :original_command, 1
|
291
265
|
required :int64, :error_code, 2
|
292
266
|
required :string, :error_message, 3
|
293
|
-
|
294
|
-
gen_methods! # new fields ignored after this point
|
295
267
|
end
|
296
268
|
|
297
269
|
class OKResponse < ::ProtocolBuffers::Message
|
298
270
|
required :int64, :original_command, 1
|
299
271
|
optional :string, :message, 2
|
300
|
-
|
301
|
-
gen_methods! # new fields ignored after this point
|
302
272
|
end
|
303
273
|
|
304
274
|
class ReleaseContextRequest < ::ProtocolBuffers::Message
|
305
275
|
optional :int64, :context, 1
|
306
|
-
|
307
|
-
gen_methods! # new fields ignored after this point
|
308
276
|
end
|
309
277
|
|
310
278
|
class CounterItemRequest < ::ProtocolBuffers::Message
|
@@ -314,14 +282,10 @@ module TRP
|
|
314
282
|
required :string, :key, 4
|
315
283
|
required ::TRP::TimeInterval, :time_interval, 5
|
316
284
|
optional :int64, :volumes_only, 6, :default => 0
|
317
|
-
|
318
|
-
gen_methods! # new fields ignored after this point
|
319
285
|
end
|
320
286
|
|
321
287
|
class CounterItemResponse < ::ProtocolBuffers::Message
|
322
288
|
required ::TRP::KeyStats, :stats, 1
|
323
|
-
|
324
|
-
gen_methods! # new fields ignored after this point
|
325
289
|
end
|
326
290
|
|
327
291
|
class BulkCounterItemRequest < ::ProtocolBuffers::Message
|
@@ -330,14 +294,10 @@ module TRP
|
|
330
294
|
required :int64, :meter, 3
|
331
295
|
required ::TRP::TimeInterval, :time_interval, 4
|
332
296
|
repeated :string, :keys, 5
|
333
|
-
|
334
|
-
gen_methods! # new fields ignored after this point
|
335
297
|
end
|
336
298
|
|
337
299
|
class BulkCounterItemResponse < ::ProtocolBuffers::Message
|
338
300
|
repeated ::TRP::KeyStats, :stats, 1
|
339
|
-
|
340
|
-
gen_methods! # new fields ignored after this point
|
341
301
|
end
|
342
302
|
|
343
303
|
class CounterGroupRequest < ::ProtocolBuffers::Message
|
@@ -348,8 +308,6 @@ module TRP
|
|
348
308
|
optional ::TRP::TimeInterval, :time_interval, 5
|
349
309
|
optional ::TRP::Timestamp, :time_instant, 6
|
350
310
|
optional :int64, :flags, 7
|
351
|
-
|
352
|
-
gen_methods! # new fields ignored after this point
|
353
311
|
end
|
354
312
|
|
355
313
|
class CounterGroupResponse < ::ProtocolBuffers::Message
|
@@ -357,8 +315,6 @@ module TRP
|
|
357
315
|
required :string, :counter_group, 2
|
358
316
|
required :int64, :meter, 3
|
359
317
|
repeated ::TRP::KeyDetails, :keys, 6
|
360
|
-
|
361
|
-
gen_methods! # new fields ignored after this point
|
362
318
|
end
|
363
319
|
|
364
320
|
class FilteredDatagramRequest < ::ProtocolBuffers::Message
|
@@ -372,29 +328,21 @@ module TRP
|
|
372
328
|
class ByFilterExpr < ::ProtocolBuffers::Message
|
373
329
|
required ::TRP::TimeInterval, :time_interval, 1
|
374
330
|
required :string, :filter_expression, 2
|
375
|
-
|
376
|
-
gen_methods! # new fields ignored after this point
|
377
331
|
end
|
378
332
|
|
379
333
|
class BySession < ::ProtocolBuffers::Message
|
380
334
|
optional :string, :session_group, 1, :default => "{99A78737-4B41-4387-8F31-8077DB917336}"
|
381
335
|
required ::TRP::SessionID, :session_id, 2
|
382
|
-
|
383
|
-
gen_methods! # new fields ignored after this point
|
384
336
|
end
|
385
337
|
|
386
338
|
class ByAlert < ::ProtocolBuffers::Message
|
387
339
|
optional :string, :alert_group, 1, :default => "{9AFD8C08-07EB-47E0-BF05-28B4A7AE8DC9}"
|
388
340
|
required ::TRP::AlertID, :alert_id, 2
|
389
|
-
|
390
|
-
gen_methods! # new fields ignored after this point
|
391
341
|
end
|
392
342
|
|
393
343
|
class ByResource < ::ProtocolBuffers::Message
|
394
344
|
required :string, :resource_group, 1
|
395
345
|
required ::TRP::ResourceID, :resource_id, 2
|
396
|
-
|
397
|
-
gen_methods! # new fields ignored after this point
|
398
346
|
end
|
399
347
|
|
400
348
|
optional :int64, :max_packets, 1, :default => 0
|
@@ -404,8 +352,6 @@ module TRP
|
|
404
352
|
optional ::TRP::FilteredDatagramRequest::BySession, :session, 5
|
405
353
|
optional ::TRP::FilteredDatagramRequest::ByAlert, :alert, 6
|
406
354
|
optional ::TRP::FilteredDatagramRequest::ByResource, :resource, 7
|
407
|
-
|
408
|
-
gen_methods! # new fields ignored after this point
|
409
355
|
end
|
410
356
|
|
411
357
|
class FilteredDatagramResponse < ::ProtocolBuffers::Message
|
@@ -416,23 +362,17 @@ module TRP
|
|
416
362
|
required :int64, :num_bytes, 5
|
417
363
|
required :string, :sha1, 6
|
418
364
|
required :bytes, :contents, 7
|
419
|
-
|
420
|
-
gen_methods! # new fields ignored after this point
|
421
365
|
end
|
422
366
|
|
423
367
|
class ControlledContextRequest < ::ProtocolBuffers::Message
|
424
368
|
required ::TRP::TimeInterval, :time_interval, 1
|
425
369
|
required :string, :filter_expression, 2
|
426
|
-
|
427
|
-
gen_methods! # new fields ignored after this point
|
428
370
|
end
|
429
371
|
|
430
372
|
class ControlledContextResponse < ::ProtocolBuffers::Message
|
431
373
|
required :int64, :context, 1
|
432
374
|
optional :string, :context_db, 2
|
433
375
|
required ::TRP::TimeInterval, :time_interval, 3
|
434
|
-
|
435
|
-
gen_methods! # new fields ignored after this point
|
436
376
|
end
|
437
377
|
|
438
378
|
class SearchKeysRequest < ::ProtocolBuffers::Message
|
@@ -440,30 +380,22 @@ module TRP
|
|
440
380
|
required :string, :counter_group, 2
|
441
381
|
required :string, :pattern, 3
|
442
382
|
required :int64, :maxitems, 4
|
443
|
-
|
444
|
-
gen_methods! # new fields ignored after this point
|
445
383
|
end
|
446
384
|
|
447
385
|
class SearchKeysResponse < ::ProtocolBuffers::Message
|
448
386
|
optional :int64, :context, 1
|
449
387
|
required :string, :counter_group, 2
|
450
388
|
repeated ::TRP::KeyDetails, :found_keys, 3
|
451
|
-
|
452
|
-
gen_methods! # new fields ignored after this point
|
453
389
|
end
|
454
390
|
|
455
391
|
class CounterGroupInfoRequest < ::ProtocolBuffers::Message
|
456
392
|
optional :int64, :context, 1, :default => 0
|
457
393
|
optional :string, :counter_group, 2
|
458
|
-
|
459
|
-
gen_methods! # new fields ignored after this point
|
460
394
|
end
|
461
395
|
|
462
396
|
class CounterGroupInfoResponse < ::ProtocolBuffers::Message
|
463
397
|
optional :int64, :context, 1
|
464
398
|
repeated ::TRP::CounterGroupDetails, :group_details, 2
|
465
|
-
|
466
|
-
gen_methods! # new fields ignored after this point
|
467
399
|
end
|
468
400
|
|
469
401
|
class SessionItemRequest < ::ProtocolBuffers::Message
|
@@ -471,8 +403,6 @@ module TRP
|
|
471
403
|
optional :string, :session_group, 2, :default => "{99A78737-4B41-4387-8F31-8077DB917336}"
|
472
404
|
repeated :string, :session_keys, 3
|
473
405
|
repeated ::TRP::SessionID, :session_ids, 4
|
474
|
-
|
475
|
-
gen_methods! # new fields ignored after this point
|
476
406
|
end
|
477
407
|
|
478
408
|
class SessionItemResponse < ::ProtocolBuffers::Message
|
@@ -492,15 +422,11 @@ module TRP
|
|
492
422
|
required ::TRP::KeyDetails, :key2A, 9
|
493
423
|
required ::TRP::KeyDetails, :key1Z, 10
|
494
424
|
required ::TRP::KeyDetails, :key2Z, 11
|
495
|
-
|
496
|
-
gen_methods! # new fields ignored after this point
|
497
425
|
end
|
498
426
|
|
499
427
|
optional :int64, :context, 1, :default => 0
|
500
428
|
required :string, :session_group, 2
|
501
429
|
repeated ::TRP::SessionItemResponse::Item, :items, 3
|
502
|
-
|
503
|
-
gen_methods! # new fields ignored after this point
|
504
430
|
end
|
505
431
|
|
506
432
|
class TopperSnapshotRequest < ::ProtocolBuffers::Message
|
@@ -509,8 +435,6 @@ module TRP
|
|
509
435
|
required :int64, :meter, 3
|
510
436
|
required ::TRP::TimeInterval, :Time, 4
|
511
437
|
required :int64, :maxitems, 5
|
512
|
-
|
513
|
-
gen_methods! # new fields ignored after this point
|
514
438
|
end
|
515
439
|
|
516
440
|
class TopperSnapshotResponse < ::ProtocolBuffers::Message
|
@@ -521,8 +445,6 @@ module TRP
|
|
521
445
|
required :int64, :window_secs, 5
|
522
446
|
required :string, :keys, 6
|
523
447
|
required :string, :labels, 7
|
524
|
-
|
525
|
-
gen_methods! # new fields ignored after this point
|
526
448
|
end
|
527
449
|
|
528
450
|
class UpdateKeyRequest < ::ProtocolBuffers::Message
|
@@ -531,8 +453,6 @@ module TRP
|
|
531
453
|
required :string, :key, 4
|
532
454
|
required :string, :label, 5
|
533
455
|
optional :string, :description, 6
|
534
|
-
|
535
|
-
gen_methods! # new fields ignored after this point
|
536
456
|
end
|
537
457
|
|
538
458
|
class KeySessionActivityRequest < ::ProtocolBuffers::Message
|
@@ -544,16 +464,12 @@ module TRP
|
|
544
464
|
optional :int64, :volume_filter, 6, :default => 0
|
545
465
|
optional :int64, :duration_filter, 7, :default => 0
|
546
466
|
required ::TRP::TimeInterval, :time_interval, 8
|
547
|
-
|
548
|
-
gen_methods! # new fields ignored after this point
|
549
467
|
end
|
550
468
|
|
551
469
|
class KeySessionActivityResponse < ::ProtocolBuffers::Message
|
552
470
|
optional :int64, :context, 1
|
553
471
|
required :string, :session_group, 2
|
554
472
|
repeated ::TRP::SessionID, :sessions, 3
|
555
|
-
|
556
|
-
gen_methods! # new fields ignored after this point
|
557
473
|
end
|
558
474
|
|
559
475
|
class SessionTrackerRequest < ::ProtocolBuffers::Message
|
@@ -562,16 +478,12 @@ module TRP
|
|
562
478
|
required :int64, :tracker_id, 3, :default => 1
|
563
479
|
optional :int64, :maxitems, 4, :default => 100
|
564
480
|
required ::TRP::TimeInterval, :time_interval, 5
|
565
|
-
|
566
|
-
gen_methods! # new fields ignored after this point
|
567
481
|
end
|
568
482
|
|
569
483
|
class SessionTrackerResponse < ::ProtocolBuffers::Message
|
570
484
|
optional :int64, :context, 1
|
571
485
|
required :string, :session_group, 2
|
572
486
|
repeated ::TRP::SessionID, :sessions, 3
|
573
|
-
|
574
|
-
gen_methods! # new fields ignored after this point
|
575
487
|
end
|
576
488
|
|
577
489
|
class SessionGroupRequest < ::ProtocolBuffers::Message
|
@@ -580,22 +492,16 @@ module TRP
|
|
580
492
|
optional :int64, :tracker_id, 3
|
581
493
|
optional :string, :key_filter, 4
|
582
494
|
optional :int64, :maxitems, 5, :default => 100
|
583
|
-
|
584
|
-
gen_methods! # new fields ignored after this point
|
585
495
|
end
|
586
496
|
|
587
497
|
class SessionGroupResponse < ::ProtocolBuffers::Message
|
588
498
|
optional :int64, :context, 1
|
589
499
|
required :string, :session_group, 2
|
590
500
|
repeated :string, :session_keys, 3
|
591
|
-
|
592
|
-
gen_methods! # new fields ignored after this point
|
593
501
|
end
|
594
502
|
|
595
503
|
class ServerStatsRequest < ::ProtocolBuffers::Message
|
596
504
|
required :int64, :param, 1
|
597
|
-
|
598
|
-
gen_methods! # new fields ignored after this point
|
599
505
|
end
|
600
506
|
|
601
507
|
class ServerStatsResponse < ::ProtocolBuffers::Message
|
@@ -611,16 +517,12 @@ module TRP
|
|
611
517
|
required :double, :drop_percent_cap, 11
|
612
518
|
required :double, :drop_percent_trisul, 12
|
613
519
|
required ::TRP::TimeInterval, :time_interval, 13
|
614
|
-
|
615
|
-
gen_methods! # new fields ignored after this point
|
616
520
|
end
|
617
521
|
|
618
522
|
class AlertItemRequest < ::ProtocolBuffers::Message
|
619
523
|
optional :int64, :context, 1, :default => 0
|
620
524
|
required :string, :alert_group, 2
|
621
525
|
repeated ::TRP::AlertID, :alert_ids, 3
|
622
|
-
|
623
|
-
gen_methods! # new fields ignored after this point
|
624
526
|
end
|
625
527
|
|
626
528
|
class AlertItemResponse < ::ProtocolBuffers::Message
|
@@ -642,15 +544,11 @@ module TRP
|
|
642
544
|
required ::TRP::Timestamp, :dispatch_time, 11
|
643
545
|
required :string, :aux_message1, 12
|
644
546
|
required :string, :aux_message2, 13
|
645
|
-
|
646
|
-
gen_methods! # new fields ignored after this point
|
647
547
|
end
|
648
548
|
|
649
549
|
optional :int64, :context, 1
|
650
550
|
required :string, :alert_group, 2
|
651
551
|
repeated ::TRP::AlertItemResponse::Item, :items, 3
|
652
|
-
|
653
|
-
gen_methods! # new fields ignored after this point
|
654
552
|
end
|
655
553
|
|
656
554
|
class AlertGroupRequest < ::ProtocolBuffers::Message
|
@@ -667,24 +565,18 @@ module TRP
|
|
667
565
|
optional :string, :priority, 12
|
668
566
|
optional :string, :aux_message1, 13
|
669
567
|
optional :string, :aux_message2, 14
|
670
|
-
|
671
|
-
gen_methods! # new fields ignored after this point
|
672
568
|
end
|
673
569
|
|
674
570
|
class AlertGroupResponse < ::ProtocolBuffers::Message
|
675
571
|
optional :int64, :context, 1
|
676
572
|
required :string, :alert_group, 2
|
677
573
|
repeated ::TRP::AlertID, :alerts, 3
|
678
|
-
|
679
|
-
gen_methods! # new fields ignored after this point
|
680
574
|
end
|
681
575
|
|
682
576
|
class ResourceItemRequest < ::ProtocolBuffers::Message
|
683
577
|
optional :int64, :context, 1, :default => 0
|
684
578
|
required :string, :resource_group, 2
|
685
579
|
repeated ::TRP::ResourceID, :resource_ids, 3
|
686
|
-
|
687
|
-
gen_methods! # new fields ignored after this point
|
688
580
|
end
|
689
581
|
|
690
582
|
class ResourceItemResponse < ::ProtocolBuffers::Message
|
@@ -701,15 +593,11 @@ module TRP
|
|
701
593
|
optional :string, :destination_port, 6
|
702
594
|
optional :string, :uri, 7
|
703
595
|
optional :string, :userlabel, 8
|
704
|
-
|
705
|
-
gen_methods! # new fields ignored after this point
|
706
596
|
end
|
707
597
|
|
708
598
|
optional :int64, :context, 1
|
709
599
|
required :string, :resource_group, 2
|
710
600
|
repeated ::TRP::ResourceItemResponse::Item, :items, 3
|
711
|
-
|
712
|
-
gen_methods! # new fields ignored after this point
|
713
601
|
end
|
714
602
|
|
715
603
|
class ResourceGroupRequest < ::ProtocolBuffers::Message
|
@@ -723,32 +611,25 @@ module TRP
|
|
723
611
|
optional :string, :destination_port, 8
|
724
612
|
optional :string, :uri_pattern, 9
|
725
613
|
optional :string, :userlabel_pattern, 10
|
726
|
-
|
727
|
-
gen_methods! # new fields ignored after this point
|
614
|
+
repeated :string, :uri_list, 11
|
728
615
|
end
|
729
616
|
|
730
617
|
class ResourceGroupResponse < ::ProtocolBuffers::Message
|
731
618
|
optional :int64, :context, 1
|
732
619
|
required :string, :resource_group, 2
|
733
620
|
repeated ::TRP::ResourceID, :resources, 3
|
734
|
-
|
735
|
-
gen_methods! # new fields ignored after this point
|
736
621
|
end
|
737
622
|
|
738
623
|
class KeyLookupRequest < ::ProtocolBuffers::Message
|
739
624
|
optional :int64, :context, 1, :default => 0
|
740
625
|
required :string, :counter_group, 2
|
741
626
|
repeated :string, :keys, 3
|
742
|
-
|
743
|
-
gen_methods! # new fields ignored after this point
|
744
627
|
end
|
745
628
|
|
746
629
|
class KeyLookupResponse < ::ProtocolBuffers::Message
|
747
630
|
optional :int64, :context, 1
|
748
631
|
required :string, :counter_group, 2
|
749
632
|
repeated ::TRP::KeyDetails, :key_details, 3
|
750
|
-
|
751
|
-
gen_methods! # new fields ignored after this point
|
752
633
|
end
|
753
634
|
|
754
635
|
class GrepRequest < ::ProtocolBuffers::Message
|
@@ -756,17 +637,15 @@ module TRP
|
|
756
637
|
optional :string, :session_group, 2, :default => "{99A78737-4B41-4387-8F31-8077DB917336}"
|
757
638
|
required ::TRP::TimeInterval, :time_interval, 3
|
758
639
|
optional :int64, :maxitems, 4, :default => 50
|
759
|
-
|
760
|
-
|
761
|
-
gen_methods! # new fields ignored after this point
|
640
|
+
optional :string, :pattern, 5
|
641
|
+
repeated :string, :md5list, 6
|
762
642
|
end
|
763
643
|
|
764
644
|
class GrepResponse < ::ProtocolBuffers::Message
|
765
645
|
optional :int64, :context, 1
|
766
646
|
optional :string, :session_group, 2, :default => "{99A78737-4B41-4387-8F31-8077DB917336}"
|
767
647
|
repeated ::TRP::SessionID, :sessions, 3
|
768
|
-
|
769
|
-
gen_methods! # new fields ignored after this point
|
648
|
+
repeated :string, :hints, 4
|
770
649
|
end
|
771
650
|
|
772
651
|
end
|
data/lib/trisulrp/trp.proto
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
// Trisul Remote Protocol (TRP) definition
|
2
2
|
// Based on Google Protocol Buffers
|
3
3
|
// (c) 2010-11, Unleash Networks (http://www.unleashnetworks.com)
|
4
|
-
// $Rev:
|
4
|
+
// $Rev: 5540 $
|
5
5
|
package TRP;
|
6
6
|
|
7
7
|
message Timestamp {
|
@@ -605,6 +605,7 @@ message ResourceGroupRequest {
|
|
605
605
|
optional string destination_port=8;
|
606
606
|
optional string uri_pattern=9;
|
607
607
|
optional string userlabel_pattern=10;
|
608
|
+
repeated string uri_list=11;
|
608
609
|
}
|
609
610
|
|
610
611
|
/////////////////////////////////////
|
@@ -613,6 +614,7 @@ message ResourceGroupResponse {
|
|
613
614
|
optional int64 context=1;
|
614
615
|
required string resource_group=2;
|
615
616
|
repeated ResourceID resources=3;
|
617
|
+
repeated string hints=4;
|
616
618
|
}
|
617
619
|
|
618
620
|
|
@@ -641,7 +643,8 @@ message GrepRequest {
|
|
641
643
|
optional string session_group=2[default="{99A78737-4B41-4387-8F31-8077DB917336}"];
|
642
644
|
required TimeInterval time_interval=3;
|
643
645
|
optional int64 maxitems=4 [default=50];
|
644
|
-
|
646
|
+
optional string pattern=5;
|
647
|
+
repeated string md5list=6;
|
645
648
|
}
|
646
649
|
|
647
650
|
/////////////////////////////////////
|
@@ -650,5 +653,6 @@ message GrepResponse {
|
|
650
653
|
optional int64 context=1;
|
651
654
|
optional string session_group=2[default="{99A78737-4B41-4387-8F31-8077DB917336}"];
|
652
655
|
repeated SessionID sessions=3;
|
656
|
+
repeated string hints=4;
|
653
657
|
}
|
654
658
|
|
data/test/test_http_volume.rb
CHANGED
@@ -9,10 +9,12 @@ conn = connect(ARGV[0],ARGV[1],"Demo_Client.crt","Demo_Client.key")
|
|
9
9
|
tmarr = get_available_time(conn)
|
10
10
|
|
11
11
|
# send request for http ( cg=APPS, key=p-0050)
|
12
|
+
# notice use of volumes_only => 1
|
12
13
|
req = TrisulRP::Protocol.mk_request(TRP::Message::Command::COUNTER_ITEM_REQUEST,
|
13
14
|
:counter_group=> CG_APP,
|
14
15
|
:key=> 'p-0050',
|
15
|
-
:time_interval => mk_time_interval(tmarr)
|
16
|
+
:time_interval => mk_time_interval(tmarr),
|
17
|
+
:volumes_only => 1 )
|
16
18
|
|
17
19
|
# print totals
|
18
20
|
get_response(conn,req) do |resp|
|
data/trisulrp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "trisulrp"
|
8
|
-
s.version = "1.5.
|
8
|
+
s.version = "1.5.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["vivek"]
|
12
|
-
s.date = "2013-02-
|
12
|
+
s.date = "2013-02-27"
|
13
13
|
s.description = "This gem deals about the trisul remote protocol"
|
14
14
|
s.email = "vivek_rajagopal@yahoo.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trisulrp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-protocol-buffers
|
@@ -158,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
segments:
|
160
160
|
- 0
|
161
|
-
hash: -
|
161
|
+
hash: -2509685734275046378
|
162
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
163
|
none: false
|
164
164
|
requirements:
|