|
| 1 | +--- |
| 2 | +title: "cloudPcReports: getCloudPCPerformanceReport" |
| 3 | +description: "Get a report related to the performance of Cloud PCs." |
| 4 | +author: "Gutentag0004" |
| 5 | +ms.localizationpriority: medium |
| 6 | +ms.subservice: "cloud-pc" |
| 7 | +doc_type: apiPageType |
| 8 | +ms.date: 11/30/2024 |
| 9 | +--- |
| 10 | + |
| 11 | +# cloudPcReports: getCloudPCPerformanceReport |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Get a report related to the performance of Cloud PCs. |
| 18 | + |
| 19 | +## Permissions |
| 20 | + |
| 21 | +Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 22 | + |
| 23 | +<!-- { "blockType": "permissions", "name": "cloudpcreports-getcloudpcperformancereport" } --> |
| 24 | +[!INCLUDE [permissions-table](../includes/permissions/cloudpcreports-getcloudpcperformancereport-permissions.md)] |
| 25 | + |
| 26 | +## HTTP request |
| 27 | + |
| 28 | +<!-- { |
| 29 | + "blockType": "ignored" |
| 30 | +} |
| 31 | +--> |
| 32 | +``` http |
| 33 | +POST /deviceManagement/virtualEndpoint/reports/getCloudPCPerformanceReport |
| 34 | +``` |
| 35 | + |
| 36 | +## Request headers |
| 37 | + |
| 38 | +|Name|Description| |
| 39 | +|:---|:---| |
| 40 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 41 | +|Content-Type|application/json. Required.| |
| 42 | + |
| 43 | +## Request body |
| 44 | + |
| 45 | +In the request body, supply a JSON representation of the parameters. |
| 46 | + |
| 47 | +The following table shows the parameters that you can use with this method. |
| 48 | + |
| 49 | +| Parameter | Type | Description | |
| 50 | +|:-----------|:-----------------------------|:-----------------------------------------------------------------------------------------------------| |
| 51 | +| filter | String | OData `$filter` syntax. Supported filters are: `and`, `or`, `gt`, and `eq`. | |
| 52 | +| groupBy | String collection | Specifies how to group the reports. If used, must have the same content as the **select** parameter. | |
| 53 | +| orderBy | String collection | Specifies how to sort the reports. | |
| 54 | +| reportName | cloudPCPerformanceReportName | The report name. The possible values are: `performanceTrendReport`, `unknownFutureValue`. | |
| 55 | +| search | String | Specifies a String to search. | |
| 56 | +| select | String collection | OData `$select` syntax. The selected columns of the reports. | |
| 57 | +| skip | Int32 | Number of records to skip. | |
| 58 | +| top | Int32 | Specifies the page size. If not defined, the default is 25, with a maximum of 100. | |
| 59 | + |
| 60 | +### cloudPCPerformanceReportName values |
| 61 | + |
| 62 | +| Member | Description | |
| 63 | +| :--------------------------- | :---------------- | |
| 64 | +| performanceTrendReport | Indicates a daily aggregated report that provides a list of connection quality metrics for Cloud PCs over the past seven days within a tenant. The metrics include `SlowRoundTripTimeCloudPcCount`, `LowUdpConnectionPercentageCount`, `NoTimeConnectedCloudPcCount`, and `LowTimeConnectedCloudPcCount`. Each daily report is an aggregation of the previous 28 days, counted back from the trigger time. | |
| 65 | +| unknownFutureValue | Evolvable enumeration sentinel value. Don't use. | |
| 66 | + |
| 67 | +## Response |
| 68 | + |
| 69 | +If successful, this method returns a `200 OK` response code and a Stream object in the response body. |
| 70 | + |
| 71 | +## Examples |
| 72 | + |
| 73 | +### Request |
| 74 | + |
| 75 | +The following example shows a request. |
| 76 | + |
| 77 | +<!-- { |
| 78 | + "blockType": "request", |
| 79 | + "name": "cloudpcreportsthis.getcloudpcperformancereport" |
| 80 | +} |
| 81 | +--> |
| 82 | +``` http |
| 83 | +POST https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/reports/getCloudPcPerformanceReport |
| 84 | +Content-Type: application/json |
| 85 | +
|
| 86 | +{ |
| 87 | + "reportName": "performanceTrendReport", |
| 88 | + "filter": "EventDateTime gt datetime'2023-10-13T00:00:00.000Z'", |
| 89 | + "select": [ |
| 90 | + "EventDateTime", |
| 91 | + "SlowRoundTripTimeCloudPcCount", |
| 92 | + "LowUdpConnectionPercentageCount", |
| 93 | + "NoActiveTimeConnectedCount", |
| 94 | + "LowActiveTimeConnectedCount" |
| 95 | + ], |
| 96 | + "search": "", |
| 97 | + "skip": 0, |
| 98 | + "top": 50 |
| 99 | +} |
| 100 | +``` |
| 101 | + |
| 102 | +### Response |
| 103 | + |
| 104 | +The following example shows the response. |
| 105 | + |
| 106 | +>**Note:** The response object shown here might be shortened for readability. |
| 107 | +<!-- { |
| 108 | + "blockType": "response", |
| 109 | + "truncated": true, |
| 110 | + "@odata.type": "Edm.Stream" |
| 111 | +} --> |
| 112 | +``` http |
| 113 | +HTTP/1.1 200 OK |
| 114 | +Content-Type: application/octet-stream |
| 115 | +
|
| 116 | +{ |
| 117 | + "TotalRowCount": 2, |
| 118 | + "Schema": [ |
| 119 | + { |
| 120 | + "Column": "EventDateTime", |
| 121 | + "PropertyType": "DateTime" |
| 122 | + }, |
| 123 | + { |
| 124 | + "Column": "SlowRoundTripTimeCloudPcCount", |
| 125 | + "PropertyType": "Int64" |
| 126 | + }, |
| 127 | + { |
| 128 | + "Column": "LowUdpConnectionPercentageCount", |
| 129 | + "PropertyType": "Int64" |
| 130 | + }, |
| 131 | + { |
| 132 | + "Column": "NoActiveTimeConnectedCount", |
| 133 | + "PropertyType": "Int64" |
| 134 | + }, |
| 135 | + { |
| 136 | + "Column": "LowActiveTimeConnectedCount", |
| 137 | + "PropertyType": "Int64" |
| 138 | + } |
| 139 | + ], |
| 140 | + "Values": [ |
| 141 | + [ |
| 142 | + "2023-10-16T00:00:00Z", |
| 143 | + 3, |
| 144 | + 8, |
| 145 | + 3, |
| 146 | + 92 |
| 147 | + ], |
| 148 | + [ |
| 149 | + "2023-10-15T00:00:00Z", |
| 150 | + 4, |
| 151 | + 6, |
| 152 | + 5, |
| 153 | + 91 |
| 154 | + ] |
| 155 | + ] |
| 156 | +} |
| 157 | +``` |
| 158 | + |
0 commit comments