Get the 7-day and 30-day Simple Moving Average for click count

get

/appInsightsClicksSma

This method gets the 7-day and 30-day Simple Moving Average for the total click count by day for all users.

Request

Query Parameters
  • Specifies the historical time, in days, which the returned data represents.
    Default Value: 7D
    Allowed Values: [ "7D", "30D", "60D", "90D" ]
  • Specifies the unique manager id, to filter the returned data. To be used with team scope.
  • Specifies the unique region code, to filter the returned data. To be used with team scope.
  • Specifies the unique role id, to filter the returned data. To be used with team scope.
  • Specifies the scope of the returned data. Team returns team data. Org returns organization data.
    Default Value: all
    Allowed Values: [ "all", "team" ]
  • Specifies the unique user id, to filter the returned data. To be used with team scope.

There's no request body for this operation.

Security
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : appinsightssma
Type: object
Show Source

401 Response

Authentication Required

403 Response

Access Forbidden
Back to Top

Examples

The following example shows how to get the 7-day and 30-day sma for click count by submitting a get request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X https://servername.fa.us2.oraclecloud.com/crmRestApi/clickhistory/resources/appInsightsClicksSma

Example of Response Body

The following shows an example of the response body in JSON format.

{
    "items": [
        {
            "statisticDate": "10/7/21",
            "smaName": "Clicks",
            "sma7": 27,
            "sma30": 19,
            "id": 0
        },
        {
            "statisticDate": "10/8/21",
            "smaName": "Clicks",
            "sma7": 11,
            "sma30": 19,
            "id": 3
        },
        {
            "statisticDate": "10/9/21",
            "smaName": "Clicks",
            "sma7": 11,
            "sma30": 19,
            "id": 6
        },
        {
            "statisticDate": "10/10/21",
            "smaName": "Clicks",
            "sma7": 11,
            "sma30": 19,
            "id": 9
        },
        {
            "statisticDate": "10/11/21",
            "smaName": "Clicks",
            "sma7": 12,
            "sma30": 19,
            "id": 12
        },
        {
            "statisticDate": "10/12/21",
            "smaName": "Clicks",
            "sma7": 5,
            "sma30": 19,
            "id": 15
        },
        {
            "statisticDate": "10/13/21",
            "smaName": "Clicks",
            "sma7": 5,
            "sma30": 18,
            "id": 18
        }
    ]
}
Back to Top