2a96b7697c875df8b69bf6e8eb2115687d9dfa63
[osm/MON.git] / osm_mon / core / models / read_metric_data_resp.json
1 /* Copyright© 2017 Intel Research and Development Ireland Limited
2   # This file is part of OSM Monitoring module
3   # All Rights Reserved to Intel Corporation
4
5   # Licensed under the Apache License, Version 2.0 (the "License"); you may
6   # not use this file except in compliance with the License. You may obtain
7   # a copy of the License at
8
9   #         http://www.apache.org/licenses/LICENSE-2.0
10
11   # Unless required by applicable law or agreed to in writing, software
12   # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13   # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14   # License for the specific language governing permissions and limitations
15   # under the License.
16
17   # For those usages not covered by the Apache License, Version 2.0 please
18   # contact: prithiv.mohan@intel.com or adrian.hoban@intel.com
19   
20   # This is the message bus schema for read_metric_data response */
21
22 {
23   "schema_version": { "type": "string" },
24   "schema_type": {"type": "string" },
25   "metric_name": { "type": "string" },
26   "metric_uuid": { "type": "string" },
27   "correlation_id": { "type": "integer" },
28   "resource_uuid": { "type": "string" },
29   "status": { "type": "boolean" },
30   "metrics_data":
31   {
32     "time_series": [{
33                       "type": "array",
34                       "properties":
35                       { "time_stamp":
36                         { "type": "integer" }}}
37     ],
38     "metrics_series": [{
39                       "type": "array",
40                       "properties":
41                       { "data":
42                         { "type":
43                             ["integer",
44                             "string",
45                             "decimal"
46                             ]
47                         }
48                       }
49                     }
50                   ],
51       },
52   "unit": { "type": "string" },
53   "required": [ "schema_version",
54                 "schema_type",
55                 "metric_name",
56                 "metric_uuid",
57                 "resource_uuid",
58                 "correlation_id",
59                 "time_series",
60                 "metrics_series",
61                 "status" ]
62 }