Merge from OSM SO master
[osm/SO.git] / rwmon / plugins / yang / rwmon.yang
1
2 /*
3  * 
4  *   Copyright 2016-2017 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   import rw-project {
47     prefix "rw-project";
48   }
49
50   revision 2017-02-08 {
51     description
52       "Update model to support projects.";
53   }
54
55   revision 2015-10-28 {
56     description
57         "Initial revision.";
58     reference
59         "RIFT monitoring";
60   }
61
62   augment "/rw-project:project" {
63     container nfvi-metrics {
64       rwpb:msg-new NfviMetrics;
65
66       leaf timestamp {
67         description
68           "This is the time when the metric was captured. The timestamp is
69           represented as the number of seconds since the beginning of the Unix
70           epoch.";
71         type decimal64 {
72           fraction-digits 3;
73         }
74       }
75
76       uses manotypes:nfvi-metrics;
77     }
78
79     container alarm {
80       rwpb:msg-new Alarm;
81
82       uses manotypes:alarm;
83     }
84   }
85 }
86
87 /* vim: set ts=2:sw=2: */