-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add solution to response for GetAlerts Api.
- Loading branch information
Showing
53 changed files
with
1,979 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
...ms/src/main/java/com/aliyuncs/arms/model/v20190808/CreatePrometheusMonitoringRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package com.aliyuncs.arms.model.v20190808; | ||
|
||
import com.aliyuncs.RpcAcsRequest; | ||
import com.aliyuncs.http.MethodType; | ||
import com.aliyuncs.arms.Endpoint; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class CreatePrometheusMonitoringRequest extends RpcAcsRequest<CreatePrometheusMonitoringResponse> { | ||
|
||
|
||
private String configYaml; | ||
|
||
private String clusterId; | ||
|
||
private String type; | ||
|
||
private String status; | ||
public CreatePrometheusMonitoringRequest() { | ||
super("ARMS", "2019-08-08", "CreatePrometheusMonitoring", "arms"); | ||
setMethod(MethodType.POST); | ||
try { | ||
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); | ||
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); | ||
} catch (Exception e) {} | ||
} | ||
|
||
public String getConfigYaml() { | ||
return this.configYaml; | ||
} | ||
|
||
public void setConfigYaml(String configYaml) { | ||
this.configYaml = configYaml; | ||
if(configYaml != null){ | ||
putBodyParameter("ConfigYaml", configYaml); | ||
} | ||
} | ||
|
||
public String getClusterId() { | ||
return this.clusterId; | ||
} | ||
|
||
public void setClusterId(String clusterId) { | ||
this.clusterId = clusterId; | ||
if(clusterId != null){ | ||
putQueryParameter("ClusterId", clusterId); | ||
} | ||
} | ||
|
||
public String getType() { | ||
return this.type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
if(type != null){ | ||
putQueryParameter("Type", type); | ||
} | ||
} | ||
|
||
public String getStatus() { | ||
return this.status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
if(status != null){ | ||
putQueryParameter("Status", status); | ||
} | ||
} | ||
|
||
@Override | ||
public Class<CreatePrometheusMonitoringResponse> getResponseClass() { | ||
return CreatePrometheusMonitoringResponse.class; | ||
} | ||
|
||
} |
Oops, something went wrong.