metric-severity
Remap statuses for one metric on a database instance, or batch multiple remaps together with notes and confirmation for emergency operations.
Instructions
dbabrain common.cli metric-severity: How one metric's statuses are remapped for one instance - or a list of such remaps, written together.
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
server_id: The instance. Required in the one-remap form; absent beside items.
metric_code: The metric. Required in the one-remap form; absent beside items. "*" is every metric of the server - metrics.severity_map, under each metric's own map, which still wins; it takes no metric_item.
metric_item: One item of it.
severity_map: {STATUS: STATUS}.
note: Why.
items: Several remaps written together, every one or none: each {server_id, metric_code, metric_item, severity_map, note}. With items, the request carries nothing else but data_dir.
data_dir: Another data/ folder to read.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "metric-severity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |