update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[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-yang-types {
31     prefix "rwt";
32   }
33
34   import rw-log {
35     prefix "rwlog";
36   }
37
38   import mano-types {
39     prefix "manotypes";
40   }
41
42   import rw-project {
43     prefix "rw-project";
44   }
45
46   revision 2017-02-08 {
47     description
48       "Update model to support projects.";
49   }
50
51   revision 2015-10-28 {
52     description
53         "Initial revision.";
54     reference
55         "RIFT monitoring";
56   }
57
58   augment "/rw-project:project" {
59     container nfvi-metrics {
60       leaf timestamp {
61         description
62           "This is the time when the metric was captured. The timestamp is
63           represented as the number of seconds since the beginning of the Unix
64           epoch.";
65         type decimal64 {
66           fraction-digits 3;
67         }
68       }
69
70       uses manotypes:nfvi-metrics;
71     }
72
73     container alarm {
74       uses manotypes:alarm;
75     }
76   }
77 }
78
79 /* vim: set ts=2:sw=2: */