Showing
1 changed file
with
6 additions
and
0 deletions
@@ -51,6 +51,8 @@ import { Asset } from '@shared/models/asset.models'; | @@ -51,6 +51,8 @@ import { Asset } from '@shared/models/asset.models'; | ||
51 | import { Device, DeviceCredentialsType } from '@shared/models/device.models'; | 51 | import { Device, DeviceCredentialsType } from '@shared/models/device.models'; |
52 | import { AttributeService } from '@core/http/attribute.service'; | 52 | import { AttributeService } from '@core/http/attribute.service'; |
53 | import { | 53 | import { |
54 | + AlarmData, | ||
55 | + AlarmDataQuery, | ||
54 | createDefaultEntityDataPageLink, | 56 | createDefaultEntityDataPageLink, |
55 | defaultEntityDataPageLink, | 57 | defaultEntityDataPageLink, |
56 | EntityData, | 58 | EntityData, |
@@ -373,6 +375,10 @@ export class EntityService { | @@ -373,6 +375,10 @@ export class EntityService { | ||
373 | return this.http.post<PageData<EntityData>>('/api/entitiesQuery/find', query, defaultHttpOptionsFromConfig(config)); | 375 | return this.http.post<PageData<EntityData>>('/api/entitiesQuery/find', query, defaultHttpOptionsFromConfig(config)); |
374 | } | 376 | } |
375 | 377 | ||
378 | + public findAlarmDataByQuery(query: AlarmDataQuery, config?: RequestConfig): Observable<PageData<AlarmData>> { | ||
379 | + return this.http.post<PageData<AlarmData>>('/api/alarmsQuery/find', query, defaultHttpOptionsFromConfig(config)); | ||
380 | + } | ||
381 | + | ||
376 | public findEntityInfosByFilterAndName(filter: EntityFilter, | 382 | public findEntityInfosByFilterAndName(filter: EntityFilter, |
377 | searchText: string, config?: RequestConfig): Observable<PageData<EntityInfo>> { | 383 | searchText: string, config?: RequestConfig): Observable<PageData<EntityInfo>> { |
378 | const nameField: EntityKey = { | 384 | const nameField: EntityKey = { |