Class: DatadogAPIClient::V2::ObservabilityPipelinePrometheusRemoteWriteSourceValidToken

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/observability_pipeline_prometheus_remote_write_source_valid_token.rb

Overview

An accepted token used to authenticate incoming Prometheus Remote Write requests.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



35
36
37
# File 'lib/datadog_api_client/v2/models/observability_pipeline_prometheus_remote_write_source_valid_token.rb', line 35

def additional_properties
  @additional_properties
end

#enabledObject

Indicates whether this token is currently accepted. Disabled tokens are rejected without being removed from the configuration.



26
27
28
# File 'lib/datadog_api_client/v2/models/observability_pipeline_prometheus_remote_write_source_valid_token.rb', line 26

def enabled
  @enabled
end

#path_to_tokenObject

Specifies where the worker extracts the token from in the incoming HTTP request. This can be either a built-in location (path or address) or an HTTP header object.



30
31
32
# File 'lib/datadog_api_client/v2/models/observability_pipeline_prometheus_remote_write_source_valid_token.rb', line 30

def path_to_token
  @path_to_token
end

#token_keyObject

Name of the environment variable or secret that holds the expected token value.



33
34
35
# File 'lib/datadog_api_client/v2/models/observability_pipeline_prometheus_remote_write_source_valid_token.rb', line 33

def token_key
  @token_key
end