metric-batch
Executes a batch of metric items sequentially against one database target, resolving credentials from inventory and encrypted secrets so no password is sent.
Instructions
dbabrain common.cli metric-batch: One target's metric items, run one after another - the metrics app's execution.
server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password.
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):
target (required): The target's connection facts, resolved: target_id, db_type, host, port, database ("" = the engine's default, master on SQL Server), service_name, sqlserver_driver, sqlserver_tls_verify, username and password; or the ...
secrets: {ref: value} for exactly the secret refs this target's configuration names (a remote login's password_ref, the bridge's secret_ref) - never the whole store.
items (required): One per metric, run in order: {id, kind: sql, sql, timeout_seconds, max_rows, per_database, max_databases} | {id, kind: script, script, shell, access, credential, env, timeout_seconds} | {id, kind: local, path, env, t...
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-batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |