public class ActivityRequest {
private String component;
- private String componentId;
private String maxExecutedAt;
private String minSubmittedAt;
private String onlyCurrents;
private List<String> status;
private String type;
- /**
- * Example value: "AU-TpxcA-iU5OvuD2FL0"
- */
- public ActivityRequest setComponentId(String componentId) {
- this.componentId = componentId;
- return this;
- }
-
- public String getComponentId() {
- return componentId;
- }
-
/**
* Example value: "sample:src/main/xoo/sample/Sample2.xoo"
*/
@Generated("sonar-ws-generator")
public class ActivityStatusRequest {
- private String componentId;
- private String componentKey;
-
- /**
- * Example value: "AU-TpxcA-iU5OvuD2FL0"
- */
- public ActivityStatusRequest setComponentId(String componentId) {
- this.componentId = componentId;
- return this;
- }
-
- public String getComponentId() {
- return componentId;
- }
+ private String component;
/**
* Example value: "my_project"
*/
- public ActivityStatusRequest setComponentKey(String componentKey) {
- this.componentKey = componentKey;
+ public ActivityStatusRequest setComponent(String component) {
+ this.component = component;
return this;
}
- public String getComponentKey() {
- return componentKey;
+ public String getComponent() {
+ return component;
}
}
public ActivityResponse activity(ActivityRequest request) {
return call(
new GetRequest(path("activity"))
- .setParam("componentId", request.getComponentId())
.setParam("component", request.getComponent())
.setParam("maxExecutedAt", request.getMaxExecutedAt())
.setParam("minSubmittedAt", request.getMinSubmittedAt())
public ActivityStatusWsResponse activityStatus(ActivityStatusRequest request) {
return call(
new GetRequest(path("activity_status"))
- .setParam("componentId", request.getComponentId())
- .setParam("componentKey", request.getComponentKey()),
+ .setParam("component", request.getComponent()),
ActivityStatusWsResponse.parser());
}