update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / rwso / plugins / yang / rw-sorch-log.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 /**
22  * @file rw-sorch-log.yang
23  * @author Rift.IO
24  * @date 03/02/2015
25  * @brief RiftWare Log Event Definitions for rw-sorch logging
26  */
27
28 module rw-sorch-log
29 {
30   namespace "http://riftio.com/ns/riftware-1.0/rw-sorch-log";
31   prefix "rw-sorch-log";
32
33   import rw-base {
34     prefix rwbase;
35   }
36
37   import rw-yang-types {
38     prefix "rwt";
39   }
40
41   import rw-notify-ext {
42     prefix "rwnotify";
43   }
44
45   import rw-log {
46     prefix "rwlog";
47   }
48
49   revision 2014-12-30 {
50     description
51       "Initial revision.";
52     reference
53       "RIFT Launchpad Logging";
54   }
55
56   /*
57    * Generic Logger Log Events - ID space 160000 - 160099
58    */
59   notification debug {
60     rwnotify:log-event-id 160000;
61       description
62          "Generic Debug Log";
63       uses rwlog:severity-debug;
64       leaf category {
65         type string;
66       }
67       leaf log  {
68         type string;
69       }
70   }
71
72   notification info {
73     rwnotify:log-event-id 160001;
74       description
75          "Generic Info Log";
76       uses rwlog:severity-info;
77       leaf category {
78         type string;
79       }
80       leaf log  {
81         type string;
82       }
83   }
84
85   notification warn {
86     rwnotify:log-event-id 160002;
87       description
88          "Generic Warning Log";
89       uses rwlog:severity-warning;
90       leaf category {
91         type string;
92       }
93       leaf log  {
94         type string;
95       }
96   }
97
98   notification error {
99     rwnotify:log-event-id 160003;
100       description
101          "Generic Warning Log";
102       uses rwlog:severity-error;
103       leaf category {
104         type string;
105       }
106       leaf log  {
107         type string;
108       }
109   }
110
111   notification critical {
112     rwnotify:log-event-id 160004;
113       description
114          "Generic Critical Log";
115       uses rwlog:severity-critical;
116       leaf category {
117         type string;
118       }
119       leaf log  {
120         type string;
121       }
122   }
123
124   /*
125    * END - generic log events
126    */
127 }