kittycad.models.connection.Connection
- class kittycad.models.connection.Connection(auth_timeout=<kittycad.types.Unset object>, cluster=<kittycad.types.Unset object>, config_load_time=<kittycad.types.Unset object>, connections=<kittycad.types.Unset object>, cores=<kittycad.types.Unset object>, cpu=<kittycad.types.Unset object>, gateway=<kittycad.types.Unset object>, git_commit=<kittycad.types.Unset object>, go=<kittycad.types.Unset object>, gomaxprocs=<kittycad.types.Unset object>, host=<kittycad.types.Unset object>, http_base_path=<kittycad.types.Unset object>, http_host=<kittycad.types.Unset object>, http_port=<kittycad.types.Unset object>, http_req_stats=<kittycad.types.Unset object>, https_port=<kittycad.types.Unset object>, in_bytes=<kittycad.types.Unset object>, in_msgs=<kittycad.types.Unset object>, jetstream=<kittycad.types.Unset object>, leaf=<kittycad.types.Unset object>, leafnodes=<kittycad.types.Unset object>, max_connections=<kittycad.types.Unset object>, max_control_line=<kittycad.types.Unset object>, max_payload=<kittycad.types.Unset object>, max_pending=<kittycad.types.Unset object>, mem=<kittycad.types.Unset object>, now=<kittycad.types.Unset object>, out_bytes=<kittycad.types.Unset object>, out_msgs=<kittycad.types.Unset object>, ping_interval=<kittycad.types.Unset object>, ping_max=<kittycad.types.Unset object>, port=<kittycad.types.Unset object>, proto=<kittycad.types.Unset object>, remotes=<kittycad.types.Unset object>, routes=<kittycad.types.Unset object>, server_id=<kittycad.types.Unset object>, server_name=<kittycad.types.Unset object>, slow_consumers=<kittycad.types.Unset object>, start=<kittycad.types.Unset object>, subscriptions=<kittycad.types.Unset object>, system_account=<kittycad.types.Unset object>, tls_timeout=<kittycad.types.Unset object>, total_connections=<kittycad.types.Unset object>, uptime=<kittycad.types.Unset object>, version=<kittycad.types.Unset object>, write_deadline=<kittycad.types.Unset object>)[source][source]
Bases:
object
Metadata about a pub-sub connection.
This is mostly used for internal purposes and debugging.
Method generated by attrs for class Connection.
- __init__(auth_timeout=<kittycad.types.Unset object>, cluster=<kittycad.types.Unset object>, config_load_time=<kittycad.types.Unset object>, connections=<kittycad.types.Unset object>, cores=<kittycad.types.Unset object>, cpu=<kittycad.types.Unset object>, gateway=<kittycad.types.Unset object>, git_commit=<kittycad.types.Unset object>, go=<kittycad.types.Unset object>, gomaxprocs=<kittycad.types.Unset object>, host=<kittycad.types.Unset object>, http_base_path=<kittycad.types.Unset object>, http_host=<kittycad.types.Unset object>, http_port=<kittycad.types.Unset object>, http_req_stats=<kittycad.types.Unset object>, https_port=<kittycad.types.Unset object>, in_bytes=<kittycad.types.Unset object>, in_msgs=<kittycad.types.Unset object>, jetstream=<kittycad.types.Unset object>, leaf=<kittycad.types.Unset object>, leafnodes=<kittycad.types.Unset object>, max_connections=<kittycad.types.Unset object>, max_control_line=<kittycad.types.Unset object>, max_payload=<kittycad.types.Unset object>, max_pending=<kittycad.types.Unset object>, mem=<kittycad.types.Unset object>, now=<kittycad.types.Unset object>, out_bytes=<kittycad.types.Unset object>, out_msgs=<kittycad.types.Unset object>, ping_interval=<kittycad.types.Unset object>, ping_max=<kittycad.types.Unset object>, port=<kittycad.types.Unset object>, proto=<kittycad.types.Unset object>, remotes=<kittycad.types.Unset object>, routes=<kittycad.types.Unset object>, server_id=<kittycad.types.Unset object>, server_name=<kittycad.types.Unset object>, slow_consumers=<kittycad.types.Unset object>, start=<kittycad.types.Unset object>, subscriptions=<kittycad.types.Unset object>, system_account=<kittycad.types.Unset object>, tls_timeout=<kittycad.types.Unset object>, total_connections=<kittycad.types.Unset object>, uptime=<kittycad.types.Unset object>, version=<kittycad.types.Unset object>, write_deadline=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Connection.
Methods
__init__
([auth_timeout, cluster, ...])Method generated by attrs for class Connection.
from_dict
(src_dict)- rtype:
TypeVar
(ON
, bound= Connection)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'auth_timeout': typing.Union[kittycad.types.Unset, int], 'cluster': typing.Union[kittycad.types.Unset, kittycad.models.cluster.Cluster], 'config_load_time': typing.Union[kittycad.types.Unset, datetime.datetime], 'connections': typing.Union[kittycad.types.Unset, int], 'cores': typing.Union[kittycad.types.Unset, int], 'cpu': typing.Union[kittycad.types.Unset, float], 'gateway': typing.Union[kittycad.types.Unset, kittycad.models.gateway.Gateway], 'git_commit': typing.Union[kittycad.types.Unset, str], 'go': typing.Union[kittycad.types.Unset, str], 'gomaxprocs': typing.Union[kittycad.types.Unset, int], 'host': typing.Union[kittycad.types.Unset, str], 'http_base_path': typing.Union[kittycad.types.Unset, str], 'http_host': typing.Union[kittycad.types.Unset, str], 'http_port': typing.Union[kittycad.types.Unset, int], 'http_req_stats': typing.Union[kittycad.types.Unset, typing.Any], 'https_port': typing.Union[kittycad.types.Unset, int], 'in_bytes': typing.Union[kittycad.types.Unset, int], 'in_msgs': typing.Union[kittycad.types.Unset, int], 'jetstream': typing.Union[kittycad.types.Unset, kittycad.models.jetstream.Jetstream], 'leaf': typing.Union[kittycad.types.Unset, kittycad.models.leaf_node.LeafNode], 'leafnodes': typing.Union[kittycad.types.Unset, int], 'max_connections': typing.Union[kittycad.types.Unset, int], 'max_control_line': typing.Union[kittycad.types.Unset, int], 'max_payload': typing.Union[kittycad.types.Unset, int], 'max_pending': typing.Union[kittycad.types.Unset, int], 'mem': typing.Union[kittycad.types.Unset, int], 'now': typing.Union[kittycad.types.Unset, datetime.datetime], 'out_bytes': typing.Union[kittycad.types.Unset, int], 'out_msgs': typing.Union[kittycad.types.Unset, int], 'ping_interval': typing.Union[kittycad.types.Unset, int], 'ping_max': typing.Union[kittycad.types.Unset, int], 'port': typing.Union[kittycad.types.Unset, int], 'proto': typing.Union[kittycad.types.Unset, int], 'remotes': typing.Union[kittycad.types.Unset, int], 'routes': typing.Union[kittycad.types.Unset, int], 'server_id': typing.Union[kittycad.types.Unset, str], 'server_name': typing.Union[kittycad.types.Unset, str], 'slow_consumers': typing.Union[kittycad.types.Unset, int], 'start': typing.Union[kittycad.types.Unset, datetime.datetime], 'subscriptions': typing.Union[kittycad.types.Unset, int], 'system_account': typing.Union[kittycad.types.Unset, str], 'tls_timeout': typing.Union[kittycad.types.Unset, int], 'total_connections': typing.Union[kittycad.types.Unset, int], 'uptime': typing.Union[kittycad.types.Unset, str], 'version': typing.Union[kittycad.types.Unset, str], 'write_deadline': typing.Union[kittycad.types.Unset, int]}[source]
- __attrs_attrs__ = (Attribute(name='auth_timeout', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='auth_timeout'), Attribute(name='cluster', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.cluster.Cluster], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cluster'), Attribute(name='config_load_time', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='config_load_time'), Attribute(name='connections', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='connections'), Attribute(name='cores', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cores'), Attribute(name='cpu', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cpu'), Attribute(name='gateway', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.gateway.Gateway], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='gateway'), Attribute(name='git_commit', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='git_commit'), Attribute(name='go', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='go'), Attribute(name='gomaxprocs', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='gomaxprocs'), Attribute(name='host', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='host'), Attribute(name='http_base_path', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='http_base_path'), Attribute(name='http_host', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='http_host'), Attribute(name='http_port', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='http_port'), Attribute(name='http_req_stats', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='http_req_stats'), Attribute(name='https_port', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='https_port'), Attribute(name='in_bytes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='in_bytes'), Attribute(name='in_msgs', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='in_msgs'), Attribute(name='jetstream', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.jetstream.Jetstream], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='jetstream'), Attribute(name='leaf', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.leaf_node.LeafNode], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='leaf'), Attribute(name='leafnodes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='leafnodes'), Attribute(name='max_connections', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='max_connections'), Attribute(name='max_control_line', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='max_control_line'), Attribute(name='max_payload', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='max_payload'), Attribute(name='max_pending', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='max_pending'), Attribute(name='mem', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='mem'), Attribute(name='now', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='now'), Attribute(name='out_bytes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='out_bytes'), Attribute(name='out_msgs', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='out_msgs'), Attribute(name='ping_interval', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='ping_interval'), Attribute(name='ping_max', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='ping_max'), Attribute(name='port', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='port'), Attribute(name='proto', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='proto'), Attribute(name='remotes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='remotes'), Attribute(name='routes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='routes'), Attribute(name='server_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='server_id'), Attribute(name='server_name', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='server_name'), Attribute(name='slow_consumers', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='slow_consumers'), Attribute(name='start', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='start'), Attribute(name='subscriptions', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='subscriptions'), Attribute(name='system_account', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='system_account'), Attribute(name='tls_timeout', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='tls_timeout'), Attribute(name='total_connections', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='total_connections'), Attribute(name='uptime', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='uptime'), Attribute(name='version', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='version'), Attribute(name='write_deadline', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='write_deadline'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
- __dict__ = mappingproxy({'__module__': 'kittycad.models.connection', '__annotations__': {'auth_timeout': typing.Union[kittycad.types.Unset, int], 'cluster': typing.Union[kittycad.types.Unset, kittycad.models.cluster.Cluster], 'config_load_time': typing.Union[kittycad.types.Unset, datetime.datetime], 'connections': typing.Union[kittycad.types.Unset, int], 'cores': typing.Union[kittycad.types.Unset, int], 'cpu': typing.Union[kittycad.types.Unset, float], 'gateway': typing.Union[kittycad.types.Unset, kittycad.models.gateway.Gateway], 'git_commit': typing.Union[kittycad.types.Unset, str], 'go': typing.Union[kittycad.types.Unset, str], 'gomaxprocs': typing.Union[kittycad.types.Unset, int], 'host': typing.Union[kittycad.types.Unset, str], 'http_base_path': typing.Union[kittycad.types.Unset, str], 'http_host': typing.Union[kittycad.types.Unset, str], 'http_port': typing.Union[kittycad.types.Unset, int], 'http_req_stats': typing.Union[kittycad.types.Unset, typing.Any], 'https_port': typing.Union[kittycad.types.Unset, int], 'in_bytes': typing.Union[kittycad.types.Unset, int], 'in_msgs': typing.Union[kittycad.types.Unset, int], 'jetstream': typing.Union[kittycad.types.Unset, kittycad.models.jetstream.Jetstream], 'leaf': typing.Union[kittycad.types.Unset, kittycad.models.leaf_node.LeafNode], 'leafnodes': typing.Union[kittycad.types.Unset, int], 'max_connections': typing.Union[kittycad.types.Unset, int], 'max_control_line': typing.Union[kittycad.types.Unset, int], 'max_payload': typing.Union[kittycad.types.Unset, int], 'max_pending': typing.Union[kittycad.types.Unset, int], 'mem': typing.Union[kittycad.types.Unset, int], 'now': typing.Union[kittycad.types.Unset, datetime.datetime], 'out_bytes': typing.Union[kittycad.types.Unset, int], 'out_msgs': typing.Union[kittycad.types.Unset, int], 'ping_interval': typing.Union[kittycad.types.Unset, int], 'ping_max': typing.Union[kittycad.types.Unset, int], 'port': typing.Union[kittycad.types.Unset, int], 'proto': typing.Union[kittycad.types.Unset, int], 'remotes': typing.Union[kittycad.types.Unset, int], 'routes': typing.Union[kittycad.types.Unset, int], 'server_id': typing.Union[kittycad.types.Unset, str], 'server_name': typing.Union[kittycad.types.Unset, str], 'slow_consumers': typing.Union[kittycad.types.Unset, int], 'start': typing.Union[kittycad.types.Unset, datetime.datetime], 'subscriptions': typing.Union[kittycad.types.Unset, int], 'system_account': typing.Union[kittycad.types.Unset, str], 'tls_timeout': typing.Union[kittycad.types.Unset, int], 'total_connections': typing.Union[kittycad.types.Unset, int], 'uptime': typing.Union[kittycad.types.Unset, str], 'version': typing.Union[kittycad.types.Unset, str], 'write_deadline': typing.Union[kittycad.types.Unset, int], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Metadata about a pub-sub connection.\n\n This is mostly used for internal purposes and debugging.', 'to_dict': <function Connection.to_dict>, 'from_dict': <classmethod(<function Connection.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Connection.__getitem__>, '__setitem__': <function Connection.__setitem__>, '__delitem__': <function Connection.__delitem__>, '__contains__': <function Connection.__contains__>, '__dict__': <attribute '__dict__' of 'Connection' objects>, '__weakref__': <attribute '__weakref__' of 'Connection' objects>, '__attrs_attrs__': (Attribute(name='auth_timeout', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='auth_timeout'), Attribute(name='cluster', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.cluster.Cluster], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cluster'), Attribute(name='config_load_time', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='config_load_time'), Attribute(name='connections', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='connections'), Attribute(name='cores', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cores'), Attribute(name='cpu', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cpu'), Attribute(name='gateway', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.gateway.Gateway], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='gateway'), Attribute(name='git_commit', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='git_commit'), Attribute(name='go', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='go'), Attribute(name='gomaxprocs', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='gomaxprocs'), Attribute(name='host', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='host'), Attribute(name='http_base_path', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='http_base_path'), Attribute(name='http_host', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='http_host'), Attribute(name='http_port', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='http_port'), Attribute(name='http_req_stats', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='http_req_stats'), Attribute(name='https_port', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='https_port'), Attribute(name='in_bytes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='in_bytes'), Attribute(name='in_msgs', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='in_msgs'), Attribute(name='jetstream', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.jetstream.Jetstream], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='jetstream'), Attribute(name='leaf', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.leaf_node.LeafNode], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='leaf'), Attribute(name='leafnodes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='leafnodes'), Attribute(name='max_connections', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='max_connections'), Attribute(name='max_control_line', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='max_control_line'), Attribute(name='max_payload', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='max_payload'), Attribute(name='max_pending', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='max_pending'), Attribute(name='mem', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='mem'), Attribute(name='now', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='now'), Attribute(name='out_bytes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='out_bytes'), Attribute(name='out_msgs', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='out_msgs'), Attribute(name='ping_interval', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='ping_interval'), Attribute(name='ping_max', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='ping_max'), Attribute(name='port', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='port'), Attribute(name='proto', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='proto'), Attribute(name='remotes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='remotes'), Attribute(name='routes', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='routes'), Attribute(name='server_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='server_id'), Attribute(name='server_name', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='server_name'), Attribute(name='slow_consumers', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='slow_consumers'), Attribute(name='start', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='start'), Attribute(name='subscriptions', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='subscriptions'), Attribute(name='system_account', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='system_account'), Attribute(name='tls_timeout', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='tls_timeout'), Attribute(name='total_connections', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='total_connections'), Attribute(name='uptime', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='uptime'), Attribute(name='version', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='version'), Attribute(name='write_deadline', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='write_deadline'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function Connection.__repr__>, '__eq__': <function Connection.__eq__>, '__ne__': <function Connection.__ne__>, '__lt__': <function Connection.__lt__>, '__le__': <function Connection.__le__>, '__gt__': <function Connection.__gt__>, '__ge__': <function Connection.__ge__>, '__hash__': None, '__init__': <function Connection.__init__>, '__match_args__': ('auth_timeout', 'cluster', 'config_load_time', 'connections', 'cores', 'cpu', 'gateway', 'git_commit', 'go', 'gomaxprocs', 'host', 'http_base_path', 'http_host', 'http_port', 'http_req_stats', 'https_port', 'in_bytes', 'in_msgs', 'jetstream', 'leaf', 'leafnodes', 'max_connections', 'max_control_line', 'max_payload', 'max_pending', 'mem', 'now', 'out_bytes', 'out_msgs', 'ping_interval', 'ping_max', 'port', 'proto', 'remotes', 'routes', 'server_id', 'server_name', 'slow_consumers', 'start', 'subscriptions', 'system_account', 'tls_timeout', 'total_connections', 'uptime', 'version', 'write_deadline')})[source]
- __init__(auth_timeout=<kittycad.types.Unset object>, cluster=<kittycad.types.Unset object>, config_load_time=<kittycad.types.Unset object>, connections=<kittycad.types.Unset object>, cores=<kittycad.types.Unset object>, cpu=<kittycad.types.Unset object>, gateway=<kittycad.types.Unset object>, git_commit=<kittycad.types.Unset object>, go=<kittycad.types.Unset object>, gomaxprocs=<kittycad.types.Unset object>, host=<kittycad.types.Unset object>, http_base_path=<kittycad.types.Unset object>, http_host=<kittycad.types.Unset object>, http_port=<kittycad.types.Unset object>, http_req_stats=<kittycad.types.Unset object>, https_port=<kittycad.types.Unset object>, in_bytes=<kittycad.types.Unset object>, in_msgs=<kittycad.types.Unset object>, jetstream=<kittycad.types.Unset object>, leaf=<kittycad.types.Unset object>, leafnodes=<kittycad.types.Unset object>, max_connections=<kittycad.types.Unset object>, max_control_line=<kittycad.types.Unset object>, max_payload=<kittycad.types.Unset object>, max_pending=<kittycad.types.Unset object>, mem=<kittycad.types.Unset object>, now=<kittycad.types.Unset object>, out_bytes=<kittycad.types.Unset object>, out_msgs=<kittycad.types.Unset object>, ping_interval=<kittycad.types.Unset object>, ping_max=<kittycad.types.Unset object>, port=<kittycad.types.Unset object>, proto=<kittycad.types.Unset object>, remotes=<kittycad.types.Unset object>, routes=<kittycad.types.Unset object>, server_id=<kittycad.types.Unset object>, server_name=<kittycad.types.Unset object>, slow_consumers=<kittycad.types.Unset object>, start=<kittycad.types.Unset object>, subscriptions=<kittycad.types.Unset object>, system_account=<kittycad.types.Unset object>, tls_timeout=<kittycad.types.Unset object>, total_connections=<kittycad.types.Unset object>, uptime=<kittycad.types.Unset object>, version=<kittycad.types.Unset object>, write_deadline=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Connection.
- __match_args__ = ('auth_timeout', 'cluster', 'config_load_time', 'connections', 'cores', 'cpu', 'gateway', 'git_commit', 'go', 'gomaxprocs', 'host', 'http_base_path', 'http_host', 'http_port', 'http_req_stats', 'https_port', 'in_bytes', 'in_msgs', 'jetstream', 'leaf', 'leafnodes', 'max_connections', 'max_control_line', 'max_payload', 'max_pending', 'mem', 'now', 'out_bytes', 'out_msgs', 'ping_interval', 'ping_max', 'port', 'proto', 'remotes', 'routes', 'server_id', 'server_name', 'slow_consumers', 'start', 'subscriptions', 'system_account', 'tls_timeout', 'total_connections', 'uptime', 'version', 'write_deadline')[source]