Stats
Stat object
Name | Description |
_id ObjectId | The stat object identifier |
starting Date | The starting time for this stat time frame. |
ending Date | The ending time for this stat time frame. |
org ObjectId | The org that this stat lives in |
object String | The object name (stat) |
code Number | The number that determines what kind of event this stat instance is representing. Request: 0 File Storage: 1 Document Storage: 2 Logins: 3 Accounts: 4 Scripts: 5 Notifications: 6 |
count Number | How many times this stat event has occurred in the time frame. |
size Number | The size of the file or document stored. Used for code 2 stats. |
total Number | Similar to count but used for different stat codes. |
s_source String | Storage source name (e.g. account) |
s_object String | Storage object name (e.g. account) |
s_type String | Storage type name |
s_property ObjectId | Storage property name |
today Number | |
active Number | |
location Number | 1 if data stored to Medable 2 if stored to Amazon s3 |
method Number | GET: 0 POST: 1 PUT: 2 DELETE: 3 HEAD: 4 OPTIONS: 5 PATCH: 6 |
api String | The api endpoint that was called |
client ObjectId | The object id of the app that's issuing the request, if defined. (relevant only for request stats) |
ms Number | The total number of milliseconds it took to complete this task |
in Number | The total number of bytes in |
out Number | The total number of bytes out |
errs Number | The number of errors |
scriptId ObjectId | The script identifier |
scriptType String | Script type (like "route", "trigger", etc) |
callouts Number | Total number of HTTP callouts used in the script |
calloutsMs Number | Total milliseconds of HTTP callouts in the script |
ops Number | Number of operations used in the script |
notifType ObjectId | The notification object identifier. A notification might be a standard or custom one defined in the |
notifEndpoint ObjectId | The notification endpoint identifier. Each notification might have an email, sms, or push endpoint. |
List
GET
https://api.dev.medable.com/your_org_name/v2/stats
Path Parameters
Name | Type | Description |
---|---|---|
your_org_name | string |
Last updated