public class ApiCallMonitoringEvent extends ApiMonitoringEvent
Modifier and Type | Field and Description |
---|---|
static String |
API_CALL_MONITORING_EVENT_TYPE |
Constructor and Description |
---|
ApiCallMonitoringEvent() |
Modifier and Type | Method and Description |
---|---|
Integer |
getAttemptCount() |
Long |
getLatency() |
String |
getType() |
ApiCallMonitoringEvent |
withApi(String api)
Sets the api
|
ApiCallMonitoringEvent |
withAttemptCount(Integer attemptCount)
Sets the attemptCount
|
ApiCallMonitoringEvent |
withClientId(String clientId)
Sets the clientId
|
ApiCallMonitoringEvent |
withLatency(Long latency)
Sets the latency
|
ApiCallMonitoringEvent |
withService(String service)
Sets the service against which the call is being made.
|
ApiCallMonitoringEvent |
withTimestamp(Long timestamp)
Sets the timestamp, in milliseconds, since January 1st, 1970, for the time point at which the event.
|
ApiCallMonitoringEvent |
withVersion(Integer version)
Sets the version.
|
getApi, getClientId, getService, getTimestamp, getVersion
public static final String API_CALL_MONITORING_EVENT_TYPE
public ApiCallMonitoringEvent withApi(String api)
ApiMonitoringEvent
withApi
in class ApiMonitoringEvent
api
- The new api value.public ApiCallMonitoringEvent withVersion(Integer version)
ApiMonitoringEvent
withVersion
in class ApiMonitoringEvent
version
- the new version value.public ApiCallMonitoringEvent withService(String service)
ApiMonitoringEvent
withService
in class ApiMonitoringEvent
service
- The new service value.public ApiCallMonitoringEvent withClientId(String clientId)
ApiMonitoringEvent
withClientId
in class ApiMonitoringEvent
clientId
- The new clientId value.public ApiCallMonitoringEvent withTimestamp(Long timestamp)
This is when the request is first seen by the service client.
withTimestamp
in class ApiMonitoringEvent
timestamp
- The new timestamp value.public Integer getAttemptCount()
public ApiCallMonitoringEvent withAttemptCount(Integer attemptCount)
attemptCount
- The new attemptCount value.public Long getLatency()
public ApiCallMonitoringEvent withLatency(Long latency)
latency
- The new latency value.public String getType()
getType
in class ApiMonitoringEvent
Copyright © 2018. All rights reserved.