POST api/Data/{UnitName}/DashboardData
查詢首頁儀表板相關數據
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
UnitName |
單位名稱(e.g.北區輔導團、臺北市、040304) |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
DashBoardDataName | Description | Type | Additional information |
---|---|---|---|
GeneralInformation |
單位載具摘要 |
GeneralInformation |
None. |
OSPercentage |
作業系統使用占比 |
OSPercentage |
None. |
MDMPercentage |
MDM使用占比 |
MDMPercentage |
None. |
Last7Day |
近七天載具上線數量與使用時間 |
Collection of Last7Day |
None. |
SchoolInfo |
單位相關資訊 |
SchoolInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "GeneralInformation": { "TotalDevice": 1, "TotalMDM": 2, "AVGUsage": 3.1 }, "OSPercentage": { "Windows": 1.1, "Android": 2.1, "Chrome": 3.1, "iOS": 4.1 }, "MDMPercentage": { "Intune": 1.1, "Google": 2.1, "Jamf": 3.1 }, "Last7Day": [ { "Date": "sample string 1", "DeviceNumber": 2, "DeviceUsage": 3 }, { "Date": "sample string 1", "DeviceNumber": 2, "DeviceUsage": 3 } ], "SchoolInfo": { "Schools": 1, "Students": 2, "Teachers": 3, "AVGSDT": 4 } }
application/xml, text/xml
Sample:
<DataClass.DashBoardData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End"> <GeneralInformation> <AVGUsage>3.1</AVGUsage> <TotalDevice>1</TotalDevice> <TotalMDM>2</TotalMDM> </GeneralInformation> <Last7Day> <DataClass.Last7Day> <Date>sample string 1</Date> <DeviceNumber>2</DeviceNumber> <DeviceUsage>3</DeviceUsage> </DataClass.Last7Day> <DataClass.Last7Day> <Date>sample string 1</Date> <DeviceNumber>2</DeviceNumber> <DeviceUsage>3</DeviceUsage> </DataClass.Last7Day> </Last7Day> <MDMPercentage> <Google>2.1</Google> <Intune>1.1</Intune> <Jamf>3.1</Jamf> </MDMPercentage> <OSPercentage> <Android>2.1</Android> <Chrome>3.1</Chrome> <Windows>1.1</Windows> <iOS>4.1</iOS> </OSPercentage> <SchoolInfo> <AVGSDT>4</AVGSDT> <Schools>1</Schools> <Students>2</Students> <Teachers>3</Teachers> </SchoolInfo> </DataClass.DashBoardData>