Dapatkan metrik peristiwa spesifik akun di Pixel dan level peristiwa, asalkan admin memiliki akses untuk mengelola akun.
POST https://{capig_domain}/capig/graphql/ _________________________________________________________________________________________________________________ query HomeViewQuery($tenantId: ID!, $pixelIds: [String!], $timeWindow: Int) { tenantQueries(tenantId: $tenantId) { eventMetrics(pixelIds: $pixelIds, timeWindowMin: $timeWindow) { activity { name receivedCount publishedCount lastUpdated } incoming { eventNamesCount eventsCount } outgoing { eventNamesCount eventsCount publishSuccessRate } } } } _________________________________________________________________________________________________________ tenantId: ID! _______________________________________________________________________________________________________ pixelIds: [String!] _______________________________________________________________________________________________________ timeWindow: Int
Kolom | Deskripsi |
---|---|
| Wajib Pengidentifikasi unik akun |
| Opsional Daftar ID Pixel yang memerlukan pengambilan metrik peristiwa |
| Opsional Jendela waktu dalam hitungan menit (nilai default adalah 60 menit) |
EventMetricsSnapshot
Kolom | Deskripsi |
---|---|
| Pengidentifikasi untuk EventMetricsSnapshot -- selalu EventTrafficSummary:incoming |
| Data ringkasan peristiwa masuk |
| Data peristiwa keluar |
| Daftar aktivitas peristiwa |
| Daftar aktivitas domain |
Kode | Deskripsi |
---|---|
401 | Tidak diotorisasi untuk melihat metrik peristiwa |
500 | Kesalahan server internal |
Kueri
query HomeViewQuery($tenantId: ID!, $pixelIds: [String!], $timeWindow: Int) { tenantQueries(tenantId: $tenantId) { eventMetrics(pixelIds: $pixelIds, timeWindowMin: $timeWindow) { activity { name receivedCount publishedCount lastUpdated } incoming { eventNamesCount eventsCount } outgoing { eventNamesCount eventsCount publishSuccessRate } } } }
Variabel
{ "tenantId": "IaoreXfj", "pixelIds": ["18904456377094531"] }
{ "data": { "tenantQueries": { "eventMetrics": { "activity": [ { "name": "Purchase_PN_Mar22_Events", "receivedCount": 4, "publishedCount": 0, "lastUpdated": "1678753252000" } ], "incoming": { "eventNamesCount": 1, "eventsCount": 4 }, "outgoing": { "eventNamesCount": 0, "eventsCount": 0, "publishSuccessRate": 0.0 } } } } }