Returns DB connection counts
get
/oid/metrics/api/v1/counts/connections/db
Request
Query Parameters
-
beginTime(optional): string
Beginning timestamp of the metric
-
state(optional): string
State of the database connection (valid values - active, any)
Response
Supported Media Types
- application/xml
- application/json
200 Response
Success
Nested Schema : DBConnCount
Type:
Show Source
object
-
count(optional):
integer(int64)
Example:
30
-
instance(optional):
string
OID server InstanceExample:
oid1
-
time(optional):
string
Timestamp of the metricExample:
20201110231239z
400 Response
Bad Request
500 Response
Internal Server Error
Examples
This example retrieves total number of database connections opened by Oracle Internet Directory servers. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
The following shows example of cURL:
curl -H "Content-Type: application/json" -X GET -u username:password
https://pseudo.com/oid/metrics/api/v1/counts/connections/db
curl -H "Content-Type: application/json" -X GET -u username:password
https://pseudo.com/oid/metrics/api/v1/counts/connections/db?state=active
curl -H "Content-Type: application/json" -X GET -u username:password
https://pseudo.com/oid/metrics/api/v1/counts/connections/db?beginTime=20210707092419z
Example of GET Response Body
The following example shows the contents of the response body in JSON format :
[
{"time":"20210707092419z","count":19,"instance":"/oid1/oid1/1"},
{"time":"20210707095419z","count":19,"instance":"/oid1/oid1/1"},
{"time":"20210707102419z","count":19,"instance":"/oid1/oid1/1"}
]