| Requires any of the roles: | Worker, Agent, Administrator |
| GET,OPTIONS | /v1/AgentPolicyCountDrilldown/{AgentId} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/AgentPolicyCountDrilldown |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AgentPolicyCountDrilldownRequest
{
public Integer AgentId = null;
public Integer getAgentId() { return AgentId; }
public AgentPolicyCountDrilldownRequest setAgentId(Integer value) { this.AgentId = value; return this; }
}
public static class AgentPolicyCountDrilldownResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<AgentPolicyCountDrilldown> result = new ArrayList<AgentPolicyCountDrilldown>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AgentPolicyCountDrilldownResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<AgentPolicyCountDrilldown> getResult() { return result; }
public AgentPolicyCountDrilldownResponse setResult(ArrayList<AgentPolicyCountDrilldown> value) { this.result = value; return this; }
}
public static class AgentPolicyCountDrilldown
{
public String PolicyType = null;
public Integer TotalLifeTime = null;
public Integer TotalLifeTimeStartDate = null;
public Integer Total365 = null;
public Integer TotalYtd = null;
public Integer TotalMtd = null;
public String getPolicyType() { return PolicyType; }
public AgentPolicyCountDrilldown setPolicyType(String value) { this.PolicyType = value; return this; }
public Integer getTotalLifeTime() { return TotalLifeTime; }
public AgentPolicyCountDrilldown setTotalLifeTime(Integer value) { this.TotalLifeTime = value; return this; }
public Integer getTotalLifeTimeStartDate() { return TotalLifeTimeStartDate; }
public AgentPolicyCountDrilldown setTotalLifeTimeStartDate(Integer value) { this.TotalLifeTimeStartDate = value; return this; }
public Integer getTotal365() { return Total365; }
public AgentPolicyCountDrilldown setTotal365(Integer value) { this.Total365 = value; return this; }
public Integer getTotalYtd() { return TotalYtd; }
public AgentPolicyCountDrilldown setTotalYtd(Integer value) { this.TotalYtd = value; return this; }
public Integer getTotalMtd() { return TotalMtd; }
public AgentPolicyCountDrilldown setTotalMtd(Integer value) { this.TotalMtd = value; return this; }
}
}
Java AgentPolicyCountDrilldownRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/AgentPolicyCountDrilldown/{AgentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"result":[{"PolicyType":"String","TotalLifeTime":0,"TotalLifeTimeStartDate":0,"Total365":0,"TotalYtd":0,"TotalMtd":0}]}