| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigModifier.ScrapeEndpoint
Represents a scrape endpoint.
|
| Modifier and Type | Field and Description |
|---|---|
private Consumer<ConfigModifier> |
endAction |
private List<ConfigModifier.ScrapeEndpoint> |
scrapes |
| Constructor and Description |
|---|
ConfigModifier()
Creates an empty modifier.
|
ConfigModifier(List<ConfigModifier.ScrapeEndpoint> endpoints,
Consumer<ConfigModifier> endAction)
Creates a modifier with default endpoints.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addScrapeEndpoint(ConfigModifier.ScrapeEndpoint entry)
Adds a scrape endpoint.
|
void |
end()
Call when configuration change setup is done.
|
Iterable<ConfigModifier.ScrapeEndpoint> |
scrapeEndpoints()
Returns all scrape endpoints.
|
private List<ConfigModifier.ScrapeEndpoint> scrapes
private Consumer<ConfigModifier> endAction
public ConfigModifier()
public ConfigModifier(List<ConfigModifier.ScrapeEndpoint> endpoints, Consumer<ConfigModifier> endAction)
endpoints - the endpointsendAction - the action to be called in end(), may be null for nonepublic void addScrapeEndpoint(ConfigModifier.ScrapeEndpoint entry)
entry - the endpoint to scrapepublic Iterable<ConfigModifier.ScrapeEndpoint> scrapeEndpoints()
public void end()
Copyright © 2022. All rights reserved.