ScraperArgs class
The set of arguments for Scraper. The set of arguments for Scraper.
Constructors
-
ScraperArgs({Input<
String?> ? alias, required Input<ScraperDestination> destination, Input<ScraperExporter?> ? exporter, Input<String?> ? region, Input<ScraperRoleConfiguration?> ? roleConfiguration, required Input<String> scrapeConfiguration, Input<ScraperSource?> ? source, Input<Map< ? tags, Input<String, String> ?>ScraperTimeouts?> ? timeouts}) -
Creates a new ScraperArgs.
aliasName to associate with the managed scraper. This is for your use, and does not need to be unique.destinationConfiguration block for the managed scraper to send metrics to. SeedestinationBlock for details.exporterConfiguration block for additional exporters. SeeexporterBlock for details.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.roleConfigurationConfiguration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. SeeroleConfigurationBlock for details.scrapeConfigurationConfiguration file to use in the new scraper. For more information, see Scraper configuration.sourceConfiguration block to specify where the managed scraper will collect metrics from. SeesourceBlock for details.tagsMap of tags to assign to the resource. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.timeoutsOptional.const -
ScraperArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
alias
→ Input<
String?> ? -
Name to associate with the managed scraper. This is for your use, and does not need to be unique.
final
-
destination
→ Input<
ScraperDestination> -
Configuration block for the managed scraper to send metrics to. See
destinationBlock for details.final -
exporter
→ Input<
ScraperExporter?> ? -
Configuration block for additional exporters. See
exporterBlock for details.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
-
roleConfiguration
→ Input<
ScraperRoleConfiguration?> ? -
Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See
roleConfigurationBlock for details.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scrapeConfiguration
→ Input<
String> -
Configuration file to use in the new scraper. For more information, see Scraper configuration.
final
-
source
→ Input<
ScraperSource?> ? -
Configuration block to specify where the managed scraper will collect metrics from. See
sourceBlock for details.final -
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
timeouts
→ Input<
ScraperTimeouts?> ? -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited