2d03dc773b
* Alert Plugin Signed-off-by: Arnav Das <arnav.das88@gmail.com> * lint file header license Signed-off-by: Arnav Das <arnav.das88@gmail.com> * Tests For Alerting[Monitors] Signed-off-by: Arnav Das <arnav.das88@gmail.com> * Tests For Alerting[Destinations] Signed-off-by: Arnav Das <arnav.das88@gmail.com> * dynamic lookup 90#issuecomment-1003396742 Signed-off-by: Arnav Das <arnav.das88@gmail.com> * Alerting Async Signed-off-by: Arnav Das <arnav.das88@gmail.com> * Lint Changes Signed-off-by: Arnav Das <arnav.das88@gmail.com> * alerting plugins integration tests Signed-off-by: Arnav Das <arnav.das88@gmail.com> * Integ UnitTests Skip on OPENSEARCH_VERSION >= 2.0.0 Signed-off-by: Arnav Das <arnav.das88@gmail.com> * Unit Test Skip Complete Signed-off-by: Arnav Das <arnav.das88@gmail.com> * License Headers fixed Signed-off-by: Arnav Das <arnav.das88@gmail.com> * test_urllib3_connection timeout Signed-off-by: Arnav Das <arnav.das88@gmail.com> * lint Signed-off-by: Arnav Das <arnav.das88@gmail.com> * Fix licenses in all files Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com> * Remove elastic search licenses on new files Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com> * Fix formatting Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com> Signed-off-by: Arnav Das <arnav.das88@gmail.com> Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com> Co-authored-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
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]: ...
|