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: <https://datatracker.ietf.org/wg/netconf/>
13 WG List: <mailto:netconf@ietf.org>
16 <mailto:andy@yumaworks.com>
18 Author: Martin Bjorklund
19 <mailto:mbj@tail-f.com>
22 <mailto:kwatsen@juniper.net>";
25 "This module contains monitoring information for the
28 Copyright (c) 2017 IETF Trust and the persons identified as
29 authors of the code. All rights reserved.
31 Redistribution and use in source and binary forms, with or
32 without modification, is permitted pursuant to, and subject
33 to the license terms contained in, the Simplified BSD License
34 set forth in Section 4.c of the IETF Trust's Legal Provisions
35 Relating to IETF Documents
36 (http://trustee.ietf.org/license-info).
38 This version of this YANG module is part of RFC 8040; see
39 the RFC itself for full legal notices.";
45 "RFC 8040: RESTCONF Protocol.";
48 container restconf-state {
51 "Contains RESTCONF protocol monitoring information.";
53 container capabilities {
55 "Contains a list of protocol capability URIs.";
57 leaf-list capability {
60 "A RESTCONF protocol capability URI.";
66 "Container representing the notification event streams
67 supported by the server.";
69 "RFC 5277, Section 3.4, <streams> element.";
74 "Each entry describes an event stream supported by
82 "RFC 5277, Section 3.4, <name> element.";
88 "Description of stream content.";
90 "RFC 5277, Section 3.4, <description> element.";
97 "Indicates if replay buffer is supported for this stream.
98 If 'true', then the server MUST support the 'start-time'
99 and 'stop-time' query parameters for this stream.";
101 "RFC 5277, Section 3.4, <replaySupport> element.";
104 leaf replay-log-creation-time {
105 when "../replay-support" {
107 "Only present if notification replay is supported.";
109 type yang:date-and-time;
111 "Indicates the time the replay log for this stream
114 "RFC 5277, Section 3.4, <replayLogCreationTime>
122 "The server will create an entry in this list for each
123 encoding format that is supported for this stream.
124 The media type 'text/event-stream' is expected
125 for all event streams. This list identifies the
126 subtypes supported for this stream.";
131 "This is the secondary encoding format within the
132 'text/event-stream' encoding used by all streams.
133 The type 'xml' is supported for XML encoding.
134 The type 'json' is supported for JSON encoding.";
141 "Contains a URL that represents the entry point
142 for establishing notification delivery via
143 server-sent events.";