20c364d83814ea9ad0fb8e11d171bd1c8686e3d8
[osm/SO.git] / rwmon / plugins / yang / rwmon.yang
1
2 /*
3  * 
4  *   Copyright 2016 RIFT.IO Inc
5  *
6  *   Licensed under the Apache License, Version 2.0 (the "License");
7  *   you may not use this file except in compliance with the License.
8  *   You may obtain a copy of the License at
9  *
10  *       http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *   Unless required by applicable law or agreed to in writing, software
13  *   distributed under the License is distributed on an "AS IS" BASIS,
14  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *   See the License for the specific language governing permissions and
16  *   limitations under the License.
17  *
18  *
19  */
20
21 module rwmon
22 {
23   namespace "http://riftio.com/ns/riftware-1.0/rwmon";
24   prefix "rwmon";
25
26   import rw-base {
27     prefix rwbase;
28   }
29
30   import rw-pb-ext {
31     prefix "rwpb";
32   }
33
34   import rw-yang-types {
35     prefix "rwt";
36   }
37
38   import rw-log {
39     prefix "rwlog";
40   }
41
42   import mano-types {
43     prefix "manotypes";
44   }
45
46   revision 2015-10-28 {
47     description
48         "Initial revision.";
49     reference
50         "RIFT monitoring";
51   }
52
53   container nfvi-metrics {
54     rwpb:msg-new NfviMetrics;
55
56     leaf timestamp {
57       description
58           "This is the time when the metric was captured. The timestamp is
59           represented as the number of seconds since the beginning of the Unix
60           epoch.";
61       type decimal64 {
62         fraction-digits 3;
63       }
64     }
65
66     uses manotypes:nfvi-metrics;
67   }
68
69   container alarm {
70     rwpb:msg-new Alarm;
71
72     uses manotypes:alarm;
73   }
74 }
75
76 /* vim: set ts=2:sw=2: */