get_current_alerts
Retrieve current alerts from an Ambari cluster to monitor health, services, or hosts. Filter alerts by state, definition, or maintenance status for streamlined cluster management. Deprecated; use get_alerts_history with mode="current".
Instructions
Retrieve current alerts from Ambari cluster.
DEPRECATED: This function is deprecated in favor of get_alerts_history with mode="current". This wrapper is maintained for backward compatibility.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cluster_name | No | ||
definition_name | No | ||
format | No | detailed | |
host_name | No | ||
maintenance_state | No | ||
service_name | No | ||
state_filter | No |
Input Schema (JSON Schema)
{
"properties": {
"cluster_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Cluster Name"
},
"definition_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Definition Name"
},
"format": {
"default": "detailed",
"title": "Format",
"type": "string"
},
"host_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Name"
},
"maintenance_state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Maintenance State"
},
"service_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Service Name"
},
"state_filter": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "State Filter"
}
},
"type": "object"
}