Retrieve statistics
post
https://{your_site_interface}/opa-hub/api/12.2.35/statistics
This operation will retrieve statistics for the given definition.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Nested Schema : statisticPost
Type:
Show Source
object
-
deploymentSeries:
deploymentSeries
-
deploymentVersionSeries: array
deploymentVersionSeries
The list of deployment versions.
-
groupBy: string
Allowed Values:
[ "hour", "day", "month", "screenVisit", "screenName" ]
The granularity of the metric data to be retrieved. If not provided, a default grouping is provided as defined by the chosen metric. -
includedActionTypes: array
includedActionTypes
The action types to include in the returned metric data. If not provided, includes a default set of actions as defined by the chosen metric.
-
metric(required): string
Allowed Values:
[ "assessmentRateByDate", "deploymentAgentsByDate", "deploymentAssessmentsByDate", "deploymentInteractionByDate", "deploymentSessionsByDate", "interviewsByDuration", "interviewsByLength", "interviewsByScreenDuration", "interviewsByScreenState" ]
The metric for which to retrieve data. -
timePeriod: string
Default Value:
last24Hours
Allowed Values:[ "last24Hours", "last48Hours", "last72Hours", "last7Days", "last14Days", "last30Days", "last1Year", "last2Years" ]
The time period for which to retrieve metric data. If not provided, defaults to last24Hours.
Nested Schema : deploymentSeries
Match One Schema
Show Source
-
string
Allowed Values:
[ "all" ]
Where all deployments should be used. -
array
deploymentSeries-oneOf[1]
The list of deployment names.
Nested Schema : includedActionTypes
Type:
array
The action types to include in the returned metric data. If not provided, includes a default set of actions as defined by the chosen metric.
Show Source
-
Array of:
string
Allowed Values:
[ "nonAgentInterviews", "agentInterviews", "allAssessedCases", "batchAssessCases", "answerServiceAPICalls", "assessServiceAPICalls", "referencedDecisionServiceCases", "testServiceCases" ]
Nested Schema : items-oneOf[0]
Type:
Show Source
object
-
deploymentName(required): string
The deployment name of the deployment version for the series.
-
deploymentState(required): string
Allowed Values:
[ "active", "all" ]
The deployment state, one of "active" or "all".
Nested Schema : items-oneOf[1]
Type:
Show Source
object
-
deploymentName(required): string
The deployment name of the deployment version for the series.
-
deploymentVersion(required): integer
(int64)
The deployment version.
Security
-
Authorization: apiKey
Type:
apiKey
Description:Obtain a bearer token from https://{your_site_interface}/opa-hub/api/12.2.17/auth and use it in the Authorization header as: Bearer {token}.
-
oauth2_opa: oauth2
Type:
oauth2
Description:POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/12.2.17/auth and use the access token from the response in the Authorization header.
Response
Supported Media Types
- application/json
200 Response
The statistics were successfully retrieved.
Nested Schema : statistic
Type:
Show Source
object
-
categoryTitle: string
Read Only:
true
Category title for the series data. -
chartTitle: string
Read Only:
true
Chart title for the series data. -
data: array
data
Read Only:
true
List of statistics data. -
includedActionTypes: array
includedActionTypes
The action types to include in the returned metric data. If not provided, includes a default set of actions as defined by the chosen metric.
-
metricTitle: string
Read Only:
true
Metric title for the series data. -
valueTitle: string
Read Only:
true
Value title for the series data.
Nested Schema : includedActionTypes
Type:
array
The action types to include in the returned metric data. If not provided, includes a default set of actions as defined by the chosen metric.
Show Source
-
Array of:
string
Allowed Values:
[ "nonAgentInterviews", "agentInterviews", "allAssessedCases", "batchAssessCases", "answerServiceAPICalls", "assessServiceAPICalls", "referencedDecisionServiceCases", "testServiceCases" ]
Nested Schema : statisticDataItem
Type:
Show Source
object
-
category: string
The statistics data item category.
-
group: string
The statistics data item group.
-
series: string
The statistics data item series.
-
value(required): number
(double)
The statistics data item value.
Links
- GetDeploymentByName
-
Parameters:
- deployment-name:
$request.body#/deploymentSeries[0]
The deploymentName from the request can be used as the deployment-name parameter in /deployments/{deployment-name} - deployment-name:
- GetDeploymentVersionByNameAndVersion
-
Parameters:
- deployment-name:
$request.body#/deploymentVersionSeries[0]/deploymentName
- deployment-version-versionNo:
$request.body#/deploymentVersionSeries[0]/deploymentVersion
The deploymentName and versions parameters from the request can be used as the deployment-name and deployment-version-versionNo parameters in /deployments/{deployment-name}/versions/{deployment-version-versionNo} - deployment-name:
400 Response
The request could not be processed because it contains missing or invalid information.