public class LogRecord extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
LAST_MODIFIED_TIME_FORMAT
Holds the date format for the LastModifiedTime field.
|
protected static SimpleDateFormat |
REQUEST_START_TIME_FORMAT
Holds the date format for the RequestStartTime field.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LogRecord()
Initializes a new instance of the LogRecord class.
|
protected |
LogRecord(com.microsoft.azure.storage.analytics.LogRecordStreamReader reader)
Initializes a new instance of the LogRecord class using a LogRecordStreamReader to populate.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationType()
Gets whether the request was authenticated, anonymous, or used Shared Access Signature (SAS).
|
String |
getClientRequestId()
Gets the x-ms-client-request-id header value included in the request.
|
String |
getConditionsUsed()
Gets conditions used, as an encoded string semicolon-separated list in the form of ConditionName=value .
|
Integer |
getEndToEndLatencyInMS()
Gets the total time in milliseconds to perform the requested operation, including the time to read the
incoming request and send the response to the requester.
|
String |
getETagIdentifier()
Gets the ETag identifier for the returned object as an encoded string.
|
String |
getHttpStatusCode()
Gets the HTTP status code for the request.
|
Date |
getLastModifiedTime()
Gets the Last Modified Time (LMT) for the returned object as an encoded string.
|
Integer |
getOperationCount()
Gets the number of each logged operation for a request, using an index of zero.
|
String |
getOperationType()
Gets the type of REST operation performed.
|
String |
getOwnerAccountName()
Gets the account name of the service owner.
|
String |
getReferrerHeader()
Gets the Referrer header value as an encoded string.
|
Long |
getRequestContentLength()
Gets the value of the Content-Length header for the request sent to the storage service.
|
String |
getRequestedObjectKey()
Gets the key of the requested object as an encoded string.
|
String |
getRequesterAccountName()
Gets the account name making the request, if the request is authenticated.
|
String |
getRequesterIPAddress()
Gets the IP address and port of the requester.
|
Long |
getRequestHeaderSize()
Gets the size of the request header, in bytes.
|
UUID |
getRequestIdHeader()
Gets the request ID assigned by the storage service.
|
String |
getRequestMD5()
Gets the value of either the Content-MD5 header or the x-ms-content-md5 header in the request as an encoded
string.
|
Long |
getRequestPacketSize()
Gets the size of the request packets read by the storage service, in bytes.
|
Date |
getRequestStartTime()
Gets the time in UTC when the request was received by Storage Analytics.
|
String |
getRequestStatus()
Gets the status of the requested operation.
|
URI |
getRequestUrl()
Gets the complete URL of the request.
|
String |
getRequestVersionHeader()
Gets the storage service version specified when the request was made.
|
Long |
getResponseHeaderSize()
Gets the size of the response header, in bytes.
|
Long |
getResponsePacketSize()
Gets the size of the response packets written by the storage service, in bytes.
|
Integer |
getServerLatencyInMS()
Gets the total time in milliseconds to perform the requested operation.
|
String |
getServerMD5()
Gets the value of the MD5 hash calculated by the storage service as an encoded string.
|
String |
getServiceType()
Gets the requested storage service: blob, table, or queue.
|
String |
getUserAgentHeader()
Gets the User-Agent header value as an encoded string.
|
String |
getVersionNumber()
Gets the version of Storage Analytics Logging used to record the entry.
|
protected void |
setAuthenticationType(String authenticationType) |
protected void |
setClientRequestId(String clientRequestId) |
protected void |
setConditionsUsed(String conditionsUsed) |
protected void |
setEndToEndLatencyInMS(Integer endToEndLatencyInMS) |
protected void |
setETagIdentifier(String eTagIdentifier) |
protected void |
setHttpStatusCode(String httpStatusCode) |
protected void |
setLastModifiedTime(Date lastModifiedTime) |
protected void |
setOperationCount(Integer operationCount) |
protected void |
setOperationType(String operationType) |
protected void |
setOwnerAccountName(String ownerAccountName) |
protected void |
setReferrerHeader(String referrerHeader) |
protected void |
setRequestContentLength(Long requestContentLength) |
protected void |
setRequestedObjectKey(String requestedObjectKey) |
protected void |
setRequesterAccountName(String requesterAccountName) |
protected void |
setRequesterIPAddress(String requesterIPAddress) |
protected void |
setRequestHeaderSize(Long requestHeaderSize) |
protected void |
setRequestIdHeader(UUID requestIdHeader) |
protected void |
setRequestMD5(String requestMD5) |
protected void |
setRequestPacketSize(Long requestPacketSize) |
protected void |
setRequestStartTime(Date requestStartTime) |
protected void |
setRequestStatus(String requestStatus) |
protected void |
setRequestUrl(URI requestUrl) |
protected void |
setRequestVersionHeader(String requestVersionHeader) |
protected void |
setResponseHeaderSize(Long responseHeaderSize) |
protected void |
setResponsePacketSize(Long responsePacketSize) |
protected void |
setServerLatencyInMS(Integer serverLatencyInMS) |
protected void |
setServerMD5(String serverMD5) |
protected void |
setServiceType(String serviceType) |
protected void |
setUserAgentHeader(String userAgentHeader) |
protected void |
setVersionNumber(String versionNumber) |
protected static final SimpleDateFormat REQUEST_START_TIME_FORMAT
protected static final SimpleDateFormat LAST_MODIFIED_TIME_FORMAT
protected LogRecord()
protected LogRecord(com.microsoft.azure.storage.analytics.LogRecordStreamReader reader)
throws IOException,
ParseException,
URISyntaxException
reader - the LogRecordStreamReader to use to populate the LogRecord.IOExceptionParseExceptionURISyntaxExceptionpublic String getVersionNumber()
String containing the VersionNumber valuepublic Date getRequestStartTime()
String containing the RequestStartTime valuepublic String getOperationType()
String containing the OperationType valuepublic String getRequestStatus()
String containing the RequestStatus valuepublic String getHttpStatusCode()
String containing the HttpStatusCode valuepublic Integer getEndToEndLatencyInMS()
Integer containing the EndToEndLatencyInMS valuepublic Integer getServerLatencyInMS()
Integer containing the ServerLatencyInMS valuepublic String getAuthenticationType()
String containing the AuthenticationType valuepublic String getRequesterAccountName()
String containing the RequesterAccountName valuepublic String getOwnerAccountName()
String containing the OwnerAccountName valuepublic String getServiceType()
String containing the ServiceType valuepublic URI getRequestUrl()
URI containing the RequestUrl valuepublic String getRequestedObjectKey()
String containing the RequestedObjectKey valuepublic UUID getRequestIdHeader()
UUID containing the RequestIdHeader valuepublic Integer getOperationCount()
Integer containing the OperationCount valuepublic String getRequesterIPAddress()
String containing the RequesterIPAddress valuepublic String getRequestVersionHeader()
String containing the RequestVersionHeader valuepublic Long getRequestHeaderSize()
Long containing the RequestHeaderSize valuepublic Long getRequestPacketSize()
Long containing the RequestPacketSize valuepublic Long getResponseHeaderSize()
Long containing the ResponseHeaderSize valuepublic Long getResponsePacketSize()
Long containing the ResponsePacketSize valuepublic Long getRequestContentLength()
Long containing the RequestContentLength valuepublic String getRequestMD5()
String containing the RequestMD5 valuepublic String getServerMD5()
String containing the ServerMD5 valuepublic String getETagIdentifier()
String containing the ETagIdentifier valuepublic Date getLastModifiedTime()
Date containing the LastModifiedTime valuepublic String getConditionsUsed()
String containing the ConditionsUsed valuepublic String getUserAgentHeader()
String containing the UserAgentHeader valuepublic String getReferrerHeader()
String containing the ReferrerHeader valuepublic String getClientRequestId()
String containing the ClientRequestId valueprotected void setVersionNumber(String versionNumber)
versionNumber - the versionNumber to setprotected void setRequestStartTime(Date requestStartTime)
requestStartTime - the requestStartTime to setprotected void setOperationType(String operationType)
operationType - the operationType to setprotected void setRequestStatus(String requestStatus)
requestStatus - the requestStatus to setprotected void setHttpStatusCode(String httpStatusCode)
httpStatusCode - the httpStatusCode to setprotected void setEndToEndLatencyInMS(Integer endToEndLatencyInMS)
endToEndLatencyInMS - the endToEndLatencyInMS to setprotected void setServerLatencyInMS(Integer serverLatencyInMS)
serverLatencyInMS - the serverLatencyInMS to setprotected void setAuthenticationType(String authenticationType)
authenticationType - the authenticationType to setprotected void setRequesterAccountName(String requesterAccountName)
requesterAccountName - the requesterAccountName to setprotected void setOwnerAccountName(String ownerAccountName)
ownerAccountName - the ownerAccountName to setprotected void setServiceType(String serviceType)
serviceType - the serviceType to setprotected void setRequestUrl(URI requestUrl)
requestUrl - the requestUrl to setprotected void setRequestedObjectKey(String requestedObjectKey)
requestedObjectKey - the requestedObjectKey to setprotected void setRequestIdHeader(UUID requestIdHeader)
requestIdHeader - the requestIdHeader to setprotected void setOperationCount(Integer operationCount)
operationCount - the operationCount to setprotected void setRequesterIPAddress(String requesterIPAddress)
requesterIPAddress - the requesterIPAddress to setprotected void setRequestVersionHeader(String requestVersionHeader)
requestVersionHeader - the requestVersionHeader to setprotected void setRequestHeaderSize(Long requestHeaderSize)
requestHeaderSize - the requestHeaderSize to setprotected void setRequestPacketSize(Long requestPacketSize)
requestPacketSize - the requestPacketSize to setprotected void setResponseHeaderSize(Long responseHeaderSize)
responseHeaderSize - the responseHeaderSize to setprotected void setResponsePacketSize(Long responsePacketSize)
responsePacketSize - the responsePacketSize to setprotected void setRequestContentLength(Long requestContentLength)
requestContentLength - the requestContentLength to setprotected void setRequestMD5(String requestMD5)
requestMD5 - the requestMD5 to setprotected void setServerMD5(String serverMD5)
serverMD5 - the serverMD5 to setprotected void setETagIdentifier(String eTagIdentifier)
eTagIdentifier - the eTagIdentifier to setprotected void setLastModifiedTime(Date lastModifiedTime)
lastModifiedTime - the lastModifiedTime to setprotected void setConditionsUsed(String conditionsUsed)
conditionsUsed - the conditionsUsed to setprotected void setUserAgentHeader(String userAgentHeader)
userAgentHeader - the userAgentHeader to setprotected void setReferrerHeader(String referrerHeader)
referrerHeader - the referrerHeader to setprotected void setClientRequestId(String clientRequestId)
clientRequestId - the clientRequestId to setCopyright © 2019. All rights reserved.