removed unused helper function
This commit is contained in:
parent
0cf9285726
commit
52e89f0f85
@ -20,18 +20,6 @@ from cmk.agent_based.v2 import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_state_upper(
|
|
||||||
levels: tuple[int | float, int | float], value: int | float
|
|
||||||
) -> State:
|
|
||||||
"""returns OK/WARN/CRIT depending on the given parameters"""
|
|
||||||
warn, crit = levels
|
|
||||||
if value >= crit:
|
|
||||||
return State.CRIT
|
|
||||||
if value >= warn:
|
|
||||||
return State.WARN
|
|
||||||
return State.OK
|
|
||||||
|
|
||||||
|
|
||||||
def parse_traefik_http_components(string_table):
|
def parse_traefik_http_components(string_table):
|
||||||
"""the parse function"""
|
"""the parse function"""
|
||||||
parsed_data = {}
|
parsed_data = {}
|
||||||
|
@ -20,18 +20,6 @@ from cmk.agent_based.v2 import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_state_upper(
|
|
||||||
levels: tuple[int | float, int | float], value: int | float
|
|
||||||
) -> State:
|
|
||||||
"""returns OK/WARN/CRIT depending on the given parameters"""
|
|
||||||
warn, crit = levels
|
|
||||||
if value >= crit:
|
|
||||||
return State.CRIT
|
|
||||||
if value >= warn:
|
|
||||||
return State.WARN
|
|
||||||
return State.OK
|
|
||||||
|
|
||||||
|
|
||||||
def parse_traefik_tcp_components(string_table):
|
def parse_traefik_tcp_components(string_table):
|
||||||
"""the parse function"""
|
"""the parse function"""
|
||||||
parsed_data = {}
|
parsed_data = {}
|
||||||
|
@ -20,18 +20,6 @@ from cmk.agent_based.v2 import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_state_upper(
|
|
||||||
levels: tuple[int | float, int | float], value: int | float
|
|
||||||
) -> State:
|
|
||||||
"""returns OK/WARN/CRIT depending on the given parameters"""
|
|
||||||
warn, crit = levels
|
|
||||||
if value >= crit:
|
|
||||||
return State.CRIT
|
|
||||||
if value >= warn:
|
|
||||||
return State.WARN
|
|
||||||
return State.OK
|
|
||||||
|
|
||||||
|
|
||||||
def parse_traefik_udp_components(string_table):
|
def parse_traefik_udp_components(string_table):
|
||||||
"""the parse function"""
|
"""the parse function"""
|
||||||
parsed_data = {}
|
parsed_data = {}
|
||||||
|
@ -102,7 +102,7 @@ metric_traefik_percent_udp_components_not_ok = Metric(
|
|||||||
# Perfometers
|
# Perfometers
|
||||||
perfometer_traefik_agent_execution_time = Perfometer(
|
perfometer_traefik_agent_execution_time = Perfometer(
|
||||||
name="traefik_agent_execution_time",
|
name="traefik_agent_execution_time",
|
||||||
focus_range=FocusRange(Closed(0), Closed(100)),
|
focus_range=FocusRange(Closed(0), Closed(5000)),
|
||||||
# "segments" must be exactly the name of the metric
|
# "segments" must be exactly the name of the metric
|
||||||
segments=["traefik_agent_execution_time"],
|
segments=["traefik_agent_execution_time"],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user