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 |
---|---|
int |
getApiCallTimeout() |
Integer |
getAttemptCount() |
Long |
getLatency() |
int |
getMaxRetriesExceeded() |
String |
getType() |
ApiCallMonitoringEvent |
withApi(String api)
Sets the api
|
ApiCallMonitoringEvent |
withApiCallTimeout(int apiCallTimeout)
Sets the api call timeout
|
ApiCallMonitoringEvent |
withAttemptCount(Integer attemptCount)
Sets the attemptCount
|
ApiCallMonitoringEvent |
withClientId(String clientId)
Sets the clientId
|
ApiCallMonitoringEvent |
withLatency(Long latency)
Sets the latency
|
ApiCallMonitoringEvent |
withMaxRetriesExceeded(int maxRetriesExceeded)
Sets the api call timeout
|
ApiCallMonitoringEvent |
withRegion(String region)
Sets the region
|
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, getRegion, 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 withRegion(String region)
ApiMonitoringEvent
withRegion
in class ApiMonitoringEvent
region
- The new region 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 int getApiCallTimeout()
public ApiCallMonitoringEvent withApiCallTimeout(int apiCallTimeout)
apiCallTimeout
- The new apiCallTimeout value.public int getMaxRetriesExceeded()
public ApiCallMonitoringEvent withMaxRetriesExceeded(int maxRetriesExceeded)
maxRetriesExceeded
- The new maxRetriesExceeded value.public String getType()
getType
in class ApiMonitoringEvent
Copyright © 2018. All rights reserved.