Class CloudWatchMetricStreamerConfig

    • Constructor Detail

      • CloudWatchMetricStreamerConfig

        public CloudWatchMetricStreamerConfig​(java.lang.String accessKeyId,
                                              java.lang.String secretAccessKey,
                                              java.lang.String region,
                                              com.elastisys.scale.commons.json.types.TimeInterval pollInterval,
                                              java.util.List<CloudWatchMetricStreamDefinition> metricStreams)
        Creates a new CloudWatchMetricStreamerConfig with the specified configuration values.
        Parameters:
        region - The Amazon EC2 region hosting the CloudWatch service to connect to.
        pollInterval - The polling interval for MetricStreams.
        metricStreams - The collection of published metric streams.
    • Method Detail

      • getAccessKeyId

        public java.lang.String getAccessKeyId()
        Returns the access key ID for the AWS account.
        Returns:
      • getSecretAccessKey

        public java.lang.String getSecretAccessKey()
        Returns the secret access key for the AWS account.
        Returns:
      • getRegion

        public java.lang.String getRegion()
        Returns the Amazon EC2 region hosting the CloudWatch service to connect to.
        Returns:
      • getPollInterval

        public com.elastisys.scale.commons.json.types.TimeInterval getPollInterval()
        Returns the polling interval (given in seconds) for metric streams.
        Returns:
      • validate

        public void validate()
                      throws java.lang.IllegalArgumentException
        Validates the configuration (checks if there are any obvious errors).
        Throws:
        java.lang.IllegalArgumentException - Thrown if there are obvious errors, such as missing values the values are out of permissible ranges.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object