adamdebreceni commented on a change in pull request #1219: URL: https://github.com/apache/nifi-minifi-cpp/pull/1219#discussion_r781059919
########## File path: extensions/splunk/QuerySplunkIndexingStatus.cpp ########## @@ -0,0 +1,191 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#include "QuerySplunkIndexingStatus.h" + +#include <unordered_map> +#include <utility> + +#include "SplunkAttributes.h" + +#include "core/Resource.h" +#include "client/HTTPClient.h" +#include "utils/HTTPClient.h" + +#include "rapidjson/document.h" +#include "rapidjson/stringbuffer.h" +#include "rapidjson/writer.h" + +namespace org::apache::nifi::minifi::extensions::splunk { + +const core::Property QuerySplunkIndexingStatus::MaximumWaitingTime(core::PropertyBuilder::createProperty("Maximum Waiting Time") + ->withDescription("The maximum time the processor tries to acquire acknowledgement confirmation for an index, from the point of registration. " + "After the given amount of time, the processor considers the index as not acknowledged and transfers the FlowFile to the \"unacknowledged\" relationship.") + ->withDefaultValue("1 hour")->isRequired(true)->build()); Review comment: we could specify the validator with `withDefaultValue<core::TimePeriodValue>("1 hour")` and get feedback on a malformed property at yml parsing time -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
