tencent cloud

Smart Media Hosting

Traffic and Statistics

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-01-07 10:49:16

Introduction

This document provides API introduction about traffic and statistics as well as example code.

Query Space Traffic Statistics

Feature Description

Query tenant space traffic volume stats by day.

Sample Code

try {
let result = await SMHStatsApis.getGetTrafficInfo({
libraryId:"libraryId",
spaceId:"spaceId"
});
}catch (e) {
// exception handling
}

Parameter Description

Request parameters.
Description
Type
Required or Not
libraryId
Media Library ID, obtained after creating a media library in the media hosting console, see Create Media Library
String
Yes
spaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`); if the media library is in multi-tenant mode, you must specify this parameter. For retrieval, see Create Tenant Space.
String
No
startDate
Start date of the query, in the format "YYYY-MM-DD", time zone is UTC+8. If not set, default to the date 30 days before EndDate.
String
No
endDate
Query the end date in the "YYYY-MM-DD" format, time zone is UTC+8. If not set, defaults to the previous day.
String
No

Ajuda e Suporte

Esta página foi útil?

comentários