Add logging configuration to spec
[dcaegen2/platform/cli.git] / component-json-schemas / tests / component-spec-logging.json
1 {
2   "self": {
3     "version": "0.5.0",
4     "name": "sandbox.platform.laika",
5     "description": "Web service used as a stand-alone test DCAE service component",
6     "component_type": "docker"
7   },
8   "streams": {
9     "subscribes": [],
10     "publishes": [
11       {
12         "format": "some.format",
13         "version": "1.0.0",
14         "config_key": "pub-foo",
15         "type": "message router"
16       },
17       {
18         "format": "some.format",
19         "version": "1.0.0",
20         "config_key": "pub-foo",
21         "type": "http"
22       }
23     ]
24   },
25   "services": {
26     "calls": [],
27     "provides": [
28       {
29         "route": "/rollcall",
30         "verb": "GET",
31         "request": {
32           "format": "sandbox.platform.any",
33           "version": "0.1.0"
34         },
35         "response": {
36           "format": "sandbox.platform.laika.rollcall.response",
37           "version": "0.1.0"
38         }
39       },
40       {
41         "route": "/identity",
42         "verb": "POST",
43         "request": {
44           "format": "sandbox.platform.laika.identity.request",
45           "version": "0.1.0"
46         },
47         "response": {
48           "format": "sandbox.platform.laika.identity.response",
49           "version": "0.1.0"
50         }
51       },
52       {
53         "route": "/health",
54         "verb": "GET",
55         "request": {
56           "format": "sandbox.platform.any",
57           "version": "0.1.0"
58         },
59         "response": {
60           "format": "sandbox.platform.laika.health",
61           "version": "0.1.0"
62         }
63       }
64     ]
65   },
66   "parameters": [
67     {
68       "name": "threshold",
69       "description": "Some fake threshold",
70       "type": "number",
71       "value": 2000
72     },
73     {
74       "name": "some-target-number",
75       "description": "Some fake target",
76       "type": "number",
77       "value": 10000,
78       "constraints": [
79           {
80             "greater_or_equal": 1
81           },
82           {
83             "less_than": 100000
84           }]
85     },
86     {
87       "name": "magic-word",
88       "description": "Some magic word",
89       "type": "string",
90       "value": "requirements",
91       "constraints": [
92           {
93             "valid_values": ["rally", "user story"]
94           }]
95     }
96   ],
97   "auxilary": {
98     "healthcheck": {
99       "type": "http",
100       "endpoint": "/foo"
101     },
102     "ports": ["8080:8080"],
103     "logging": {
104       "log_directory": "/tmp/yo",
105       "alternate_fb_path": "/tmp/path"
106     }
107   },
108   "artifacts": [
109     {
110       "uri": "some docker image path",
111       "type": "docker image"
112     }
113   ]
114 }