rehive.admin.metrics.get().then(function (res) { ... }, function (err) { ... });
{- "status": "string",
- "data": {
- "count": 123,
- "results": [
- {
- "id": "string",
- "name": "string",
- "slug": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "type": "account_count",
- "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "timezone": "string",
- "query": {
- "property1": null,
- "property2": null
}, - "method": "accumulate",
- "created": 0,
- "updated": 0,
- "user": {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "groups": [
- {
- "name": "string",
- "label": "string",
- "section": "system"
}
], - "temporary": true
}, - "section": "system",
- "archived": false
}
]
}
}
{- "name": "string",
- "slug": "string",
- "type": "account_count",
- "method": "accumulate",
- "currency": "string",
- "timezone": "string",
- "query": {
- "property1": null,
- "property2": null
}, - "metadata": {
- "property1": null,
- "property2": null
}, - "user": "string",
- "section": "admin"
}
{- "status": "string",
- "data": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "type": "account_count",
- "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "timezone": "string",
- "query": {
- "property1": null,
- "property2": null
}, - "method": "accumulate",
- "created": 0,
- "updated": 0,
- "user": {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "groups": [
- {
- "name": "string",
- "label": "string",
- "section": "system"
}
], - "temporary": true
}, - "section": "system",
- "archived": false
}
}
rehive.admin.metrics.get({"id": metricIdentifier}) .then(function (res) { ... }, function (err) { ... });
{- "status": "string",
- "data": {
- "id": "string",
- "name": "string",
- "slug": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "type": "account_count",
- "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "timezone": "string",
- "query": {
- "property1": null,
- "property2": null
}, - "method": "accumulate",
- "created": 0,
- "updated": 0,
- "user": {
- "id": "string",
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "groups": [
- {
- "name": "string",
- "label": "string",
- "section": "system"
}
], - "temporary": true
}, - "section": "system",
- "archived": false
}
}
rehive.admin.metrics.points.get(metricIdentifier) .then(function (res) { ... }, function (err) { ... });
{- "status": "string",
- "data": {
- "count": 123,
- "results": [
- {
- "id": 0,
- "value": 0,
- "date": 0
}
]
}
}