@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsArithmeticProcessor extends Object
The formula can use parentheses and the basic arithmetic operators -
, +
, *
, /
.
By default, the calculation is skipped if an attribute is missing. Select “Replace missing attribute by 0” to automatically populate missing attribute values with 0 to ensure that the calculation is done. An attribute is missing if it is not found in the log attributes, or if it cannot be converted to a number.
Notes:
-
needs to be space split in the formula as it can also be
contained in attribute names.
0.1234567891
, the actual value stored for the attribute is 0.123456789
.
Modifier and Type | Field and Description |
---|---|
static String |
JSON_PROPERTY_EXPRESSION |
static String |
JSON_PROPERTY_IS_ENABLED |
static String |
JSON_PROPERTY_IS_REPLACE_MISSING |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_TARGET |
static String |
JSON_PROPERTY_TYPE |
boolean |
unparsed |
Constructor and Description |
---|
LogsArithmeticProcessor() |
LogsArithmeticProcessor(String expression,
String target,
LogsArithmeticProcessorType type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Return true if this LogsArithmeticProcessor object is equal to o.
|
LogsArithmeticProcessor |
expression(String expression) |
String |
getExpression()
Arithmetic operation between one or more log attributes.
|
Boolean |
getIsEnabled()
Whether or not the processor is enabled.
|
Boolean |
getIsReplaceMissing()
If
true , it replaces all missing attributes of expression by 0 ,
false skip the operation if an attribute is missing. |
String |
getName()
Name of the processor.
|
String |
getTarget()
Name of the attribute that contains the result of the arithmetic operation.
|
LogsArithmeticProcessorType |
getType()
Type of logs arithmetic processor.
|
int |
hashCode() |
LogsArithmeticProcessor |
isEnabled(Boolean isEnabled) |
LogsArithmeticProcessor |
isReplaceMissing(Boolean isReplaceMissing) |
LogsArithmeticProcessor |
name(String name) |
void |
setExpression(String expression) |
void |
setIsEnabled(Boolean isEnabled) |
void |
setIsReplaceMissing(Boolean isReplaceMissing) |
void |
setName(String name) |
void |
setTarget(String target) |
void |
setType(LogsArithmeticProcessorType type) |
LogsArithmeticProcessor |
target(String target) |
String |
toString() |
LogsArithmeticProcessor |
type(LogsArithmeticProcessorType type) |
public boolean unparsed
public static final String JSON_PROPERTY_EXPRESSION
public static final String JSON_PROPERTY_IS_ENABLED
public static final String JSON_PROPERTY_IS_REPLACE_MISSING
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_TARGET
public static final String JSON_PROPERTY_TYPE
public LogsArithmeticProcessor()
public LogsArithmeticProcessor(String expression, String target, LogsArithmeticProcessorType type)
public LogsArithmeticProcessor expression(String expression)
public String getExpression()
public void setExpression(String expression)
public LogsArithmeticProcessor isEnabled(Boolean isEnabled)
@Nullable public Boolean getIsEnabled()
public void setIsEnabled(Boolean isEnabled)
public LogsArithmeticProcessor isReplaceMissing(Boolean isReplaceMissing)
@Nullable public Boolean getIsReplaceMissing()
true
, it replaces all missing attributes of expression by 0
,
false
skip the operation if an attribute is missing.public void setIsReplaceMissing(Boolean isReplaceMissing)
public LogsArithmeticProcessor name(String name)
@Nullable public String getName()
public void setName(String name)
public LogsArithmeticProcessor target(String target)
public String getTarget()
public void setTarget(String target)
public LogsArithmeticProcessor type(LogsArithmeticProcessorType type)
public LogsArithmeticProcessorType getType()
public void setType(LogsArithmeticProcessorType type)
public boolean equals(Object o)
Copyright © 2022. All rights reserved.