flapjack-diner 2.0.0.pre.alpha.2 → 2.0.0.pre.alpha.3

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
  SHA1:
3
- metadata.gz: ac8e83fdc9d402c3e60acfeb01b64a0d8f352ad6
4
- data.tar.gz: ce8eecce83ca64e01dca304c8a453eb019c5c313
3
+ metadata.gz: 599102638a3e2c603d40621b1a2ce0dfc90617e2
4
+ data.tar.gz: 34d37da6991efd2358a854edb134c32e780abd08
5
5
  SHA512:
6
- metadata.gz: d5b3c08505bea0ed12897b2b437cc418f6194f09d4d6041a8155b86be638b5f8ce86538d1be8d30deb969c46c45db07f1ae959dc59ce8a6255c7ae292f308251
7
- data.tar.gz: e741106cde2ec5631730f27708f0d775c806250c6850f3c05d6559e218ec2e635b888923265caab155cc97ea424448778bb000ead02340ef5f7e9db99868bdaf
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.1` 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).
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">&nbsp;</a>[update_media](#update_media)
85
85
  * <a name="contents_delete_media">&nbsp;</a>[delete_media](#delete_media)
86
86
 
87
- ### <a name="contents_section_rules">&nbsp;</a>[Rules](#section_rules)
87
+ ### <a name="contents_section_acceptors">&nbsp;</a>[Acceptors](#section_acceptors)
88
88
 
89
- * <a name="contents_create_rules">&nbsp;</a>[create_rules](#create_rules)
90
- * <a name="contents_rules">&nbsp;</a>[rules](#get_rules)
91
- * <a name="contents_update_rules">&nbsp;</a>[update_rules](#update_rules)
92
- * <a name="contents_delete_rules">&nbsp;</a>[delete_rules](#delete_rules)
89
+ * <a name="contents_create_acceptors">&nbsp;</a>[create_acceptors](#create_acceptors)
90
+ * <a name="contents_acceptors">&nbsp;</a>[acceptors](#get_acceptors)
91
+ * <a name="contents_update_acceptors">&nbsp;</a>[update_acceptors](#update_acceptors)
92
+ * <a name="contents_delete_acceptors">&nbsp;</a>[delete_acceptors](#delete_acceptors)
93
+
94
+ ### <a name="contents_section_rejectors">&nbsp;</a>[Rejectors](#section_rejectors)
95
+
96
+ * <a name="contents_create_rejectors">&nbsp;</a>[create_rejectors](#create_rejectors)
97
+ * <a name="contents_rejectors">&nbsp;</a>[rejectors](#get_rejectors)
98
+ * <a name="contents_update_rejectors">&nbsp;</a>[update_rejectors](#update_rejectors)
99
+ * <a name="contents_delete_rejectors">&nbsp;</a>[delete_rejectors](#delete_rejectors)
93
100
 
94
101
  ### <a name="contents_section_tags">&nbsp;</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
- :rules => [RULE_ID, RULE_ID, ...]
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 `:rules`
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="section_rules">&nbsp;</a>
368
- ### Rules [^](#contents_section_rules)
375
+ <a name="section_acceptors">&nbsp;</a>
376
+ ### Acceptors [^](#contents_section_acceptors)
369
377
 
370
- <a name="create_rules">&nbsp;</a>
371
- #### create_rules
378
+ <a name="create_acceptors">&nbsp;</a>
379
+ #### create_acceptors
372
380
 
373
- Create one or more notification rules.
381
+ Create one or more notification acceptors.
374
382
 
375
383
  ```ruby
376
- Flapjack::Diner.create_rules(RULE, ...)
384
+ Flapjack::Diner.create_acceptors(ACCEPTOR, ...)
377
385
  ```
378
386
 
379
387
  **FIXME** time_restrictions data structure isn't handled yet
380
388
 
381
- **FIXME** should empty `conditions_list` implicitly specify blackhole -- thus
382
- remove the `is_blackhole` boolean?
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">&nbsp;</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">&nbsp;</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">&nbsp;</a>
443
+ #### delete_acceptors
444
+
445
+ Delete one or more notification acceptors.
383
446
 
384
447
  ```ruby
