Source: daemon/proto/hostcraft/v1/analytics.proto
AnalyticsService reports GoAccess traffic analytics per site. REST: /api/v1/analytics/site/{site_id}/... Every request takes the same period filter: period 24h (default) | 7d | 30d | custom with from/to (RFC 3339). Row messages carry the REST keys verbatim, which are Go field names.
| Method |
REST route |
Permission |
Streaming |
GetSiteSummary |
GET /api/v1/analytics/site/{site_id}/summary |
AnalyticsRead |
unary |
GetTopPages |
GET /api/v1/analytics/site/{site_id}/top-pages |
AnalyticsRead |
unary |
GetTopReferrers |
GET /api/v1/analytics/site/{site_id}/top-referrers |
AnalyticsRead |
unary |
GetGeoBreakdown |
GET /api/v1/analytics/site/{site_id}/geo |
AnalyticsRead |
unary |
GetBrowserBreakdown |
GET /api/v1/analytics/site/{site_id}/browsers |
AnalyticsRead |
unary |
GetStatusCodeBreakdown |
GET /api/v1/analytics/site/{site_id}/status-codes |
AnalyticsRead |
unary |
GetTrafficGraph |
GET /api/v1/analytics/site/{site_id}/traffic-graph |
AnalyticsRead |
unary |
/hostcraft.v1.AnalyticsService/GetSiteSummary
/hostcraft.v1.AnalyticsService/GetTopPages
/hostcraft.v1.AnalyticsService/GetTopReferrers
/hostcraft.v1.AnalyticsService/GetGeoBreakdown
/hostcraft.v1.AnalyticsService/GetBrowserBreakdown
/hostcraft.v1.AnalyticsService/GetStatusCodeBreakdown
/hostcraft.v1.AnalyticsService/GetTrafficGraph
| Field |
Type |
Number |
Description |
browsers |
repeated BrowserRow |
1 |
- |
| Field |
Type |
Number |
Description |
Family |
string |
1 |
- |
Hits |
int64 |
2 |
- |
Visitors |
int64 |
3 |
- |
| Field |
Type |
Number |
Description |
countries |
repeated GeoRow |
1 |
- |
| Field |
Type |
Number |
Description |
CountryCode |
string |
1 |
- |
CountryName |
string |
2 |
- |
Hits |
int64 |
3 |
- |
Visitors |
int64 |
4 |
- |
| Field |
Type |
Number |
Description |
site_id |
string |
1 |
- |
account_id |
string |
2 |
- |
period |
string |
3 |
- |
from |
string |
4 |
- |
to |
string |
5 |
- |
limit |
int64 |
6 |
top-pages / top-referrers only |
| Field |
Type |
Number |
Description |
account_id |
string |
1 |
- |
site_id |
string |
2 |
- |
unique_visitors |
int64 |
3 |
- |
page_views |
int64 |
4 |
- |
hits |
int64 |
5 |
- |
bandwidth_bytes |
int64 |
6 |
- |
not_found |
int64 |
7 |
- |
failed_requests |
int64 |
8 |
- |
generated_at |
google.protobuf.Timestamp |
9 |
- |
| Field |
Type |
Number |
Description |
status_codes |
repeated StatusCodeRow |
1 |
- |
| Field |
Type |
Number |
Description |
Code |
int32 |
1 |
- |
Hits |
int64 |
2 |
- |
| Field |
Type |
Number |
Description |
Path |
string |
1 |
- |
Hits |
int64 |
2 |
- |
Visitors |
int64 |
3 |
- |
BandwidthBytes |
int64 |
4 |
- |
AverageTimeMs |
double |
5 |
- |
| Field |
Type |
Number |
Description |
pages |
repeated TopPage |
1 |
- |
| Field |
Type |
Number |
Description |
Referrer |
string |
1 |
- |
Hits |
int64 |
2 |
- |
Visitors |
int64 |
3 |
- |
| Field |
Type |
Number |
Description |
referrers |
repeated TopReferrer |
1 |
- |
| Field |
Type |
Number |
Description |
account_id |
string |
1 |
- |
site_id |
string |
2 |
- |
points |
repeated TrafficPoint |
3 |
- |
| Field |
Type |
Number |
Description |
At |
google.protobuf.Timestamp |
1 |
- |
Visitors |
int64 |
2 |
- |
PageViews |
int64 |
3 |
- |
BandwidthBytes |
int64 |
4 |
- |