UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

105 lines (104 loc) 2.87 kB
import { ModelDefinition } from './BaseModels'; import { Log } from './Log'; import { Asset } from './Asset'; import { Dataset } from './Dataset'; import { Alert } from './Alert'; import { AlertHistory } from './AlertHistory'; import { RateLimit } from './RateLimit'; import { AssetState } from './AssetState'; import { SensorAssetState } from './SensorAssetState'; import { SensorTemplate } from './SensorTemplate'; import { SensorUptime } from './SensorUptime'; import { SensorUptimeCollector } from './SensorUptimeCollector'; import { Summary } from './Summary'; export interface SensorInterface { type: string; name?: string; description?: string; relativeId: string; enabled?: boolean; unit?: string; parameters?: any; triggers?: any; extendedProperties?: any; healthcheck?: any; created?: Date; modified?: Date; deleted?: Date; id?: any; assetId?: any; _lastData?: any; _rateLimit?: any; templateId?: any; _token?: any; trackingLogs?: Log[]; asset?: Asset; datasets?: Dataset[]; alerts?: Alert[]; alertHistory?: AlertHistory[]; lastData?: any[]; rateLimit?: RateLimit[]; assetStates?: AssetState[]; states?: SensorAssetState[]; template?: SensorTemplate; uptime?: SensorUptime[]; uptimeCollectors?: SensorUptimeCollector[]; summaries?: Summary[]; token?: any[]; } export declare class Sensor implements SensorInterface { type: string; name: string; description: string; relativeId: string; enabled: boolean; unit: string; parameters: any; triggers: any; extendedProperties: any; healthcheck: any; created: Date; modified: Date; deleted: Date; id: any; assetId: any; _lastData: any; _rateLimit: any; templateId: any; _token: any; trackingLogs?: Log[]; asset?: Asset; datasets?: Dataset[]; alerts?: Alert[]; alertHistory?: AlertHistory[]; lastData?: any[]; rateLimit?: RateLimit[]; assetStates?: AssetState[]; states?: SensorAssetState[]; template?: SensorTemplate; uptime?: SensorUptime[]; uptimeCollectors?: SensorUptimeCollector[]; summaries?: Summary[]; token?: any[]; constructor(data?: SensorInterface); /** * The name of the model represented by this $resource, * i.e. `Sensor`. */ static getModelName(): string; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of Sensor for dynamic purposes. */ static factory(data: SensorInterface): Sensor; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ static getModelDefinition(): ModelDefinition; }