The page you navigated to does not exist, so we brought you to the closest page to it.
flytekit.interfaces.stats.client
flytekit.interfaces.stats.client
Property
Type
Description
RESERVED_TAG_WORDS
frozenset
def get_base_stats (
cfg : flytekit . configuration . StatsConfig ,
prefix : str ,
)
Parameter
Type
Description
cfg
flytekit.configuration.StatsConfig
prefix
str
def get_stats (
cfg : flytekit . configuration . StatsConfig ,
prefix : str ,
)
Parameter
Type
Description
cfg
flytekit.configuration.StatsConfig
prefix
str
A dummy client for statsd.
class DummyStatsClient (
host ,
port ,
prefix ,
maxudpsize ,
ipv6 ,
)
Create a new client.
Parameter
Type
Description
host
port
prefix
maxudpsize
ipv6
Used to close and clean up any underlying resources.
def decr (
stat ,
count ,
rate ,
)
Decrement a stat by count.
Parameter
Type
Description
stat
count
rate
def gauge (
stat ,
value ,
rate ,
delta ,
)
Set a gauge value.
Parameter
Type
Description
stat
value
rate
delta
def incr (
stat ,
count ,
rate ,
)
Increment a stat by count.
Parameter
Type
Description
stat
count
rate
def set (
stat ,
value ,
rate ,
)
Set a set value.
Parameter
Type
Description
stat
value
rate
Parameter
Type
Description
stat
rate
def timing (
stat ,
delta ,
rate ,
)
Send new timing information.
delta can be either a number of milliseconds or a timedelta.
Parameter
Type
Description
stat
delta
rate
A Proxy object for an underlying statsd client.
Adds a new call, scope(prefix), which returns a new proxy to the same
client which will prefix all calls to underlying methods with the scoped prefix:
new_client = client.get_stats(‘a’)
new_client.incr(‘b’) # Metric name = a.b
This can be nested:
newer_client = new_client.get_stats(‘subsystem’)
newer_client.incr(‘bad’) # Metric name = a.subsystem.bad
class ScopeableStatsProxy (
client ,
prefix ,
)
Parameter
Type
Description
client
prefix
Parameter
Type
Description
name
class StatsClientProxy (
client ,
prefix ,
)
Parameter
Type
Description
client
prefix
Parameter
Type
Description
name