[docs]@register_command@dataclassclassPT_TOTAL:""" Obtains statistics concerning all the packets transmitted on a port. """code:typing.ClassVar[int]=230pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int
[docs]classGetDataAttr(ResponseBodyStruct):bit_count_last_sec:int=field(XmpLong())"""long integer, number of bits transmitted in the last second."""packet_count_last_sec:int=field(XmpLong())"""long integer, number of packets transmitted in the last second."""byte_count_since_cleared:int=field(XmpLong())"""long integer, number of bytes transmitted since statistics were cleared."""packet_count_since_cleared:int=field(XmpLong())"""long integer, number of packets transmitted since statistics were cleared."""
[docs]defget(self)->Token[GetDataAttr]:"""Get statistics concerning all the packets transmitted on a port. :return: number of bits transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared. :rtype: PT_TOTAL.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port))
[docs]@register_command@dataclassclassPT_NOTPLD:""" Obtains statistics concerning the packets without a test payload transmitted on a port. """code:typing.ClassVar[int]=231pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int
[docs]classGetDataAttr(ResponseBodyStruct):bit_count_last_sec:int=field(XmpLong())"""long integer, number of bits transmitted in the last second."""packet_count_last_sec:int=field(XmpLong())"""long integer, number of packets transmitted in the last second."""byte_count_since_cleared:int=field(XmpLong())"""long integer, number of bytes transmitted since statistics were cleared."""packet_count_since_cleared:int=field(XmpLong())"""long integer, number of packets transmitted since statistics were cleared."""
[docs]defget(self)->Token[GetDataAttr]:"""Get statistics concerning the packets without a test payload transmitted on a port. :return: number of bits transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared :rtype: PT_NOTPLD.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port))
[docs]@register_command@dataclassclassPT_STREAM:""" Obtains statistics concerning the packets of a specific stream transmitted on a port. """code:typing.ClassVar[int]=232pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_stream_xindex:int
[docs]classGetDataAttr(ResponseBodyStruct):bit_count_last_sec:int=field(XmpLong())"""long integer, number of bits transmitted in the last second."""packet_count_last_sec:int=field(XmpLong())"""long integer, number of packets transmitted in the last second."""byte_count_since_cleared:int=field(XmpLong())"""long integer, number of bytes transmitted since statistics were cleared."""packet_count_since_cleared:int=field(XmpLong())"""long integer, number of packets transmitted since statistics were cleared."""
[docs]defget(self)->Token[GetDataAttr]:"""Get statistics concerning the packets of a specific stream transmitted on a port. :return: number of bits transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared. :rtype: PT_STREAM.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._stream_xindex]))
[docs]@register_command@dataclassclassPT_CLEAR:""" Clear all the transmit statistics for a port. The byte and packet counts will restart at zero. """code:typing.ClassVar[int]=233pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int
[docs]defset(self)->Token[None]:"""Clear all the transmit statistics for a port. The byte and packet counts will restart at zero. """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port))
[docs]@register_command@dataclassclassPT_EXTRA:""" Obtains additional statistics for packets transmitted on a port. """code:typing.ClassVar[int]=235pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int
[docs]classGetDataAttr(ResponseBodyStruct):tx_arp_req_count:typing.List[int]=field(XmpSequence(types_chunk=[XmpLong()]))"""long integer, number of ARP requests transmitted"""
[docs]defget(self)->Token[GetDataAttr]:"""Get additional statistics for packets transmitted on a port. :return: number of ARP requests transmitted :rtype: PT_EXTRA.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port))
[docs]@register_command@dataclassclassPT_TOTALEXT:""" .. versionadded: v1.1 An extension to :class:`PT_TOTAL` that also includes a calculation of bytes transmitted in the last second. It returns list of long integers; this list may be expanded in future software releases. """code:typing.ClassVar[int]=236pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int
[docs]classGetDataAttr(ResponseBodyStruct):bit_count_last_sec:int=field(XmpLong())"""long integer, number of bits transmitted in the last second."""byte_count_last_sec:int=field(XmpLong())"""long integer, number of bytes transmitted in the last second."""packet_count_last_sec:int=field(XmpLong())"""long integer, number of packets transmitted in the last second."""byte_count_since_cleared:int=field(XmpLong())"""long integer, number of bytes transmitted since statistics were cleared."""packet_count_since_cleared:int=field(XmpLong())"""long integer, number of packets transmitted since statistics were cleared."""
[docs]defget(self)->Token[GetDataAttr]:"""Get statistics concerning all the packets transmitted on a port. :return: number of bits transmitted in the last second, number of bytes transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared. :rtype: PT_TOTALEXT.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port))
[docs]@register_command@dataclassclassPT_NOTPLDEXT:""" .. versionadded: v1.1 An extension to :class:`PT_NOTPLD` that also includes a calculation of bytes transmitted in the last second. It returns list of long integers; this list may be expanded in future software releases. """code:typing.ClassVar[int]=237pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int
[docs]classGetDataAttr(ResponseBodyStruct):bit_count_last_sec:int=field(XmpLong())"""long integer, number of bits transmitted in the last second."""byte_count_last_sec:int=field(XmpLong())"""long integer, number of bytes transmitted in the last second."""packet_count_last_sec:int=field(XmpLong())"""long integer, number of packets transmitted in the last second."""byte_count_since_cleared:int=field(XmpLong())"""long integer, number of bytes transmitted since statistics were cleared."""packet_count_since_cleared:int=field(XmpLong())"""long integer, number of packets transmitted since statistics were cleared."""
[docs]defget(self)->Token[GetDataAttr]:"""Get statistics concerning the packets without a test payload transmitted on a port. :return: number of bits transmitted in the last second, number of bytes transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared :rtype: PT_NOTPLDEXT.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port))
[docs]@register_command@dataclassclassPT_STREAMEXT:""" .. versionadded: v1.1 An extension to :class:`PT_STREAM` that also includes a calculation of bytes transmitted in the last second. It returns list of long integers; this list may be expanded in future software releases. """code:typing.ClassVar[int]=238pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_stream_xindex:int
[docs]classGetDataAttr(ResponseBodyStruct):bit_count_last_sec:int=field(XmpLong())"""long integer, number of bits transmitted in the last second."""byte_count_last_sec:int=field(XmpLong())"""long integer, number of bytes transmitted in the last second."""packet_count_last_sec:int=field(XmpLong())"""long integer, number of packets transmitted in the last second."""byte_count_since_cleared:int=field(XmpLong())"""long integer, number of bytes transmitted since statistics were cleared."""packet_count_since_cleared:int=field(XmpLong())"""long integer, number of packets transmitted since statistics were cleared."""
[docs]defget(self)->Token[GetDataAttr]:"""Get statistics concerning the packets of a specific stream transmitted on a port. :return: number of bits transmitted in the last second, number of bytes transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared. :rtype: PT_STREAMEXT.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._stream_xindex]))
[docs]@register_command@dataclassclassPT_FLOWTOTAL:""" Obtains statistics concerning all the packets transmitted from a between this receive port and its partner TX port. """code:typing.ClassVar[int]=1740pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:intclassGetDataAttr(ResponseBodyStruct):l2_bps:int=field(XmpLong())"""long integer, number of bits transmitted at layer 2 in the last second for the flow."""pps:int=field(XmpLong())"""long integer, number of packets transmitted in the last second for the flow."""byte_count:int=field(XmpLong())"""long integer, number of bytes transmitted since statistics were cleared for the flow."""packet_count:int=field(XmpLong())"""long integer, number of packets transmitted since statistics were cleared for the flow."""
[docs]defget(self)->Token[GetDataAttr]:"""(Chimera only) Get statistics concerning all the packets transmitted from a between this receive port and its partner TX port. :return: number of bits transmitted at layer 2 in the last second for the flow, number of packets transmitted in the last second for the flow, number of bytes transmitted since statistics were cleared for the flow, number of packets transmitted since statistics were cleared for the flow :rtype: PT_FLOWTOTAL.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex]))
[docs]@register_command@dataclassclassPT_FLOWCLEAR:""" Clear all the transmit statistics on a particular flow for a Chimera port. The byte and packet counts will restart at zero. """code:typing.ClassVar[int]=1742pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:intclassSetDataAttr(RequestBodyStruct):pass
[docs]defset(self)->Token[None]:"""(Chimera only) Clear all the transmit statistics on a particular flow for a Chimera port. The byte and packet counts will restart at zero. """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex]))