Package com.datadog.api.client.v2.model
Class ObservabilityPipelineGenerateMetricsV2Processor
java.lang.Object
com.datadog.api.client.v2.model.ObservabilityPipelineGenerateMetricsV2Processor
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineGenerateMetricsV2Processor
extends Object
The
generate_metrics processor creates custom metrics from logs. Metrics can be
counters, gauges, or distributions and optionally grouped by log fields.
There must be a destination whose inputs reference this processor with the
<processor-id>.metrics suffix to route the generated metrics. All destination types
normally supported for metrics pipelines are also supported as metrics destinations
in logs pipelines.
Supported pipeline types: logs
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObservabilityPipelineGenerateMetricsV2Processor(Boolean enabled, String id, ObservabilityPipelineGenerateMetricsV2ProcessorType type) -
Method Summary
Modifier and TypeMethodDescriptionaddMetricsItem(ObservabilityPipelineGeneratedMetric metricsItem) displayName(String displayName) booleanReturn true if this ObservabilityPipelineGenerateMetricsV2Processor object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The display name for a component.Indicates whether the processor is enabled.getId()The unique identifier for this component.A Datadog search query used to determine which logs this processor targets.Configuration for generating individual metrics.getType()The processor type.inthashCode()metrics(List<ObservabilityPipelineGeneratedMetric> metrics) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDisplayName(String displayName) voidsetEnabled(Boolean enabled) voidvoidsetInclude(String include) voidvoidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DISPLAY_NAME
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_INCLUDE
- See Also:
-
JSON_PROPERTY_METRICS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
ObservabilityPipelineGenerateMetricsV2Processor
public ObservabilityPipelineGenerateMetricsV2Processor() -
ObservabilityPipelineGenerateMetricsV2Processor
public ObservabilityPipelineGenerateMetricsV2Processor(Boolean enabled, String id, ObservabilityPipelineGenerateMetricsV2ProcessorType type)
-
-
Method Details
-
displayName
-
getDisplayName
The display name for a component.- Returns:
- displayName
-
setDisplayName
-
enabled
-
getEnabled
Indicates whether the processor is enabled.- Returns:
- enabled
-
setEnabled
-
id
-
getId
The unique identifier for this component. Used to reference this component in other parts of the pipeline.- Returns:
- id
-
setId
-
include
-
getInclude
A Datadog search query used to determine which logs this processor targets.- Returns:
- include
-
setInclude
-
metrics
public ObservabilityPipelineGenerateMetricsV2Processor metrics(List<ObservabilityPipelineGeneratedMetric> metrics) -
addMetricsItem
public ObservabilityPipelineGenerateMetricsV2Processor addMetricsItem(ObservabilityPipelineGeneratedMetric metricsItem) -
getMetrics
Configuration for generating individual metrics.- Returns:
- metrics
-
setMetrics
-
type
-
getType
The processor type. Alwaysgenerate_metrics.- Returns:
- type
-
setType
-
putAdditionalProperty
public ObservabilityPipelineGenerateMetricsV2Processor 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:
- ObservabilityPipelineGenerateMetricsV2Processor
-
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 ObservabilityPipelineGenerateMetricsV2Processor object is equal to o. -
hashCode
public int hashCode() -
toString
-