MCPcopy Create free account
hub / github.com/alibaba/GraphScope / list_alert_rules

Function list_alert_rules

python/graphscope/gsctl/impl/alert.py:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def list_alert_rules() -> List[GetAlertRuleResponse]:
32 context = get_current_context()
33 with graphscope.flex.rest.ApiClient(
34 graphscope.flex.rest.Configuration(context.coordinator_endpoint)
35 ) as api_client:
36 api_instance = graphscope.flex.rest.AlertApi(api_client)
37 return api_instance.list_alert_rules()
38
39
40def update_alert_rule_by_id(rule_id: str, rule: dict) -> str:

Callers 1

test_alertMethod · 0.90

Calls 3

get_current_contextFunction · 0.90
list_alert_rulesMethod · 0.80
ConfigurationMethod · 0.45

Tested by 1

test_alertMethod · 0.72