71 lines
3.4 KiB
Python
71 lines
3.4 KiB
Python
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
from google.protobuf import empty_pb2 as _empty_pb2
|
|
from google.protobuf.internal import containers as _containers
|
|
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import message as _message
|
|
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
|
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
|
|
class MonitoredServiceState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
__slots__ = ()
|
|
ACTIVE: _ClassVar[MonitoredServiceState]
|
|
RELOADING: _ClassVar[MonitoredServiceState]
|
|
INACTIVE: _ClassVar[MonitoredServiceState]
|
|
FAILED: _ClassVar[MonitoredServiceState]
|
|
ACTIVATING: _ClassVar[MonitoredServiceState]
|
|
DEACTIVATING: _ClassVar[MonitoredServiceState]
|
|
ACTIVE: MonitoredServiceState
|
|
RELOADING: MonitoredServiceState
|
|
INACTIVE: MonitoredServiceState
|
|
FAILED: MonitoredServiceState
|
|
ACTIVATING: MonitoredServiceState
|
|
DEACTIVATING: MonitoredServiceState
|
|
|
|
class AgentConfiguration(_message.Message):
|
|
__slots__ = ("services_to_monitor", "storage_to_monitor")
|
|
SERVICES_TO_MONITOR_FIELD_NUMBER: _ClassVar[int]
|
|
STORAGE_TO_MONITOR_FIELD_NUMBER: _ClassVar[int]
|
|
services_to_monitor: _containers.RepeatedScalarFieldContainer[str]
|
|
storage_to_monitor: _containers.RepeatedScalarFieldContainer[str]
|
|
def __init__(self, services_to_monitor: _Optional[_Iterable[str]] = ..., storage_to_monitor: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
|
|
class AgentConfigurationResponse(_message.Message):
|
|
__slots__ = ("hostname",)
|
|
HOSTNAME_FIELD_NUMBER: _ClassVar[int]
|
|
hostname: str
|
|
def __init__(self, hostname: _Optional[str] = ...) -> None: ...
|
|
|
|
class MonitoringStats(_message.Message):
|
|
__slots__ = ("services", "storage")
|
|
SERVICES_FIELD_NUMBER: _ClassVar[int]
|
|
STORAGE_FIELD_NUMBER: _ClassVar[int]
|
|
services: _containers.RepeatedCompositeFieldContainer[MonitoredService]
|
|
storage: _containers.RepeatedCompositeFieldContainer[MonitoredStorage]
|
|
def __init__(self, services: _Optional[_Iterable[_Union[MonitoredService, _Mapping]]] = ..., storage: _Optional[_Iterable[_Union[MonitoredStorage, _Mapping]]] = ...) -> None: ...
|
|
|
|
class MonitoredService(_message.Message):
|
|
__slots__ = ("name", "state", "result_success", "main_started", "main_exited")
|
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
RESULT_SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
MAIN_STARTED_FIELD_NUMBER: _ClassVar[int]
|
|
MAIN_EXITED_FIELD_NUMBER: _ClassVar[int]
|
|
name: str
|
|
state: MonitoredServiceState
|
|
result_success: bool
|
|
main_started: _timestamp_pb2.Timestamp
|
|
main_exited: _timestamp_pb2.Timestamp
|
|
def __init__(self, name: _Optional[str] = ..., state: _Optional[_Union[MonitoredServiceState, str]] = ..., result_success: bool = ..., main_started: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., main_exited: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
|
|
class MonitoredStorage(_message.Message):
|
|
__slots__ = ("name", "smart_pass", "present")
|
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
SMART_PASS_FIELD_NUMBER: _ClassVar[int]
|
|
PRESENT_FIELD_NUMBER: _ClassVar[int]
|
|
name: str
|
|
smart_pass: bool
|
|
present: bool
|
|
def __init__(self, name: _Optional[str] = ..., smart_pass: bool = ..., present: bool = ...) -> None: ...
|