<portalStatistics_uri>/resource/totalaccumulatedcountchanges[.<format>]
The totalAccumulatedResourceCountChanges resource is the information resource whose total number of resources changes over time. By sending a GET request, you can get information about the total number of resources over time for a period of time.
Supported Methods:
Supported output formats: rjson, json, html, xml.
Implement the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.
http://supermapiportal:8090/iportal/manager/portalstatistics/resource/totalaccumulatedcountchanges.rjson
Get information about the total number of resources over time for a period of time.
If the parameter is not set, it will return all the total number of resources over time of iPortal; if set, it will return the information in a period. The request parameters should be contained in URI.
| Name | Type | Description |
| startTime | Long | The start time of the total number of resources records. If it is not positive number, it will be queried from the earliest record. It is the value in millisecond of the time since 00:00:00 GMT January 1, 1970. |
| endTime | Long | The end time of the total number of resources records. If it is not positive number or not set, it will take the current server time as the end time. It is the value in millisecond of the time since 00:00:00 GMT January 1, 1970. |
| intervalType | IntervalType | Statistical time interval, if this parameter is not set, the system will calculate a more reasonable time interval for statistics. |
A GET request is executed for the totalAccumulatedResourceCountChanges resource, which returns the total change of all resource number. Where the total resource number information for a single time interval consists of the following fields:
| Field | Type | Description |
| accumulatedCount | Integer | Accumulated resource count. |
| time | Long | When the time parameter is not set, this parameter starts with the first time iPortal is started, and the current time of the server is the end time in milliseconds. After setting the time parameter, use the set start time and end time. |
The returned rjson format representation after implementing the GET request on the totalAccumulatedResourceCountChanges resource http://localhost:8090/iportal/manager/portalstatistics/resource/totalaccumulatedcountchanges.rjson is as follows:
[
{
"accumulatedCount": 1,
"time": 1492074997088
},
{
"accumulatedCount": 3,
"time": 1492078597088
},
{
"accumulatedCount": 3,
"time": 1492082197088
},
{
"accumulatedCount": 3,
"time": 1492085797088
},
{
"accumulatedCount": 3,
"time": 1492089397088
},
{
"accumulatedCount": 3,
"time": 1492092997088
},
{
"accumulatedCount": 3,
"time": 1492096597088
},
{
"accumulatedCount": 3,
"time": 1492100197088
},
{
"accumulatedCount": 3,
"time": 1492103797088
},
{
"accumulatedCount": 3,
"time": 1492107397088
},
{
"accumulatedCount": 3,
"time": 1492110997088
},
{
"accumulatedCount": 3,
"time": 1492114597088
},
{
"accumulatedCount": 3,
"time": 1492118197088
},
{
"accumulatedCount": 3,
"time": 1492121797088
},
{
"accumulatedCount": 3,
"time": 1492125397088
},
{
"accumulatedCount": 3,
"time": 1492128997088
},
{
"accumulatedCount": 3,
"time": 1492132597088
},
{
"accumulatedCount": 3,
"time": 1492136197088
},
{
"accumulatedCount": 3,
"time": 1492139797088
},
{
"accumulatedCount": 3,
"time": 1492139957451
}
]
If you want to get the changes information of the number of resources for a period of time and the interval is one day, you need to set startTime = 2492063745780 & endTime = 2492063745789 & intervalType = DAY. The returned rjson format representation after implementing the GET request on the totalAccumulatedResourceCountChanges resource http://localhost:8090/iportal/manager/portalstatistics/resource/totalaccumulatedcountchanges.rjson?startTime=2492063745780&endTime=2492063745789&intervalType=DAY is as follows:
[
{
"accumulatedCount": 3,
"time": 2492063745780
},
{
"accumulatedCount": 3,
"time": 2492063745789
}
]
Returns the same HTTP response header as the GET request, but does not have the response entity. It can get the metadata information in the response header without transferring the whole response content. Metadata information includes media type, character encoding, compression encoding, entity content length, and so on.
The HEAD request can be used to determine whether the totalAccumulatedResourceCountChanges resource exists or whether the client has authority to access the totalAccumulatedResourceCountChanges resource. It can quickly determine whether thetotalAccumulatedResourceCountChanges resource supports the representation in <format> format by performing HEAD request on URI with <format>.