1 module ietf-restconf-monitoring {
2 namespace "urn:ietf:params:xml:ns:yang:ietf-restconf-monitoring";
5 import ietf-yang-types { prefix yang; }
6 import ietf-inet-types { prefix inet; }
9 "IETF NETCONF (Network Configuration) Working Group";
12 "WG Web: <http://tools.ietf.org/wg/netconf/>
13 WG List: <mailto:netconf@ietf.org>
15 <mailto:andy@yumaworks.com>
16 Author: Martin Bjorklund
17 <mailto:mbj@tail-f.com>
19 <mailto:kwatsen@juniper.net>";
22 "This module contains monitoring information for the
24 Copyright (c) 2016 IETF Trust and the persons identified as
25 authors of the code. All rights reserved.
26 Redistribution and use in source and binary forms, with or
27 without modification, is permitted pursuant to, and subject
28 to the license terms contained in, the Simplified BSD License
29 set forth in Section 4.c of the IETF Trust's Legal Provisions
30 Relating to IETF Documents
31 (http://trustee.ietf.org/license-info).
32 This version of this YANG module is part of RFC XXXX; see
33 the RFC itself for full legal notices.";
35 // RFC Ed.: replace XXXX with actual RFC number and remove this
38 // RFC Ed.: remove this note
39 // Note: extracted from draft-ietf-netconf-restconf-17.txt
41 // RFC Ed.: update the date below with the date of RFC publication
42 // and remove this note.
47 "RFC XXXX: RESTCONF Protocol.";
50 container restconf-state {
53 "Contains RESTCONF protocol monitoring information.";
55 container capabilities {
57 "Contains a list of protocol capability URIs";
59 leaf-list capability {
61 description "A RESTCONF protocol capability URI.";
67 "Container representing the notification event streams
68 supported by the server.";
70 "RFC 5277, Section 3.4, <streams> element.";
75 "Each entry describes an event stream supported by
80 description "The stream name";
81 reference "RFC 5277, Section 3.4, <name> element.";
86 description "Description of stream content";
88 "RFC 5277, Section 3.4, <description> element.";
95 "Indicates if replay buffer supported for this stream.
96 If 'true', then the server MUST support the 'start-time'
97 and 'stop-time' query parameters for this stream.";
99 "RFC 5277, Section 3.4, <replaySupport> element.";
102 leaf replay-log-creation-time {
103 when "../replay-support" {
105 "Only present if notification replay is supported";
107 type yang:date-and-time;
109 "Indicates the time the replay log for this stream
112 "RFC 5277, Section 3.4, <replayLogCreationTime>
120 "The server will create an entry in this list for each
121 encoding format that is supported for this stream.
122 The media type 'text/event-stream' is expected
123 for all event streams. This list identifies the
124 sub-types supported for this stream.";
129 "This is the secondary encoding format within the
130 'text/event-stream' encoding used by all streams.
131 The type 'xml' is supported for XML encoding.
132 The type 'json' is supported for JSON encoding.";
139 "Contains a URL that represents the entry point
140 for establishing notification delivery via server