콘텐츠로 건너뛰기

통계

통계 엔드포인트는 앱과 조직에 대한 자세한 분석을 제공합니다. 다양한 기간에 걸쳐 MAU(월간 활성 사용자), 스토리지 사용량 및 대역폭 소비를 추적할 수 있습니다. 이 데이터는 앱 성장, 리소스 사용량 및 용량 계획을 모니터링하는 데 필수적입니다.

  • MAU(월간 활성 사용자): 지난 30일 동안 앱에 액세스한 고유 기기 수
  • 저장소: 저장된 모든 번들 및 리소스의 총 크기(바이트)
  • 대역폭: 번들 다운로드에 대한 총 데이터 전송량(바이트)
  1. 정기 모니터링: 정기적으로 통계를 확인하여 성장 및 사용 패턴을 추적합니다.
  2. 리소스 계획: 용량 계획을 위해 스토리지 및 대역폭 지표를 사용합니다.
  3. 사용자 참여: MAU를 추적하여 사용자 참여 추세를 이해합니다.
  4. 비용 관리: 리소스 사용량을 모니터링하여 비용 최적화

특정 앱에 대한 통계를 가져옵니다. 이 엔드포인트는 개별 앱 성능을 모니터링하는 데 유용합니다.

interface StatsQuery {
from: Date // Start date for the statistics (format: YYYY-MM-DD)
to: Date // End date for the statistics (format: YYYY-MM-DD)
}
Terminal window
curl -H "authorization: your-api-key" \
"https://api.capgo.app/statistics/app/com.demo.app/?from=2024-01-01&to=2024-02-01"
[
{
"date": "2024-01-01",
"mau": 1500,
"storage": 536870912, // 512MB in bytes
"bandwidth": 1073741824 // 1GB in bytes
},
{
"date": "2024-01-02",
"mau": 1550,
"storage": 537919488, // 513MB in bytes
"bandwidth": 1074790400 // 1.01GB in bytes
}
]

특정 조직에 대한 통계를 얻으십시오. 조직 수준 사용량을 모니터링하는 데 유용합니다.

interface StatsQuery {
from: Date // Start date for the statistics (format: YYYY-MM-DD)
to: Date // End date for the statistics (format: YYYY-MM-DD)
breakdown: boolean // default false, optional if true it return the breakdown by app
noAccumulate: boolean // default false, optional if true it will not accumulate data and just return day by day result
}
Terminal window
curl -H "authorization: your-api-key" \
"https://api.capgo.app/statistics/org/046a36ac-e03c-4590-9257-bd6c9dba9ee8/?from=2024-01-01&to=2024-02-01"
[
{
"date": "2024-01-01",
"mau": 10000,
"storage": 536870912, // 512MB in bytes
"bandwidth": 1073741824 // 1GB in bytes
},
{
"date": "2024-01-02",
"mau": 10200,
"storage": 537919488, // 513MB in bytes
"bandwidth": 1074790400 // 1.01GB in bytes
}
]

액세스 권한이 있는 모든 조직에 걸쳐 집계된 통계를 얻으세요. 전반적인 사용량 모니터링에 적합합니다.

interface StatsQuery {
from: Date // Start date for the statistics (format: YYYY-MM-DD)
to: Date // End date for the statistics (format: YYYY-MM-DD)
}
Terminal window
curl -H "authorization: your-api-key" \
"https://api.capgo.app/statistics/user/?from=2024-01-01&to=2024-02-01"
[
{
"date": "2024-01-01",
"mau": 25000,
"storage": 1073741824, // 1GB in bytes
"bandwidth": 2147483648 // 2GB in bytes
},
{
"date": "2024-01-02",
"mau": 25500,
"storage": 1074790400, // 1.01GB in bytes
"bandwidth": 2148532224 // 2.01GB in bytes
}
]

특정 앱에 대한 번들 사용 통계를 받아 특정 기간 동안 사용자 간의 번들(버전) 분포를 보여줍니다.

interface BundleUsageQuery {
from: Date // Start date for the statistics (format: YYYY-MM-DD)
to: Date // End date for the statistics (format: YYYY-MM-DD)
}
Terminal window
curl -H "authorization: your-api-key" \
"https://api.capgo.app/statistics/app/com.demo.app/bundle_usage?from=2024-01-01&to=2024-02-01"
{
"labels": ["2024-01-01", "2024-01-02", "2024-01-03"],
"datasets": [
{
"label": "1.0.0",
"data": [60.5, 58.2, 55.3]
},
{
"label": "1.0.1",
"data": [39.5, 41.8, 44.7]
}
]
}

일반적인 오류 시나리오 및 대응:

// Invalid body
{
"status": "Invalid body",
"error": "Invalid date format or missing parameters"
}
// Permission denied
{
"status": "You can't access this app",
"error": "Insufficient permissions to access statistics"
}
// Permission denied for organization
{
"status": "You can't access this organization",
"error": "Insufficient permissions to access organization statistics"
}
// No organizations found for user statistics
{
"status": "No organizations found",
"error": "No organizations found"
}
// Internal server error
{
"status": "Cannot get app statistics",
"error": "Internal server error message"
}
  1. 성장 추적: 시간 경과에 따른 MAU 성장 모니터링
  2. 리소스 최적화: 스토리지 및 대역폭 사용량을 추적하여 비용을 최적화합니다.
  3. 용량 계획: 추세를 사용하여 향후 리소스 요구 사항을 계획합니다.
  4. 사용 보고서: 이해관계자를 위한 정기적인 사용 보고서 생성
  5. 번들(버전) 분포 분석: 번들 사용 통계를 통해 사용자가 다양한 앱 번들(버전)에 어떻게 분포되어 있는지 이해합니다.
  1. 기간 비교: 월별 또는 연간 추세를 살펴보세요.
  2. 트랙 비율: 사용자당 대역폭 또는 앱당 저장 공간을 모니터링합니다.
  3. 알림 설정: 비정상적인 사용량 급증에 대한 알림 생성
  4. 정기 백업: 기록 분석을 위해 정기적으로 통계 내보내기
  5. 번들(버전) 채택: 번들 사용을 사용하여 새 번들(버전)의 채택률을 추적합니다.