Mercurial > code > home > repos > homeauto
comparison service/collector/stubs/greplin/scales/aggregation.pyi @ 1253:0e7044b23dad
more stubs for collector typechecking
Ignore-this: 7151f942cfc29c2b3dfaa0a6b20222aa
darcs-hash:47577255eba6b501a19b06231945ae090c05f8fd
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 19 Apr 2019 01:07:29 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1252:9cfa7f69e41f | 1253:0e7044b23dad |
---|---|
1 # Stubs for greplin.scales.aggregation (Python 3) | |
2 # | |
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. | |
4 | |
5 from typing import Any, Optional | |
6 | |
7 class DefaultFormat: | |
8 def getCount(self, data: Any): ... | |
9 def getValue(self, data: Any): ... | |
10 | |
11 class DirectFormat: | |
12 def getCount(self, _: Any): ... | |
13 def getValue(self, data: Any): ... | |
14 | |
15 class TimerFormat: | |
16 def getCount(self, data: Any): ... | |
17 def getValue(self, data: Any): ... | |
18 | |
19 class TimerMeanFormat: | |
20 def getCount(self, data: Any): ... | |
21 def getValue(self, data: Any): ... | |
22 | |
23 class CounterFormat: | |
24 def getCount(self, data: Any): ... | |
25 def getValue(self, data: Any): ... | |
26 | |
27 class MeterFormat: | |
28 def getCount(self, data: Any): ... | |
29 def getValue(self, data: Any): ... | |
30 | |
31 class GaugeFormat: | |
32 def getValue(self, data: Any): ... | |
33 | |
34 class DataFormats: | |
35 DEFAULT: Any = ... | |
36 DIRECT: Any = ... | |
37 TIMER: Any = ... | |
38 TIMER_MEAN: Any = ... | |
39 COUNTER: Any = ... | |
40 METER: Any = ... | |
41 GAUGE: Any = ... | |
42 | |
43 class Aggregator: | |
44 name: Any = ... | |
45 def __init__(self, name: Optional[Any] = ..., dataFormat: Any = ...) -> None: ... | |
46 def clone(self): ... | |
47 | |
48 class Average(Aggregator): | |
49 DEFAULT_NAME: str = ... | |
50 def addValue(self, _: Any, value: Any) -> None: ... | |
51 def result(self): ... | |
52 | |
53 class Sum(Aggregator): | |
54 DEFAULT_NAME: str = ... | |
55 total: int = ... | |
56 def addValue(self, _: Any, value: Any) -> None: ... | |
57 def result(self): ... | |
58 | |
59 class InverseMap(Aggregator): | |
60 DEFAULT_NAME: str = ... | |
61 def __init__(self, *args: Any, **kw: Any) -> None: ... | |
62 def addValue(self, source: Any, data: Any) -> None: ... | |
63 def result(self): ... | |
64 | |
65 class Sorted(Aggregator): | |
66 DEFAULT_NAME: str = ... | |
67 def __init__(self, cmp: Optional[Any] = ..., key: Optional[Any] = ..., reverse: bool = ..., *args: Any, **kw: Any) -> None: ... | |
68 def addValue(self, source: Any, data: Any) -> None: ... | |
69 def result(self): ... | |
70 def clone(self): ... | |
71 | |
72 class Highlight(Aggregator): | |
73 value: Any = ... | |
74 source: Any = ... | |
75 fn: Any = ... | |
76 def __init__(self, name: Any, fn: Any, dataFormat: Any = ...) -> None: ... | |
77 def addValue(self, source: Any, value: Any) -> None: ... | |
78 def result(self): ... | |
79 def clone(self): ... | |
80 | |
81 class Aggregation: | |
82 def __init__(self, aggregators: Any) -> None: ... | |
83 def addSource(self, source: Any, data: Any) -> None: ... | |
84 def addJsonDirectory(self, directory: Any, test: Optional[Any] = ...) -> None: ... | |
85 def result(self, root: Optional[Any] = ...): ... | |
86 | |
87 class FileInclusionTest: | |
88 ignoreByName: Any = ... | |
89 maxAge: Any = ... | |
90 def __init__(self, ignoreByName: Optional[Any] = ..., maxAge: Optional[Any] = ...) -> None: ... | |
91 def __call__(self, _: Any, fullPath: Any): ... |