Create Job Support Setting Status.
This commit is contained in:
@@ -25,15 +25,6 @@ CreateAppGroupRequest::CreateAppGroupRequest()
|
||||
|
||||
CreateAppGroupRequest::~CreateAppGroupRequest() {}
|
||||
|
||||
int CreateAppGroupRequest::getMaxJobs() const {
|
||||
return maxJobs_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setMaxJobs(int maxJobs) {
|
||||
maxJobs_ = maxJobs;
|
||||
setParameter(std::string("MaxJobs"), std::to_string(maxJobs));
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getNamespaceName() const {
|
||||
return namespaceName_;
|
||||
}
|
||||
@@ -61,24 +52,6 @@ void CreateAppGroupRequest::setScheduleBusyWorkers(bool scheduleBusyWorkers) {
|
||||
setParameter(std::string("ScheduleBusyWorkers"), scheduleBusyWorkers ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getMetricsThresholdJson() const {
|
||||
return metricsThresholdJson_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setMetricsThresholdJson(const std::string &metricsThresholdJson) {
|
||||
metricsThresholdJson_ = metricsThresholdJson;
|
||||
setParameter(std::string("MetricsThresholdJson"), metricsThresholdJson);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
@@ -88,15 +61,6 @@ void CreateAppGroupRequest::setDescription(const std::string &description) {
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getMonitorConfigJson() const {
|
||||
return monitorConfigJson_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setMonitorConfigJson(const std::string &monitorConfigJson) {
|
||||
monitorConfigJson_ = monitorConfigJson;
|
||||
setParameter(std::string("MonitorConfigJson"), monitorConfigJson);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
@@ -115,15 +79,6 @@ void CreateAppGroupRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getAlarmJson() const {
|
||||
return alarmJson_;
|
||||
}
|
||||
@@ -133,15 +88,6 @@ void CreateAppGroupRequest::setAlarmJson(const std::string &alarmJson) {
|
||||
setParameter(std::string("AlarmJson"), alarmJson);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getAppKey() const {
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setAppKey(const std::string &appKey) {
|
||||
appKey_ = appKey;
|
||||
setParameter(std::string("AppKey"), appKey);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getMonitorContactsJson() const {
|
||||
return monitorContactsJson_;
|
||||
}
|
||||
@@ -151,3 +97,57 @@ void CreateAppGroupRequest::setMonitorContactsJson(const std::string &monitorCon
|
||||
setParameter(std::string("MonitorContactsJson"), monitorContactsJson);
|
||||
}
|
||||
|
||||
int CreateAppGroupRequest::getMaxJobs() const {
|
||||
return maxJobs_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setMaxJobs(int maxJobs) {
|
||||
maxJobs_ = maxJobs;
|
||||
setParameter(std::string("MaxJobs"), std::to_string(maxJobs));
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getMetricsThresholdJson() const {
|
||||
return metricsThresholdJson_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setMetricsThresholdJson(const std::string &metricsThresholdJson) {
|
||||
metricsThresholdJson_ = metricsThresholdJson;
|
||||
setParameter(std::string("MetricsThresholdJson"), metricsThresholdJson);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getMonitorConfigJson() const {
|
||||
return monitorConfigJson_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setMonitorConfigJson(const std::string &monitorConfigJson) {
|
||||
monitorConfigJson_ = monitorConfigJson;
|
||||
setParameter(std::string("MonitorConfigJson"), monitorConfigJson);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
std::string CreateAppGroupRequest::getAppKey() const {
|
||||
return appKey_;
|
||||
}
|
||||
|
||||
void CreateAppGroupRequest::setAppKey(const std::string &appKey) {
|
||||
appKey_ = appKey;
|
||||
setParameter(std::string("AppKey"), appKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -320,3 +320,12 @@ void CreateJobRequest::setParameters(const std::string ¶meters) {
|
||||
setBodyParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
int CreateJobRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CreateJobRequest::setStatus(int status) {
|
||||
status_ = status;
|
||||
setBodyParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,6 @@ void GetWorkerListRequest::setNamespaceSource(const std::string &namespaceSource
|
||||
setParameter(std::string("NamespaceSource"), namespaceSource);
|
||||
}
|
||||
|
||||
std::string GetWorkerListRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetWorkerListRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetWorkerListRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
@@ -52,6 +43,15 @@ void GetWorkerListRequest::setGroupId(const std::string &groupId) {
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string GetWorkerListRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetWorkerListRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetWorkerListRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user