| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- /*
- * 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.
- */
- #include <alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h>
- using AlibabaCloud::Cms::Model::ApplyMetricRuleTemplateRequest;
- ApplyMetricRuleTemplateRequest::ApplyMetricRuleTemplateRequest() :
- RpcServiceRequest("cms", "2019-01-01", "ApplyMetricRuleTemplate")
- {
- setMethod(HttpRequest::Method::Post);
- }
- ApplyMetricRuleTemplateRequest::~ApplyMetricRuleTemplateRequest()
- {}
- std::string ApplyMetricRuleTemplateRequest::getApplyMode()const
- {
- return applyMode_;
- }
- void ApplyMetricRuleTemplateRequest::setApplyMode(const std::string& applyMode)
- {
- applyMode_ = applyMode;
- setParameter("ApplyMode", applyMode);
- }
- std::string ApplyMetricRuleTemplateRequest::getWebhook()const
- {
- return webhook_;
- }
- void ApplyMetricRuleTemplateRequest::setWebhook(const std::string& webhook)
- {
- webhook_ = webhook;
- setParameter("Webhook", webhook);
- }
- std::string ApplyMetricRuleTemplateRequest::getTemplateIds()const
- {
- return templateIds_;
- }
- void ApplyMetricRuleTemplateRequest::setTemplateIds(const std::string& templateIds)
- {
- templateIds_ = templateIds;
- setParameter("TemplateIds", templateIds);
- }
- long ApplyMetricRuleTemplateRequest::getEnableEndTime()const
- {
- return enableEndTime_;
- }
- void ApplyMetricRuleTemplateRequest::setEnableEndTime(long enableEndTime)
- {
- enableEndTime_ = enableEndTime;
- setParameter("EnableEndTime", std::to_string(enableEndTime));
- }
- long ApplyMetricRuleTemplateRequest::getGroupId()const
- {
- return groupId_;
- }
- void ApplyMetricRuleTemplateRequest::setGroupId(long groupId)
- {
- groupId_ = groupId;
- setParameter("GroupId", std::to_string(groupId));
- }
- long ApplyMetricRuleTemplateRequest::getNotifyLevel()const
- {
- return notifyLevel_;
- }
- void ApplyMetricRuleTemplateRequest::setNotifyLevel(long notifyLevel)
- {
- notifyLevel_ = notifyLevel;
- setParameter("NotifyLevel", std::to_string(notifyLevel));
- }
- long ApplyMetricRuleTemplateRequest::getEnableStartTime()const
- {
- return enableStartTime_;
- }
- void ApplyMetricRuleTemplateRequest::setEnableStartTime(long enableStartTime)
- {
- enableStartTime_ = enableStartTime;
- setParameter("EnableStartTime", std::to_string(enableStartTime));
- }
- long ApplyMetricRuleTemplateRequest::getSilenceTime()const
- {
- return silenceTime_;
- }
- void ApplyMetricRuleTemplateRequest::setSilenceTime(long silenceTime)
- {
- silenceTime_ = silenceTime;
- setParameter("SilenceTime", std::to_string(silenceTime));
- }
|