Method GetStatisticCounter
GetStatisticCounter(String, StatisticCounterFilterContract)
Get statistic counter
Declaration
List<StatisticCounterItemContract> GetStatisticCounter(string connectionId, StatisticCounterFilterContract statisticCounterFilter)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
StatisticCounterFilterContract | statisticCounterFilter | Optional: Filtered countername, counterinterval, to and from date of statistic counter (can be empty) |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<StatisticCounterItemContract> | List of statistic counter items |
Remarks
- You need "Access to Statistic data read" access right (01002092-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
Examples
POST http://YourServerName/InfoShare/Json/Common/GetStatisticCounter
Example for get statistic counter.{
"connectionId": "f2178c68-e6c5-46a8-8dc1-d26ac99f287a",
"statisticCounterFilter": {
"CounterName": "Logon",
"CounterInterval": "Hourly",
"FromDate": "2019-09-26T22:00:00",
"ToDate": "2019-09-27T21:59:00" }
}
Response:
{
"GetStatisticCounterResult": [{
"CounterDate": "2019-09-27T05:00:00",
"CounterInterval": "Hourly",
"CounterName": "Logon",
"DataScope": "",
"UserScope": "All",
"Value": 1 }, {
"CounterDate": "2019-09-27T06:00:00",
"CounterInterval": "Hourly",
"CounterName": "Logon",
"DataScope": "",
"UserScope": "All",
"Value": 2 }]
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |