Package | com.myflashlab.air.extensions.firebase.performance |
Class | public class HttpMetric |
Inheritance | HttpMetric Object |
Method | Defined By | ||
---|---|---|---|
HttpMetric($id:int, $context:ExtensionContext)
don't init this class manually, instead use the Perf.newHttpMetric() method. | HttpMetric | ||
setHttpResponseCode($responseCode:int):void
Sets the httpResponse code of the request
| HttpMetric | ||
setRequestPayloadSize($bytes:Number):void
Sets the size of the request payload
| HttpMetric | ||
setResponseContentType($contentType:String):void
Content type of the response such as text/html, application/json, etc... | HttpMetric | ||
setResponsePayloadSize($bytes:Number):void
Sets the size of the response payload
| HttpMetric | ||
start():void
Marks the start time of the request
| HttpMetric | ||
stop():void
Marks the end time of the response and queues the network request metric on the device for transmission. | HttpMetric |
HttpMetric | () | Constructor |
public function HttpMetric($id:int, $context:ExtensionContext)
don't init this class manually, instead use the Perf.newHttpMetric()
method.
$id:int | |
$context:ExtensionContext |
setHttpResponseCode | () | method |
public function setHttpResponseCode($responseCode:int):void
Sets the httpResponse code of the request
Parameters
$responseCode:int — valid values are greater than 0. Invalid usage will be logged.
|
setRequestPayloadSize | () | method |
public function setRequestPayloadSize($bytes:Number):void
Sets the size of the request payload
Parameters
$bytes:Number — valid values are greater than or equal to 0. Invalid usage will be logged.
|
setResponseContentType | () | method |
public function setResponseContentType($contentType:String):void
Content type of the response such as text/html, application/json, etc...
Parameters
$contentType:String — valid string of MIME type. Invalid usage will be logged.
|
setResponsePayloadSize | () | method |
public function setResponsePayloadSize($bytes:Number):void
Sets the size of the response payload
Parameters
$bytes:Number — valid values are greater than or equal to 0. Invalid usage will be logged.
|
start | () | method |
public function start():void
Marks the start time of the request
stop | () | method |
public function stop():void
Marks the end time of the response and queues the network request metric on the device for transmission. Check logcat for transmission info.