|
|
|
|
@ -16,14 +16,14 @@ const LoadingState = {
|
|
|
|
|
READY: 'ready'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fetchMainGraph(site, query, metric, interval) {
|
|
|
|
|
return api.get(url.apiPath(site, '/main-graph'), query, {metric, interval})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fetchTopReport(site, query, metric, interval) {
|
|
|
|
|
return api.get(url.apiPath(site, '/top-report'), query, {metric, interval})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fetchMainGraph(site, query, metric, interval) {
|
|
|
|
|
return api.get(url.apiPath(site, '/main-graph'), query, {metric, interval})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function VisitorGraph(props) {
|
|
|
|
|
const {site, query, lastLoadTimestamp} = props
|
|
|
|
|
const isRealtime = query.period === 'realtime'
|
|
|
|
|
|