flapjack-diner 2.0.0.pre.alpha.2 → 2.0.0.pre.alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +214 -89
- data/lib/flapjack-diner.rb +3 -3
- data/lib/flapjack-diner/resources/{blackholes.rb → acceptors.rb} +20 -16
- data/lib/flapjack-diner/resources/media.rb +2 -2
- data/lib/flapjack-diner/resources/{rules.rb → rejectors.rb} +20 -16
- data/lib/flapjack-diner/resources/relationships.rb +35 -23
- data/lib/flapjack-diner/resources/tags.rb +2 -2
- data/lib/flapjack-diner/version.rb +1 -1
- data/spec/resources/acceptors_spec.rb +278 -0
- data/spec/resources/contacts_spec.rb +8 -8
- data/spec/resources/rejectors_spec.rb +278 -0
- data/spec/resources/relationships_spec.rb +5 -5
- data/spec/support/fixture_data.rb +95 -71
- metadata +8 -8
- data/spec/resources/blackholes_spec.rb +0 -278
- data/spec/resources/rules_spec.rb +0 -278
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 599102638a3e2c603d40621b1a2ce0dfc90617e2
|
4
|
+
data.tar.gz: 34d37da6991efd2358a854edb134c32e780abd08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f53d41a4a2a7535e3462b5a1ae679337fe983fb2e15423ad64e9d041f94b7c2fd2b83f2a90bd09bc6e898a584468977757c72e92be15d87416569b28586c5f
|
7
|
+
data.tar.gz: d53cd21dfbec4da23832197bc0b8f1bc5b7a20df927a7c5f9dc524b9486929ee178cfb9882fe474617349aba0fb227204a0cef053ab2bb9aefd017cdd208a709
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
Access the JSON API of a [Flapjack](http://flapjack.io/) system monitoring server.
|
9
9
|
|
10
|
-
Please note that the following documentation refers to the `v2.0.0-alpha.
|
10
|
+
Please note that the following documentation refers to the `v2.0.0-alpha.3` pre-release of this gem. You may instead be looking for [documentation for the latest stable version](https://github.com/flapjack/flapjack-diner/blob/maint/1.x/README.md).
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
@@ -84,12 +84,19 @@ If any operation fails (returning nil), the `Flapjack::Diner.last_error` method
|
|
84
84
|
* <a name="contents_update_media"> </a>[update_media](#update_media)
|
85
85
|
* <a name="contents_delete_media"> </a>[delete_media](#delete_media)
|
86
86
|
|
87
|
-
### <a name="
|
87
|
+
### <a name="contents_section_acceptors"> </a>[Acceptors](#section_acceptors)
|
88
88
|
|
89
|
-
* <a name="
|
90
|
-
* <a name="
|
91
|
-
* <a name="
|
92
|
-
* <a name="
|
89
|
+
* <a name="contents_create_acceptors"> </a>[create_acceptors](#create_acceptors)
|
90
|
+
* <a name="contents_acceptors"> </a>[acceptors](#get_acceptors)
|
91
|
+
* <a name="contents_update_acceptors"> </a>[update_acceptors](#update_acceptors)
|
92
|
+
* <a name="contents_delete_acceptors"> </a>[delete_acceptors](#delete_acceptors)
|
93
|
+
|
94
|
+
### <a name="contents_section_rejectors"> </a>[Rejectors](#section_rejectors)
|
95
|
+
|
96
|
+
* <a name="contents_create_rejectors"> </a>[create_rejectors](#create_rejectors)
|
97
|
+
* <a name="contents_rejectors"> </a>[rejectors](#get_rejectors)
|
98
|
+
* <a name="contents_update_rejectors"> </a>[update_rejectors](#update_rejectors)
|
99
|
+
* <a name="contents_delete_rejectors"> </a>[delete_rejectors](#delete_rejectors)
|
93
100
|
|
94
101
|
### <a name="contents_section_tags"> </a>[Tags](#section_tags)
|
95
102
|
|
@@ -303,7 +310,8 @@ Flapjack::Diner.create_media(MEDIUM, MEDIUM, ...)
|
|
303
310
|
:pagerduty_token => STRING, # required (if transport == 'pagerduty')
|
304
311
|
:pagerduty_ack_duration => INTEGER, # required (if transport == 'pagerduty')
|
305
312
|
:contact => CONTACT_ID, # required
|
306
|
-
:
|
313
|
+
:acceptors => [ACCEPTOR_ID, ACCEPTOR_ID, ...],
|
314
|
+
:rejectors => [REJECTOR_ID, REJECTOR_ID, ...]
|
307
315
|
}
|
308
316
|
```
|
309
317
|
|
@@ -339,7 +347,7 @@ Flapjack::Diner.update_media({MEDIUM_ID, KEY => VALUE, ...}, {MEDIUM_ID, KEY =>
|
|
339
347
|
|
340
348
|
Acceptable update field keys are
|
341
349
|
|
342
|
-
`:address`, `:interval`, `:rollup_threshold`, `:pagerduty_subdomain`, `:pagerduty_token`, `:pagerduty_ack_duration` and `:
|
350
|
+
`:address`, `:interval`, `:rollup_threshold`, `:pagerduty_subdomain`, `:pagerduty_token`, `:pagerduty_ack_duration`, `:acceptors` and `:rejectors`
|
343
351
|
|
344
352
|
Returns true if updating succeeded or false if updating failed.
|
345
353
|
|
@@ -364,31 +372,115 @@ Returns true if deletion succeeded or false if deletion failed.
|
|
364
372
|
|
365
373
|
---
|
366
374
|
|
367
|
-
<a name="
|
368
|
-
###
|
375
|
+
<a name="section_acceptors"> </a>
|
376
|
+
### Acceptors [^](#contents_section_acceptors)
|
369
377
|
|
370
|
-
<a name="
|
371
|
-
####
|
378
|
+
<a name="create_acceptors"> </a>
|
379
|
+
#### create_acceptors
|
372
380
|
|
373
|
-
Create one or more notification
|
381
|
+
Create one or more notification acceptors.
|
374
382
|
|
375
383
|
```ruby
|
376
|
-
Flapjack::Diner.
|
384
|
+
Flapjack::Diner.create_acceptors(ACCEPTOR, ...)
|
377
385
|
```
|
378
386
|
|
379
387
|
**FIXME** time_restrictions data structure isn't handled yet
|
380
388
|
|
381
|
-
|
382
|
-
|
389
|
+
```ruby
|
390
|
+
# ACCEPTOR
|
391
|
+
{
|
392
|
+
:id => UUID_STRING,
|
393
|
+
:name => STRING,
|
394
|
+
:all => BOOLEAN, # apply to all checks, ignore tag linkages
|
395
|
+
:conditions_list => STRING, # which conditions the acceptor will match;
|
396
|
+
# all if empty, or comma-separated subset
|
397
|
+
# of 'critical,warning,unknown'
|
398
|
+
:contact => CONTACT_ID, # required
|
399
|
+
:media => [MEDIUM_ID, ...]
|
400
|
+
:tags => [TAG_NAME, ...]
|
401
|
+
}
|
402
|
+
```
|
403
|
+
|
404
|
+
Returns false if creation failed, or the created object(s) if it succeeded.
|
405
|
+
|
406
|
+
[^](#contents_create_acceptors)
|
407
|
+
|
408
|
+
<a name="get_acceptors"> </a>
|
409
|
+
#### acceptors
|
410
|
+
|
411
|
+
Return data for one, some or all notification acceptors.
|
412
|
+
|
413
|
+
```ruby
|
414
|
+
acceptor = Flapjack::Diner.acceptors(ACCEPTOR_ID)
|
415
|
+
some_acceptors = Flapjack::Diner.acceptors(ACCEPTOR_ID, ACCEPTOR_ID, ...)
|
416
|
+
first_page_of_acceptors = Flapjack::Diner.acceptors
|
417
|
+
```
|
418
|
+
|
419
|
+
[^](#contents_acceptors)
|
420
|
+
|
421
|
+
<a name="update_acceptors"> </a>
|
422
|
+
#### update_acceptors
|
423
|
+
|
424
|
+
Update data for one or more notification acceptors.
|
425
|
+
|
426
|
+
```ruby
|
427
|
+
# update values for one acceptor
|
428
|
+
Flapjack::Diner.update_acceptors(:id => ACCEPTOR_ID, KEY => VALUE, ...)
|
429
|
+
|
430
|
+
# update values for multiple acceptors
|
431
|
+
Flapjack::Diner.update_acceptors({:id => ACCEPTOR_ID, KEY => VALUE, ...}, {:id => ACCEPTOR_ID, KEY => VALUE, ...})
|
432
|
+
```
|
433
|
+
|
434
|
+
Acceptable update field keys are
|
435
|
+
|
436
|
+
`:conditions_list`, `:is_blackhole`, `:media` and `:tags`
|
437
|
+
|
438
|
+
Returns true if updating succeeded or false if updating failed.
|
439
|
+
|
440
|
+
[^](#contents_update_acceptors)
|
441
|
+
|
442
|
+
<a name="delete_acceptors"> </a>
|
443
|
+
#### delete_acceptors
|
444
|
+
|
445
|
+
Delete one or more notification acceptors.
|
383
446
|
|
384
447
|
```ruby
|
385
|
-
#
|
448
|
+
# delete one acceptor
|
449
|
+
Flapjack::Diner.delete_acceptors(ACCEPTOR_ID)
|
450
|
+
|
451
|
+
# delete multiple acceptors
|
452
|
+
Flapjack::Diner.delete_acceptors(ACCEPTOR_ID, ACCEPTOR_ID, ...)
|
453
|
+
```
|
454
|
+
|
455
|
+
Returns true if deletion succeeded or false if deletion failed.
|
456
|
+
|
457
|
+
[^](#contents_delete_acceptors)
|
458
|
+
|
459
|
+
---
|
460
|
+
|
461
|
+
<a name="section_rejectors"> </a>
|
462
|
+
### Rules [^](#contents_section_rejectors)
|
463
|
+
|
464
|
+
<a name="create_rejectors"> </a>
|
465
|
+
#### create_rejectors
|
466
|
+
|
467
|
+
Create one or more notification rejectors.
|
468
|
+
|
469
|
+
```ruby
|
470
|
+
Flapjack::Diner.create_rejectors(REJECTOR, ...)
|
471
|
+
```
|
472
|
+
|
473
|
+
**FIXME** time_restrictions data structure isn't handled yet
|
474
|
+
|
475
|
+
```ruby
|
476
|
+
# REJECTOR
|
386
477
|
{
|
387
478
|
:id => UUID_STRING,
|
388
|
-
:
|
479
|
+
:name => STRING,
|
480
|
+
:all => BOOLEAN, # apply to all checks, ignore tag linkages
|
481
|
+
:conditions_list => STRING, # which conditions the rejector will match;
|
389
482
|
# all if empty, or comma-separated subset
|
390
483
|
# of 'critical,warning,unknown'
|
391
|
-
:is_blackhole => BOOLEAN,
|
392
484
|
:contact => CONTACT_ID, # required
|
393
485
|
:media => [MEDIUM_ID, ...]
|
394
486
|
:tags => [TAG_NAME, ...]
|
@@ -397,32 +489,32 @@ remove the `is_blackhole` boolean?
|
|
397
489
|
|
398
490
|
Returns false if creation failed, or the created object(s) if it succeeded.
|
399
491
|
|
400
|
-
[^](#
|
492
|
+
[^](#contents_create_rejectors)
|
401
493
|
|
402
|
-
<a name="
|
403
|
-
####
|
494
|
+
<a name="get_rejectors"> </a>
|
495
|
+
#### rejectors
|
404
496
|
|
405
|
-
Return data for one, some or all notification
|
497
|
+
Return data for one, some or all notification rejectors.
|
406
498
|
|
407
499
|
```ruby
|
408
|
-
|
409
|
-
|
410
|
-
|
500
|
+
rejector = Flapjack::Diner.rejectors(REJECTOR_ID)
|
501
|
+
some_rejectors = Flapjack::Diner.rejectors(REJECTOR_ID, REJECTOR_ID, ...)
|
502
|
+
first_page_of_rejectors = Flapjack::Diner.rejectors
|
411
503
|
```
|
412
504
|
|
413
|
-
[^](#
|
505
|
+
[^](#contents_rejectors)
|
414
506
|
|
415
|
-
<a name="
|
416
|
-
####
|
507
|
+
<a name="update_rejectors"> </a>
|
508
|
+
#### update_rejectors
|
417
509
|
|
418
|
-
Update data for one or more notification
|
510
|
+
Update data for one or more notification rejectors.
|
419
511
|
|
420
512
|
```ruby
|
421
|
-
# update values for one
|
422
|
-
Flapjack::Diner.
|
513
|
+
# update values for one rejector
|
514
|
+
Flapjack::Diner.update_rejectors(:id => REJECTOR_ID, KEY => VALUE, ...)
|
423
515
|
|
424
|
-
# update values for multiple
|
425
|
-
Flapjack::Diner.
|
516
|
+
# update values for multiple rejectors
|
517
|
+
Flapjack::Diner.update_rejectors({:id => REJECTOR_ID, KEY => VALUE, ...}, {:id => REJECTOR_ID, KEY => VALUE, ...})
|
426
518
|
```
|
427
519
|
|
428
520
|
Acceptable update field keys are
|
@@ -431,24 +523,24 @@ Acceptable update field keys are
|
|
431
523
|
|
432
524
|
Returns true if updating succeeded or false if updating failed.
|
433
525
|
|
434
|
-
[^](#
|
526
|
+
[^](#contents_update_rejectors)
|
435
527
|
|
436
|
-
<a name="
|
437
|
-
####
|
528
|
+
<a name="delete_rejectors"> </a>
|
529
|
+
#### delete_rejectors
|
438
530
|
|
439
|
-
Delete one or more notification
|
531
|
+
Delete one or more notification rejectors.
|
440
532
|
|
441
533
|
```ruby
|
442
|
-
# delete one
|
443
|
-
Flapjack::Diner.
|
534
|
+
# delete one rejector
|
535
|
+
Flapjack::Diner.delete_rejectors(REJECTOR_ID)
|
444
536
|
|
445
|
-
# delete multiple
|
446
|
-
Flapjack::Diner.
|
537
|
+
# delete multiple rejectors
|
538
|
+
Flapjack::Diner.delete_rejectors(REJECTOR_ID, REJECTOR_ID, ...)
|
447
539
|
```
|
448
540
|
|
449
541
|
Returns true if deletion succeeded or false if deletion failed.
|
450
542
|
|
451
|
-
[^](#
|
543
|
+
[^](#contents_delete_rejectors)
|
452
544
|
|
453
545
|
---
|
454
546
|
|
@@ -467,9 +559,10 @@ Flapjack::Diner.create_tags(TAG, ...)
|
|
467
559
|
```ruby
|
468
560
|
# TAG
|
469
561
|
{
|
470
|
-
:name
|
471
|
-
:checks
|
472
|
-
:
|
562
|
+
:name => STRING, # required
|
563
|
+
:checks => [CHECK_ID, ...],
|
564
|
+
:acceptors => [ACCEPTOR_ID, ...],
|
565
|
+
:rejectors => [REJECTOR_ID, ...]
|
473
566
|
}
|
474
567
|
```
|
475
568
|
|
@@ -505,7 +598,7 @@ Flapjack::Diner.update_tags({:id => TAG_NAME, KEY => VALUE, ...}, {:id => TAG_NA
|
|
505
598
|
|
506
599
|
Acceptable update field keys are
|
507
600
|
|
508
|
-
`:checks` and `:
|
601
|
+
`:checks`, `:acceptors` and `:rejectors`
|
509
602
|
|
510
603
|
Returns true if updating succeeded or false if updating failed.
|
511
604
|
|
@@ -771,29 +864,35 @@ first_page_of_statistics = Flapjack::Diner.statistics
|
|
771
864
|
<a name="common_options_get_include"> </a>
|
772
865
|
### Associated data allowed for the include parameter
|
773
866
|
|
774
|
-
| Method
|
775
|
-
|
776
|
-
| `.checks`
|
777
|
-
| `.checks`
|
778
|
-
| `.checks`
|
779
|
-
| `.checks`
|
780
|
-
| `.checks`
|
781
|
-
| `.checks`
|
782
|
-
| `.checks`
|
783
|
-
| `.contacts`
|
784
|
-
| `.contacts`
|
785
|
-
| `.contacts`
|
786
|
-
| `.
|
787
|
-
| `.media`
|
788
|
-
| `.media`
|
789
|
-
| `.
|
790
|
-
| `.
|
791
|
-
| `.
|
792
|
-
| `.
|
793
|
-
| `.
|
794
|
-
| `.
|
795
|
-
| `.
|
796
|
-
| `.
|
867
|
+
| Method | Association | Assoc. Type |
|
868
|
+
|-----------------------------|-----------------------------------|--------------------------------|
|
869
|
+
| `.checks` | 'alerting_media' | ['medium', ...] |
|
870
|
+
| `.checks` | 'contacts' | ['contact', ...] |
|
871
|
+
| `.checks` | 'current_scheduled_maintenances' | ['scheduled_maintenance', ...] |
|
872
|
+
| `.checks` | 'current_state' | 'state' |
|
873
|
+
| `.checks` | 'current_unscheduled_maintenance' | 'unscheduled_maintenance' |
|
874
|
+
| `.checks` | 'latest_notifications' | ['state', ...] |
|
875
|
+
| `.checks` | 'tags' | ['tag', ...] |
|
876
|
+
| `.contacts` | 'acceptors' | ['acceptor', ...] |
|
877
|
+
| `.contacts` | 'checks' | ['check', ...] |
|
878
|
+
| `.contacts` | 'media' | ['medium', ...] |
|
879
|
+
| `.contacts` | 'rejectors' | ['rejector', ...] |
|
880
|
+
| `.media` | 'acceptors' | ['acceptor', ...] |
|
881
|
+
| `.media` | 'alerting_checks' | ['check', ...] |
|
882
|
+
| `.media` | 'contact' | 'contact' |
|
883
|
+
| `.media` | 'rejectors' | ['rejector', ...] |
|
884
|
+
| `.acceptors` | 'contact' | 'contact' |
|
885
|
+
| `.acceptors` | 'media' | ['medium', ...] |
|
886
|
+
| `.acceptors` | 'tags' | ['tag', ...] |
|
887
|
+
| `.rejectors` | 'contact' | 'contact' |
|
888
|
+
| `.rejectors` | 'media' | ['medium', ...] |
|
889
|
+
| `.rejectors` | 'tags' | ['tag', ...] |
|
890
|
+
| `.scheduled_maintenances` | 'check' | 'check' |
|
891
|
+
| `.states` | 'check' | 'check' |
|
892
|
+
| `.tags` | 'acceptors' | ['acceptor', ...] |
|
893
|
+
| `.tags` | 'checks' | ['check', ...] |
|
894
|
+
| `.tags` | 'rejectors' | ['acceptor', ...] |
|
895
|
+
| `.unscheduled_maintenances` | 'check' | 'check' |
|
797
896
|
|
798
897
|
NB: these may be chained, as long as they follow the allowed paths above; e.g.
|
799
898
|
|
@@ -834,22 +933,32 @@ check_link_states(check_id, opts = {})
|
|
834
933
|
check_link_tags(check_id, opts = {})
|
835
934
|
check_link_unscheduled_maintenances(check_id, opts = {})
|
836
935
|
|
936
|
+
contact_link_acceptors(contact_id, opts = {})
|
837
937
|
contact_link_checks(contact_id, opts = {})
|
838
938
|
contact_link_media(contact_id, opts = {})
|
839
|
-
|
939
|
+
contact_link_rejectors(contact_id, opts = {})
|
840
940
|
|
941
|
+
medium_link_acceptors(medium_id, opts = {})
|
841
942
|
medium_link_alerting_checks(medium_id, opts = {})
|
842
943
|
medium_link_contact(medium_id, opts = {})
|
843
|
-
|
944
|
+
medium_link_rejectors(medium_id, opts = {})
|
844
945
|
|
845
|
-
|
846
|
-
|
847
|
-
|
946
|
+
acceptor_link_contact(acceptor_id, opts = {})
|
947
|
+
acceptor_link_media(acceptor_id, opts = {})
|
948
|
+
acceptor_link_tags(acceptor_id, opts = {})
|
949
|
+
|
950
|
+
rejector_link_contact(rejector_id, opts = {})
|
951
|
+
rejector_link_media(rejector_id, opts = {})
|
952
|
+
rejector_link_tags(rejector_id, opts = {})
|
848
953
|
|
849
954
|
state_link_check(state_id, opts = {})
|
850
955
|
|
956
|
+
tag_link_acceptors(tag_name, opts = {})
|
851
957
|
tag_link_checks(tag_name, opts = {})
|
852
|
-
|
958
|
+
tag_link_rejectors(tag_name, opts = {})
|
959
|
+
tag_link_scheduled_maintenances(tag_name, opts = {})
|
960
|
+
tag_link_states(tag_name, opts = {})
|
961
|
+
tag_link_unscheduled_maintenances(tag_name, opts = {})
|
853
962
|
```
|
854
963
|
|
855
964
|
All returned results are paginated, and the [common options for GET requests](#common_options_get) apply here too.
|
@@ -857,32 +966,48 @@ All returned results are paginated, and the [common options for GET requests](#c
|
|
857
966
|
<a name="object_relationships_write"> </a>
|
858
967
|
### Manipulating object relationships
|
859
968
|
|
860
|
-
The following operations are supported; please note that some associations (e.g. associating
|
969
|
+
The following operations are supported; please note that some associations (e.g. associating an acceptor with a contact) must be made on object creation, via the secondary resource's create method, and cannot be altered later.
|
861
970
|
|
862
971
|
```
|
863
972
|
create_check_link_tags(check_id, *tags_names)
|
864
973
|
update_check_link_tags(check_id, *tags_names)
|
865
974
|
delete_check_link_tags(check_id, *tags_names)
|
866
975
|
|
867
|
-
|
868
|
-
|
869
|
-
|
976
|
+
create_medium_link_acceptors(medium_id, *acceptors_ids)
|
977
|
+
update_medium_link_acceptors(medium_id, *acceptors_ids)
|
978
|
+
delete_medium_link_acceptors(medium_id, *acceptors_ids)
|
979
|
+
|
980
|
+
create_medium_link_rejectors(medium_id, *rejectors_ids)
|
981
|
+
update_medium_link_rejectors(medium_id, *rejectors_ids)
|
982
|
+
delete_medium_link_rejectors(medium_id, *rejectors_ids)
|
870
983
|
|
871
|
-
|
872
|
-
|
873
|
-
|
984
|
+
create_acceptor_link_media(acceptor_id, *media_ids)
|
985
|
+
update_acceptor_link_media(acceptor_id, *media_ids)
|
986
|
+
delete_acceptor_link_media(acceptor_id, *media_ids)
|
874
987
|
|
875
|
-
|
876
|
-
|
877
|
-
|
988
|
+
create_acceptor_link_tags(acceptor_id, *tags_names)
|
989
|
+
update_acceptor_link_tags(acceptor_id, *tags_names)
|
990
|
+
delete_acceptor_link_tags(acceptor_id, *tags_names)
|
991
|
+
|
992
|
+
create_rejector_link_media(rejector_id, *media_ids)
|
993
|
+
update_rejector_link_media(rejector_id, *media_ids)
|
994
|
+
delete_rejector_link_media(rejector_id, *media_ids)
|
995
|
+
|
996
|
+
create_rejector_link_tags(rejector_id, *tags_names)
|
997
|
+
update_rejector_link_tags(rejector_id, *tags_names)
|
998
|
+
delete_rejector_link_tags(rejector_id, *tags_names)
|
878
999
|
|
879
1000
|
create_tag_link_checks(tag_name, *checks_ids)
|
880
1001
|
update_tag_link_checks(tag_name, *checks_ids)
|
881
1002
|
delete_tag_link_checks(tag_name, *checks_ids)
|
882
1003
|
|
883
|
-
|
884
|
-
|
885
|
-
|
1004
|
+
create_tag_link_acceptors(tag_name, *acceptors_ids)
|
1005
|
+
update_tag_link_acceptors(tag_name, *acceptors_ids)
|
1006
|
+
delete_tag_link_acceptors(tag_name, *acceptors_ids)
|
1007
|
+
|
1008
|
+
create_tag_link_rejectors(tag_name, *rejectors_ids)
|
1009
|
+
update_tag_link_rejectors(tag_name, *rejectors_ids)
|
1010
|
+
delete_tag_link_rejectors(tag_name, *rejectors_ids)
|
886
1011
|
```
|
887
1012
|
|
888
1013
|
<a name="object_relationships_write_create"> </a>
|
data/lib/flapjack-diner.rb
CHANGED
@@ -4,7 +4,7 @@ require 'json'
|
|
4
4
|
require 'flapjack-diner/version'
|
5
5
|
require 'flapjack-diner/argument_validator'
|
6
6
|
|
7
|
-
%w(
|
7
|
+
%w(acceptors checks contacts events maintenance_periods media metrics rejectors
|
8
8
|
states statistics tags relationships).each do |resource|
|
9
9
|
require "flapjack-diner/resources/#{resource}"
|
10
10
|
end
|
@@ -26,14 +26,14 @@ module Flapjack
|
|
26
26
|
class << self
|
27
27
|
attr_accessor :logger, :return_keys_as_strings
|
28
28
|
|
29
|
-
include Flapjack::Diner::Resources::
|
29
|
+
include Flapjack::Diner::Resources::Acceptors
|
30
30
|
include Flapjack::Diner::Resources::Checks
|
31
31
|
include Flapjack::Diner::Resources::Contacts
|
32
32
|
include Flapjack::Diner::Resources::Events
|
33
33
|
include Flapjack::Diner::Resources::MaintenancePeriods
|
34
34
|
include Flapjack::Diner::Resources::Media
|
35
35
|
include Flapjack::Diner::Resources::Metrics
|
36
|
-
include Flapjack::Diner::Resources::
|
36
|
+
include Flapjack::Diner::Resources::Rejectors
|
37
37
|
include Flapjack::Diner::Resources::States
|
38
38
|
include Flapjack::Diner::Resources::Statistics
|
39
39
|
include Flapjack::Diner::Resources::Tags
|