Package org.opendaylight.yang.gen.v1.http.openconfig.net.yang.interfaces.rev210406._interface.counters.state
Interface Counters
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Counters>,org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.ChildOf<InterfaceCountersState>,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface Counters
extends org.opendaylight.yangtools.yang.binding.ChildOf<InterfaceCountersState>, org.opendaylight.yangtools.yang.binding.Augmentable<Counters>
A collection of interface-related statistics objects.
This class represents the following YANG schema fragment defined in module openconfig-interfaces
container counters {
leaf in-octets {
type oc-yang:counter64;
}
leaf in-pkts {
type oc-yang:counter64;
}
leaf in-unicast-pkts {
type oc-yang:counter64;
}
leaf in-broadcast-pkts {
type oc-yang:counter64;
}
leaf in-multicast-pkts {
type oc-yang:counter64;
}
leaf in-discards {
type oc-yang:counter64;
}
leaf in-errors {
type oc-yang:counter64;
}
leaf in-unknown-protos {
type oc-yang:counter64;
}
leaf in-fcs-errors {
type oc-yang:counter64;
}
leaf out-octets {
type oc-yang:counter64;
}
leaf out-pkts {
type oc-yang:counter64;
}
leaf out-unicast-pkts {
type oc-yang:counter64;
}
leaf out-broadcast-pkts {
type oc-yang:counter64;
}
leaf out-multicast-pkts {
type oc-yang:counter64;
}
leaf out-discards {
type oc-yang:counter64;
}
leaf out-errors {
type oc-yang:counter64;
}
leaf carrier-transitions {
type oc-yang:counter64;
oc-ext:telemetry-on-change;
}
leaf last-clear {
type oc-types:timeticks64;
oc-ext:telemetry-on-change;
}
}
To create instances of this class use CountersBuilder.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbindingEquals(@NonNull Counters thisObj, Object obj) Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull Counters obj) Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull Counters obj) Default implementation ofObject.toString()contract for this interface.Return carrierTransitions, ornullif it is not present.Return inBroadcastPkts, ornullif it is not present.Return inDiscards, ornullif it is not present.Return inErrors, ornullif it is not present.Return inFcsErrors, ornullif it is not present.Return inMulticastPkts, ornullif it is not present.Return inOctets, ornullif it is not present.Return inPkts, ornullif it is not present.Return inUnicastPkts, ornullif it is not present.Return inUnknownProtos, ornullif it is not present.Return lastClear, ornullif it is not present.Return outBroadcastPkts, ornullif it is not present.Return outDiscards, ornullif it is not present.Return outErrors, ornullif it is not present.Return outMulticastPkts, ornullif it is not present.Return outOctets, ornullif it is not present.Return outPkts, ornullif it is not present.Return outUnicastPkts, ornullif it is not present.default @NonNull Counter64Return carrierTransitions, guaranteed to be non-null.default @NonNull Counter64Return inBroadcastPkts, guaranteed to be non-null.default @NonNull Counter64Return inDiscards, guaranteed to be non-null.default @NonNull Counter64Return inErrors, guaranteed to be non-null.default @NonNull Counter64Return inFcsErrors, guaranteed to be non-null.default @NonNull Counter64Return inMulticastPkts, guaranteed to be non-null.default @NonNull Counter64Return inOctets, guaranteed to be non-null.default @NonNull Counter64Return inPkts, guaranteed to be non-null.default @NonNull Counter64Return inUnicastPkts, guaranteed to be non-null.default @NonNull Counter64Return inUnknownProtos, guaranteed to be non-null.default @NonNull Timeticks64Return lastClear, guaranteed to be non-null.default @NonNull Counter64Return outBroadcastPkts, guaranteed to be non-null.default @NonNull Counter64Return outDiscards, guaranteed to be non-null.default @NonNull Counter64Return outErrors, guaranteed to be non-null.default @NonNull Counter64Return outMulticastPkts, guaranteed to be non-null.default @NonNull Counter64Return outOctets, guaranteed to be non-null.default @NonNull Counter64Return outPkts, guaranteed to be non-null.default @NonNull Counter64Return outUnicastPkts, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.yang.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentations
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
Default implementation ofObject.hashCode()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException- ifobjisnull
-
bindingEquals
Default implementation ofObject.equals(Object)contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj- Object acting as the receiver of equals invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjisnull
-
bindingToString
Default implementation ofObject.toString()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj- Object for which to generate toString() result.- Returns:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjisnull
-
getInOctets
Counter64 getInOctets()Return inOctets, ornullif it is not present.The total number of octets received on the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inOctets, ornullif it is not present.
-
requireInOctets
Return inOctets, guaranteed to be non-null.The total number of octets received on the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inOctets, guaranteed to be non-null.- Throws:
NoSuchElementException- if inOctets is not present
-
getInPkts
Counter64 getInPkts()Return inPkts, ornullif it is not present.The total number of packets received on the interface, including all unicast, multicast, broadcast and bad packets etc.- Returns:
Counter64inPkts, ornullif it is not present.
-
requireInPkts
Return inPkts, guaranteed to be non-null.The total number of packets received on the interface, including all unicast, multicast, broadcast and bad packets etc.- Returns:
Counter64inPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if inPkts is not present
-
getInUnicastPkts
Counter64 getInUnicastPkts()Return inUnicastPkts, ornullif it is not present.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were not addressed to a multicast or broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inUnicastPkts, ornullif it is not present.
-
requireInUnicastPkts
Return inUnicastPkts, guaranteed to be non-null.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were not addressed to a multicast or broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inUnicastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if inUnicastPkts is not present
-
getInBroadcastPkts
Counter64 getInBroadcastPkts()Return inBroadcastPkts, ornullif it is not present.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inBroadcastPkts, ornullif it is not present.
-
requireInBroadcastPkts
Return inBroadcastPkts, guaranteed to be non-null.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a broadcast address at this sub-layer. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inBroadcastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if inBroadcastPkts is not present
-
getInMulticastPkts
Counter64 getInMulticastPkts()Return inMulticastPkts, ornullif it is not present.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a multicast address at this sub-layer. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inMulticastPkts, ornullif it is not present.
-
requireInMulticastPkts
Return inMulticastPkts, guaranteed to be non-null.The number of packets, delivered by this sub-layer to a higher (sub-)layer, that were addressed to a multicast address at this sub-layer. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inMulticastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if inMulticastPkts is not present
-
getInDiscards
Counter64 getInDiscards()Return inDiscards, ornullif it is not present.The number of inbound packets that were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inDiscards, ornullif it is not present.
-
requireInDiscards
Return inDiscards, guaranteed to be non-null.The number of inbound packets that were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inDiscards, guaranteed to be non-null.- Throws:
NoSuchElementException- if inDiscards is not present
-
getInErrors
Counter64 getInErrors()Return inErrors, ornullif it is not present.For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character- oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inErrors, ornullif it is not present.
-
requireInErrors
Return inErrors, guaranteed to be non-null.For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character- oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inErrors, guaranteed to be non-null.- Throws:
NoSuchElementException- if inErrors is not present
-
getInUnknownProtos
Counter64 getInUnknownProtos()Return inUnknownProtos, ornullif it is not present.For packet-oriented interfaces, the number of packets received via the interface that were discarded because of an unknown or unsupported protocol. For character-oriented or fixed-length interfaces that support protocol multiplexing, the number of transmission units received via the interface that were discarded because of an unknown or unsupported protocol. For any interface that does not support protocol multiplexing, this counter is not present. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inUnknownProtos, ornullif it is not present.
-
requireInUnknownProtos
Return inUnknownProtos, guaranteed to be non-null.For packet-oriented interfaces, the number of packets received via the interface that were discarded because of an unknown or unsupported protocol. For character-oriented or fixed-length interfaces that support protocol multiplexing, the number of transmission units received via the interface that were discarded because of an unknown or unsupported protocol. For any interface that does not support protocol multiplexing, this counter is not present. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64inUnknownProtos, guaranteed to be non-null.- Throws:
NoSuchElementException- if inUnknownProtos is not present
-
getInFcsErrors
Counter64 getInFcsErrors()Return inFcsErrors, ornullif it is not present.Number of received packets which had errors in the frame check sequence (FCS), i.e., framing errors. Discontinuities in the value of this counter can occur when the device is re-initialization as indicated by the value of 'last-clear'.- Returns:
Counter64inFcsErrors, ornullif it is not present.
-
requireInFcsErrors
Return inFcsErrors, guaranteed to be non-null.Number of received packets which had errors in the frame check sequence (FCS), i.e., framing errors. Discontinuities in the value of this counter can occur when the device is re-initialization as indicated by the value of 'last-clear'.- Returns:
Counter64inFcsErrors, guaranteed to be non-null.- Throws:
NoSuchElementException- if inFcsErrors is not present
-
getOutOctets
Counter64 getOutOctets()Return outOctets, ornullif it is not present.The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outOctets, ornullif it is not present.
-
requireOutOctets
Return outOctets, guaranteed to be non-null.The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outOctets, guaranteed to be non-null.- Throws:
NoSuchElementException- if outOctets is not present
-
getOutPkts
Counter64 getOutPkts()Return outPkts, ornullif it is not present.The total number of packets transmitted out of the interface, including all unicast, multicast, broadcast, and bad packets etc.- Returns:
Counter64outPkts, ornullif it is not present.
-
requireOutPkts
Return outPkts, guaranteed to be non-null.The total number of packets transmitted out of the interface, including all unicast, multicast, broadcast, and bad packets etc.- Returns:
Counter64outPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if outPkts is not present
-
getOutUnicastPkts
Counter64 getOutUnicastPkts()Return outUnicastPkts, ornullif it is not present.The total number of packets that higher-level protocols requested be transmitted, and that were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outUnicastPkts, ornullif it is not present.
-
requireOutUnicastPkts
Return outUnicastPkts, guaranteed to be non-null.The total number of packets that higher-level protocols requested be transmitted, and that were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outUnicastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if outUnicastPkts is not present
-
getOutBroadcastPkts
Counter64 getOutBroadcastPkts()Return outBroadcastPkts, ornullif it is not present.The total number of packets that higher-level protocols requested be transmitted, and that were addressed to a broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outBroadcastPkts, ornullif it is not present.
-
requireOutBroadcastPkts
Return outBroadcastPkts, guaranteed to be non-null.The total number of packets that higher-level protocols requested be transmitted, and that were addressed to a broadcast address at this sub-layer, including those that were discarded or not sent. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outBroadcastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if outBroadcastPkts is not present
-
getOutMulticastPkts
Counter64 getOutMulticastPkts()Return outMulticastPkts, ornullif it is not present.The total number of packets that higher-level protocols requested be transmitted, and that were addressed to a multicast address at this sub-layer, including those that were discarded or not sent. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outMulticastPkts, ornullif it is not present.
-
requireOutMulticastPkts
Return outMulticastPkts, guaranteed to be non-null.The total number of packets that higher-level protocols requested be transmitted, and that were addressed to a multicast address at this sub-layer, including those that were discarded or not sent. For a MAC-layer protocol, this includes both Group and Functional addresses. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outMulticastPkts, guaranteed to be non-null.- Throws:
NoSuchElementException- if outMulticastPkts is not present
-
getOutDiscards
Counter64 getOutDiscards()Return outDiscards, ornullif it is not present.The number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outDiscards, ornullif it is not present.
-
requireOutDiscards
Return outDiscards, guaranteed to be non-null.The number of outbound packets that were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outDiscards, guaranteed to be non-null.- Throws:
NoSuchElementException- if outDiscards is not present
-
getOutErrors
Counter64 getOutErrors()Return outErrors, ornullif it is not present.For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outErrors, ornullif it is not present.
-
requireOutErrors
Return outErrors, guaranteed to be non-null.For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of 'last-clear'.- Returns:
Counter64outErrors, guaranteed to be non-null.- Throws:
NoSuchElementException- if outErrors is not present
-
getCarrierTransitions
Counter64 getCarrierTransitions()Return carrierTransitions, ornullif it is not present.Number of times the interface state has transitioned between up and down since the time the device restarted or the last-clear time, whichever is most recent.- Returns:
Counter64carrierTransitions, ornullif it is not present.
-
requireCarrierTransitions
Return carrierTransitions, guaranteed to be non-null.Number of times the interface state has transitioned between up and down since the time the device restarted or the last-clear time, whichever is most recent.- Returns:
Counter64carrierTransitions, guaranteed to be non-null.- Throws:
NoSuchElementException- if carrierTransitions is not present
-
getLastClear
Timeticks64 getLastClear()Return lastClear, ornullif it is not present.Timestamp of the last time the interface counters were cleared. The value is the timestamp in nanoseconds relative to the Unix Epoch (Jan 1, 1970 00:00:00 UTC).- Returns:
Timeticks64lastClear, ornullif it is not present.
-
requireLastClear
Return lastClear, guaranteed to be non-null.Timestamp of the last time the interface counters were cleared. The value is the timestamp in nanoseconds relative to the Unix Epoch (Jan 1, 1970 00:00:00 UTC).- Returns:
Timeticks64lastClear, guaranteed to be non-null.- Throws:
NoSuchElementException- if lastClear is not present
-