Search…
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 Notifications tab of the admin interface.
notifEndpoint ObjectId
The notification endpoint identifier. Each notification might have an email, sms, or push endpoint.
1
{
2
"_id": "575f58bfa588cb8881e49833",
3
"api": "",
4
"client": null,
5
"code": 0,
6
"count": 1,
7
"ending": "2016-06-14T01:59:59.999Z",
8
"in": 0,
9
"location": 1,
10
"method": 0,
11
"ms": 22,
12
"object": "stat",
13
"org": "575f58271d0c03a53ccc3840",
14
"out": 2871,
15
"starting": "2016-06-14T01:00:00.000Z"
16
}
Copied!
get
https://api.dev.medable.com/
your_org_name/v2/stats
List
1
$.ajax({
2
url: "https://api.dev.medable.com/example/v2/stats",
3
method: "GET",
4
dataType : "json",
5
xhrFields: {
6
withCredentials: true
7
},
8
headers: {
9
"Medable-Client-Key": "GsAqlhnIMzrDeD8V2MBQWq"
10
}
11
}).done(function(data) {
12
// ...
13
});
Copied!
Last modified 1mo ago
Copy link