Package com.datadog.api.client.v2.model
Class ObservabilityPipelineGeneratedMetricIncrementByField
java.lang.Object
com.datadog.api.client.v2.model.ObservabilityPipelineGeneratedMetricIncrementByField
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineGeneratedMetricIncrementByField
extends Object
Strategy that increments a generated metric based on the value of a log field.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObservabilityPipelineGeneratedMetricIncrementByField(String field, ObservabilityPipelineGeneratedMetricIncrementByFieldStrategy strategy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this ObservabilityPipelineGeneratedMetricIncrementByField object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getField()Name of the log field containing the numeric value to increment the metric by.Uses a numeric field in the log event as the metric increment.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_FIELD
- See Also:
-
JSON_PROPERTY_STRATEGY
- See Also:
-
-
Constructor Details
-
ObservabilityPipelineGeneratedMetricIncrementByField
public ObservabilityPipelineGeneratedMetricIncrementByField() -
ObservabilityPipelineGeneratedMetricIncrementByField
public ObservabilityPipelineGeneratedMetricIncrementByField(String field, ObservabilityPipelineGeneratedMetricIncrementByFieldStrategy strategy)
-
-
Method Details
-
field
-
getField
Name of the log field containing the numeric value to increment the metric by.- Returns:
- field
-
setField
-
strategy
-
getStrategy
Uses a numeric field in the log event as the metric increment.- Returns:
- strategy
-
setStrategy
-
putAdditionalProperty
public ObservabilityPipelineGeneratedMetricIncrementByField putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- ObservabilityPipelineGeneratedMetricIncrementByField
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this ObservabilityPipelineGeneratedMetricIncrementByField object is equal to o. -
hashCode
public int hashCode() -
toString
-