| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /*
- * 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_CREATEHOSTAVAILABILITYREQUEST_H_
- #define ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_
- #include <string>
- #include <vector>
- #include <alibabacloud/core/RpcServiceRequest.h>
- #include <alibabacloud/cms/CmsExport.h>
- namespace AlibabaCloud
- {
- namespace Cms
- {
- namespace Model
- {
- class ALIBABACLOUD_CMS_EXPORT CreateHostAvailabilityRequest : public RpcServiceRequest
- {
- public:
- struct AlertConfigEscalationList
- {
- int times;
- std::string metricName;
- std::string value;
- std::string _operator;
- std::string aggregate;
- };
- public:
- CreateHostAvailabilityRequest();
- ~CreateHostAvailabilityRequest();
- std::string getTaskOptionHttpMethod()const;
- void setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod);
- std::vector<AlertConfigEscalationList> getAlertConfigEscalationList()const;
- void setAlertConfigEscalationList(const std::vector<AlertConfigEscalationList>& alertConfigEscalationList);
- std::string getTaskName()const;
- void setTaskName(const std::string& taskName);
- int getAlertConfigSilenceTime()const;
- void setAlertConfigSilenceTime(int alertConfigSilenceTime);
- std::string getTaskOptionHttpResponseCharset()const;
- void setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset);
- bool getTaskOptionHttpNegative()const;
- void setTaskOptionHttpNegative(bool taskOptionHttpNegative);
- int getAlertConfigNotifyType()const;
- void setAlertConfigNotifyType(int alertConfigNotifyType);
- std::string getTaskOptionTelnetOrPingHost()const;
- void setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost);
- std::string getTaskOptionHttpResponseMatchContent()const;
- void setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent);
- std::vector<std::string> getInstanceList()const;
- void setInstanceList(const std::vector<std::string>& instanceList);
- std::string getTaskType()const;
- void setTaskType(const std::string& taskType);
- long getGroupId()const;
- void setGroupId(long groupId);
- int getAlertConfigEndTime()const;
- void setAlertConfigEndTime(int alertConfigEndTime);
- std::string getTaskOptionHttpURI()const;
- void setTaskOptionHttpURI(const std::string& taskOptionHttpURI);
- std::string getTaskScope()const;
- void setTaskScope(const std::string& taskScope);
- int getAlertConfigStartTime()const;
- void setAlertConfigStartTime(int alertConfigStartTime);
- std::string getAlertConfigWebHook()const;
- void setAlertConfigWebHook(const std::string& alertConfigWebHook);
- private:
- std::string taskOptionHttpMethod_;
- std::vector<AlertConfigEscalationList> alertConfigEscalationList_;
- std::string taskName_;
- int alertConfigSilenceTime_;
- std::string taskOptionHttpResponseCharset_;
- bool taskOptionHttpNegative_;
- int alertConfigNotifyType_;
- std::string taskOptionTelnetOrPingHost_;
- std::string taskOptionHttpResponseMatchContent_;
- std::vector<std::string> instanceList_;
- std::string taskType_;
- long groupId_;
- int alertConfigEndTime_;
- std::string taskOptionHttpURI_;
- std::string taskScope_;
- int alertConfigStartTime_;
- std::string alertConfigWebHook_;
- };
- }
- }
- }
- #endif // !ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_
|