Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
firstline1
linenumberstrue
curl --data "limit=100" --data "offset=0" --data "sd=2015-01-01" --data "ed=2015-01-02" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denials/3/json"


Keep in mind that you can also put parameters directly in the URL, f.e for an equivalent of the above:

Code Block
languagejs
firstline1
linenumberstrue
curl -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denials/3/json?limit=100&offset=0&sd=2014-12-01&ed=2015-01-02"

Obtaining information about grouped checkout denials 

...

FieldTypeDescription

ldt

string

Indicates period of time for which usage information is generated, i.e. date and time for hourly usage and dates for the remaining granularity options.

ldtc

string

License Denial Total Count

msg

string

Error message returned on failure.

success

boolean

Indicates if the API request was successfully processed.

msg

string

Error message returned on failure.

codeintegerError code if success == false
totalCountintegerCount of all matching results.


Example 1

For example, say you would like to view denials for feature 3 grouped by month. To generate such data, enter a command that is similar to the following:

Code Block
languagejs
firstline1
linenumberstrue
curl --data "sd=2015-01-01" --data "ed=2015-01-02" --data "grat=3" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denials/grouped/3/json"

Example 2

Let's assume you want to see all denials for feature 3, grouped by quarter, ordered by total denial count from highest to lowest. To do this, enter a command similar to the following:

Code Block
languagejs
firstline1
linenumberstrue
curl --data "orderBy=ldtc" --data "orderDirection=DESC" --data "sd=2014-01-01" --data "ed=2015-01-01" --data "grat=2" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denials/grouped/3/json"

Example 3

Let's assume you're interested in viewing the first 100 denials for feature 3 over a specific period of time, grouped by hour. To do this, enter a command that is similar to the following:

Code Block
languagejs
firstline1
linenumberstrue
curl --data "limit=100" --data "offset=0" --data "sd=2013-01-01" --data "ed=2015-01-02" --data "grat=6" -H "X-Auth-token: token" "http://yourdomain/api/v1/report/denials/grouped/3/json"


Similarly as in the case of checkout denials, you can also put parameters directly in the URL, f.e for an equivalent of the above:

Code Block
languagejs
firstline1
linenumberstrue
curl -H "X-Auth-token: token" "http://localhost:9000/api/v1/report/denials/grouped/3/json?limit=5&offset=2&sd=2013-01-01&ed=2015-01-02&grat=6"