Swift Rest SDK Documentation Beta

Class Mobiledge​XiOSLibrary.​Performance​Metrics.​Site

@available(iOS 13.0, *) public class Site

Object used by NetTest to test latency of server. Each site object contains the server path or host + port, avg latency, standard deviation, list of latency times, and the TestType. TestType is either PING or CONNECT, where PING is ICMP Ping (not implemented) and CONNECT is is actually setting up a connection and then disconnecting immediately.

MobiledgeXiOSLibrary.PerformanceMetrics.Site MobiledgeXiOSLibrary.PerformanceMetrics.Site Equatable Equatable MobiledgeXiOSLibrary.PerformanceMetrics.Site->Equatable

Member Of

MobiledgeXiOSLibrary.PerformanceMetrics

Namespace for collecting network performance. Contains NetTest and Site classes

Conforms To

Equatable

Initializers

init(network:​host:​port:​test​Type:​num​Samples:​)

public init(network: String, host: String, port: UInt16, testType: NetTest.TestType?, numSamples: Int?)

initialize size with host and port

init(network:​l7Path:​test​Type:​num​Samples:​)

public init(network: String, l7Path: String, testType: NetTest.TestType?, numSamples: Int?)

initialize http site

Properties

host

var host: String?

port

var port: UInt16?

l7Path

var l7Path: String?

network

var network: String

test​Type

var testType: NetTest.TestType

last​Ping​Ms

var lastPingMs: Double?

avg

var avg: Double

std​Dev

var stdDev: Double

samples

var samples: [Double]

capacity

var capacity: Int

app​Inst

var appInst: MobiledgeXiOSLibrary.MatchingEngine.Appinstance?

cloudlet​Location

var cloudletLocation: MobiledgeXiOSLibrary.MatchingEngine.Loc?

Methods

add​Sample(sample:​)

public func addSample(sample: Double)