目录

NetworkBoost_SceneDesc

Overview

Defines the description information of a service scenario.

Since: 6.0.2(22)

Related module: NetworkBoost

Header file: network_boost.h

Summary

[h2]Member Variables

Variable Description
NetworkBoost_ServiceType scene Service scenario type.
NetworkBoost_SceneEvent sceneEvent Service scenario event.
uint32_t startTime

Predicted duration before the sceneEvent is triggered, in milliseconds.

- The value 0 indicates that the sceneEvent occurs immediately. The default value is 0.

- A value greater than 0 indicates the predicted duration before the sceneEvent is triggered.

uint32_t duration

Predicted duration of the service scenario, in milliseconds. The value 0 indicates an unknown duration, which ends when the SceneEvent ends. You can set this variable based on the actual service scenario type.

For example, if a seckill promotion in an app is about to begin in 10 seconds and will last for 20 seconds, you can pass 'seckillService' for scene, and set sceneEvent to SCENE_EVENT_ENTER, startTime to 10000, and duration to 20000.

Member Variable Description

scene

NetworkBoost_ServiceType NetworkBoost_SceneDesc::scene

Description

Service scenario type.

sceneEvent

NetworkBoost_SceneEvent NetworkBoost_SceneDesc::sceneEvent

Description

Service scenario event.

startTime

uint32_t NetworkBoost_SceneDesc::startTime

Description

Predicted duration before the sceneEvent is triggered, in milliseconds.

duration

uint32_t NetworkBoost_SceneDesc::duration

Description

Predicted duration of the service scenario, in milliseconds.