@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
88 lines (87 loc) • 2.17 kB
TypeScript
import { ModelDefinition } from './BaseModels';
import { Asset } from './Asset';
import { AssetState } from './AssetState';
import { Log } from './Log';
import { Sensor } from './Sensor';
import { SensorAssetState } from './SensorAssetState';
export interface AlertHistoryInterface {
type?: string;
name?: string;
muted?: boolean;
thresholdType?: string;
from?: Date;
to?: Date;
opened?: Date;
closed?: Date;
length?: number;
summary?: any;
threshold?: any;
notification?: any;
projectInfo?: any;
assetInfo?: any;
sensorInfo?: any;
created?: Date;
modified?: Date;
deleted?: Date;
id?: any;
assetId?: any;
assetStateId?: any;
sensorId?: any;
stateId?: any;
asset?: Asset;
assetState?: AssetState;
trackingLogs?: Log[];
sensor?: Sensor;
state?: SensorAssetState;
}
export declare class AlertHistory implements AlertHistoryInterface {
type: string;
name: string;
muted: boolean;
thresholdType: string;
from: Date;
to: Date;
opened: Date;
closed: Date;
length: number;
summary: any;
threshold: any;
notification: any;
projectInfo: any;
assetInfo: any;
sensorInfo: any;
created: Date;
modified: Date;
deleted: Date;
id: any;
assetId: any;
assetStateId: any;
sensorId: any;
stateId: any;
asset?: Asset;
assetState?: AssetState;
trackingLogs?: Log[];
sensor?: Sensor;
state?: SensorAssetState;
constructor(data?: AlertHistoryInterface);
/**
* The name of the model represented by this $resource,
* i.e. `AlertHistory`.
*/
static getModelName(): string;
/**
* @method factory
* @author Jonathan Casarrubias
* @license MIT
* This method creates an instance of AlertHistory for dynamic purposes.
*/
static factory(data: AlertHistoryInterface): AlertHistory;
/**
* @method getModelDefinition
* @author Julien Ledun
* @license MIT
* This method returns an object that represents some of the model
* definitions.
*/
static getModelDefinition(): ModelDefinition;
}