Provides daily cumulative per-source MTU counts for a usage period.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap(api.monthlyTrackedUsers.getDailyPerSourceMTUUsage('2021-02-01')) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "dailyPerSourceMTUUsage": [
- {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "3",
 - "anonymousIdentified": "7",
 - "identified": "33",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "7",
 - "anonymousIdentified": "13",
 - "identified": "67",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "10",
 - "anonymousIdentified": "20",
 - "identified": "100",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "13",
 - "anonymousIdentified": "27",
 - "identified": "133",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "17",
 - "anonymousIdentified": "33",
 - "identified": "167",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "20",
 - "anonymousIdentified": "40",
 - "identified": "200",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "23",
 - "anonymousIdentified": "47",
 - "identified": "233",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "27",
 - "anonymousIdentified": "53",
 - "identified": "267",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "30",
 - "anonymousIdentified": "60",
 - "identified": "300",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "sourceId": "rh5BDZp6QDHvXFCkibm1pR",
 - "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "33",
 - "anonymousIdentified": "67",
 - "identified": "333",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
} 
], - "pagination": {
- "current": "MA==",
 - "next": "MTA=",
 - "totalEntries": 28
 
} 
} 
}Provides daily cumulative MTU counts for a usage period.
OK
Resource not found
Validation failure
Too many requests
import { configureApis, unwrap } from '@segment/public-api-sdk-typescript' const api = configureApis('/* Insert your Public API token here */') try { const result = await unwrap(api.monthlyTrackedUsers.getDailyWorkspaceMTUUsage('2021-02-01')) console.log(JSON.stringify(result)) } catch (e) { console.log('ERROR:', e) }
{- "data": {
- "dailyWorkspaceMTUUsage": [
- {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "3",
 - "anonymousIdentified": "7",
 - "identified": "33",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "7",
 - "anonymousIdentified": "13",
 - "identified": "67",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "10",
 - "anonymousIdentified": "20",
 - "identified": "100",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "13",
 - "anonymousIdentified": "27",
 - "identified": "133",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "17",
 - "anonymousIdentified": "33",
 - "identified": "167",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "20",
 - "anonymousIdentified": "40",
 - "identified": "200",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "23",
 - "anonymousIdentified": "47",
 - "identified": "233",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "27",
 - "anonymousIdentified": "53",
 - "identified": "267",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "30",
 - "anonymousIdentified": "60",
 - "identified": "300",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
}, - {
- "periodStart": 1612137600,
 - "periodEnd": 1614556800,
 - "anonymous": "33",
 - "anonymousIdentified": "67",
 - "identified": "333",
 - "neverIdentified": "0",
 - "timestamp": "2006-01-02T15:04:05.000Z"
 
} 
], - "pagination": {
- "current": "MA==",
 - "next": "MTA=",
 - "totalEntries": 28
 
} 
} 
}