Policy View History
Use the policy view history request to view the history of your policies, how many policies are in each policy category and how effective they are on a specific day.
Endpoint
Method: POST
URL: /analytics/policy/policy-view-history
Request Parameter
Parameter Name | Data Type | Description | Required/Optional |
|---|---|---|---|
| Date-Time | The last date that you want to show the policy history results for in the format | Required |
| Number | How many days prior to the | Required |
| String | The unit of time to show the policy history in, set to | Required |
| String | The local time zone for the user sending the request, to determine when each day in the policy history (and it's effectiveness) starts and ends. Valid values for this parameter are in the TZ identifier format, for example the following values are valid, for a list of TZ identifiers please click here.
| Required |
For an example request, see Sample Request.
Response and Error Code
Response Code | Condition |
|---|---|
200 | OK |
400 | Bad Request |
Response Parameter
Parameter Name | Data Type | Description |
|---|---|---|
| String | The ID of the tenant the policy history refers to. |
| Sting | The timezone used to determine when each day in the policy history starts and ends, this will match the |
| String | The unit of time that the policy history is shown in, this will match the |
| Array | The history of the policies in your system across the time frame set in the request. Your policy history is split by policy category, each policy category is split into the following parameters in this table, |
| String | The category of policy that the below
|
| Array | The statistics of your policy history specific to the
|
For an example response, see Sample Response.
Sample Request
{
"local_end_date":"2024-12-17",
"timezone":"Europe/London",
"time_unit":"TIME_UNIT_DAY",
"num_data_points":2
}Sample Response
{
"tenantId": "66dd8418-b1d1-4d47-9218-c0e29bf13170",
"timezone": "Europe/London",
"timeUnit": "TIME_UNIT_DAY",
"categoryHistory": [
{
"category": "POLICY_CATEGORY_ALL",
"stats": [
{
"localDate": "2024-12-17",
"totalPolicies": "2",
"effectivePolicies": "2"
},
{
"localDate": "2024-12-16",
"totalPolicies": "9",
"effectivePolicies": "1"
}
]
},
{
"category": "POLICY_CATEGORY_LOCKS",
"stats": [
{
"localDate": "2024-12-17",
"totalPolicies": "0",
"effectivePolicies": "0"
},
{
"localDate": "2024-12-16",
"totalPolicies": "0",
"effectivePolicies": "0"
}
]
},
{
"category": "POLICY_CATEGORY_EXPORT",
"stats": [
{
"localDate": "2024-12-17",
"totalPolicies": "0",
"effectivePolicies": "0"
},
{
"localDate": "2024-12-16",
"totalPolicies": "0",
"effectivePolicies": "0"
}
]
},
{
"category": "POLICY_CATEGORY_TRANSCRIPTION",
"stats": [
{
"localDate": "2024-12-17",
"totalPolicies": "0",
"effectivePolicies": "0"
},
{
"localDate": "2024-12-16",
"totalPolicies": "0",
"effectivePolicies": "0"
}
]
},
{
"category": "POLICY_CATEGORY_RECORDING",
"stats": [
{
"localDate": "2024-12-17",
"totalPolicies": "0",
"effectivePolicies": "0"
},
{
"localDate": "2024-12-16",
"totalPolicies": "0",
"effectivePolicies": "0"
}
]
},
{
"category": "POLICY_CATEGORY_STORAGE",
"stats": [
{
"localDate": "2024-12-17",
"totalPolicies": "2",
"effectivePolicies": "2"
},
{
"localDate": "2024-12-16",
"totalPolicies": "9",
"effectivePolicies": "1"
}
]
},
{
"category": "POLICY_CATEGORY_ACCESS_CONTROL",
"stats": [
{
"localDate": "2024-12-17",
"totalPolicies": "0",
"effectivePolicies": "0"
},
{
"localDate": "2024-12-16",
"totalPolicies": "0",
"effectivePolicies": "0"
}
]
}
]
}