| | |
| | | import { LineChartCriteria } from './data'; |
| | | import { Column } from '@business/entity/grid'; |
| | | import { AlarmStyle, TimeUnits, AreaRange } from '@business/enum/types.enum'; |
| | | import { AlarmStyle, TimeUnits, AreaRange, DeviceDimension, Operator } from '@business/enum/types.enum'; |
| | | |
| | | |
| | | export interface AreaNames { |
| | | provinceName?: string; |
| | | cityName?: string; |
| | | areaName?: string; |
| | | townName?: string; |
| | | villageName?: string; |
| | | } |
| | | // 传感器 |
| | | export interface Sensor { |
| | |
| | | version?: Column|any; |
| | | } |
| | | |
| | | // 监控点 |
| | | // 监控站点 |
| | | export interface MonitorPoint { |
| | | address?: any|Column; |
| | | areaCode?: any|Column; |
| | |
| | | provinceCode?: any|Column; |
| | | areaNames?: AreaNames|any ; |
| | | organization?: Organization; |
| | | townCode?: any|Column; |
| | | villageCode?: any|Column; |
| | | |
| | | } |
| | | |
| | | // 报警配置 |
| | |
| | | mac?: any|Column; |
| | | monitorPoint?: any|Column; |
| | | monitorPointId?: any|Column; |
| | | professionId?: any|Column; |
| | | name?: any|Column; |
| | | operateUser?: any|Column; |
| | | operateUserId?: any|Column; |
| | |
| | | |
| | | export interface AlarmMode { |
| | | enable: boolean|any[]; |
| | | interval: number; |
| | | level1: AlarmStyle[]|any[]; |
| | | level2: AlarmStyle[]|any[]; |
| | | level3: AlarmStyle[]|any[]; |
| | |
| | | organizationId: number; |
| | | username: string; |
| | | } |
| | | export interface TimePeriod { |
| | | startTime: Date; // 开始时间 |
| | | endTime: Date; // 结束时间 |
| | | } |
| | | export interface DataCondition { |
| | | timeUnits?: TimeUnits; // 单位 |
| | | actualTime?: Date; // 实际时间 |
| | | areaRange?: AreaRange; // 区域范围 |
| | | areaRangeId?: number; // 区域范围的ID |
| | | } |
| | | |
| | | |
| | | export interface LineChartCriteria { |
| | | sensorKey: String; |
| | | timePeriod: TimePeriod; |
| | | dataConditions: DataCondition[]; |
| | | dataConditions?: DataCondition[]; |
| | | sensorKeys?: string[]; |
| | | timePeriod?: TimePeriod; |
| | | } |
| | | |
| | | export interface TimePeriod { |
| | | endTime?: Date; |
| | | startTime?: Date; |
| | | timeUnits?: TimeUnits; |
| | | } |
| | | |
| | | export interface DataCondition { |
| | | actualTime?: number; |
| | | areaRange?: AreaRange; |
| | | areaRangeId?: number; |
| | | timeUnits?: TimeUnits; |
| | | deviceDimension?: DeviceDimension; |
| | | dimensionValue?: any; |
| | | } |
| | | |
| | | export interface PairData { |
| | | category: string; |
| | | value: number; |
| | | } |
| | | export interface OperatorRule { |
| | | operator: Operator; |
| | | value: number; |
| | | } |
| | | export interface SensorUnit { |
| | | id?: number|any; |
| | | originalUnitName?: string; |
| | | name?: string|any; |
| | | rules?: OperatorRule[]|any; |
| | | sensorId?: number|any; |
| | | } |
| | | export interface OrganizationSensorUnit { |
| | | id?: number|any; |
| | | sensorUnitId?: number|any; |
| | | sensorUnit?: SensorUnit|any; |
| | | sensor?: Sensor|any; |
| | | organizationId?: number|any; |
| | | } |