POST public/v2/streams/logs

Bulk upload logs into many streams

Request Information

URI Parameters

None.

Body Parameters

Collection of BitPool.Base.DTO.StreamData
NameDescriptionTypeAdditional information
StreamKey

globally unique identifier

None.

Values

Collection of BitPool.Base.Entities.Slog

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "StreamKey": "0ddcb5d7-295f-423e-93a4-684accca243d",
    "Values": [
      {
        "Ts": "2019-05-19T19:17:56.837+00:00",
        "Val": 1.1,
        "ValStr": "sample string 2",
        "Calculated": true
      },
      {
        "Ts": "2019-05-19T19:17:56.837+00:00",
        "Val": 1.1,
        "ValStr": "sample string 2",
        "Calculated": true
      }
    ]
  },
  {
    "StreamKey": "0ddcb5d7-295f-423e-93a4-684accca243d",
    "Values": [
      {
        "Ts": "2019-05-19T19:17:56.837+00:00",
        "Val": 1.1,
        "ValStr": "sample string 2",
        "Calculated": true
      },
      {
        "Ts": "2019-05-19T19:17:56.837+00:00",
        "Val": 1.1,
        "ValStr": "sample string 2",
        "Calculated": true
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfStreamData>
  <StreamData>
    <StreamKey>0ddcb5d7-295f-423e-93a4-684accca243d</StreamKey>
    <Values>
      <Slog>
        <Ts>2019-05-19T19:17:56.8379586+00:00</Ts>
        <Val>1.1</Val>
        <ValStr>sample string 2</ValStr>
        <Calculated>true</Calculated>
      </Slog>
      <Slog>
        <Ts>2019-05-19T19:17:56.8379586+00:00</Ts>
        <Val>1.1</Val>
        <ValStr>sample string 2</ValStr>
        <Calculated>true</Calculated>
      </Slog>
    </Values>
  </StreamData>
  <StreamData>
    <StreamKey>0ddcb5d7-295f-423e-93a4-684accca243d</StreamKey>
    <Values>
      <Slog>
        <Ts>2019-05-19T19:17:56.8379586+00:00</Ts>
        <Val>1.1</Val>
        <ValStr>sample string 2</ValStr>
        <Calculated>true</Calculated>
      </Slog>
      <Slog>
        <Ts>2019-05-19T19:17:56.8379586+00:00</Ts>
        <Val>1.1</Val>
        <ValStr>sample string 2</ValStr>
        <Calculated>true</Calculated>
      </Slog>
    </Values>
  </StreamData>
</ArrayOfStreamData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string>sample string 1</string>