()
| 29 | |
| 30 | |
| 31 | def 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 | |
| 40 | def update_alert_rule_by_id(rule_id: str, rule: dict) -> str: |