statistic
설치 단계와 이 플러그인에 대한 전체 마크다운 가이드가 포함된 설정 지시를 복사하세요.
설치, 동기화 및 소스 마크다운 가이드를 포함합니다.
statistic API는 앱 및 조직에 대한 세부적인 분석 정보를 제공합니다. 앱 및 조직의 성장 추적, 리소스 사용량 및 용량 계획을 위해 월간 활성 사용자(MAU), 저장소 사용량 및 대역폭 소비량을 다양한 시간 범위에서 추적할 수 있습니다.
Metrics 이해- Metrics 이해월간 활성 사용자(MAU)
- 최근 30일 동안 앱에 접근한 유니크한 기기 수저장소
- 모든 번들 및 리소스의 총 크기(바이트)대역폭
다운로드한 번들의 총 데이터 전송량(바이트)
Section titled “Best Practices”- 정상적인 운영을 위한 권장 사항: 통계를 정기적으로 확인하여 성장 추세와 사용 패턴을 추적하십시오
- Resource Planning: 저장소 및 대역폭 메트릭을 사용하여 용량 계획을 수행하십시오
- User Engagement: MAU를 사용하여 사용자 참여 동향을 이해하십시오
- Cost Management: 리소스 사용을 모니터링하여 비용 최적화를 수행하십시오
Endpoints
Section titled “Endpoints”GET /statistics/app/:app_id/
GET /statistics/app/:app_id/”의 섹션 제목특정 앱의 통계를 가져옵니다. 이 엔드포인트는 개별 앱의 성능을 모니터링하는 데 유용합니다.
Query Parameters
Query Parameters의 섹션 제목interface StatsQuery { from: Date // Start date for the statistics (format: YYYY-MM-DD) to: Date // End date for the statistics (format: YYYY-MM-DD)}예제 요청
터미널 창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 }]GET /statistics/org/:org_id/
GET /statistics/org/:org_id/특정 조직의 통계를 가져옵니다. 조직 수준의 사용을 모니터링하는 데 유용합니다.
Query Parameters
Query Parametersinterface 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}Example Request
Example Requestcurl -H "authorization: your-api-key" \ "https://api.capgo.app/statistics/org/046a36ac-e03c-4590-9257-bd6c9dba9ee8/?from=2024-01-01&to=2024-02-01"Example Response
Example Response[ { "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 }]GET /statistics/user/
GET /statistics/user/ 섹션모든 조직에 대한 접근 권한이 있는 경우에 모든 조직에 걸쳐 집계된 통계를 가져옵니다. 전체적인 사용량 모니터링을 위해 완벽합니다.
Query Parameters
Query Parameters 섹션interface StatsQuery { from: Date // Start date for the statistics (format: YYYY-MM-DD) to: Date // End date for the statistics (format: YYYY-MM-DD)}예제 요청
예제 요청 섹션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 }]GET /statistics/app/:app_id/bundle_usage
GET /statistics/app/:app_id/bundle_usage 섹션특정 앱의 버전 배포 통계를 가져옵니다. 사용자 중 버전 배포 비율을 보여줍니다.
쿼리 매개변수
쿼리 매개변수 섹션interface BundleUsageQuery { from: Date // Start date for the statistics (format: YYYY-MM-DD) to: Date // End date for the statistics (format: YYYY-MM-DD)}예시 요청
터미널 창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"}일반적인 사용 사례
일반적인 사용 사례 섹션- 성장 추적: 시간에 따른 MAU 성장 모니터링
- 리소스 최적화: 저장 용량 및 대역폭 사용량 추적하여 비용 최적화
- Capacity Planning: 미래 리소스 요구를 계획하기 위한 트렌드 사용
- Usage Reports: 주기적인 사용 보고서를 이해하기 위한 이해 당사자
- Bundle (version) Distribution Analysis: 사용자들이 다양한 앱 버전에 걸쳐 어떻게 분산되어 있는지에 대한 통계를 이해하기 위한 버전 사용 통계
Tips for Analysis
Section titled “Tips for Analysis”- : 월간 또는 연간 트렌드 비교Compare Periods
- : 비율 추적: 사용자별 대역폭 또는 앱별 저장 용량을 모니터링하세요.
- 알림 설정: 사용량이 이상적으로 치솟는 경우에 알림을 설정하세요.
- 정기 백업: 통계를 분석하기 위해 정기적으로 통계를 내보내세요.
- 버전(배포) 채택: 버전(배포) 사용률을 통해 새로운 버전(배포)의 채택률을 추적하세요.
Statistics에서 계속
: Statistics에서 계속하세요.Statistics를 사용하여 Storage 및 파일 처리를 계획하고자 할 때, Statistics와 연결하세요. @capgo/capacitor-data-storage-sqlite 구현 세부 사항에 대한 @capgo/capacitor-data-storage-sqlite 사용하는 @capgo/capacitor-data-storage-sqlite 사용하는 @capgo/capacitor-data-storage-sqlite의 원시 기능 @capgo/capacitor-file 구현 세부 사항에 대한 @capgo/capacitor-file 사용하는 @capgo/capacitor-file 사용하는 @capgo/capacitor-file의 원시 기능 @capgo/capacitor-uploader 구현 세부 사항에 대한 @capgo/capacitor-uploader