Package com.datadog.api.client.v2.model
Class ObservabilityPipelineGeneratedMetric
java.lang.Object
com.datadog.api.client.v2.model.ObservabilityPipelineGeneratedMetric
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineGeneratedMetric
extends Object
Defines a log-based custom metric, including its name, type, filter, value computation strategy,
and optional grouping fields.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObservabilityPipelineGeneratedMetric(String include, ObservabilityPipelineGeneratedMetricMetricType metricType, String name, ObservabilityPipelineMetricValue value) -
Method Summary
Modifier and TypeMethodDescriptionaddGroupByItem(String groupByItem) booleanReturn true if this ObservabilityPipelineGeneratedMetric object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Optional fields used to group the metric series.Datadog filter query to match logs for metric generation.Type of metric to create.getName()Name of the custom metric to be created.getValue()Specifies how the value of the generated metric is computed.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetGroupBy(List<String> groupBy) voidsetInclude(String include) voidvoidvoidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_GROUP_BY
- See Also:
-
JSON_PROPERTY_INCLUDE
- See Also:
-
JSON_PROPERTY_METRIC_TYPE
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_VALUE
- See Also:
-
-
Constructor Details
-
ObservabilityPipelineGeneratedMetric
public ObservabilityPipelineGeneratedMetric() -
ObservabilityPipelineGeneratedMetric
public ObservabilityPipelineGeneratedMetric(String include, ObservabilityPipelineGeneratedMetricMetricType metricType, String name, ObservabilityPipelineMetricValue value)
-
-
Method Details
-
groupBy
-
addGroupByItem
-
getGroupBy
Optional fields used to group the metric series.- Returns:
- groupBy
-
setGroupBy
-
include
-
getInclude
Datadog filter query to match logs for metric generation.- Returns:
- include
-
setInclude
-
metricType
public ObservabilityPipelineGeneratedMetric metricType(ObservabilityPipelineGeneratedMetricMetricType metricType) -
getMetricType
Type of metric to create.- Returns:
- metricType
-
setMetricType
-
name
-
getName
Name of the custom metric to be created.- Returns:
- name
-
setName
-
value
-
getValue
Specifies how the value of the generated metric is computed.- Returns:
- value
-
setValue
-
putAdditionalProperty
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:
- ObservabilityPipelineGeneratedMetric
-
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 ObservabilityPipelineGeneratedMetric object is equal to o. -
hashCode
public int hashCode() -
toString
-