MDXStartSpeedTesting

MDXStartSpeedTesting

Description:Start Speed check & Testing Result

Request parameter

name

type

Mandatory/Optional

Instructions

backgroundTestingEnabled

Bool

O

Whether background speed measurement is supported

Return parameter

Name

Type

Optional Mandatory/Optional

Description

success

Bool

M

Whether the JSAPI is called successfully

code

Int

M

0 :success (success)

Other scenarios Error type code

1 : invalidSettings

2 : invalidServers

3 : inProgress

4 : failed

5 : notSaved

6 :cancelled

7 : locationUndefined

8 : appISPMismatch

result

Object

O

Speed measurement successfully returned data

uploadSpeed

Double

O

Upload rate (milliseconds)

downloadSpeed

Double

O

Download speed (milliseconds)

jitter

Double

O

Network jitter

packetLoss

Double

O

The packet loss rate ranges from 0 to 100

latencyInMs

Int

O

Delay time (milliseconds)

Sample code

copy
{
        success: true, 
        code: 0,
        result:{
            uploadSpeed: 36.393,
            downloadSpeed: 36.393,
            jitter: 36.393,
            packetLoss: 36.393,
            latencyInMs: 2933,
        }
}