NOWi Water Monitoring GraphQL API

NOWi GraphQL API

API Endpoints
https://graphql.nowisensors.com/graphql
Headers
# Your API token from the dashboard. Must be included in all API calls.
Authorization: x-api-key <YOUR_API_KEY>
Version

0.0.1

Queries

getSensorData

Response

Returns a SensorData

Arguments
Name Description
id - ID!

Example

Query
query getSensorData($id: ID!) {
  getSensorData(id: $id) {
    id
    devEui
    waterMeterID
    date
    flowRate
    totalGallons
    temperatureC
    rssi
    snr
    apiVersion
    totalPulses
    fcnt
    hotspots {
      ...HotspotFragment
    }
    longestDurationBetweenPulsesSeconds
    lowestPulseRate
    notConfigured
    holdTimeSeconds
    rawData
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getSensorData": {
      "id": "4",
      "devEui": 4,
      "waterMeterID": 4,
      "date": AWSDateTime,
      "flowRate": 123.45,
      "totalGallons": 987.65,
      "temperatureC": 123.45,
      "rssi": 123.45,
      "snr": 987.65,
      "apiVersion": 987,
      "totalPulses": 987.65,
      "fcnt": 987,
      "hotspots": [Hotspot],
      "longestDurationBetweenPulsesSeconds": 123.45,
      "lowestPulseRate": 123.45,
      "notConfigured": true,
      "holdTimeSeconds": 123,
      "rawData": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

listSensorData

Response

Returns a ModelSensorDataConnection

Arguments
Name Description
filter - ModelSensorDataFilterInput
limit - Int
nextToken - String

Example

Query
query listSensorData(
  $filter: ModelSensorDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listSensorData(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...SensorDataFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelSensorDataFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listSensorData": {
      "items": [SensorData],
      "nextToken": "xyz789"
    }
  }
}

sensorDataByDate

Response

Returns a ModelSensorDataConnection

Arguments
Name Description
devEui - ID!
date - ModelStringKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelSensorDataFilterInput
limit - Int
nextToken - String

Example

Query
query sensorDataByDate(
  $devEui: ID!,
  $date: ModelStringKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelSensorDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  sensorDataByDate(
    devEui: $devEui,
    date: $date,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...SensorDataFragment
    }
    nextToken
  }
}
Variables
{
  "devEui": "4",
  "date": ModelStringKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelSensorDataFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "sensorDataByDate": {
      "items": [SensorData],
      "nextToken": "abc123"
    }
  }
}

waterPresenceDataByDevEui

Arguments
Name Description
devEui - ID!
date - ModelStringKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelWaterPresenceDataFilterInput
limit - Int
nextToken - String

Example

Query
query waterPresenceDataByDevEui(
  $devEui: ID!,
  $date: ModelStringKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelWaterPresenceDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  waterPresenceDataByDevEui(
    devEui: $devEui,
    date: $date,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...WaterPresenceDataFragment
    }
    nextToken
  }
}
Variables
{
  "devEui": 4,
  "date": ModelStringKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelWaterPresenceDataFilterInput,
  "limit": 123,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "waterPresenceDataByDevEui": {
      "items": [WaterPresenceData],
      "nextToken": "xyz789"
    }
  }
}

Subscriptions

onCreateSensorData

Response

Returns a SensorData

Example

