GET /ops/getdistinctvalues
Description
List all (or the first 1000) unique values for a specific field in all opevents of the specified type containing that field. Use showtype to get a description of a specific opevent type.
The response is a JSON array of values, each of which will be a unique value contained in at least one opevent in the traffic monitor datastore having that value in the requested field
Resource URL
http://localhost:8090/ops/getdistinctvalues
Parameters
format | mandatory | The format of the response data. json is currently the only supported format |
field | mandatory | The database field to return in the resultset. |
protocol | optional (default="http") | The type of events to query. field must be a field in this type |
Response Codes
Response Code | Description |
---|---|
200 | Success |
Example Transaction
Request
GET /api/router/service/instance-1/ops/getdistinctvalues?field=uri&format=json HTTP/1.0
Connection: close
Host: localhost
Authorization: Basic YWRtaW46Y2hhbmdlbWU=
Response
HTTP/1.1 200 OK
Server: Gateway
Connection: close
X-CorrelationID: Id-9f57bd53a2000000000000006ec8966b 0
Date: Wed, 09 Jul 2014 14:54:23 GMT
Date: Wed, 09 Jul 2014 14:54:23 GMT
Expires: Wed, 09 Jul 2014 14:54:23 GMT
Server: Gateway
Content-Type: application/json
{
"processId": "",
"data": [
"/favicon.ico",
"/healthcheck",
"/hello"
]
}