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