Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9817

Add a Validator for the PutCloudWatchMetric Processor's Unit Parameter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.15.3
    • 1.17.0
    • Core UI
    • None
    • ProductName: macOS
      ProductVersion: 12.2.1
      BuildVersion: 21D62

    Description

      The AWS PutCloudWatchMetric processor has a Unit property that requires a value from AWS's CloudWatch API specifications. This value is a constant from a predefined set of string parameters. The API enforces casing so a unit value of "bytes" fails to make a successful API request, whereas "Bytes" succeeds. I've attached a screenshot that leads to a stack trace.

      The proposed fix includes a new Validator() to warn the user about the issues prior to starting the PutCloudWatchMetric processor and a set to determine the partitions for the Unit field in API requests to AWS.

      This is the hyper link for the API specification details:

      [ https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html|https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html].

      Attachments

        1. Screen Shot 2022-01-29 at 1.22.02 PM.png
          253 kB
          Pat Alwell
        2. nifi-9817-1.patch
          17 kB
          Pat Alwell
        3. nifi-9817.patch
          17 kB
          Pat Alwell

        Issue Links

          Activity

            People

              pat_alwell Pat Alwell
              pat_alwell Pat Alwell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m