Get the 7-day and 30-day Simple Moving Average for object create count
get
/appInsightsObjectSma
This method gets the 7-day and 30-day Simple Moving Average for object create count by channel by day. The channel is the means of accessing the application, such as Web, Mobile, or Email.
Request
Query Parameters
-
duration: string
Specifies the historical time, in days, which the returned data represents.Default Value:
7D
Allowed Values:[ "7D", "30D", "60D", "90D" ]
-
managerGuid: string
Specifies the unique manager id, to filter the returned data. To be used with team scope.
-
objectList: string
Name of the objectAllowed Values:
[ "account", "contact", "lead", "opportunity", "activity", "servicerequest", "note", "customer" ]
-
regionCode: string
Specifies the unique region code, to filter the returned data. To be used with team scope.
-
roleIdList: string
Specifies the unique role id, to filter the returned data. To be used with team scope.
-
scope: string
Specifies the scope of the returned data. Team returns team data. Org returns organization data.Default Value:
all
Allowed Values:[ "all", "team" ]
-
userGuid: string
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
-
BasicAuth: http
Type:
http
Response
Supported Media Types
- application/json
200 Response
successful operation
401 Response
Authentication Required
403 Response
Access Forbidden
Examples
The following example shows how to get the 7-day and 30-day sma for object create 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/appInsightsObjectSma
Example of Response Body
The following shows an example of the response body in JSON format.
{ "items": [ { "statisticDate": "10/7/21", "smaName": "activity", "sma7": 0, "sma30": 0, "id": 21 }, { "statisticDate": "10/8/21", "smaName": "activity", "sma7": 0, "sma30": 0, "id": 23 }, { "statisticDate": "10/9/21", "smaName": "activity", "sma7": 0, "sma30": 0, "id": 25 }, { "statisticDate": "10/10/21", "smaName": "activity", "sma7": 0, "sma30": 0, "id": 27 }, { "statisticDate": "10/11/21", "smaName": "activity", "sma7": 0, "sma30": 0, "id": 29 }, { "statisticDate": "10/12/21", "smaName": "activity", "sma7": 0, "sma30": 0, "id": 31 }, { "statisticDate": "10/13/21", "smaName": "activity", "sma7": 0, "sma30": 0, "id": 33 }, { "statisticDate": "10/7/21", "smaName": "customer", "sma7": 0, "sma30": 0, "id": 35 }, { "statisticDate": "10/8/21", "smaName": "customer", "sma7": 0, "sma30": 0, "id": 37 }, { "statisticDate": "10/9/21", "smaName": "customer", "sma7": 0, "sma30": 0, "id": 39 }, { "statisticDate": "10/10/21", "smaName": "customer", "sma7": 0, "sma30": 0, "id": 41 }, { "statisticDate": "10/11/21", "smaName": "customer", "sma7": 0, "sma30": 0, "id": 43 }, { "statisticDate": "10/12/21", "smaName": "customer", "sma7": 0, "sma30": 0, "id": 45 }, { "statisticDate": "10/13/21", "smaName": "customer", "sma7": 0, "sma30": 0, "id": 47 }, { "statisticDate": "10/7/21", "smaName": "lead", "sma7": 0, "sma30": 0, "id": 49 }, { "statisticDate": "10/8/21", "smaName": "lead", "sma7": 0, "sma30": 0, "id": 51 }, { "statisticDate": "10/9/21", "smaName": "lead", "sma7": 0, "sma30": 0, "id": 53 }, { "statisticDate": "10/10/21", "smaName": "lead", "sma7": 0, "sma30": 0, "id": 55 }, { "statisticDate": "10/11/21", "smaName": "lead", "sma7": 0, "sma30": 0, "id": 57 }, { "statisticDate": "10/12/21", "smaName": "lead", "sma7": 0, "sma30": 0, "id": 59 }, { "statisticDate": "10/13/21", "smaName": "lead", "sma7": 0, "sma30": 0, "id": 61 }, { "statisticDate": "10/7/21", "smaName": "opportunity", "sma7": 0, "sma30": 0, "id": 63 }, { "statisticDate": "10/8/21", "smaName": "opportunity", "sma7": 0, "sma30": 0, "id": 65 }, { "statisticDate": "10/9/21", "smaName": "opportunity", "sma7": 0, "sma30": 0, "id": 67 }, { "statisticDate": "10/10/21", "smaName": "opportunity", "sma7": 0, "sma30": 0, "id": 69 }, { "statisticDate": "10/11/21", "smaName": "opportunity", "sma7": 0, "sma30": 0, "id": 71 }, { "statisticDate": "10/12/21", "smaName": "opportunity", "sma7": 0, "sma30": 0, "id": 73 }, { "statisticDate": "10/13/21", "smaName": "opportunity", "sma7": 0, "sma30": 0, "id": 75 }, { "statisticDate": "10/7/21", "smaName": "account", "sma7": 0, "sma30": 0, "id": 77 }, { "statisticDate": "10/8/21", "smaName": "account", "sma7": 0, "sma30": 0, "id": 79 }, { "statisticDate": "10/9/21", "smaName": "account", "sma7": 0, "sma30": 0, "id": 81 }, { "statisticDate": "10/10/21", "smaName": "account", "sma7": 0, "sma30": 0, "id": 83 }, { "statisticDate": "10/11/21", "smaName": "account", "sma7": 0, "sma30": 0, "id": 85 }, { "statisticDate": "10/12/21", "smaName": "account", "sma7": 0, "sma30": 0, "id": 87 }, { "statisticDate": "10/13/21", "smaName": "account", "sma7": 0, "sma30": 0, "id": 89 }, { "statisticDate": "10/7/21", "smaName": "contact", "sma7": 0, "sma30": 0, "id": 91 }, { "statisticDate": "10/8/21", "smaName": "contact", "sma7": 0, "sma30": 0, "id": 93 }, { "statisticDate": "10/9/21", "smaName": "contact", "sma7": 0, "sma30": 0, "id": 95 }, { "statisticDate": "10/10/21", "smaName": "contact", "sma7": 0, "sma30": 0, "id": 97 }, { "statisticDate": "10/11/21", "smaName": "contact", "sma7": 0, "sma30": 0, "id": 99 }, { "statisticDate": "10/12/21", "smaName": "contact", "sma7": 0, "sma30": 0, "id": 101 }, { "statisticDate": "10/13/21", "smaName": "contact", "sma7": 0, "sma30": 0, "id": 103 }, { "statisticDate": "10/7/21", "smaName": "servicerequest", "sma7": 0, "sma30": 0, "id": 105 }, { "statisticDate": "10/8/21", "smaName": "servicerequest", "sma7": 0, "sma30": 0, "id": 107 }, { "statisticDate": "10/9/21", "smaName": "servicerequest", "sma7": 0, "sma30": 0, "id": 109 }, { "statisticDate": "10/10/21", "smaName": "servicerequest", "sma7": 0, "sma30": 0, "id": 111 }, { "statisticDate": "10/11/21", "smaName": "servicerequest", "sma7": 0, "sma30": 0, "id": 113 }, { "statisticDate": "10/12/21", "smaName": "servicerequest", "sma7": 0, "sma30": 0, "id": 115 }, { "statisticDate": "10/13/21", "smaName": "servicerequest", "sma7": 0, "sma30": 0, "id": 117 } ] }