Class AuditModel
java.lang.Object
net.avalara.avatax.rest.client.models.AuditModel
public class AuditModel
extends java.lang.Object
Provides detailed information about an API call.
The information on this record was captured by AvaTax when your API call was made. If you are unsure why you
received an error, you can fetch these audit objects and examine the `RequestUrl`, `RequestBody`, and `ErrorMessage`
fields to determine root cause for the error.
-
Constructor Summary
Constructors Constructor Description AuditModel()
-
Method Summary
Modifier and Type Method Description java.lang.Integer
getAccountId()
Getter for accountId The unique ID number of the account to which the user belongs.java.lang.String
getAdapterName()
Getter for adapterName If your API call specified a `AdapterName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.java.lang.String
getAdapterVersion()
Getter for adapterVersion If your API call specified a `AdapterVersion` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.java.lang.String
getAuditMessage()
Getter for auditMessage Reserved for Avalara internal usage.java.lang.String
getClientName()
Getter for clientName If your API call specified a `ClientName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.java.lang.String
getClientVersion()
Getter for clientVersion If your API call specified a `ClientVersion` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.java.lang.Integer
getDatabaseCallCount()
Getter for databaseCallCount If this API call included requests made to any of the AvaTax data layers, this contains the number of requests that were traced.java.lang.String
getDatabaseCallDuration()
Getter for databaseCallDuration If this API call included requests made to any of the AvaTax data layers, this contains the total duration time measured for all the requests.java.lang.String
getErrorMessage()
Getter for errorMessage If this API call reported an error, this contains the name of the error that was returned.java.util.ArrayList<AuditEvent>
getEvents()
Getter for events Reserved for Avalara internal usage.java.lang.String
getIpAddress()
Getter for ipAddress The origin IP address from which AvaTax received this API call.java.lang.Boolean
getIsQueued()
Getter for isQueued Reserved for Avalara internal usage.java.lang.Integer
getLoadBalancerDuration()
Getter for loadBalancerDuration Reserved for Avalara internal usage.java.lang.String
getMachineName()
Getter for machineName If your API call specified a `MachineName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.java.lang.String
getOperation()
Getter for operation The operation name of this API call.java.lang.Integer
getRecordCount()
Getter for recordCount If this API call returned an array of information, this value contains the number of records returned.java.lang.String
getReferenceAuthorization()
Getter for referenceAuthorization Reserved for Avalara internal usage.java.lang.String
getReferenceCode()
Getter for referenceCode A context-dependent reference code for this API call.java.lang.Long
getReferenceId()
Getter for referenceId A context-dependent reference ID for this API call.java.lang.String
getRemoteCallDuration()
Getter for remoteCallDuration If this API call included interoperation with other Avalara services, this contains the amount of time taken by those services.java.util.ArrayList<AuditModel>
getRemoteCalls()
Getter for remoteCalls Reserved for Avalara internal usage.java.lang.String
getRequestBody()
Getter for requestBody If this request was an HTTP request that included a body such as a POST or a PUT, this will contain the request body sent by the client.java.lang.String
getRequestUrl()
Getter for requestUrl The original request URL as provided by the client.java.lang.String
getResponseBody()
Getter for responseBody The entire response body sent from the AvaTax server to the client.java.lang.Integer
getResponseStatus()
Getter for responseStatus The HTTP response code that was sent by the server.java.lang.Integer
getServerDuration()
Getter for serverDuration The number of milliseconds that the AvaTax server took to respond to this API call.java.lang.String
getServerName()
Getter for serverName The server name of the AvaTax server that responded to this API call.java.util.Date
getServerTimestamp()
Getter for serverTimestamp The server timestamp, in UTC, of the time when the server received this API call.java.lang.String
getServerVersion()
Getter for serverVersion The software version number of the currently deployed AvaTax API software on the server that responded to this API call.java.lang.String
getServiceName()
Getter for serviceName The service name of the AvaTax API service that responded to this API call.java.lang.Integer
getSeverityLevelId()
Getter for severityLevelId If the API contained a specific type of error code, this value would contain the unique ID number of the severity level of the response returned to the client.java.lang.Long
getTransactionId()
Getter for transactionId A unique ID number referring to this individual API call.java.lang.Integer
getUserId()
Getter for userId The unique ID number of the user that performed this API call.void
setAccountId(java.lang.Integer value)
Setter for accountId The unique ID number of the account to which the user belongs.void
setAdapterName(java.lang.String value)
Setter for adapterName If your API call specified a `AdapterName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.void
setAdapterVersion(java.lang.String value)
Setter for adapterVersion If your API call specified a `AdapterVersion` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.void
setAuditMessage(java.lang.String value)
Setter for auditMessage Reserved for Avalara internal usage.void
setClientName(java.lang.String value)
Setter for clientName If your API call specified a `ClientName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.void
setClientVersion(java.lang.String value)
Setter for clientVersion If your API call specified a `ClientVersion` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.void
setDatabaseCallCount(java.lang.Integer value)
Setter for databaseCallCount If this API call included requests made to any of the AvaTax data layers, this contains the number of requests that were traced.void
setDatabaseCallDuration(java.lang.String value)
Setter for databaseCallDuration If this API call included requests made to any of the AvaTax data layers, this contains the total duration time measured for all the requests.void
setErrorMessage(java.lang.String value)
Setter for errorMessage If this API call reported an error, this contains the name of the error that was returned.void
setEvents(java.util.ArrayList<AuditEvent> value)
Setter for events Reserved for Avalara internal usage.void
setIpAddress(java.lang.String value)
Setter for ipAddress The origin IP address from which AvaTax received this API call.void
setIsQueued(java.lang.Boolean value)
Setter for isQueued Reserved for Avalara internal usage.void
setLoadBalancerDuration(java.lang.Integer value)
Setter for loadBalancerDuration Reserved for Avalara internal usage.void
setMachineName(java.lang.String value)
Setter for machineName If your API call specified a `MachineName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value.void
setOperation(java.lang.String value)
Setter for operation The operation name of this API call.void
setRecordCount(java.lang.Integer value)
Setter for recordCount If this API call returned an array of information, this value contains the number of records returned.void
setReferenceAuthorization(java.lang.String value)
Setter for referenceAuthorization Reserved for Avalara internal usage.void
setReferenceCode(java.lang.String value)
Setter for referenceCode A context-dependent reference code for this API call.void
setReferenceId(java.lang.Long value)
Setter for referenceId A context-dependent reference ID for this API call.void
setRemoteCallDuration(java.lang.String value)
Setter for remoteCallDuration If this API call included interoperation with other Avalara services, this contains the amount of time taken by those services.void
setRemoteCalls(java.util.ArrayList<AuditModel> value)
Setter for remoteCalls Reserved for Avalara internal usage.void
setRequestBody(java.lang.String value)
Setter for requestBody If this request was an HTTP request that included a body such as a POST or a PUT, this will contain the request body sent by the client.void
setRequestUrl(java.lang.String value)
Setter for requestUrl The original request URL as provided by the client.void
setResponseBody(java.lang.String value)
Setter for responseBody The entire response body sent from the AvaTax server to the client.void
setResponseStatus(java.lang.Integer value)
Setter for responseStatus The HTTP response code that was sent by the server.void
setServerDuration(java.lang.Integer value)
Setter for serverDuration The number of milliseconds that the AvaTax server took to respond to this API call.void
setServerName(java.lang.String value)
Setter for serverName The server name of the AvaTax server that responded to this API call.void
setServerTimestamp(java.util.Date value)
Setter for serverTimestamp The server timestamp, in UTC, of the time when the server received this API call.void
setServerVersion(java.lang.String value)
Setter for serverVersion The software version number of the currently deployed AvaTax API software on the server that responded to this API call.void
setServiceName(java.lang.String value)
Setter for serviceName The service name of the AvaTax API service that responded to this API call.void
setSeverityLevelId(java.lang.Integer value)
Setter for severityLevelId If the API contained a specific type of error code, this value would contain the unique ID number of the severity level of the response returned to the client.void
setTransactionId(java.lang.Long value)
Setter for transactionId A unique ID number referring to this individual API call.void
setUserId(java.lang.Integer value)
Setter for userId The unique ID number of the user that performed this API call.java.lang.String
toString()
Returns a JSON string representation of AuditModel
-
Constructor Details
-
AuditModel
public AuditModel()
-
-
Method Details
-
getTransactionId
public java.lang.Long getTransactionId()Getter for transactionId A unique ID number referring to this individual API call. -
setTransactionId
public void setTransactionId(java.lang.Long value)Setter for transactionId A unique ID number referring to this individual API call. -
getAccountId
public java.lang.Integer getAccountId()Getter for accountId The unique ID number of the account to which the user belongs. -
setAccountId
public void setAccountId(java.lang.Integer value)Setter for accountId The unique ID number of the account to which the user belongs. -
getUserId
public java.lang.Integer getUserId()Getter for userId The unique ID number of the user that performed this API call. -
setUserId
public void setUserId(java.lang.Integer value)Setter for userId The unique ID number of the user that performed this API call. -
getIpAddress
public java.lang.String getIpAddress()Getter for ipAddress The origin IP address from which AvaTax received this API call. If you use a proxy layer or other gateway, this IP address may be the address of the gateway. This information is not guaranteed to be accurate and may change based on network conditions between your site and AvaTax. -
setIpAddress
public void setIpAddress(java.lang.String value)Setter for ipAddress The origin IP address from which AvaTax received this API call. If you use a proxy layer or other gateway, this IP address may be the address of the gateway. This information is not guaranteed to be accurate and may change based on network conditions between your site and AvaTax. -
getMachineName
public java.lang.String getMachineName()Getter for machineName If your API call specified a `MachineName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
setMachineName
public void setMachineName(java.lang.String value)Setter for machineName If your API call specified a `MachineName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
getClientName
public java.lang.String getClientName()Getter for clientName If your API call specified a `ClientName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
setClientName
public void setClientName(java.lang.String value)Setter for clientName If your API call specified a `ClientName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
getClientVersion
public java.lang.String getClientVersion()Getter for clientVersion If your API call specified a `ClientVersion` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
setClientVersion
public void setClientVersion(java.lang.String value)Setter for clientVersion If your API call specified a `ClientVersion` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
getAdapterName
public java.lang.String getAdapterName()Getter for adapterName If your API call specified a `AdapterName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
setAdapterName
public void setAdapterName(java.lang.String value)Setter for adapterName If your API call specified a `AdapterName` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
getAdapterVersion
public java.lang.String getAdapterVersion()Getter for adapterVersion If your API call specified a `AdapterVersion` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
setAdapterVersion
public void setAdapterVersion(java.lang.String value)Setter for adapterVersion If your API call specified a `AdapterVersion` in the [Client Profile Headers](https://developer.avalara.com/avatax/client-headers/), this variable will contain its value. This information is self-reported by the client and is not guaranteed to be present. -
getServerName
public java.lang.String getServerName()Getter for serverName The server name of the AvaTax server that responded to this API call. -
setServerName
public void setServerName(java.lang.String value)Setter for serverName The server name of the AvaTax server that responded to this API call. -
getServerVersion
public java.lang.String getServerVersion()Getter for serverVersion The software version number of the currently deployed AvaTax API software on the server that responded to this API call. -
setServerVersion
public void setServerVersion(java.lang.String value)Setter for serverVersion The software version number of the currently deployed AvaTax API software on the server that responded to this API call. -
getReferenceId
public java.lang.Long getReferenceId()Getter for referenceId A context-dependent reference ID for this API call. This reference ID is not guaranteed to contain a specific value and may be used differently by various API calls. -
setReferenceId
public void setReferenceId(java.lang.Long value)Setter for referenceId A context-dependent reference ID for this API call. This reference ID is not guaranteed to contain a specific value and may be used differently by various API calls. -
getSeverityLevelId
public java.lang.Integer getSeverityLevelId()Getter for severityLevelId If the API contained a specific type of error code, this value would contain the unique ID number of the severity level of the response returned to the client. -
setSeverityLevelId
public void setSeverityLevelId(java.lang.Integer value)Setter for severityLevelId If the API contained a specific type of error code, this value would contain the unique ID number of the severity level of the response returned to the client. -
getServerTimestamp
public java.util.Date getServerTimestamp()Getter for serverTimestamp The server timestamp, in UTC, of the time when the server received this API call. -
setServerTimestamp
public void setServerTimestamp(java.util.Date value)Setter for serverTimestamp The server timestamp, in UTC, of the time when the server received this API call. -
getServerDuration
public java.lang.Integer getServerDuration()Getter for serverDuration The number of milliseconds that the AvaTax server took to respond to this API call. -
setServerDuration
public void setServerDuration(java.lang.Integer value)Setter for serverDuration The number of milliseconds that the AvaTax server took to respond to this API call. -
getServiceName
public java.lang.String getServiceName()Getter for serviceName The service name of the AvaTax API service that responded to this API call. -
setServiceName
public void setServiceName(java.lang.String value)Setter for serviceName The service name of the AvaTax API service that responded to this API call. -
getOperation
public java.lang.String getOperation()Getter for operation The operation name of this API call. -
setOperation
public void setOperation(java.lang.String value)Setter for operation The operation name of this API call. -
getReferenceCode
public java.lang.String getReferenceCode()Getter for referenceCode A context-dependent reference code for this API call. This reference code is not guaranteed to contain a specific value and may be used differently by various API calls. -
setReferenceCode
public void setReferenceCode(java.lang.String value)Setter for referenceCode A context-dependent reference code for this API call. This reference code is not guaranteed to contain a specific value and may be used differently by various API calls. -
getErrorMessage
public java.lang.String getErrorMessage()Getter for errorMessage If this API call reported an error, this contains the name of the error that was returned. You can look up more information about AvaTax error messages on the [AvaTax REST Error Page](https://developer.avalara.com/avatax/errors/). -
setErrorMessage
public void setErrorMessage(java.lang.String value)Setter for errorMessage If this API call reported an error, this contains the name of the error that was returned. You can look up more information about AvaTax error messages on the [AvaTax REST Error Page](https://developer.avalara.com/avatax/errors/). -
getAuditMessage
public java.lang.String getAuditMessage()Getter for auditMessage Reserved for Avalara internal usage. -
setAuditMessage
public void setAuditMessage(java.lang.String value)Setter for auditMessage Reserved for Avalara internal usage. -
getLoadBalancerDuration
public java.lang.Integer getLoadBalancerDuration()Getter for loadBalancerDuration Reserved for Avalara internal usage. -
setLoadBalancerDuration
public void setLoadBalancerDuration(java.lang.Integer value)Setter for loadBalancerDuration Reserved for Avalara internal usage. -
getRecordCount
public java.lang.Integer getRecordCount()Getter for recordCount If this API call returned an array of information, this value contains the number of records returned. -
setRecordCount
public void setRecordCount(java.lang.Integer value)Setter for recordCount If this API call returned an array of information, this value contains the number of records returned. -
getReferenceAuthorization
public java.lang.String getReferenceAuthorization()Getter for referenceAuthorization Reserved for Avalara internal usage. -
setReferenceAuthorization
public void setReferenceAuthorization(java.lang.String value)Setter for referenceAuthorization Reserved for Avalara internal usage. -
getIsQueued
public java.lang.Boolean getIsQueued()Getter for isQueued Reserved for Avalara internal usage. -
setIsQueued
public void setIsQueued(java.lang.Boolean value)Setter for isQueued Reserved for Avalara internal usage. -
getDatabaseCallCount
public java.lang.Integer getDatabaseCallCount()Getter for databaseCallCount If this API call included requests made to any of the AvaTax data layers, this contains the number of requests that were traced. Please note that not all data layers support this measurement. -
setDatabaseCallCount
public void setDatabaseCallCount(java.lang.Integer value)Setter for databaseCallCount If this API call included requests made to any of the AvaTax data layers, this contains the number of requests that were traced. Please note that not all data layers support this measurement. -
getDatabaseCallDuration
public java.lang.String getDatabaseCallDuration()Getter for databaseCallDuration If this API call included requests made to any of the AvaTax data layers, this contains the total duration time measured for all the requests. Please note that not all data layers support this measurement. -
setDatabaseCallDuration
public void setDatabaseCallDuration(java.lang.String value)Setter for databaseCallDuration If this API call included requests made to any of the AvaTax data layers, this contains the total duration time measured for all the requests. Please note that not all data layers support this measurement. -
getRemoteCallDuration
public java.lang.String getRemoteCallDuration()Getter for remoteCallDuration If this API call included interoperation with other Avalara services, this contains the amount of time taken by those services. -
setRemoteCallDuration
public void setRemoteCallDuration(java.lang.String value)Setter for remoteCallDuration If this API call included interoperation with other Avalara services, this contains the amount of time taken by those services. -
getEvents
Getter for events Reserved for Avalara internal usage. -
setEvents
Setter for events Reserved for Avalara internal usage. -
getRequestUrl
public java.lang.String getRequestUrl()Getter for requestUrl The original request URL as provided by the client. -
setRequestUrl
public void setRequestUrl(java.lang.String value)Setter for requestUrl The original request URL as provided by the client. -
getRequestBody
public java.lang.String getRequestBody()Getter for requestBody If this request was an HTTP request that included a body such as a POST or a PUT, this will contain the request body sent by the client. This request body is represented as a string, exactly as it was received from the client. Regardless of whether the request was JSON, Base64 encoded bytes, or a CSV file, this contains the exact contents of the request body. -
setRequestBody
public void setRequestBody(java.lang.String value)Setter for requestBody If this request was an HTTP request that included a body such as a POST or a PUT, this will contain the request body sent by the client. This request body is represented as a string, exactly as it was received from the client. Regardless of whether the request was JSON, Base64 encoded bytes, or a CSV file, this contains the exact contents of the request body. -
getResponseStatus
public java.lang.Integer getResponseStatus()Getter for responseStatus The HTTP response code that was sent by the server. -
setResponseStatus
public void setResponseStatus(java.lang.Integer value)Setter for responseStatus The HTTP response code that was sent by the server. -
getResponseBody
public java.lang.String getResponseBody()Getter for responseBody The entire response body sent from the AvaTax server to the client. This value is returned as a string regardless of whether the results were JSON-formatted text, CSV files, or raw strings. -
setResponseBody
public void setResponseBody(java.lang.String value)Setter for responseBody The entire response body sent from the AvaTax server to the client. This value is returned as a string regardless of whether the results were JSON-formatted text, CSV files, or raw strings. -
getRemoteCalls
Getter for remoteCalls Reserved for Avalara internal usage. -
setRemoteCalls
Setter for remoteCalls Reserved for Avalara internal usage. -
toString
public java.lang.String toString()Returns a JSON string representation of AuditModel- Overrides:
toString
in classjava.lang.Object
-