[ 
https://issues.apache.org/jira/browse/NIFI-9817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17570324#comment-17570324
 ] 

ASF subversion and git services commented on NIFI-9817:
-------------------------------------------------------

Commit 0cd438d9e9b6826a4166200e2efeda0b8db0de92 in nifi's branch 
refs/heads/main from patalwell
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=0cd438d9e9 ]

NIFI-9817 Added Unit Validator to PutCloudWatchMetric

This closes #5905

Signed-off-by: David Handermann <[email protected]>


> Add a Validator for the PutCloudWatchMetric Processor's Unit Parameter
> ----------------------------------------------------------------------
>
>                 Key: NIFI-9817
>                 URL: https://issues.apache.org/jira/browse/NIFI-9817
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core UI
>    Affects Versions: 1.15.3
>         Environment: ProductName:     macOS
> ProductVersion:       12.2.1
> BuildVersion: 21D62
>            Reporter: Pat Alwell
>            Assignee: Pat Alwell
>            Priority: Minor
>         Attachments: Screen Shot 2022-01-29 at 1.22.02 PM.png, 
> nifi-9817-1.patch, nifi-9817.patch
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> 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].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to