Les API sous la version /beta dans Microsoft Graph sont susceptibles d’être modifiées. L’utilisation de ces API dans des applications de production n’est pas prise en charge. Pour déterminer si une API est disponible dans v1.0, utilisez le sélecteur Version .
Obtenez le rapport de connexion à distance en temps réel brut pour un PC cloud sans aucun calcul, tel que roundTripTime ou bande passante disponible, qui sont agrégés toutes les heures à partir des données d’événement brutes.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.Reports.GetRawRemoteConnectionReports;
var requestBody = new GetRawRemoteConnectionReportsPostRequestBody
{
Filter = "ActivityId eq 'cb6ad4c4-8a17-4245-a644-e4436b1ee204'",
Select = new List<string>
{
"RoundTripTimeInMs",
"AvailableBandwidthInMBps",
"SignInDateTime",
},
Skip = 0,
Top = 50,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.DeviceManagement.VirtualEndpoint.Reports.GetRawRemoteConnectionReports.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphdevicemanagement "github.com/microsoftgraph/msgraph-beta-sdk-go/devicemanagement"
//other-imports
)
requestBody := graphdevicemanagement.NewGetRawRemoteConnectionReportsPostRequestBody()
filter := "ActivityId eq 'cb6ad4c4-8a17-4245-a644-e4436b1ee204'"
requestBody.SetFilter(&filter)
select := []string {
"RoundTripTimeInMs",
"AvailableBandwidthInMBps",
"SignInDateTime",
}
requestBody.SetSelect(select)
skip := int32(0)
requestBody.SetSkip(&skip)
top := int32(50)
requestBody.SetTop(&top)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.DeviceManagement().VirtualEndpoint().Reports().GetRawRemoteConnectionReports().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.devicemanagement.virtualendpoint.reports.getrawremoteconnectionreports.GetRawRemoteConnectionReportsPostRequestBody getRawRemoteConnectionReportsPostRequestBody = new com.microsoft.graph.beta.devicemanagement.virtualendpoint.reports.getrawremoteconnectionreports.GetRawRemoteConnectionReportsPostRequestBody();
getRawRemoteConnectionReportsPostRequestBody.setFilter("ActivityId eq 'cb6ad4c4-8a17-4245-a644-e4436b1ee204'");
LinkedList<String> select = new LinkedList<String>();
select.add("RoundTripTimeInMs");
select.add("AvailableBandwidthInMBps");
select.add("SignInDateTime");
getRawRemoteConnectionReportsPostRequestBody.setSelect(select);
getRawRemoteConnectionReportsPostRequestBody.setSkip(0);
getRawRemoteConnectionReportsPostRequestBody.setTop(50);
graphClient.deviceManagement().virtualEndpoint().reports().getRawRemoteConnectionReports().post(getRawRemoteConnectionReportsPostRequestBody);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.devicemanagement.virtualendpoint.reports.get_raw_remote_connection_reports.get_raw_remote_connection_reports_post_request_body import GetRawRemoteConnectionReportsPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = GetRawRemoteConnectionReportsPostRequestBody(
filter = "ActivityId eq 'cb6ad4c4-8a17-4245-a644-e4436b1ee204'",
select = [
"RoundTripTimeInMs",
"AvailableBandwidthInMBps",
"SignInDateTime",
],
skip = 0,
top = 50,
)
await graph_client.device_management.virtual_endpoint.reports.get_raw_remote_connection_reports.post(request_body)