-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcheck_hddtemp.pyi
55 lines (42 loc) · 1.6 KB
/
check_hddtemp.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
# -*- coding: utf-8 -*-
# nagios-check-hddtemp
# check_hddtemp.pyi
from typing import List, Dict, Union, Tuple # pylint: disable=W0611
from argparse import Namespace
__all__: List[str] = ...
VERSION: Tuple[int, int, int] = ...
__version__: str = ...
class CheckHDDTemp(object):
HDDTEMP_SLEEPING: str = ...
HDDTEMP_UNKNOWN: str = ...
STATUS_CRITICAL: str = ...
STATUS_WARNING: str = ...
STATUS_UNKNOWN: str = ...
STATUS_OK: str = ...
STATUS_SLEEPING: str = ...
PRIORITY_CRITICAL: int = ...
PRIORITY_WARNING: int = ...
PRIORITY_UNKNOWN: int = ...
PRIORITY_OK: int = ...
PRIORITY_SLEEPING: int = ...
PRIORITY_TO_STATUS: Dict[int, str] = ...
OUTPUT_TEMPLATES: Dict[str, Dict[str, Union[str, int]]] = ...
DEFAULT_EXIT_CODE: int = ...
EXIT_CODES: Dict[str, int] = ...
PERFORMANCE_DATA_TEMPLATE: str = ...
options: Namespace = ...
def __init__(self) -> None: ...
@staticmethod
def _get_options() -> Namespace: ...
def _get_data(self) -> str: ...
def _parse_data(self, data: str) -> Dict[str, Dict[str, str]]: ...
def _check_data(
self, data: Dict[str, Dict[str, str]]
) -> Dict[str, Dict[str, Union[str, int, Dict[str, Union[None, int, str]]]]]: ...
def _get_status(
self, data: Dict[str, Dict[str, Union[str, int, Dict[str, Union[None, int, str]]]]]
) -> str: ...
def _get_code(self, status: str) -> int: ...
def _get_output(self, data: Dict[str, Dict[str, Union[str, int, Dict[str, Union[None, int, str]]]]], status: str) -> str: ...
def check(self) -> Tuple[str, int]: ...
def main() -> None: ...