Class WavefrontConsumerProperties
java.lang.Object
org.springframework.cloud.fn.consumer.wavefront.WavefrontConsumerProperties
@ConfigurationProperties("wavefront")
@Validated
public class WavefrontConsumerProperties
extends Object
- Author:
- Timo Salm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Expression
@NotEmpty @Pattern(regexp="^[a-zA-Z0-9./_,-]+") String
@NotEmpty @Size(max=128) @Pattern(regexp="^[a-zA-Z0-9._-]+") String
getUri()
@jakarta.validation.constraints.AssertTrue(message="Exactly one of \'proxy-uri\' or the pair of (\'uri\' and \'api-token\') must be set!") boolean
void
setApiToken
(String apiToken) void
setMetricExpression
(Expression metricExpression) void
setMetricName
(String metricName) void
setProxyUri
(String proxyUri) void
void
setTagExpression
(Map<String, Expression> tagExpression) void
setTimestampExpression
(Expression timestampExpression) void
-
Constructor Details
-
WavefrontConsumerProperties
public WavefrontConsumerProperties()
-
-
Method Details
-
getMetricName
@NotEmpty @Pattern(regexp="^[a-zA-Z0-9./_,-]+") public @NotEmpty @Pattern(regexp="^[a-zA-Z0-9./_,-]+") String getMetricName() -
setMetricName
-
getSource
@NotEmpty @Size(max=128) @Pattern(regexp="^[a-zA-Z0-9._-]+") public @NotEmpty @Size(max=128) @Pattern(regexp="^[a-zA-Z0-9._-]+") String getSource() -
setSource
-
getMetricExpression
-
setMetricExpression
-
getTimestampExpression
-
setTimestampExpression
-
getTagExpression
-
setTagExpression
-
getUri
-
setUri
-
getApiToken
-
setApiToken
-
getProxyUri
-
setProxyUri
-
isMutuallyExclusiveProxyAndDirectAccessWavefrontConfiguration
@AssertTrue(message="Exactly one of \'proxy-uri\' or the pair of (\'uri\' and \'api-token\') must be set!") public @jakarta.validation.constraints.AssertTrue(message="Exactly one of \'proxy-uri\' or the pair of (\'uri\' and \'api-token\') must be set!") boolean isMutuallyExclusiveProxyAndDirectAccessWavefrontConfiguration()
-