385
- # RULE
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">&nbsp;</a>
462
+ ### Rules [^](#contents_section_rejectors)
463
+
464
+ <a name="create_rejectors">&nbsp;</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
- :conditions_list => STRING, # which conditions the rule will match;
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
- [^](#contents_create_rules)
492
+ [^](#contents_create_rejectors)
401
493
 
402
- <a name="get_rules">&nbsp;</a>
403
- #### rules
494
+ <a name="get_rejectors">&nbsp;</a>
495
+ #### rejectors
404
496
 
405
- Return data for one, some or all notification rules.
497
+ Return data for one, some or all notification rejectors.
406
498
 
407
499
  ```ruby
408
- rule = Flapjack::Diner.rules(RULE_ID)
409
- some_rules = Flapjack::Diner.rules(RULE_ID, RULE_ID, ...)
410
- first_page_of_rules = Flapjack::Diner.rules
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
- [^](#contents_rules)
505
+ [^](#contents_rejectors)
414
506
 
415
- <a name="update_rules">&nbsp;</a>
416
- #### update_rules
507
+ <a name="update_rejectors">&nbsp;</a>
508
+ #### update_rejectors
417
509
 
418
- Update data for one or more notification rules.
510
+ Update data for one or more notification rejectors.
419
511
 
420
512
  ```ruby
421
- # update values for one rule
422
- Flapjack::Diner.update_rules(:id => RULE_ID, KEY => VALUE, ...)
513
+ # update values for one rejector
514
+ Flapjack::Diner.update_rejectors(:id => REJECTOR_ID, KEY => VALUE, ...)
423
515
 
424
- # update values for multiple rules
425
- Flapjack::Diner.update_rules({:id => RULE_ID, KEY => VALUE, ...}, {:id => RULE_ID, KEY => VALUE, ...})
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
- [^](#contents_update_rules)
526
+ [^](#contents_update_rejectors)
435
527
 
436
- <a name="delete_rules">&nbsp;</a>
437
- #### delete_rules
528
+ <a name="delete_rejectors">&nbsp;</a>
529
+ #### delete_rejectors
438
530
 
439
- Delete one or more notification rules.
531
+ Delete one or more notification rejectors.
440
532
 
441
533
  ```ruby
442
- # delete one rule
443
- Flapjack::Diner.delete_rules(RULE_ID)
534
+ # delete one rejector
535
+ Flapjack::Diner.delete_rejectors(REJECTOR_ID)
444
536
 
445
- # delete multiple rules
446
- Flapjack::Diner.delete_rules(RULE_ID, RULE_ID, ...)
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
- [^](#contents_delete_rules)
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 => STRING, # required
471
- :checks => [CHECK_ID, ...]
472
- :rules => [RULE_ID, ...]
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 `:rules`
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">&nbsp;</a>
772
865
  ### Associated data allowed for the include parameter
773
866
 
774
- | Method | Association | Assoc. Type |
775
- |-----------|--------------|-------------|
776
- | `.checks` | 'alerting_media' | ['medium', ...] |
777
- | `.checks` | 'contacts' | ['contact', ...] |
778
- | `.checks` | 'current_scheduled_maintenances' | ['scheduled_maintenance', ...] |
779
- | `.checks` | 'current_state' | 'state' |
780
- | `.checks` | 'current_unscheduled_maintenance' | 'unscheduled_maintenance' |
781
- | `.checks` | 'latest_notifications' | ['state', ...] |
782
- | `.checks` | 'tags' | ['tag', ...] |
783
- | `.contacts` | 'checks' | ['check', ...] |
784
- | `.contacts` | 'media' | ['medium', ...] |
785
- | `.contacts` | 'rules' | ['rule', ...] |
786
- | `.media` | 'alerting_checks' | ['check', ...] |
787
- | `.media` | 'contact' | 'contact' |
788
- | `.media` | 'rules' | ['rule', ...] |
789
- | `.rules` | 'contact' | 'contact' |
790
- | `.rules` | 'media' | ['medium', ...] |
791
- | `.rules` | 'tags' | ['tag', ...] |
792
- | `.scheduled_maintenances` | 'check' | 'check' |
793
- | `.states` | 'check' | 'check' |
794
- | `.tags` | 'checks' | ['check', ...] |
795
- | `.tags` | 'rules' | ['rule', ...] |
796
- | `.unscheduled_maintenances` | 'check' | 'check' |
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
- contact_link_rules(contact_id, opts = {})
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
- medium_link_rules(medium_id, opts = {})
944
+ medium_link_rejectors(medium_id, opts = {})
844
945
 
845
- rule_link_contact(rule_id, opts = {})
846
- rule_link_media(rule_id, opts = {})
847
- rule_link_tags(rule_id, opts = {})
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
- tag_link_rules(tag_name, opts = {})
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">&nbsp;</a>
858
967
  ### Manipulating object relationships
859
968
 
860
- The following operations are supported; please note that some associations (e.g. associating a rule with a contact) must be made on object creation, via the secondary resource's create method, and cannot be altered later.
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
- create_medium_link_rules(medium_id, *rules_ids)
868
- update_medium_link_rules(medium_id, *rules_ids)
869
- delete_medium_link_rules(medium_id, *rules_ids)
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
- create_rule_link_media(rule_id, *media_ids)
872
- update_rule_link_media(rule_id, *media_ids)
873
- delete_rule_link_media(rule_id, *media_ids)
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
- create_rule_link_tags(rule_id, *tags_names)
876
- update_rule_link_tags(rule_id, *tags_names)
877
- delete_rule_link_tags(rule_id, *tags_names)
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
- create_tag_link_rules(tag_name, *rules_ids)
884
- update_tag_link_rules(tag_name, *rules_ids)
885
- delete_tag_link_rules(tag_name, *rules_ids)
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">&nbsp;</a>
@@ -4,7 +4,7 @@ require 'json'
4
4
  require 'flapjack-diner/version'
5
5
  require 'flapjack-diner/argument_validator'
6
6
 
7
- %w(blackholes checks contacts events maintenance_periods media metrics rules
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::Blackholes
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::Rules
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