70 lines
2.3 KiB
C++
70 lines
2.3 KiB
C++
/*
|
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
*
|
|
* Licensed 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.
|
|
*/
|
|
|
|
#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_
|
|
#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_
|
|
|
|
#include <alibabacloud/cms/CmsExport.h>
|
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
namespace AlibabaCloud {
|
|
namespace Cms {
|
|
namespace Model {
|
|
class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleTemplateRequest : public RpcServiceRequest {
|
|
public:
|
|
struct AlertTemplates {
|
|
std::string escalationsWarnThreshold;
|
|
int period;
|
|
std::string webhook;
|
|
std::string escalationsWarnComparisonOperator;
|
|
std::string escalationsCriticalStatistics;
|
|
int escalationsInfoTimes;
|
|
std::string ruleName;
|
|
std::string escalationsInfoStatistics;
|
|
int escalationsCriticalTimes;
|
|
std::string escalationsInfoComparisonOperator;
|
|
std::string escalationsInfoThreshold;
|
|
std::string escalationsWarnStatistics;
|
|
std::string _namespace;
|
|
std::string selector;
|
|
std::string metricName;
|
|
int escalationsWarnTimes;
|
|
std::string category;
|
|
std::string escalationsCriticalComparisonOperator;
|
|
std::string escalationsCriticalThreshold;
|
|
};
|
|
CreateMetricRuleTemplateRequest();
|
|
~CreateMetricRuleTemplateRequest();
|
|
std::string getDescription() const;
|
|
void setDescription(const std::string &description);
|
|
std::string getName() const;
|
|
void setName(const std::string &name);
|
|
std::vector<AlertTemplates> getAlertTemplates() const;
|
|
void setAlertTemplates(const std::vector<AlertTemplates> &alertTemplates);
|
|
|
|
private:
|
|
std::string description_;
|
|
std::string name_;
|
|
std::vector<AlertTemplates> alertTemplates_;
|
|
};
|
|
} // namespace Model
|
|
} // namespace Cms
|
|
} // namespace AlibabaCloud
|
|
#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_
|