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