|
1 | 1 | /*
|
2 |
| - * Copyright 2012-2019 the original author or authors. |
| 2 | + * Copyright 2012-2020 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
16 | 16 |
|
17 |
| -package org.springframework.boot.actuate.autoconfigure.metrics.export.condition; |
| 17 | +package org.springframework.boot.actuate.autoconfigure.metrics.export; |
18 | 18 |
|
19 | 19 | import java.lang.annotation.Documented;
|
20 | 20 | import java.lang.annotation.ElementType;
|
|
25 | 25 | import org.springframework.context.annotation.Conditional;
|
26 | 26 |
|
27 | 27 | /**
|
28 |
| - * {@link Conditional @Conditional} that checks whether or not a particular metrics |
29 |
| - * exporter is enabled. If the {@code management.metrics.export.<name>.enabled} property |
30 |
| - * is configured then its value is used to determine if it matches. Otherwise, matches if |
31 |
| - * the value of the {@code management.metrics.export.enabled} property is {@code true} or |
32 |
| - * if it is not configured. |
| 28 | + * {@link Conditional @Conditional} that checks whether or not a metrics exporter is |
| 29 | + * enabled. If the {@code management.metrics.export.<name>.enabled} property is configured |
| 30 | + * then its value is used to determine if it matches. Otherwise, matches if the value of |
| 31 | + * the {@code management.metrics.export.defaults.enabled} property is {@code true} or if |
| 32 | + * it is not configured. |
33 | 33 | *
|
34 | 34 | * @author Chris Bono
|
35 | 35 | * @since 2.4.0
|
|
41 | 41 | public @interface ConditionalOnEnabledMetricsExport {
|
42 | 42 |
|
43 | 43 | /**
|
44 |
| - * The name of the metrics exporter, typically derived from the name of the |
45 |
| - * corresponding auto-configuration class which follows the typical naming scheme of |
46 |
| - * {@code <name>MetricsExportAutoConfiguration}. For example, the |
47 |
| - * {@code DatadogMetricsExportAutoConfiguration} would have a name of 'datadog'. |
| 44 | + * The name of the metrics exporter. |
48 | 45 | * @return the name of the metrics exporter
|
49 | 46 | */
|
50 | 47 | String value();
|
|
0 commit comments