Field Squared API Services

<back to all web services

StatusCheck

Check on Status of Long Running Services

The following routes are available for this service:
GET/{Workspace}/StatusCheck/{Id}
GET/{Workspace}/StatusCheck
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Check on Status of Long Running Services
    */
    public static class StatusCheck
    {
        public String Workspace = null;
        public String Id = null;
        public ArrayList<StatusCheckItem> Items = null;
        
        public String getWorkspace() { return Workspace; }
        public StatusCheck setWorkspace(String value) { this.Workspace = value; return this; }
        public String getId() { return Id; }
        public StatusCheck setId(String value) { this.Id = value; return this; }
        public ArrayList<StatusCheckItem> getItems() { return Items; }
        public StatusCheck setItems(ArrayList<StatusCheckItem> value) { this.Items = value; return this; }
    }

    public static class StatusCheckItem
    {
        public String RuleId = null;
        public String Name = null;
        public String Description = null;
        public String Status = null;
        public String PercentComplete = null;
        public String LastUpdated = null;
        
        public String getRuleId() { return RuleId; }
        public StatusCheckItem setRuleId(String value) { this.RuleId = value; return this; }
        public String getName() { return Name; }
        public StatusCheckItem setName(String value) { this.Name = value; return this; }
        public String getDescription() { return Description; }
        public StatusCheckItem setDescription(String value) { this.Description = value; return this; }
        public String getStatus() { return Status; }
        public StatusCheckItem setStatus(String value) { this.Status = value; return this; }
        public String getPercentComplete() { return PercentComplete; }
        public StatusCheckItem setPercentComplete(String value) { this.PercentComplete = value; return this; }
        public String getLastUpdated() { return LastUpdated; }
        public StatusCheckItem setLastUpdated(String value) { this.LastUpdated = value; return this; }
    }

}

Java StatusCheck DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /{Workspace}/StatusCheck/{Id} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/xml