IBM Db2 Monitoring response API
The Monitoring response API from IBM Db2 — 3 operation(s) for monitoring response.
The Monitoring response API from IBM Db2 — 3 operation(s) for monitoring response.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ibm-db2:ibm-db2-monitoring-response-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Ibm Db2 Monitoring response API
version: '4'
termsOfService: http://www.ibm.com/software/sla/sladb.nsf
x-github: https://github.ibm.com/cloud-api-docs/db2-saas
x-github-issues: https://github.ibm.com/cloud-api-docs/db2-saas/issues/new
x-last-updated: '2025-06-25'
x-sdk-supported-languages:
- java
- node
- go
- python
x-try-it-out-enabled: true
description: 'Operations tagged Monitoring response across 2 of this provider''s published API definitions: ibm-db2-db2-on-cloud-v4-openapi.json, ibm-db2-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://_HOSTNAME_VARIABLE_/dbapi/v4
security:
- authToken: []
- deploymentId: []
tags:
- name: Monitoring response
paths:
/metrics/response_time_histograms:
get:
operationId: GetAllHistogramsDataByProfileName
summary: Get the histogram of response time. **DB ADMIN ONLY**
description: Get the histogram of response time for a specified time frame.
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
- name: start
in: query
description: Start timestamp.
required: true
schema:
type: integer
- name: end
in: query
description: End timestamp.
required: true
schema:
type: integer
tags:
- Monitoring response
responses:
'200':
description: Return the histogram of response time for a specified time frame
content:
application/json:
schema:
$ref: '#/components/schemas/HistogramsDataList'
'404':
description: Database profile not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
default:
description: Error payload.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
x-sdk-operations:
request-examples:
go:
- name: Example request
example:
- type: code
source:
- "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://{HOSTNAME}/dbapi/v4/metrics/response_time_histograms?start=1546272000000&end=1546272300000\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"x-db-profile\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n\treq.Header.Add(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
java:
- name: Example request
example:
- type: code
source:
- "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://{HOSTNAME}/dbapi/v4/metrics/response_time_histograms?start=1546272000000&end=1546272300000\")\n .get()\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"x-db-profile\", \"SOME_STRING_VALUE\")\n .addHeader(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n .addHeader(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n .build();\n\nResponse response = client.newCall(request).execute();"
node:
- name: Example request
example:
- type: code
source:
- "var http = require(\"https\");\n\nvar options = {\n \"method\": \"GET\",\n \"hostname\": \"{HOSTNAME}\",\n \"port\": null,\n \"path\": \"/dbapi/v4/metrics/response_time_histograms?start=1546272000000&end=1546272300000\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"x-db-profile\": \"SOME_STRING_VALUE\",\n \"authorization\": \"Bearer {AUTH_TOKEN}\",\n \"x-deployment-id\": \"{DEPLOYMENT_ID}\"\n }\n};\n\nvar req = http.request(options, function (res) {\n var chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n var body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"
python:
- name: Example request
example:
- type: code
source:
- "import http.client\n\nconn = http.client.HTTPSConnection(\"{HOSTNAME}\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'x-db-profile': \"SOME_STRING_VALUE\",\n 'authorization': \"Bearer {AUTH_TOKEN}\",\n 'x-deployment-id': \"{DEPLOYMENT_ID}\"\n }\n\nconn.request(\"GET\", \"/dbapi/v4/metrics/response_time_histograms?start=1546272000000&end=1546272300000\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"
curl:
- name: Example request
example:
- type: code
source:
- "curl -X GET \\\n 'https://{HOSTNAME}/dbapi/v4/metrics/response_time_histograms?start=1546272000000&end=1546272300000' \\\n -H 'authorization: Bearer {AUTH_TOKEN}' \\\n -H 'content-type: application/json' \\\n -H 'x-db-profile: SOME_STRING_VALUE' \\\n -H 'x-deployment-id: {DEPLOYMENT_ID}'"
servers:
- url: https://_HOSTNAME_VARIABLE_/dbapi/v4
/metrics/average_response_time:
get:
operationId: GetAverageResponseTime
summary: Get the average response time. **DB ADMIN ONLY**
description: Get the average response time for a specified time frame.
tags:
- Monitoring response
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
- name: start
in: query
description: Start timestamp.
required: true
schema:
type: integer
- name: end
in: query
description: End timestamp.
required: true
schema:
type: integer
responses:
'200':
description: Return the average response time for a specified time frame.
content:
application/json:
schema:
$ref: '#/components/schemas/AverageResponseTime'
'403':
description: Operation is only available to administrators.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
default:
description: Error payload.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
x-sdk-operations:
request-examples:
go:
- name: Example request
example:
- type: code
source:
- "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://{HOSTNAME}/dbapi/v4/metrics/average_response_time?start=1546272000000&end=1546272300000\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"x-db-profile\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n\treq.Header.Add(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
java:
- name: Example request
example:
- type: code
source:
- "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://{HOSTNAME}/dbapi/v4/metrics/average_response_time?start=1546272000000&end=1546272300000\")\n .get()\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"x-db-profile\", \"SOME_STRING_VALUE\")\n .addHeader(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n .addHeader(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n .build();\n\nResponse response = client.newCall(request).execute();"
node:
- name: Example request
example:
- type: code
source:
- "var http = require(\"https\");\n\nvar options = {\n \"method\": \"GET\",\n \"hostname\": \"{HOSTNAME}\",\n \"port\": null,\n \"path\": \"/dbapi/v4/metrics/average_response_time?start=1546272000000&end=1546272300000\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"x-db-profile\": \"SOME_STRING_VALUE\",\n \"authorization\": \"Bearer {AUTH_TOKEN}\",\n \"x-deployment-id\": \"{DEPLOYMENT_ID}\"\n }\n};\n\nvar req = http.request(options, function (res) {\n var chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n var body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"
python:
- name: Example request
example:
- type: code
source:
- "import http.client\n\nconn = http.client.HTTPSConnection(\"{HOSTNAME}\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'x-db-profile': \"SOME_STRING_VALUE\",\n 'authorization': \"Bearer {AUTH_TOKEN}\",\n 'x-deployment-id': \"{DEPLOYMENT_ID}\"\n }\n\nconn.request(\"GET\", \"/dbapi/v4/metrics/average_response_time?start=1546272000000&end=1546272300000\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"
curl:
- name: Example request
example:
- type: code
source:
- "curl -X GET \\\n 'https://{HOSTNAME}/dbapi/v4/metrics/average_response_time?start=1546272000000&end=1546272300000' \\\n -H 'authorization: Bearer {AUTH_TOKEN}' \\\n -H 'content-type: application/json' \\\n -H 'x-db-profile: SOME_STRING_VALUE' \\\n -H 'x-deployment-id: {DEPLOYMENT_ID}'"
servers:
- url: https://_HOSTNAME_VARIABLE_/dbapi/v4
/metrics/response_time:
get:
operationId: GetAverageResponseTimeList
summary: Get the list of average response time. **DB ADMIN ONLY**
description: Get the list of average response time for a specified time frame.
parameters:
- name: X-DB-Profile
in: header
description: Database profile name.
required: true
schema:
type: string
- name: start
in: query
description: Start timestamp.
required: true
schema:
type: integer
- name: end
in: query
description: End timestamp.
required: true
schema:
type: integer
tags:
- Monitoring response
responses:
'200':
description: Return the list of average response time for a specified time frame.
content:
application/json:
schema:
$ref: '#/components/schemas/AverageResponseTimeList'
'404':
description: Database profile not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
default:
description: Error payload.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorContainer'
x-sdk-operations:
request-examples:
go:
- name: Example request
example:
- type: code
source:
- "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://{HOSTNAME}/dbapi/v4/metrics/response_time?start=1546272000000&end=1546272300000\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"x-db-profile\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n\treq.Header.Add(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"
java:
- name: Example request
example:
- type: code
source:
- "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://{HOSTNAME}/dbapi/v4/metrics/response_time?start=1546272000000&end=1546272300000\")\n .get()\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"x-db-profile\", \"SOME_STRING_VALUE\")\n .addHeader(\"authorization\", \"Bearer {AUTH_TOKEN}\")\n .addHeader(\"x-deployment-id\", \"{DEPLOYMENT_ID}\")\n .build();\n\nResponse response = client.newCall(request).execute();"
node:
- name: Example request
example:
- type: code
source:
- "var http = require(\"https\");\n\nvar options = {\n \"method\": \"GET\",\n \"hostname\": \"{HOSTNAME}\",\n \"port\": null,\n \"path\": \"/dbapi/v4/metrics/response_time?start=1546272000000&end=1546272300000\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"x-db-profile\": \"SOME_STRING_VALUE\",\n \"authorization\": \"Bearer {AUTH_TOKEN}\",\n \"x-deployment-id\": \"{DEPLOYMENT_ID}\"\n }\n};\n\nvar req = http.request(options, function (res) {\n var chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n var body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"
python:
- name: Example request
example:
- type: code
source:
- "import http.client\n\nconn = http.client.HTTPSConnection(\"{HOSTNAME}\")\n\nheaders = {\n 'content-type': \"application/json\",\n 'x-db-profile': \"SOME_STRING_VALUE\",\n 'authorization': \"Bearer {AUTH_TOKEN}\",\n 'x-deployment-id': \"{DEPLOYMENT_ID}\"\n }\n\nconn.request(\"GET\", \"/dbapi/v4/metrics/response_time?start=1546272000000&end=1546272300000\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"
curl:
- name: Example request
example:
- type: code
source:
- "curl -X GET \\\n 'https://{HOSTNAME}/dbapi/v4/metrics/response_time?start=1546272000000&end=1546272300000' \\\n -H 'authorization: Bearer {AUTH_TOKEN}' \\\n -H 'content-type: application/json' \\\n -H 'x-db-profile: SOME_STRING_VALUE' \\\n -H 'x-deployment-id: {DEPLOYMENT_ID}'"
servers:
- url: https://_HOSTNAME_VARIABLE_/dbapi/v4
components:
schemas:
HistogramsDataList:
type: object
description: A list of histogram data.
required:
- count
- histograms
properties:
count:
type: integer
format: int32
description: Counts of matrices data.
histograms:
type: array
items:
$ref: '#/components/schemas/HistogramsData'
ErrorContainer:
type: object
description: Error response containing one or more error messages
required:
- trace
- errors
properties:
trace:
type: string
description: Unique ID assigned by the server that identifies the request that generated the error
errors:
type: array
description: List of errors
items:
$ref: '#/components/schemas/ErrorModel'
ErrorModel:
type: object
description: Error information
required:
- code
- message
properties:
code:
type: string
description: Error code succinctly identifying the problem
enum:
- authentication_failure
- database_error
- forbidden
- internal_server_error
- invalid_authentication_token
- invalid_content_type
- invalid_api_endpoint
- invalid_parameters
- invalid_request_payload
- not_found
- resource_already_exists
- session_expired
- unavailable
message:
type: string
description: Explanation of the problem and possible solutions
target:
$ref: '#/components/schemas/ErrorTargetModel'
more_info:
type: string
description: URL where more information about the error can be found (if available)
ErrorTargetModel:
type: object
description: Field or parameter related to an error
required:
- type
- name
properties:
type:
type: string
description: Field type
enum:
- field
- parameter
- header
name:
type: string
description: Name of the problematic field (with dot-syntax if necessary), query parameter, or header
AverageResponseTimeList:
type: object
description: A list of AverageResponseTime.
required:
- count
- timeseries
properties:
count:
type: integer
format: int32
description: Counts of matrices data.
timeseries:
type: array
items:
$ref: '#/components/schemas/ResponseTime'
HistogramsData:
type: object
description: Event monitor stats top.
required:
- from
- to
- number
properties:
from:
type: integer
format: int64
description: From.
to:
type: integer
format: int64
description: To.
number:
type: integer
format: int64
description: Number.
AverageResponseTime:
type: object
description: Event monitor stats top.
required:
- coord_act_lifetime_avg_ms
properties:
coord_act_lifetime_avg_ms:
type: integer
format: int64
description: Coord act average lifetime.
ResponseTime:
type: object
description: Event monitor stats top.
required:
- timestamp
- interval
- coord_act_lifetime_avg_ms
properties:
timestamp:
type: integer
format: int64
description: Timestamp of this data been collected.
interval:
type: integer
format: int64
description: Interval.
coord_act_lifetime_avg_ms:
type: integer
format: int64
description: Coord act average lifetime.
securitySchemes:
authToken:
type: apiKey
in: header
name: Authorization
description: Authorize using **Bearer [access_token]**. The access token can be obtained by authenticating with the **/auth/tokens** endpoint or [use the API key to generate an IAM Bearer Token](https://cloud.ibm.com/docs/account?topic=account-iamtoken_from_apikey).
deploymentId:
type: apiKey
in: header
name: X-Deployment-Id
description: The deployment id of the service, which can be obtained after provision. When providing the deployment id in the header, use URL encoding. For example, ":" should be escaped as "%3A", and "/" should be escaped as "%2F".
x-refined-from:
- ibm-db2-db2-on-cloud-v4-openapi.json
- ibm-db2-openapi.yml