Class EventPayloadBuilder
- java.lang.Object
-
- com.dynatrace.openkit.core.objects.EventPayloadBuilder
-
public class EventPayloadBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EventPayloadBuilder(Logger logger, java.util.Map<java.lang.String,JSONValue> attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventPayloadBuilderaddNonOverridableAttribute(java.lang.String key, JSONValue value)EventPayloadBuilderaddOverridableAttribute(java.lang.String key, JSONValue value)java.lang.Stringbuild()EventPayloadBuildercleanReservedInternalAttributes()Removes reservered internal attributes from the provided attributesbooleanisEventPayloadContainingNonFiniteValues()Checks if the attributes contain a non-finite valuestatic booleanisReservedForInternalAttributes(java.lang.String key)Checks if an attribute is actually reserved for internal purpose
-
-
-
Method Detail
-
addOverridableAttribute
public EventPayloadBuilder addOverridableAttribute(java.lang.String key, JSONValue value)
-
addNonOverridableAttribute
public EventPayloadBuilder addNonOverridableAttribute(java.lang.String key, JSONValue value)
-
build
public java.lang.String build()
-
cleanReservedInternalAttributes
public EventPayloadBuilder cleanReservedInternalAttributes()
Removes reservered internal attributes from the provided attributes
-
isReservedForInternalAttributes
public static boolean isReservedForInternalAttributes(java.lang.String key)
Checks if an attribute is actually reserved for internal purpose- Parameters:
key- Key to check- Returns:
- True means the key is in use for internal purpose
-
isEventPayloadContainingNonFiniteValues
public boolean isEventPayloadContainingNonFiniteValues()
Checks if the attributes contain a non-finite value- Returns:
- True if non-finite values is within attributes
-
-