Package com.dynatrace.openkit.protocol
Enum ResponseAttributesDefaults
- java.lang.Object
-
- java.lang.Enum<ResponseAttributesDefaults>
-
- com.dynatrace.openkit.protocol.ResponseAttributesDefaults
-
- All Implemented Interfaces:
ResponseAttributes,java.io.Serializable,java.lang.Comparable<ResponseAttributesDefaults>
public enum ResponseAttributesDefaults extends java.lang.Enum<ResponseAttributesDefaults> implements ResponseAttributes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JSON_RESPONSEKEY_VALUE_RESPONSEUNDEFINED
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetApplicationId()Returns the ID of the application to which this configuration applies.abstract intgetMaxBeaconSizeInBytes()Returns the maximum POST body size when sending beacons.abstract intgetMaxEventsPerSession()Returns the maximum number of top level actions after which a session will be split.abstract intgetMaxSessionDurationInMilliseconds()Returns the maximum duration of a session in milliseconds after which a session will be split.intgetMultiplicity()Returns the multiplicityintgetSendIntervalInMilliseconds()Returns the send interval in milliseconds.intgetServerId()Returns the ID of the server to where all data should be sent.abstract intgetSessionTimeoutInMilliseconds()Returns the idle timeout in milliseconds after which a session will be split.java.lang.StringgetStatus()Returns the status of the new session configuration request.longgetTimestampInMilliseconds()Returns the timestamp of these attributes which were returned from the server.intgetTrafficControlPercentage()Gets a session sampling in percent.intgetVisitStoreVersion()Returns the version of the visit store to be used.booleanisAttributeSet(ResponseAttribute attribute)Checks whether the given attribute was set / sent from the server with this server response.booleanisCapture()Indicator whether capturing data is generally allowed or not.booleanisCaptureCrashes()Indicator whether crashes should be captured or not.booleanisCaptureErrors()Indicator whether errors should be captured or not.ResponseAttributesmerge(ResponseAttributes responseAttributes)Creates a new response attributes object by merging the given response into this one.static ResponseAttributesDefaultsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ResponseAttributesDefaults[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JSON_RESPONSE
public static final ResponseAttributesDefaults JSON_RESPONSE
-
KEY_VALUE_RESPONSE
public static final ResponseAttributesDefaults KEY_VALUE_RESPONSE
-
UNDEFINED
public static final ResponseAttributesDefaults UNDEFINED
-
-
Method Detail
-
values
public static ResponseAttributesDefaults[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResponseAttributesDefaults c : ResponseAttributesDefaults.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResponseAttributesDefaults valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getMaxBeaconSizeInBytes
public abstract int getMaxBeaconSizeInBytes()
Description copied from interface:ResponseAttributesReturns the maximum POST body size when sending beacons.- Specified by:
getMaxBeaconSizeInBytesin interfaceResponseAttributes
-
getMaxSessionDurationInMilliseconds
public abstract int getMaxSessionDurationInMilliseconds()
Description copied from interface:ResponseAttributesReturns the maximum duration of a session in milliseconds after which a session will be split.- Specified by:
getMaxSessionDurationInMillisecondsin interfaceResponseAttributes
-
getMaxEventsPerSession
public abstract int getMaxEventsPerSession()
Description copied from interface:ResponseAttributesReturns the maximum number of top level actions after which a session will be split.- Specified by:
getMaxEventsPerSessionin interfaceResponseAttributes
-
getSessionTimeoutInMilliseconds
public abstract int getSessionTimeoutInMilliseconds()
Description copied from interface:ResponseAttributesReturns the idle timeout in milliseconds after which a session will be split.- Specified by:
getSessionTimeoutInMillisecondsin interfaceResponseAttributes
-
getSendIntervalInMilliseconds
public int getSendIntervalInMilliseconds()
Description copied from interface:ResponseAttributesReturns the send interval in milliseconds.- Specified by:
getSendIntervalInMillisecondsin interfaceResponseAttributes
-
getVisitStoreVersion
public int getVisitStoreVersion()
Description copied from interface:ResponseAttributesReturns the version of the visit store to be used.- Specified by:
getVisitStoreVersionin interfaceResponseAttributes
-
isCapture
public boolean isCapture()
Description copied from interface:ResponseAttributesIndicator whether capturing data is generally allowed or not.- Specified by:
isCapturein interfaceResponseAttributes
-
isCaptureCrashes
public boolean isCaptureCrashes()
Description copied from interface:ResponseAttributesIndicator whether crashes should be captured or not.- Specified by:
isCaptureCrashesin interfaceResponseAttributes
-
isCaptureErrors
public boolean isCaptureErrors()
Description copied from interface:ResponseAttributesIndicator whether errors should be captured or not.- Specified by:
isCaptureErrorsin interfaceResponseAttributes
-
getTrafficControlPercentage
public int getTrafficControlPercentage()
Description copied from interface:ResponseAttributesGets a session sampling in percent.Value returned here is configured per application as Cost Control.
- Specified by:
getTrafficControlPercentagein interfaceResponseAttributes- Returns:
- traffic control/cost control percentage in range [1, 100].
-
getApplicationId
public java.lang.String getApplicationId()
Description copied from interface:ResponseAttributesReturns the ID of the application to which this configuration applies.This is sent by the JSON configuration only, as sanity check to fix a weird Jetty bug.
- Specified by:
getApplicationIdin interfaceResponseAttributes
-
getMultiplicity
public int getMultiplicity()
Description copied from interface:ResponseAttributesReturns the multiplicity- Specified by:
getMultiplicityin interfaceResponseAttributes
-
getServerId
public int getServerId()
Description copied from interface:ResponseAttributesReturns the ID of the server to where all data should be sent.- Specified by:
getServerIdin interfaceResponseAttributes
-
getStatus
public java.lang.String getStatus()
Description copied from interface:ResponseAttributesReturns the status of the new session configuration request.- Specified by:
getStatusin interfaceResponseAttributes
-
getTimestampInMilliseconds
public long getTimestampInMilliseconds()
Description copied from interface:ResponseAttributesReturns the timestamp of these attributes which were returned from the server.The timestamp is the duration from January, 1st, 1970
- Specified by:
getTimestampInMillisecondsin interfaceResponseAttributes
-
isAttributeSet
public boolean isAttributeSet(ResponseAttribute attribute)
Description copied from interface:ResponseAttributesChecks whether the given attribute was set / sent from the server with this server response.- Specified by:
isAttributeSetin interfaceResponseAttributes- Parameters:
attribute- the attribute to be checked if it was sent by the server.- Returns:
trueif the given attribute was sent from the server with this attributes,falseotherwise.
-
merge
public ResponseAttributes merge(ResponseAttributes responseAttributes)
Description copied from interface:ResponseAttributesCreates a new response attributes object by merging the given response into this one. Single attributes are selectively taken over from the given attributes as long as the respective attributeis set.- Specified by:
mergein interfaceResponseAttributes- Parameters:
responseAttributes- the response attributes which will be merged together with this one into a new response attributes object.- Returns:
- a new response attributes instance by merging the given attributes with this attributes.
-
-