Class CwConfiguration

    • Constructor Detail

      • CwConfiguration

        public CwConfiguration()
    • Method Detail

      • getAccessKey

        public String getAccessKey()
      • setAccessKey

        public void setAccessKey​(String accessKey)
        Amazon AWS Access Key
      • getSecretKey

        public String getSecretKey()
      • setSecretKey

        public void setSecretKey​(String secretKey)
        Amazon AWS Secret Key
      • getName

        public String getName()
      • setName

        public void setName​(String name)
        The metric name
      • getValue

        public Double getValue()
      • setValue

        public void setValue​(Double value)
        The metric value
      • getUnit

        public String getUnit()
      • setUnit

        public void setUnit​(String unit)
        The metric unit
      • getNamespace

        public String getNamespace()
      • setNamespace

        public void setNamespace​(String namespace)
        The metric namespace
      • setTimestamp

        public void setTimestamp​(Date timestamp)
        The metric timestamp
      • getTimestamp

        public Date getTimestamp()
      • getAmazonCwClient

        public com.amazonaws.services.cloudwatch.AmazonCloudWatch getAmazonCwClient()
      • setAmazonCwClient

        public void setAmazonCwClient​(com.amazonaws.services.cloudwatch.AmazonCloudWatch amazonCwClient)
        To use the AmazonCloudWatch as the client
      • getProxyProtocol

        public com.amazonaws.Protocol getProxyProtocol()
      • setProxyProtocol

        public void setProxyProtocol​(com.amazonaws.Protocol proxyProtocol)
        To define a proxy protocol when instantiating the CW client
      • getProxyHost

        public String getProxyHost()
      • setProxyHost

        public void setProxyHost​(String proxyHost)
        To define a proxy host when instantiating the CW client
      • getProxyPort

        public Integer getProxyPort()
      • setProxyPort

        public void setProxyPort​(Integer proxyPort)
        To define a proxy port when instantiating the CW client
      • getRegion

        public String getRegion()
      • setRegion

        public void setRegion​(String region)
        The region in which CW client needs to work. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_EAST_1) You'll need to use the name Regions.EU_WEST_1.name()
      • isAutoDiscoverClient

        public boolean isAutoDiscoverClient()
      • setAutoDiscoverClient

        public void setAutoDiscoverClient​(boolean autoDiscoverClient)
        Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry automatically otherwise it will skip that checking.