57ffae60722ad2c5c54d2a394704666796ab3a94
[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-pb-ext {
38     prefix "rwpb";
39   }
40
41   import rw-yang-types {
42     prefix "rwt";
43   }
44
45   import rw-notify-ext {
46     prefix "rwnotify";
47   }
48
49   import rw-log {
50     prefix "rwlog";
51   }
52
53   revision 2014-12-30 {
54     description
55       "Initial revision.";
56     reference
57       "RIFT Launchpad Logging";
58   }
59
60   /*
61    * Generic Logger Log Events - ID space 160000 - 160099
62    */
63   notification debug {
64     rwpb:msg-new Debug;
65     rwnotify:log-event-id 160000;
66       description
67          "Generic Debug Log";
68       uses rwlog:severity-debug;
69       leaf category {
70         type string;
71       }
72       leaf log  {
73         type string;
74       }
75   }
76
77   notification info {
78     rwpb:msg-new Info;
79     rwnotify:log-event-id 160001;
80       description
81          "Generic Info Log";
82       uses rwlog:severity-info;
83       leaf category {
84         type string;
85       }
86       leaf log  {
87         type string;
88       }
89   }
90
91   notification warn {
92     rwpb:msg-new Warn;
93     rwnotify:log-event-id 160002;
94       description
95          "Generic Warning Log";
96       uses rwlog:severity-warning;
97       leaf category {
98         type string;
99       }
100       leaf log  {
101         type string;
102       }
103   }
104
105   notification error {
106     rwpb:msg-new Error;
107     rwnotify:log-event-id 160003;
108       description
109          "Generic Warning Log";
110       uses rwlog:severity-error;
111       leaf category {
112         type string;
113       }
114       leaf log  {
115         type string;
116       }
117   }
118
119   notification critical {
120     rwpb:msg-new Critical;
121     rwnotify:log-event-id 160004;
122       description
123          "Generic Critical Log";
124       uses rwlog:severity-critical;
125       leaf category {
126         type string;
127       }
128       leaf log  {
129         type string;
130       }
131   }
132
133   /*
134    * END - generic log events
135    */
136 }