| GET | /JobHeartbeat |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class JobHeartbeatListRequest
{
public Boolean overdueOnly = null;
public Boolean isOverdueOnly() { return overdueOnly; }
public JobHeartbeatListRequest setOverdueOnly(Boolean value) { this.overdueOnly = value; return this; }
}
public static class JobHeartbeatListResult
{
public ArrayList<JobHeartbeatStatus> items = null;
public Integer overdueCount = null;
public Integer statusCode = null;
public String message = null;
public ArrayList<JobHeartbeatStatus> getItems() { return items; }
public JobHeartbeatListResult setItems(ArrayList<JobHeartbeatStatus> value) { this.items = value; return this; }
public Integer getOverdueCount() { return overdueCount; }
public JobHeartbeatListResult setOverdueCount(Integer value) { this.overdueCount = value; return this; }
public Integer getStatusCode() { return statusCode; }
public JobHeartbeatListResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public JobHeartbeatListResult setMessage(String value) { this.message = value; return this; }
}
public static class JobHeartbeatStatus
{
public String jobName = null;
public String description = null;
public Boolean enabled = null;
public Date lastOkAt = null;
public Integer minutesSinceOk = null;
public Integer expectedIntervalMinutes = null;
public Boolean overdue = null;
public Long itemsProcessed = null;
public Integer consecutiveFailures = null;
public Boolean succeedingButIdle = null;
public String getJobName() { return jobName; }
public JobHeartbeatStatus setJobName(String value) { this.jobName = value; return this; }
public String getDescription() { return description; }
public JobHeartbeatStatus setDescription(String value) { this.description = value; return this; }
public Boolean isEnabled() { return enabled; }
public JobHeartbeatStatus setEnabled(Boolean value) { this.enabled = value; return this; }
public Date getLastOkAt() { return lastOkAt; }
public JobHeartbeatStatus setLastOkAt(Date value) { this.lastOkAt = value; return this; }
public Integer getMinutesSinceOk() { return minutesSinceOk; }
public JobHeartbeatStatus setMinutesSinceOk(Integer value) { this.minutesSinceOk = value; return this; }
public Integer getExpectedIntervalMinutes() { return expectedIntervalMinutes; }
public JobHeartbeatStatus setExpectedIntervalMinutes(Integer value) { this.expectedIntervalMinutes = value; return this; }
public Boolean isOverdue() { return overdue; }
public JobHeartbeatStatus setOverdue(Boolean value) { this.overdue = value; return this; }
public Long getItemsProcessed() { return itemsProcessed; }
public JobHeartbeatStatus setItemsProcessed(Long value) { this.itemsProcessed = value; return this; }
public Integer getConsecutiveFailures() { return consecutiveFailures; }
public JobHeartbeatStatus setConsecutiveFailures(Integer value) { this.consecutiveFailures = value; return this; }
public Boolean isSucceedingButIdle() { return succeedingButIdle; }
public JobHeartbeatStatus setSucceedingButIdle(Boolean value) { this.succeedingButIdle = value; return this; }
}
}
Java JobHeartbeatListRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /JobHeartbeat HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<JobHeartbeatListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Items>
<JobHeartbeatStatus>
<ConsecutiveFailures>0</ConsecutiveFailures>
<Description>String</Description>
<Enabled>false</Enabled>
<ExpectedIntervalMinutes>0</ExpectedIntervalMinutes>
<ItemsProcessed>0</ItemsProcessed>
<JobName>String</JobName>
<LastOkAt>0001-01-01T00:00:00</LastOkAt>
<MinutesSinceOk>0</MinutesSinceOk>
<Overdue>false</Overdue>
<SucceedingButIdle>false</SucceedingButIdle>
</JobHeartbeatStatus>
</Items>
<Message>String</Message>
<OverdueCount>0</OverdueCount>
<StatusCode>0</StatusCode>
</JobHeartbeatListResult>