module service-statistics {
yang-version 1;
namespace
"urn:cisco:params:xml:ns:yang:sfc-ss";
prefix sfc-ss;
import ietf-yang-types {
prefix yang;
revision-date "2013-07-15";
}
organization "Cisco Systems, Inc.";
contact
"Reinaldo Penno <repenno@cisco.com>";
description
"This module contains a collection of YANG definitions for
managing service statistics. Service statistics are used
to determine the load and efficiency of a service function
or service function forwarder device
Copyright (c) 2013 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(http://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.";
revision "2014-07-01" {
description "Initial Revision";
reference
"https://tools.ietf.org/html/draft-penno-sfc-yang";
}
grouping service-statistics-group {
description
"Group that holds the list that indexes statistics by timestamp";
list statistic-by-timestamp {
key "timestamp";
description
"This list holds statistics indexed by timestamp";
leaf timestamp {
type uint64;
description
"Date and time of record creation in milliseconds
counting from 1.1.1970 00:00:00 UTC (= 0)";
}
uses statistic-fields;
} // list statistic-by-timestamp
} // grouping service-statistics-group
grouping statistic-fields {
description
"Groups all statistics containers";
container service-statistic {
config false;
description
"This container holds packets and bytes statistics";
leaf bytes-in {
type yang:zero-based-counter64;
description "Received bytes";
}
leaf bytes-out {
type yang:zero-based-counter64;
description "Transmitted bytes";
}
leaf packets-in {
type yang:zero-based-counter64;
description "Received packets";
}
leaf packets-out {
type yang:zero-based-counter64;
description "Transmitted packets";
}
} // container service-statistic
} // grouping statistic-fields
} // module service-statistics