Alerting Plugins (#93)
* Alert Plugin Signed-off-by: Arnav Das <[email protected]> * lint file header license Signed-off-by: Arnav Das <[email protected]> * Tests For Alerting[Monitors] Signed-off-by: Arnav Das <[email protected]> * Tests For Alerting[Destinations] Signed-off-by: Arnav Das <[email protected]> * dynamic lookup 90#issuecomment-1003396742 Signed-off-by: Arnav Das <[email protected]> * Alerting Async Signed-off-by: Arnav Das <[email protected]> * Lint Changes Signed-off-by: Arnav Das <[email protected]> * alerting plugins integration tests Signed-off-by: Arnav Das <[email protected]> * Integ UnitTests Skip on OPENSEARCH_VERSION >= 2.0.0 Signed-off-by: Arnav Das <[email protected]> * Unit Test Skip Complete Signed-off-by: Arnav Das <[email protected]> * License Headers fixed Signed-off-by: Arnav Das <[email protected]> * test_urllib3_connection timeout Signed-off-by: Arnav Das <[email protected]> * lint Signed-off-by: Arnav Das <[email protected]> * Fix licenses in all files Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Remove elastic search licenses on new files Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix formatting Signed-off-by: Harsha Vamsi Kalluri <[email protected]> Signed-off-by: Arnav Das <[email protected]> Signed-off-by: Harsha Vamsi Kalluri <[email protected]> Co-authored-by: Harsha Vamsi Kalluri <[email protected]>
This commit is contained in:
co-authored by
Harsha Vamsi Kalluri
parent
9398975f98
commit
2d03dc773b
@@ -0,0 +1,8 @@
|
||||
# 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.
|
||||
@@ -0,0 +1,25 @@
|
||||
# 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 ..client.utils import NamespacedClient as NamespacedClient, query_params as query_params
|
||||
from typing import Any, Union
|
||||
|
||||
class AlertingClient(NamespacedClient):
|
||||
def search_monitor(self, body, params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def get_monitor(self, monitor_id, params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def run_monitor(self, monitor_id, params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def create_monitor(self, body: Any | None = ..., params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def update_monitor(self, monitor_id, body: Any | None = ..., params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def delete_monitor(self, monitor_id, params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def get_destination(self, destination_id: Any | None = ..., params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def create_destination(self, body: Any | None = ..., params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def update_destination(self, destination_id, body: Any | None = ..., params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def delete_destination(self, destination_id, params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def get_alerts(self, params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
def acknowledge_alert(self, monitor_id, body: Any | None = ..., params: Any | None = ..., headers: Any | None = ...) -> Union[bool, Any]: ...
|
||||
Reference in New Issue
Block a user