-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcheck_supervisord.pyi
61 lines (47 loc) · 1.71 KB
/
check_supervisord.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- coding: utf-8 -*-
# nagios-check-supervisord
# check_supervisord.pyi
from typing import List, Tuple, Dict, Union # pylint: disable=W0611
from argparse import Namespace
try:
from xmlrpc.client import ServerProxy
except ImportError:
from xmlrpclib import ServerProxy # type: ignore
__all__: List[str] = ...
VERSION: Tuple[int, int, int] = ...
__version__: str = ...
class CheckSupervisord(object):
OUTPUT_TEMPLATES: Dict[str, Dict[str, Union[str, int]]] = ...
STATUS_CRITICAL: str = ...
STATUS_WARNING: str = ...
STATUS_UNKNOWN: str = ...
STATUS_OK: str = ...
EXIT_CODES: Dict[str, int]
STATE_STOPPED: str = ...
STATE_RUNNING: str = ...
STATE_STARTING: str = ...
STATE_BACKOFF: str = ...
STATE_STOPPING: str = ...
STATE_EXITED: str = ...
STATE_FATAL: str = ...
STATE_UNKNOWN: str = ...
STATE_TO_TEMPLATE: Dict[str, str] = ...
URI_TPL_HTTP: str = ...
URI_TPL_HTTP_AUTH: str = ...
URI_TPL_SOCKET: str = ...
URI_TEMPLATES: Dict[str, str] = ...
PRIORITY_CRITICAL: int = ...
PRIORITY_WARNING: int = ...
PRIORITY_UNKNOWN: int = ...
PRIORITY_OK: int = ...
PRIORITY_TO_STATUS: Dict[int, str] = ...
def __init__(self) -> None: ...
def _get_options(self) -> Namespace: ...
def _get_connection_string(self, tpl: str) -> str: ...
def _get_connection(self) -> ServerProxy: ...
def _get_data(self) -> List[Dict[str, Union[str, int]]]: ...
def _get_status(self, data: List[Dict[str, Union[str, int]]]) -> str: ...
def _get_code(self, status: str) -> int: ...
def _get_output(self, data: List[Dict[str, Union[str, int]]], status: str) -> str: ...
def check(self) -> Tuple[str, int]: ...
def main() -> None: ...