83 lines
2.6 KiB
Python
83 lines
2.6 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|||
|
|
#
|
||
|
|
# The OpenSearch Contributors require contributions made to
|
||
|
|
# this file be licensed under the Apache-2.0 license or a
|
||
|
|
# compatible open source license.
|
||
|
|
#
|
||
|
|
# Modifications Copyright OpenSearch Contributors. See
|
||
|
|
# GitHub history for details.
|
||
|
|
from typing import Any, Union
|
||
|
|
|
||
|
|
from ..client.utils import NamespacedClient as NamespacedClient
|
||
|
|
|
||
|
|
class AlertingClient(NamespacedClient):
|
||
|
|
def search_monitor(
|
||
|
|
self, body: Any, params: Union[Any, None] = ..., headers: Union[Any, None] = ...
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def get_monitor(
|
||
|
|
self,
|
||
|
|
monitor_id: Any,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def run_monitor(
|
||
|
|
self,
|
||
|
|
monitor_id: Any,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def create_monitor(
|
||
|
|
self,
|
||
|
|
body: Union[Any, None] = ...,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def update_monitor(
|
||
|
|
self,
|
||
|
|
monitor_id: Any,
|
||
|
|
body: Union[Any, None] = ...,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def delete_monitor(
|
||
|
|
self,
|
||
|
|
monitor_id: Any,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def get_destination(
|
||
|
|
self,
|
||
|
|
destination_id: Union[Any, None] = ...,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def create_destination(
|
||
|
|
self,
|
||
|
|
body: Union[Any, None] = ...,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def update_destination(
|
||
|
|
self,
|
||
|
|
destination_id: Any,
|
||
|
|
body: Union[Any, None] = ...,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def delete_destination(
|
||
|
|
self,
|
||
|
|
destination_id: Any,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def get_alerts(
|
||
|
|
self, params: Union[Any, None] = ..., headers: Union[Any, None] = ...
|
||
|
|
) -> Union[bool, Any]: ...
|
||
|
|
def acknowledge_alert(
|
||
|
|
self,
|
||
|
|
monitor_id: Any,
|
||
|
|
body: Union[Any, None] = ...,
|
||
|
|
params: Union[Any, None] = ...,
|
||
|
|
headers: Union[Any, None] = ...,
|
||
|
|
) -> Union[bool, Any]: ...
|