Create an analytics report result
post
/services/rest/connect/v1.4/analyticsReportResults
Request
Root Schema : schema
Type:
Show Source
object
-
filters:
object analyticsReports-filters
The filters used for running an analytics report.
-
id(required):
integer
Minimum Value:
1
Maximum Value:9223372036854776000
The unique identifier of the analytics report definition. -
limit:
integer
Minimum Value:
1
Maximum Value:10000
The maximum number of rows to be retrieved in the report. -
lookupName:
string
Maximum Length:
255
The name used to look up the analytics report definition. -
offset:
integer
Minimum Value:
0
The starting row position of the resource collection. For example, if you set an offset of 8, the report will skip the first eight rows, and include the rows from row 9 in the report.
Nested Schema : analyticsReports-filters
Type:
object
The filters used for running an analytics report.
Show Source
-
attributes:
object analyticsReports-filters-attributes
The attributes associated with an analytics report filter.
-
dataType:
object namedIDs-analyticsReports-filters-dataType
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
-
name:
string
Maximum Length:
80
Pattern:^[^ ]*$
The name of the filter. -
operator:
object namedIDs-analyticsReports-filters-operator
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
-
prompt:
string
Maximum Length:
80
Pattern:^[^ ]*$
The prompt for the filter. -
values:
array values
The string representation of the values for the operator to apply. The right-hand side (RHS) of the filter value.
Nested Schema : analyticsReports-filters-attributes
Type:
object
The attributes associated with an analytics report filter.
Show Source
-
editable:
boolean
Indicates whether the filter is editable. This attribute does not have a default value.
-
required:
boolean
Indicates whether the filter is mandatory. This attribute does not have a default value.
Nested Schema : namedIDs-analyticsReports-filters-dataType
Type:
object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id:
integer
Minimum Value:
0
ID value -
lookupName:
string
Maximum Length:
255
Name used to lookup this object
Nested Schema : namedIDs-analyticsReports-filters-operator
Type:
object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
-
id:
integer
Minimum Value:
0
ID value -
lookupName:
string
Maximum Length:
255
Name used to lookup this object
Nested Schema : values
Type:
array
Maximum Length:
1048576
The string representation of the values for the operator to apply. The right-hand side (RHS) of the filter value.
Show Source
Response
Default Response
Examples
Use POST with the following syntax to run a report:
https://your_site_interface/services/rest/connect/version/analyticsReportResults
Request URI example
https://mysite.example.com/services/rest/connect/v1.4/analyticsReportResults
Request body example
Include the report ID or LookupName in the request body. This example uses the LookupName.
{
"lookupName": "Last Updated by Status"
}
Response body example
{
"count": 1,
"name": "Last Updated by Status",
columnNames": [
"Status",
"Incidents",
"Average Time Since Last Response"
],
rows": [
[
"Unresolved",
"46",
null
]
],
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReportResults"
},
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/analyticsReportResults"
},
{
"rel": "describedby",
"href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/analyticsReportResults",
"mediaType": "application/schema+json"
}
]
}