This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-monitoring/source/model/DescribeAnomalyDetectorsRequest.cpp

66 lines
1.6 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/monitoring/model/DescribeAnomalyDetectorsRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::CloudWatch::Model;
using namespace Aws::Utils;
DescribeAnomalyDetectorsRequest::DescribeAnomalyDetectorsRequest() :
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_namespaceHasBeenSet(false),
m_metricNameHasBeenSet(false),
m_dimensionsHasBeenSet(false)
{
}
Aws::String DescribeAnomalyDetectorsRequest::SerializePayload() const
{
Aws::StringStream ss;
ss << "Action=DescribeAnomalyDetectors&";
if(m_nextTokenHasBeenSet)
{
ss << "NextToken=" << StringUtils::URLEncode(m_nextToken.c_str()) << "&";
}
if(m_maxResultsHasBeenSet)
{
ss << "MaxResults=" << m_maxResults << "&";
}
if(m_namespaceHasBeenSet)
{
ss << "Namespace=" << StringUtils::URLEncode(m_namespace.c_str()) << "&";
}
if(m_metricNameHasBeenSet)
{
ss << "MetricName=" << StringUtils::URLEncode(m_metricName.c_str()) << "&";
}
if(m_dimensionsHasBeenSet)
{
unsigned dimensionsCount = 1;
for(auto& item : m_dimensions)
{
item.OutputToStream(ss, "Dimensions.member.", dimensionsCount, "");
dimensionsCount++;
}
}
ss << "Version=2010-08-01";
return ss.str();
}
void DescribeAnomalyDetectorsRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
{
uri.SetQueryString(SerializePayload());
}