getGlobalEntropyThresholds

A Graze API GET request that returns the global default entropy threshold and all manager-specific entropy thresholds that have been set.

Back to Graze API EndPoint Reference.

Request arguments

Endpoint getGlobalEntropyThresholds takes the following request argument:

Endpoint getGlobalEntropyThresholds takes no other arguments because this endpoint returns data on all entropy thresholds.

Response

Endpoint getGlobalEntropyThresholds returns the following response:

Successful requests return a JSON object containing the following:

Successful requests return an array of JSON objects containing the following:

Name

Type

Description

filter

JSON Object

Filter for a manager-specific entropy threshold; empty for the global default entropy threshold.

name

String

Name of the manager or default for the global default entropy threshold.

Examples

The following examples demonstrate typical use of endpoint getGlobalEntropyThresholds:

Request example

Example cURL request to return the global default entropy threshold and any manager-specific entropy thresholds:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getGlobalEntropyThreshold"

Response example

Example response returning the global default entropy threshold, and two manager entropy thresholds for "rough-river" and "lingering-mountain":

[
    {
        "filter": "{\"op\": 0, \"type\": \"LEAF\", \"value\": \"rough-river\", \"column\": \"manager\"}",
        "name": "rough-river",
        "type": "percentage_reduction",
        "value": 0.327
    },
    {
        "filter": "{\"op\": 0, \"type\": \"LEAF\", \"value\": \"lingering-mountain\", \"column\": \"manager\"}",
        "name": "lingering-mountain",
        "type": "entropy_value",
        "value": 0.5002021249999999
    },
    {
        "filter": "{}",
        "name": "default",
        "type": "percentage_reduction",
        "value": 0.19065887902499268
    }
]