Item Classification Metrics API
This topic provides information on the following:
Overview
The Item Classification Metrics API generates reports that provide summary metrics for classified items in Arctera Surveillance. The report aggregates classification data based on the specified report parameters and filters, enabling you to analyze classification trends, monitor policy effectiveness, and generate compliance reports. The API supports both synchronous and asynchronous execution methods.
Submit Report Endpoint (asynchronous)
This API submits the report generation request which executes asynchronously. The result of this API contains the identifier for the report, status, and location for retrieving the report data. The report identifier and locations in the result can be used to track the report generation operation.
To use the ItemClassificationMetricsAsync API, follow the steps below:
-
Call the ItemClassificationMetricsAsync API to submit a report generation request.This asynchronous API supports GET and POST query methods. Use any of the following as needed:
-
GET https://<Reporting endpoint base URL>/OData/ItemClassificationMetricsAsync?ReportName=<Name of the report>&StartDate=<YYYY-MM-DD>&EndDate=<YYYY-MM-DD> -
POST https://<Reporting endpoint base URL>/OData/ItemClassificationMetricsAsync
Sample Input-
GET https://<Reporting endpoint Base URL>/odata/ ItemClassificationMetricsAsync?ReportName=<Name of the report>&StartDate= <YYYY-MM-DD>&EndDate=<YYYY-MM-DD>&Departments=[<DeptID1>,<DeptID2>,...] &Tags=[<tagId1>,<tagId2>...] -
POST https://<Reporting endpoint base URL>/OData/ItemClassificationMetricsAsync
Parameter/FiltersThe following parameters/filters can be used with the ItemClassificationMetricsAsync API when invoked using the GET and POST methods. The system uses the AND operator between the filters to return the result based on the specified filters.Parameter Required Description ReportName Mandatory Specify the name of the report you want to generate. Limitations - The report name can be up to a maximum of 256 characters long. - Special characters are not allowed; only alphanumeric values are permitted. StartDate Mandatory StartDate refers to the date items are captured or ingested in Arctera Surveillance and recorded as their CaptureDate. Specify the start date to return the count of items with a CaptureDate on or after this date. Data Type Date in the YYYY-MM-DD format that is StartDate. Limitations EndDate Mandatory Specify the end date to return the count of items with a CaptureDate on or before this date. Data Type Date in the YYYY-MM-DD format that is StartDate. Limitations Departments Optional Specifies the departments to which the captured item belongs and returns item counts for items within that department. Data Type JSON array of integers 'id'(identifier fields) that is Department IDs. Limitation As an input, this API can pass maximum of 1000 Departments IDs. - To include results for all departments of a specified customer in a report, do not specify any department IDs in a query. - To include results for specific departments of a specified customer in a report, specify department IDs in the query. Note: To get the Department IDs, See Departments API. Refer to the departmentId field only. Tags Optional Specifies the classification tags of the captured items and returns item counts for those tags. Data Type JSON array of integers 'id'(identifier fields) that is Tag IDs. Limitation As an input, this API can pass maximum of 1000 Tag IDs. - To include results for all the classification tags of a specified customer in a report, do not specify any classification tag ID in a query. - To include results for specific classification tag IDs of a specified customer in a report, specify classification tag IDs in the query. Note: To get the Tag IDs, See Classification Tags API. Refer to the tagID field only. Scenario 1: New request to submit a report.Sample input:
Sample response:
Name Description reportId Displays report ID. It is generated upon successful execution of API. reportName Displays report name. It is generated upon successful execution of API. reportType Displays the report type as Item Classification Metrics. reportDate Displays the date of report generation after successful execution of API. reportStatus Displays report status. For more information on statuses, see Report Status API . info Displays a message if the report request has queued successfully or not. newReportInstanceQueued Specifies whether a new report generation request has been submitted or not. The Rate Limiting feature restricts submission of multiple requests with identical input parameters if attempted within one minute. It returns the following values: True: The value is shown as True, if the new report request has been queued successfully. False: The value is shown as False, if the input parameters of the current request are identical to the parameters of the already submitted request within one minute, a new report will not be queued. As a result, the details of the existing report request are returned. reportStatusLocation Displays a URL with report ID. To view the status of this report, use the same URL. reportDataLocation Displays a URL for the location of report data. To access the report data, use the same URL. Scenario 2: The same request has been submitted again within one minute.Sample response:
-
-
Call the ReportStatus API to get the status of the ItemClassificationMetricsAsync API report. See Report Status API.
-
Once the report is ready, call the ItemClassificationMetrics synchronous API to retrieve the report data from the asynchronous API.
View Report Endpoint (synchronous)
This report provides the count of messages captured in Arctera Surveillance for all or specified departments and tags for a date, categorized by Message Types (e.g. Exchange, TeamsChat, etc) and Capture types (e.g. Search, Random Sampling, etc). Furthermore, the report shows the count of marked messages (Pending, Questioned, Reviewed Irrelevant, Reviewed Relevant). The counts are calculated for the specified date range and using the specified filters.
This report helps tenants/customers to adjust classification tags.
Endpoint URL
GET https://<Reporting endpoint base URL>/odata/ItemClassificationMetrics
Sample requests
-
GET https://<Reporting endpoint Base URL>/odata/ItemClassificationMetrics?reportid=<ID of the ItemClassificationMetricsAsync API report> -
GET https://<Reporting endpoint Base URL>/odata/ItemClassificationMetrics?reportid=a337e782-aa81-40fd-a65c-589b1bb6da56
Parameter/Filters
The following filters can be used with the ItemClassificationMetrics API when invoked using the GET method only. The system uses the AND operator between the filters to return the result based on the specified filters.
| Parameter | Required | Description |
|---|---|---|
| ReportID | Mandatory | Specify the ID of report you want to view. |
Sample Scenario
GET https://<Reporting endpoint base URL>/odata/ItemClassificationMetrics?ReportId=a337e782-aa81-40fd-a65c-589b1bb6da56&$count=true
Sample response
Status code: 200 OK
Supported OData Filters
Responses
See Responses.