Query
subscription onCreateSensorData {
  onCreateSensorData {
    id
    devEui
    waterMeterID
    date
    flowRate
    totalGallons
    temperatureC
    rssi
    snr
    apiVersion
    totalPulses
    fcnt
    hotspots {
      ...HotspotFragment
    }
    longestDurationBetweenPulsesSeconds
    lowestPulseRate
    notConfigured
    holdTimeSeconds
    rawData
    createdAt
    updatedAt
  }
}
Response
{
  "data": {
    "onCreateSensorData": {
      "id": "4",
      "devEui": "4",
      "waterMeterID": 4,
      "date": AWSDateTime,
      "flowRate": 987.65,
      "totalGallons": 123.45,
      "temperatureC": 123.45,
      "rssi": 987.65,
      "snr": 123.45,
      "apiVersion": 123,
      "totalPulses": 987.65,
      "fcnt": 123,
      "hotspots": [Hotspot],
      "longestDurationBetweenPulsesSeconds": 123.45,
      "lowestPulseRate": 987.65,
      "notConfigured": true,
      "holdTimeSeconds": 123,
      "rawData": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

onCreateWaterPresenceData

Response

Returns a WaterPresenceData

Arguments
Name Description
filter - ModelSubscriptionWaterPresenceDataFilterInput

Example

Query
subscription onCreateWaterPresenceData($filter: ModelSubscriptionWaterPresenceDataFilterInput) {
  onCreateWaterPresenceData(filter: $filter) {
    id
    uuid
    date
    batteryMilliVolts
    locationID
    devEui
    waterPresent
    waterEvents
    waterPresentDurationMin
    snr
    rssi
    fcnt
    hotspots {
      ...HotspotFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{"filter": ModelSubscriptionWaterPresenceDataFilterInput}
Response
{
  "data": {
    "onCreateWaterPresenceData": {
      "id": "4",
      "uuid": 4,
      "date": AWSDateTime,
      "batteryMilliVolts": 123.45,
      "locationID": 4,
      "devEui": "4",
      "waterPresent": true,
      "waterEvents": 123,
      "waterPresentDurationMin": 123,
      "snr": 987.65,
      "rssi": 987.65,
      "fcnt": 987,
      "hotspots": [Hotspot],
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

Types

AWSDateTime

Description

The AWSDateTime scalar type provided by AWS AppSync, represents a valid extended ISO 8601 DateTime string. In other words, this scalar type accepts datetime strings of the form YYYY-MM-DDThh:mm:ss.SSSZ. The scalar can also accept "negative years" of the form -YYYY which correspond to years before 0000. For example, "-2017-01-01T00:00Z" and "-9999-01-01T00:00Z" are both valid datetime strings. The field after the two digit seconds field is a nanoseconds field. It can accept between 1 and 9 digits. So, for example, "1970-01-01T12:00:00.2Z", "1970-01-01T12:00:00.277Z" and "1970-01-01T12:00:00.123456789Z" are all valid datetime strings. The seconds and nanoseconds fields are optional (the seconds field must be specified if the nanoseconds field is to be used). The time zone offset is compulsory for this scalar. The time zone offset must either be Z (representing the UTC time zone) or be in the format ±hh:mm:ss. The seconds field in the timezone offset will be considered valid even though it is not part of the ISO 8601 standard.

Example
AWSDateTime

Boolean

Description

Built-in Boolean

Float

Description

Built-in Float

Example
987.65

Hotspot

Fields
Field Name Description
channel - Int
frequency - Float
lat - Float
long - Float
name - String
rssi - Float
snr - Float
spreading - String
status - String
Example
{
  "channel": 987,
  "frequency": 123.45,
  "lat": 123.45,
  "long": 987.65,
  "name": "xyz789",
  "rssi": 987.65,
  "snr": 123.45,
  "spreading": "xyz789",
  "status": "xyz789"
}

ID

Description

Built-in ID

Example
"4"

Int

Description

Built-in Int

Example
987

ModelAttributeTypes

Values
Enum Value Description

binary

binarySet

bool

list

map

number

numberSet

string

stringSet

_null

Example
"binary"

ModelBooleanInput

Fields
Input Field Description
ne - Boolean
eq - Boolean
attributeExists - Boolean
attributeType - ModelAttributeTypes
Example
{"ne": true, "eq": true, "attributeExists": false, "attributeType": "binary"}

ModelDeviceConfigurationFilterInput

Example
{
  "id": ModelIDInput,
  "organizationID": ModelIDInput,
  "name": ModelStringInput,
  "startDate": ModelStringInput,
  "endDate": ModelStringInput,
  "pulsesPerGallon": ModelFloatInput,
  "manufacturer": ModelStringInput,
  "model": ModelStringInput,
  "size": ModelStringInput,
  "and": [ModelDeviceConfigurationFilterInput],
  "or": [ModelDeviceConfigurationFilterInput],
  "not": ModelDeviceConfigurationFilterInput
}

ModelFloatInput

Fields
Input Field Description
ne - Float
eq - Float
le - Float
lt - Float
ge - Float
gt - Float
between - [Float]
attributeExists - Boolean
attributeType - ModelAttributeTypes
Example
{
  "ne": 987.65,
  "eq": 123.45,
  "le": 123.45,
  "lt": 987.65,
  "ge": 123.45,
  "gt": 123.45,
  "between": [987.65],
  "attributeExists": true,
  "attributeType": "binary"
}

ModelHardwareDataConditionInput

Fields
Input Field Description
devEui - ModelIDInput
waterMeterID - ModelIDInput
date - ModelStringInput
batteryPercent - ModelFloatInput
batteryMilliVolts - ModelFloatInput
apiVersion - ModelIntInput
temperatureC - ModelFloatInput
holdTimeSeconds - ModelIntInput
and - [ModelHardwareDataConditionInput]
or - [ModelHardwareDataConditionInput]
not - ModelHardwareDataConditionInput
Example
{
  "devEui": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "date": ModelStringInput,
  "batteryPercent": ModelFloatInput,
  "batteryMilliVolts": ModelFloatInput,
  "apiVersion": ModelIntInput,
  "temperatureC": ModelFloatInput,
  "holdTimeSeconds": ModelIntInput,
  "and": [ModelHardwareDataConditionInput],
  "or": [ModelHardwareDataConditionInput],
  "not": ModelHardwareDataConditionInput
}

ModelHardwareDataFilterInput

Fields
Input Field Description
devEui - ModelIDInput
waterMeterID - ModelIDInput
date - ModelStringInput
batteryPercent - ModelFloatInput
batteryMilliVolts - ModelFloatInput
apiVersion - ModelIntInput
temperatureC - ModelFloatInput
holdTimeSeconds - ModelIntInput
and - [ModelHardwareDataFilterInput]
or - [ModelHardwareDataFilterInput]
not - ModelHardwareDataFilterInput
Example
{
  "devEui": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "date": ModelStringInput,
  "batteryPercent": ModelFloatInput,
  "batteryMilliVolts": ModelFloatInput,
  "apiVersion": ModelIntInput,
  "temperatureC": ModelFloatInput,
  "holdTimeSeconds": ModelIntInput,
  "and": [ModelHardwareDataFilterInput],
  "or": [ModelHardwareDataFilterInput],
  "not": ModelHardwareDataFilterInput
}

ModelIDInput

Fields
Input Field Description
ne - ID
eq - ID
le - ID
lt - ID
ge - ID
gt - ID
contains - ID
notContains - ID
between - [ID]
beginsWith - ID
attributeExists - Boolean
attributeType - ModelAttributeTypes
size - ModelSizeInput
Example
{
  "ne": "4",
  "eq": "4",
  "le": 4,
  "lt": "4",
  "ge": "4",
  "gt": "4",
  "contains": "4",
  "notContains": 4,
  "between": [4],
  "beginsWith": "4",
  "attributeExists": true,
  "attributeType": "binary",
  "size": ModelSizeInput
}

ModelIntInput

Fields
Input Field Description
ne - Int
eq - Int
le - Int
lt - Int
ge - Int
gt - Int
between - [Int]
attributeExists - Boolean
attributeType - ModelAttributeTypes
Example
{
  "ne": 123,
  "eq": 123,
  "le": 987,
  "lt": 123,
  "ge": 123,
  "gt": 123,
  "between": [123],
  "attributeExists": false,
  "attributeType": "binary"
}

ModelLocationFilterInput

Fields
Input Field Description
id - ModelIDInput
address - ModelStringInput
addressShort - ModelStringInput
name - ModelStringInput
googlePlaceID - ModelStringInput
utcOffsetMinutes - ModelIntInput
organizationID - ModelIDInput
alertsSilenced - ModelBooleanInput
notes - ModelStringInput
locationGroupID - ModelIDInput
and - [ModelLocationFilterInput]
or - [ModelLocationFilterInput]
not - ModelLocationFilterInput
Example
{
  "id": ModelIDInput,
  "address": ModelStringInput,
  "addressShort": ModelStringInput,
  "name": ModelStringInput,
  "googlePlaceID": ModelStringInput,
  "utcOffsetMinutes": ModelIntInput,
  "organizationID": ModelIDInput,
  "alertsSilenced": ModelBooleanInput,
  "notes": ModelStringInput,
  "locationGroupID": ModelIDInput,
  "and": [ModelLocationFilterInput],
  "or": [ModelLocationFilterInput],
  "not": ModelLocationFilterInput
}

ModelSensorDataConditionInput

Fields
Input Field Description
devEui - ModelIDInput
waterMeterID - ModelIDInput
date - ModelStringInput
flowRate - ModelFloatInput
totalGallons - ModelFloatInput
temperatureC - ModelFloatInput
rssi - ModelFloatInput
snr - ModelFloatInput
apiVersion - ModelIntInput
totalPulses - ModelFloatInput
fcnt - ModelIntInput
longestDurationBetweenPulsesSeconds - ModelFloatInput
lowestPulseRate - ModelFloatInput
notConfigured - ModelBooleanInput
holdTimeSeconds - ModelIntInput
rawData - ModelStringInput
and - [ModelSensorDataConditionInput]
or - [ModelSensorDataConditionInput]
not - ModelSensorDataConditionInput
Example
{
  "devEui": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "date": ModelStringInput,
  "flowRate": ModelFloatInput,
  "totalGallons": ModelFloatInput,
  "temperatureC": ModelFloatInput,
  "rssi": ModelFloatInput,
  "snr": ModelFloatInput,
  "apiVersion": ModelIntInput,
  "totalPulses": ModelFloatInput,
  "fcnt": ModelIntInput,
  "longestDurationBetweenPulsesSeconds": ModelFloatInput,
  "lowestPulseRate": ModelFloatInput,
  "notConfigured": ModelBooleanInput,
  "holdTimeSeconds": ModelIntInput,
  "rawData": ModelStringInput,
  "and": [ModelSensorDataConditionInput],
  "or": [ModelSensorDataConditionInput],
  "not": ModelSensorDataConditionInput
}

ModelSensorDataConnection

Fields
Field Name Description
items - [SensorData]!
nextToken - String
Example
{
  "items": [SensorData],
  "nextToken": "xyz789"
}

ModelSensorDataFilterInput

Fields
Input Field Description
id - ModelIDInput
devEui - ModelIDInput
waterMeterID - ModelIDInput
date - ModelStringInput
flowRate - ModelFloatInput
totalGallons - ModelFloatInput
temperatureC - ModelFloatInput
rssi - ModelFloatInput
snr - ModelFloatInput
apiVersion - ModelIntInput
totalPulses - ModelFloatInput
fcnt - ModelIntInput
longestDurationBetweenPulsesSeconds - ModelFloatInput
lowestPulseRate - ModelFloatInput
notConfigured - ModelBooleanInput
holdTimeSeconds - ModelIntInput
rawData - ModelStringInput
and - [ModelSensorDataFilterInput]
or - [ModelSensorDataFilterInput]
not - ModelSensorDataFilterInput
Example
{
  "id": ModelIDInput,
  "devEui": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "date": ModelStringInput,
  "flowRate": ModelFloatInput,
  "totalGallons": ModelFloatInput,
  "temperatureC": ModelFloatInput,
  "rssi": ModelFloatInput,
  "snr": ModelFloatInput,
  "apiVersion": ModelIntInput,
  "totalPulses": ModelFloatInput,
  "fcnt": ModelIntInput,
  "longestDurationBetweenPulsesSeconds": ModelFloatInput,
  "lowestPulseRate": ModelFloatInput,
  "notConfigured": ModelBooleanInput,
  "holdTimeSeconds": ModelIntInput,
  "rawData": ModelStringInput,
  "and": [ModelSensorDataFilterInput],
  "or": [ModelSensorDataFilterInput],
  "not": ModelSensorDataFilterInput
}

ModelSizeInput

Fields
Input Field Description
ne - Int
eq - Int
le - Int
lt - Int
ge - Int
gt - Int
between - [Int]
Example
{
  "ne": 987,
  "eq": 987,
  "le": 123,
  "lt": 987,
  "ge": 123,
  "gt": 987,
  "between": [987]
}

ModelSortDirection

Values
Enum Value Description

ASC

DESC

Example
"ASC"

ModelStringInput

Fields
Input Field Description
ne - String
eq - String
le - String
lt - String
ge - String
gt - String
contains - String
notContains - String
between - [String]
beginsWith - String
attributeExists - Boolean
attributeType - ModelAttributeTypes
size - ModelSizeInput
Example
{
  "ne": "abc123",
  "eq": "abc123",
  "le": "xyz789",
  "lt": "abc123",
  "ge": "xyz789",
  "gt": "xyz789",
  "contains": "abc123",
  "notContains": "xyz789",
  "between": ["xyz789"],
  "beginsWith": "abc123",
  "attributeExists": false,
  "attributeType": "binary",
  "size": ModelSizeInput
}

ModelStringKeyConditionInput

Fields
Input Field Description
eq - String
le - String
lt - String
ge - String
gt - String
between - [String]
beginsWith - String
Example
{
  "eq": "xyz789",
  "le": "abc123",
  "lt": "abc123",
  "ge": "abc123",
  "gt": "abc123",
  "between": ["abc123"],
  "beginsWith": "abc123"
}

ModelSubscriptionBooleanInput

Fields
Input Field Description
ne - Boolean
eq - Boolean
Example
{"ne": false, "eq": false}

ModelSubscriptionDetectedIssueFilterInput

Example
{
  "and": [ModelSubscriptionDetectedIssueFilterInput],
  "or": [ModelSubscriptionDetectedIssueFilterInput]
}

ModelSubscriptionIntInput

Fields
Input Field Description
ne - Int
eq - Int
le - Int
lt - Int
ge - Int
gt - Int
between - [Int]
in - [Int]
notIn - [Int]
Example
{
  "ne": 123,
  "eq": 123,
  "le": 123,
  "lt": 123,
  "ge": 987,
  "gt": 987,
  "between": [123],
  "in": [123],
  "notIn": [987]
}

ModelSubscriptionUsageThresholdAlertConfigurationFilterInput

Example
{
  "and": [
    ModelSubscriptionUsageThresholdAlertConfigurationFilterInput
  ],
  "or": [
    ModelSubscriptionUsageThresholdAlertConfigurationFilterInput
  ]
}

ModelSubscriptionUsageThresholdAlertFilterInput

Example
{
  "and": [
    ModelSubscriptionUsageThresholdAlertFilterInput
  ],
  "or": [ModelSubscriptionUsageThresholdAlertFilterInput]
}

ModelSubscriptionWaterPresenceDataFilterInput

Example
{
  "waterPresent": ModelSubscriptionBooleanInput,
  "waterEvents": ModelSubscriptionIntInput,
  "waterPresentDurationMin": ModelSubscriptionIntInput,
  "fcnt": ModelSubscriptionIntInput,
  "and": [ModelSubscriptionWaterPresenceDataFilterInput],
  "or": [ModelSubscriptionWaterPresenceDataFilterInput]
}

ModelTimeStepInput

Fields
Input Field Description
eq - TimeStep
ne - TimeStep
Example
{"eq": "second", "ne": "second"}

ModelUsageThresholdAlertConditionInput

Example
{
  "devEui": ModelIDInput,
  "configID": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "startDate": ModelStringInput,
  "endDate": ModelStringInput,
  "and": [ModelUsageThresholdAlertConditionInput],
  "or": [ModelUsageThresholdAlertConditionInput],
  "not": ModelUsageThresholdAlertConditionInput
}

ModelUsageThresholdAlertConfigurationConditionInput

Example
{
  "organizationID": ModelIDInput,
  "timeStep": ModelTimeStepInput,
  "thresholdGallons": ModelFloatInput,
  "and": [
    ModelUsageThresholdAlertConfigurationConditionInput
  ],
  "or": [
    ModelUsageThresholdAlertConfigurationConditionInput
  ],
  "not": ModelUsageThresholdAlertConfigurationConditionInput
}

ModelUsageThresholdAlertConfigurationFilterInput

Example
{
  "id": ModelIDInput,
  "organizationID": ModelIDInput,
  "timeStep": ModelTimeStepInput,
  "thresholdGallons": ModelFloatInput,
  "and": [
    ModelUsageThresholdAlertConfigurationFilterInput
  ],
  "or": [
    ModelUsageThresholdAlertConfigurationFilterInput
  ],
  "not": ModelUsageThresholdAlertConfigurationFilterInput
}

ModelUsageThresholdAlertFilterInput

Example
{
  "id": ModelIDInput,
  "devEui": ModelIDInput,
  "configID": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "startDate": ModelStringInput,
  "endDate": ModelStringInput,
  "and": [ModelUsageThresholdAlertFilterInput],
  "or": [ModelUsageThresholdAlertFilterInput],
  "not": ModelUsageThresholdAlertFilterInput
}

ModelWaterMeterFilterInput

Fields
Input Field Description
id - ModelIDInput
name - ModelStringInput
units - ModelFloatInput
notes - ModelStringInput
configurationID - ModelIDInput
deviceID - ModelIDInput
locationID - ModelIDInput
and - [ModelWaterMeterFilterInput]
or - [ModelWaterMeterFilterInput]
not - ModelWaterMeterFilterInput
Example
{
  "id": ModelIDInput,
  "name": ModelStringInput,
  "units": ModelFloatInput,
  "notes": ModelStringInput,
  "configurationID": ModelIDInput,
  "deviceID": ModelIDInput,
  "locationID": ModelIDInput,
  "and": [ModelWaterMeterFilterInput],
  "or": [ModelWaterMeterFilterInput],
  "not": ModelWaterMeterFilterInput
}

ModelWaterPresenceDataConditionInput

Fields
Input Field Description
uuid - ModelIDInput
batteryMilliVolts - ModelFloatInput
locationID - ModelIDInput
devEui - ModelIDInput
waterPresent - ModelBooleanInput
waterEvents - ModelIntInput
waterPresentDurationMin - ModelIntInput
snr - ModelFloatInput
rssi - ModelFloatInput
fcnt - ModelIntInput
and - [ModelWaterPresenceDataConditionInput]
or - [ModelWaterPresenceDataConditionInput]
not - ModelWaterPresenceDataConditionInput
Example
{
  "uuid": ModelIDInput,
  "batteryMilliVolts": ModelFloatInput,
  "locationID": ModelIDInput,
  "devEui": ModelIDInput,
  "waterPresent": ModelBooleanInput,
  "waterEvents": ModelIntInput,
  "waterPresentDurationMin": ModelIntInput,
  "snr": ModelFloatInput,
  "rssi": ModelFloatInput,
  "fcnt": ModelIntInput,
  "and": [ModelWaterPresenceDataConditionInput],
  "or": [ModelWaterPresenceDataConditionInput],
  "not": ModelWaterPresenceDataConditionInput
}

ModelWaterPresenceDataConnection

Fields
Field Name Description
items - [WaterPresenceData]!
nextToken - String
Example
{
  "items": [WaterPresenceData],
  "nextToken": "abc123"
}

ModelWaterPresenceDataFilterInput

Fields
Input Field Description
id - ModelIDInput
uuid - ModelIDInput
date - ModelStringInput
batteryMilliVolts - ModelFloatInput
locationID - ModelIDInput
devEui - ModelIDInput
waterPresent - ModelBooleanInput
waterEvents - ModelIntInput
waterPresentDurationMin - ModelIntInput
snr - ModelFloatInput
rssi - ModelFloatInput
fcnt - ModelIntInput
and - [ModelWaterPresenceDataFilterInput]
or - [ModelWaterPresenceDataFilterInput]
not - ModelWaterPresenceDataFilterInput
Example
{
  "id": ModelIDInput,
  "uuid": ModelIDInput,
  "date": ModelStringInput,
  "batteryMilliVolts": ModelFloatInput,
  "locationID": ModelIDInput,
  "devEui": ModelIDInput,
  "waterPresent": ModelBooleanInput,
  "waterEvents": ModelIntInput,
  "waterPresentDurationMin": ModelIntInput,
  "snr": ModelFloatInput,
  "rssi": ModelFloatInput,
  "fcnt": ModelIntInput,
  "and": [ModelWaterPresenceDataFilterInput],
  "or": [ModelWaterPresenceDataFilterInput],
  "not": ModelWaterPresenceDataFilterInput
}

SensorData

Fields
Field Name Description
id - ID!
devEui - ID!
waterMeterID - ID
date - AWSDateTime
flowRate - Float
totalGallons - Float
temperatureC - Float
rssi - Float
snr - Float
apiVersion - Int
totalPulses - Float
fcnt - Int
hotspots - [Hotspot]
longestDurationBetweenPulsesSeconds - Float
lowestPulseRate - Float
notConfigured - Boolean
holdTimeSeconds - Int
rawData - String
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": 4,
  "devEui": "4",
  "waterMeterID": 4,
  "date": AWSDateTime,
  "flowRate": 123.45,
  "totalGallons": 123.45,
  "temperatureC": 987.65,
  "rssi": 123.45,
  "snr": 987.65,
  "apiVersion": 123,
  "totalPulses": 123.45,
  "fcnt": 987,
  "hotspots": [Hotspot],
  "longestDurationBetweenPulsesSeconds": 987.65,
  "lowestPulseRate": 987.65,
  "notConfigured": false,
  "holdTimeSeconds": 123,
  "rawData": "xyz789",
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

String

Description

Built-in String

Example
"abc123"

TimeStep

Values
Enum Value Description

second

minute

hour

day

week

month

year

Example
"second"

WaterPresenceData

Fields
Field Name Description
id - ID!
uuid - ID
date - AWSDateTime!
batteryMilliVolts - Float
locationID - ID
devEui - ID
waterPresent - Boolean
waterEvents - Int
waterPresentDurationMin - Int
snr - Float
rssi - Float
fcnt - Int
hotspots - [Hotspot]
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": 4,
  "uuid": "4",
  "date": AWSDateTime,
  "batteryMilliVolts": 987.65,
  "locationID": "4",
  "devEui": "4",
  "waterPresent": false,
  "waterEvents": 987,
  "waterPresentDurationMin": 123,
  "snr": 123.45,
  "rssi": 987.65,
  "fcnt": 987,
  "hotspots": [Hotspot],
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}