blob: 300d7e56947abc010502f2fe8a096c5d67650ade [file] [log] [blame]
Tommy Carpenter5ad8f032019-05-30 14:33:21 -04001{
2 "controls":[
3 {
Tommy Carpenter24514462019-07-16 11:25:52 -04004 "name":"admission_control_policy",
5 "description":"various parameters to control admission of dual connection",
6 "control_state_request_rmr_type":"DC_ADM_GET_POLICY",
7 "control_state_request_reply_rmr_type":"DC_ADM_GET_POLICY_ACK",
8 "message_receives_rmr_type":"DC_ADM_INT_CONTROL",
Tommy Carpenter5ad8f032019-05-30 14:33:21 -04009 "message_receives_payload_schema":{
10 "$schema":"http://json-schema.org/draft-07/schema#",
11 "type":"object",
12 "properties":{
Tommy Carpenter24514462019-07-16 11:25:52 -040013 "enforce":{
14 "type":"boolean",
15 "default":true
Tommy Carpenter5ad8f032019-05-30 14:33:21 -040016 },
Tommy Carpenter24514462019-07-16 11:25:52 -040017 "window_length":{
18 "type":"integer",
19 "default":1,
20 "minimum":1,
21 "maximum":60,
22 "description":"Sliding window length (in minutes)"
23 },
24 "blocking_rate":{
25 "type":"number",
26 "default":10,
27 "minimum":1,
28 "maximum":100,
29 "description":"% Connections to block"
30 },
31 "trigger_threshold":{
32 "type":"integer",
33 "default":10,
34 "minimum":1,
35 "description":"Minimum number of events in window to trigger blocking"
Tommy Carpenter5ad8f032019-05-30 14:33:21 -040036 }
37 },
Tommy Carpenter24514462019-07-16 11:25:52 -040038 "additionalProperties":false
Tommy Carpenter5ad8f032019-05-30 14:33:21 -040039 },
Tommy Carpenter24514462019-07-16 11:25:52 -040040 "message_sends_rmr_type":"DC_ADM_INT_CONTROL_ACK",
Tommy Carpenter5ad8f032019-05-30 14:33:21 -040041 "message_sends_payload_schema":{
42 "$schema":"http://json-schema.org/draft-07/schema#",
43 "type":"object",
44 "properties":{
45 "status":{
46 "type":"string",
47 "enum":[
48 "SUCCESS",
49 "FAIL"
50 ]
51 },
52 "message":{
53 "type":"string"
54 }
Tommy Carpenter24514462019-07-16 11:25:52 -040055 },
56 "required":[
57 "status"
58 ],
59 "additionalProperties":false
Tommy Carpenter5ad8f032019-05-30 14:33:21 -040060 }
61 },
62 {
63 "name":"test_policy",
64 "description":"for the purposes of testing",
65 "message_receives_rmr_type":"TEST_REQ",
66 "message_sends_rmr_type":"TEST_ACK",
67 "message_sends_payload_schema":{
68 "$schema":"http://json-schema.org/draft-07/schema#",
69 "type":"object",
70 "properties":{
71 "status":{
72 "type":"string",
73 "enum":[
74 "SUCCESS",
75 "FAIL"
76 ]
77 }
78 }
79 }
80 }
81 ]
82}