public static class ApplicationTags.Builder extends Object
| Constructor and Description |
|---|
Builder(String application,
String service)
Builder to build ApplicationTags.
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationTags |
build()
Build application tags.
|
ApplicationTags.Builder |
cluster(String cluster)
Set the cluster (example: us-west-1/us-west-2 etc.) in which your application is running.
|
ApplicationTags.Builder |
customTags(Map<String,String> customTags)
Set additional custom tags for your application.
|
ApplicationTags.Builder |
shard(String shard)
Set the shard (example: primary/secondary etc.) in which your application is running.
|
ApplicationTags.Builder |
tagFromEnv(String varName,
String tagName)
Set a custom tag from the given environment variable.
|
ApplicationTags.Builder |
tagsFromEnv(String regex)
Set additional custom tags from environment variables that match the given regex.
|
public ApplicationTags.Builder cluster(String cluster)
cluster - cluster in which your application is running.this.public ApplicationTags.Builder shard(String shard)
shard - shard where your application is running.this.public ApplicationTags.Builder customTags(Map<String,String> customTags)
customTags - Additional custom tags/metadata for your application.thispublic ApplicationTags.Builder tagsFromEnv(String regex)
regex - Regular expression.thispublic ApplicationTags.Builder tagFromEnv(String varName, String tagName)
varName - Regular environment variable name.tagName - Custom tag name.thispublic ApplicationTags build()
ApplicationTags.Copyright © 2022. All rights reserved.