Mercurial > code > home > repos > rdfdb
diff stubs/greplin/scales/graphite.pyi @ 33:4f71d2a7a8d1
some low-quality mostly generated mypy stubs. should be shared with my other builds
Ignore-this: 99c013ca3860da8917b3ca52c24308fc
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 25 May 2019 02:53:14 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubs/greplin/scales/graphite.pyi Sat May 25 02:53:14 2019 +0000 @@ -0,0 +1,25 @@ +# Stubs for greplin.scales.graphite (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import threading +from typing import Any, Optional + +log: Any + +class GraphitePusher: + rules: Any = ... + pruneRules: Any = ... + prefix: Any = ... + graphite: Any = ... + def __init__(self, host: Any, port: Any, prefix: Optional[Any] = ...) -> None: ... + def push(self, statsDict: Optional[Any] = ..., prefix: Optional[Any] = ..., path: Optional[Any] = ...) -> None: ... + def allow(self, rule: Any) -> None: ... + def forbid(self, rule: Any) -> None: ... + def prune(self, rule: Any) -> None: ... + +class GraphitePeriodicPusher(threading.Thread, GraphitePusher): + daemon: bool = ... + period: Any = ... + def __init__(self, host: Any, port: Any, prefix: Optional[Any] = ..., period: int = ...) -> None: ... + def run(self) -> None: ...