You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
573 B
TypeScript
25 lines
573 B
TypeScript
import request from '@/config/axios'
|
|
|
|
export interface RunOverviewRequestParams {
|
|
ids: string
|
|
startTime: string
|
|
endTime: string
|
|
timelinePageNo: number
|
|
timelinePageSize: number
|
|
}
|
|
|
|
export interface RunOverviewResponse {
|
|
metrics?: any[]
|
|
hourlyStatus?: any[]
|
|
summary?: any[]
|
|
summaryTotalHours?: number
|
|
timelineRows?: any[]
|
|
totalDevices?: number
|
|
}
|
|
|
|
export const DeviceOperationOverviewApi = {
|
|
getRunOverview: async (params: RunOverviewRequestParams) => {
|
|
return await request.get({ url: `/iot/deviceOperationOverview/getRunOverview`, params })
|
|
}
|
|
}
|