AgriWebb API
GraphQL/Inputs

AddLevelReadingInput

Only one record per map feature per minute is saved. If multiple records for the same minute is passed in, only the latest record will be saved.

input AddLevelReadingInput {
  unit: LevelReadingUnit!
  value: Float!
  farmId: String!
  sensorId: String!
  time: Timestamp!
  mode: LevelReadingMode!
}

Fields

AddLevelReadingInput.unit ● LevelReadingUnit!
non-null
enum

This represents the type of unit used to measure the current level.

AddLevelReadingInput.value ● Float!
non-null
scalar

The value of the current level in the associated LevelReadingUnit

AddLevelReadingInput.farmId ● String!
non-null
scalar

The AgriWebb farm identifier that the sensor is on.

AddLevelReadingInput.sensorId ● String!
non-null
scalar

AgriWebb water tank identifier to associate the record with. You can retrieve a list of water tanks by querying mapFeatures(type: WATER_TANK)

AddLevelReadingInput.time ● Timestamp!
non-null
scalar

Time the level reading was recorded. Format will be UNIX epoch time with milliseconds. (e.g. 1564508046433)

AddLevelReadingInput.mode ● LevelReadingMode!
non-null
enum

Type of measurement being used to determine the levels of the map feature subject

Member Of

addLevelReadings

mutation

On this page

FieldsAddLevelReadingInput.unit ● LevelReadingUnit!
non-null
enum
AddLevelReadingInput.value ● Float!
non-null
scalar
AddLevelReadingInput.farmId ● String!
non-null
scalar
AddLevelReadingInput.sensorId ● String!
non-null
scalar
AddLevelReadingInput.time ● Timestamp!
non-null
scalar
AddLevelReadingInput.mode ● LevelReadingMode!
non-null
enum
Member Of