OpenapiO11y
Changes an ingestion key limit, by limit id.
Changes an ingestion key limit, by limit id.
PATCH /v1/o11y/gateway/ingestion_keys/limits/{limitId}
| Address | https://api.hanzo.ai/v1/o11y/gateway/ingestion_keys/limits/{limitId} |
| Method | PATCH |
| Operation | UpdateIngestionKeyLimit |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Changes an ingestion key limit, by limit id. Editor gate.
Request
9 fields, body application/json (required).
| Field | In | Type | Required | Description |
|---|---|---|---|---|
limitId | path | string | yes | |
config | body | o11y.LimitConfig | — | |
config.day | body | o11y.LimitValue | — | |
config.day.count | body | integer | — | |
config.day.size | body | integer | — | |
config.second | body | o11y.LimitValue | — | |
config.second.count | body | integer | — | |
config.second.size | body | integer | — | |
tags | body | string[] | — |
Response
| Status | Body | Meaning |
|---|---|---|
204 | — | no content |
Failure carries the platform error shape — see Errors.
Examples
hanzo o11y gateway ingestion_keys limits update <limitId>import { Configuration, O11yApi } from 'hanzoai';
const api = new O11yApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.updateIngestionKeyLimit({ limitId: 'limitId', config: {"day":{"count":0,"size":0},"second":{"count":0,"size":0}}, tags: ["<tags>"] });from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import O11yApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = O11yApi(client).update_ingestion_key_limit(limit_id='limitId', config={"day":{"count":0,"size":0},"second":{"count":0,"size":0}}, tags=["<tags>"])cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.O11yAPI.UpdateIngestionKeyLimit(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, o11y_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = o11y_api::update_ingestion_key_limit(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.O11yApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new O11yApi(client).updateIngestionKeyLimit();curl -X PATCH https://api.hanzo.ai/v1/o11y/gateway/ingestion_keys/limits/<limitId> \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"config": {
"day": {
"count": 0,
"size": 0
},
"second": {
"count": 0,
"size": 0
}
},
"tags": [
"<tags>"
]
}'The door reaches o11y through the o11y tool, which names its 340 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "get_o11y_alert_last"
}
}
}'How is this guide?