blob: 498358fcf65c7de080c0a5110fe24d23552cecb3 [file] [log] [blame]
kjaniak53ba1702018-10-25 14:25:13 +02001/*
2 * ============LICENSE_START=======================================================
3 * dcaegen2-collectors-veshv
4 * ================================================================================
5 * Copyright (C) 2018 NOKIA
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20syntax = "proto3";
21package org.onap.ves;
22
23// Definition for RTPM, structure aligned with 3GPP PM format optimized for RTPM delivery pre-standard TS 28.550 V2.0.0 (2018-09).
24// Some field details are taken from 3GPP TS 32.436 V15.0.0 (2018-06) ASN.1 file.
25// Note (2018-09): work is in progress for 3GPP TS 28.550. Changes will be made, if needed, to align with final version.
26// Differences/additions to 3GPP TS 28.550 are marked with "%%".
27
28message MeasDataCollection // top-level message
29{
30 // %% Combined messageFileHeader, measData (single instance), messageFileFooter (not needed: timestamp = collectionBeginTime + granularityPeriod).
31 string formatVersion = 1; // required, current value "28.550 2.0"
32 uint32 granularityPeriod = 2; // required, duration in seconds, %% moved from MeasInfo (single reporting period per event)
33 string measuredEntityUserName = 3; // network function user definable name ("userLabel") defined for the measured entity in 3GPP TS 28.622
34 string measuredEntityDn = 4; // DN as per 3GPP TS 32.300
35 string measuredEntitySoftwareVersion = 5;
36 repeated string measObjInstIdList = 6; // %%: optional, monitored object LDNs as per 3GPP TS 32.300 and 3GPP TS 32.432
37 repeated MeasInfo measInfo = 7;
38}
39
40message MeasInfo
41{
42 oneof MeasInfoId { // measurement group identifier
43 uint32 iMeasInfoId = 1; // identifier as integer (%%: more compact)
kjaniake2844092018-11-14 15:42:03 +010044 string sMeasInfoId = 2; // identifier as string (more generic)
kjaniak53ba1702018-10-25 14:25:13 +020045 }
46
47 oneof MeasTypes { // measurement identifiers associated with the measurement results
48 IMeasTypes iMeasTypes = 3; // identifiers as integers (%%: more compact)
kjaniake2844092018-11-14 15:42:03 +010049 SMeasTypes sMeasTypes = 4; // identifiers as strings (more generic)
kjaniak53ba1702018-10-25 14:25:13 +020050 }
51 // Needed only because GPB does not support repeated fields directly inside 'oneof'
52 message IMeasTypes { repeated uint32 iMeasType = 1; }
kjaniake2844092018-11-14 15:42:03 +010053 message SMeasTypes { repeated string sMeasType = 1; }
kjaniak53ba1702018-10-25 14:25:13 +020054
55 string jobId = 5;
56 repeated MeasValue measValues = 6; // performance measurements grouped by measurement object
57}
58
59message MeasValue
60{
61 oneof MeasObjInstId { // monitored object LDN as per 3GPP TS 32.300 and 3GPP TS 32.432
kjaniake2844092018-11-14 15:42:03 +010062 string sMeasObjInstId = 1; // LDN itself
kjaniak6bf58342019-01-21 07:58:32 +010063 uint32 measObjInstIdListIdx = 2; // %%: index into measObjInstIdList (1-based)
kjaniak53ba1702018-10-25 14:25:13 +020064 }
65 repeated MeasResult measResults = 3;
66 bool suspectFlag = 4;
67 map<string, string> measObjAddlFlds = 5; // %%: optional per-object data (name/value HashMap)
68}
69
70message MeasResult
71{
kjaniak6bf58342019-01-21 07:58:32 +010072 uint32 p = 1; // Index in the MeasTypes array (1-based), needed only if measResults has fewer elements than MeasTypes
kjaniak53ba1702018-10-25 14:25:13 +020073 oneof xValue {
74 sint64 iValue = 2;
75 double rValue = 3;
76 bool isNull = 4;
77 }
78}