| POST | /{Workspace}/TsSend |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
/**
* To filter and return all time series objects modified since a date and time, use the query parameter modifiedsince = X where X = YYYY-MM-DDTHH:MM:SSZ
*/
public static class TsSend
{
public String Workspace = null;
public ArrayList<TimeSeries> Items = null;
public String getWorkspace() { return Workspace; }
public TsSend setWorkspace(String value) { this.Workspace = value; return this; }
public ArrayList<TimeSeries> getItems() { return Items; }
public TsSend setItems(ArrayList<TimeSeries> value) { this.Items = value; return this; }
}
public static class TimeSeries
{
public String Id = null;
public Long Date = null;
public String Uid = null;
public String Oid = null;
public String Tp = null;
public String Data = null;
public String getId() { return Id; }
public TimeSeries setId(String value) { this.Id = value; return this; }
public Long getDate() { return Date; }
public TimeSeries setDate(Long value) { this.Date = value; return this; }
public String getUid() { return Uid; }
public TimeSeries setUid(String value) { this.Uid = value; return this; }
public String getOid() { return Oid; }
public TimeSeries setOid(String value) { this.Oid = value; return this; }
public String getTp() { return Tp; }
public TimeSeries setTp(String value) { this.Tp = value; return this; }
public String getData() { return Data; }
public TimeSeries setData(String value) { this.Data = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/TsSend HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Workspace: String,
Items:
[
{
Id: String,
Date: 0,
Uid: String,
Oid: String,
Tp: String,
Data: String
}
]
}