GET sites/{id}/data?startDateFilter={startDateFilter}&endDateFilter={endDateFilter}&intervalTypeFilter={intervalTypeFilter}&intervalNumberFilter={intervalNumberFilter}

Returns all channel's data points for the site, in the range between the start date and the end date, as specified by the siteid, channelid, startdate, and enddate parameters or by the interval type and interval number

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

startDateFilter

date

None.

endDateFilter

date

None.

intervalTypeFilter

string

None.

intervalNumberFilter

string

None.

Body Parameters

None.

Response Information

Resource Description

ResponseVMOfChannelDataPointVM
NameDescriptionTypeAdditional information
Resources

Collection of ChannelDataPointVM

None.

ResultCode

FwApiResultCode

None.

ResultMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Resources": [
    {
      "ChannelId": 1,
      "ChannelName": "sample string 1",
      "DataPoints": [
        {
          "DataValue": "sample string 1",
          "DataTime": "2022-07-01T22:05:46.0856262-08:00"
        },
        {
          "DataValue": "sample string 1",
          "DataTime": "2022-07-01T22:05:46.0856262-08:00"
        }
      ]
    },
    {
      "ChannelId": 1,
      "ChannelName": "sample string 1",
      "DataPoints": [
        {
          "DataValue": "sample string 1",
          "DataTime": "2022-07-01T22:05:46.0856262-08:00"
        },
        {
          "DataValue": "sample string 1",
          "DataTime": "2022-07-01T22:05:46.0856262-08:00"
        }
      ]
    }
  ],
  "ResultCode": 0,
  "ResultMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<ResponseVMOfChannelDataPointVMFXJgzlgx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels">
  <ResultCode>Ok</ResultCode>
  <ResultMessage>sample string 1</ResultMessage>
  <Resources>
    <ChannelDataPointVM>
      <ChannelId>1</ChannelId>
      <ChannelName>sample string 1</ChannelName>
      <DataPoints>
        <DataPointVM>
          <DataTime>2022-07-01T22:05:46.0856262-08:00</DataTime>
          <DataValue>sample string 1</DataValue>
        </DataPointVM>
        <DataPointVM>
          <DataTime>2022-07-01T22:05:46.0856262-08:00</DataTime>
          <DataValue>sample string 1</DataValue>
        </DataPointVM>
      </DataPoints>
    </ChannelDataPointVM>
    <ChannelDataPointVM>
      <ChannelId>1</ChannelId>
      <ChannelName>sample string 1</ChannelName>
      <DataPoints>
        <DataPointVM>
          <DataTime>2022-07-01T22:05:46.0856262-08:00</DataTime>
          <DataValue>sample string 1</DataValue>
        </DataPointVM>
        <DataPointVM>
          <DataTime>2022-07-01T22:05:46.0856262-08:00</DataTime>
          <DataValue>sample string 1</DataValue>
        </DataPointVM>
      </DataPoints>
    </ChannelDataPointVM>
  </Resources>
</ResponseVMOfChannelDataPointVMFXJgzlgx>