call: logTeleconferenceDeviceQuality
- [アーティクル]
名前空間: microsoft.graph
重要
Microsoft Graph の /beta
バージョンの API は変更される可能性があります。 実稼働アプリケーションでこれらの API を使用することは、サポートされていません。 v1.0 で API を使用できるかどうかを確認するには、Version セレクターを使用します。
ビデオ遠隔会議デバイスの品質データをログに記録します。
Cloud Video Interop (CVI) ボットは、ビデオ 電話会議 (VTC) デバイスを表し、電話会議で VTC デバイスのバックツーバック エージェントとして機能します。 CVI ボットは VTC プロキシとして VTC と Microsoft Teams インフラストラクチャの真ん中にあるため、2 つのメディア レッグがあります。 1 つのメディア レッグは、CVI ボットと Teams インフラストラクチャ (Teams 会議サーバーや Teams クライアントなど) の間にあります。 もう 1 つのメディア レッグは、CVI ボットと VTC デバイスの間にあります。
サード パーティのパートナーは VTC メディア レッグを所有しており、Teams インフラストラクチャはサード パーティの通話区間の品質データにアクセスできません。 この方法は、CVI パートナーがメディア品質データを提供することのみを目的としています。
この API は、次の国内クラウド展開で使用できます。
グローバル サービス | 米国政府機関 L4 | 米国政府機関 L5 (DOD) | 21Vianet が運営する中国 |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
アクセス許可
この API の最小特権としてマークされているアクセス許可またはアクセス許可を選択します。 アプリで必要な場合にのみ、より高い特権のアクセス許可またはアクセス許可を使用します。 委任されたアクセス許可とアプリケーションのアクセス許可の詳細については、「 アクセス許可の種類」を参照してください。 これらのアクセス許可の詳細については、 アクセス許可のリファレンスを参照してください。
アクセス許可の種類 | 最小特権アクセス許可 | 特権の高いアクセス許可 |
---|---|---|
委任 (職場または学校のアカウント) | サポートされていません。 | サポートされていません。 |
委任 (個人用 Microsoft アカウント) | サポートされていません。 | サポートされていません。 |
アプリケーション | Calls.AccessMedia.All | 注意事項なし。 |
HTTP 要求
POST /communications/calls/logTeleconferenceDeviceQuality
要求ヘッダー
名前 | 説明 |
---|---|
Authorization | ベアラー {token}。 必須です。 認証と承認の詳細については、こちらをご覧ください。 |
User-Agent | 呼び出し元のアプリケーションの名前とバージョンについて説明します。 Azure Information Protection Analytics で詳細が表示されます。 推奨される形式は ApplicationName/Version です。 必須です。 |
要求本文
要求本文で、次のパラメーターを含む JSON オブジェクトを指定します。
パラメーター | 型 | 説明 |
---|---|---|
品質 | teleconferenceDeviceQuality | VTC メディア レッグの品質データ。 |
応答
成功した場合、このメソッドは 200 OK
応答コードを返します。 応答本文では何も返されません。
例
次の例は、この API を呼び出す方法を示しています。
要求
次の例は要求を示しています。
POST https://graph.microsoft.com/beta/communications/calls/logTeleconferenceDeviceQuality
Content-type: application/json
{
"quality": {
"@odata.type": "#microsoft.graph.teleconferenceDeviceQuality",
"callChainId": "0622673d-9f69-49b3-9d4f-5ec64f42ecce",
"participantId": "ea078406-b5d4-4d3c-b85e-90103dcec7f6",
"mediaLegId": "bd9ee398-4b9d-42c7-8b8d-4e8efad9435f",
"deviceName": "TestAgent",
"deviceDescription": "TestDescription",
"mediaQualityList": [
{
"@odata.type": "#microsoft.graph.teleconferenceDeviceAudioQuality",
"channelIndex": 1,
"mediaDuration": "PT20M",
"networkLinkSpeedInBytes": 13000,
"localIPAddress": "127.0.0.1",
"localPort": 6300,
"remoteIPAddress": "102.1.1.101",
"remotePort": 6301,
"inboundPackets": 5500,
"outboundPackets": 5400,
"averageInboundPacketLossRateInPercentage": 0.01,
"averageOutboundPacketLossRateInPercentage": 0.02,
"maximumInboundPacketLossRateInPercentage": 0.05,
"maximumOutboundPacketLossRateInPercentage": 0.06,
"averageInboundRoundTripDelay": "PT0.03S",
"averageOutboundRoundTripDelay": "PT0.04S",
"maximumInboundRoundTripDelay": "PT0.13S",
"maximumOutboundRoundTripDelay": "PT0.14S",
"averageInboundJitter": "PT0.01S",
"averageOutboundJitter": "PT0.015S",
"maximumInboundJitter": "PT0.023S",
"maximumOutboundJitter": "PT0.024S"
},
{
"@odata.type": "#microsoft.graph.teleconferenceDeviceVideoQuality",
"channelIndex": 1,
"mediaDuration": "PT20M",
"networkLinkSpeedInBytes": 13000,
"localIPAddress": "127.0.0.1",
"localPort": 6300,
"remoteIPAddress": "102.1.1.101",
"remotePort": 6301,
"inboundPackets": 5500,
"outboundPackets": 5400,
"averageInboundPacketLossRateInPercentage": 0.01,
"averageOutboundPacketLossRateInPercentage": 0.02,
"maximumInboundPacketLossRateInPercentage": 0.05,
"maximumOutboundPacketLossRateInPercentage": 0.06,
"averageInboundRoundTripDelay": "PT0.03S",
"averageOutboundRoundTripDelay": "PT0.04S",
"maximumInboundRoundTripDelay": "PT0.13S",
"maximumOutboundRoundTripDelay": "PT0.14S",
"averageInboundJitter": "PT0.01S",
"averageOutboundJitter": "PT0.015S",
"maximumInboundJitter": "PT0.023S",
"maximumOutboundJitter": "PT0.024S"
},
{
"@odata.type": "#microsoft.graph.teleconferenceDeviceScreenSharingQuality",
"channelIndex": 1,
"mediaDuration": "PT20M",
"networkLinkSpeedInBytes": 13000,
"localIPAddress": "127.0.0.1",
"localPort": 6300,
"remoteIPAddress": "102.1.1.101",
"remotePort": 6301,
"inboundPackets": 5500,
"outboundPackets": 5400,
"averageInboundPacketLossRateInPercentage": 0.01,
"averageOutboundPacketLossRateInPercentage": 0.02,
"maximumInboundPacketLossRateInPercentage": 0.05,
"maximumOutboundPacketLossRateInPercentage": 0.06,
"averageInboundRoundTripDelay": "PT0.03S",
"averageOutboundRoundTripDelay": "PT0.04S",
"maximumInboundRoundTripDelay": "PT0.13S",
"maximumOutboundRoundTripDelay": "PT0.14S",
"averageInboundJitter": "PT0.01S",
"averageOutboundJitter": "PT0.015S",
"maximumInboundJitter": "PT0.023S",
"maximumOutboundJitter": "PT0.024S"
}
]
}
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Communications.Calls.LogTeleconferenceDeviceQuality;
using Microsoft.Graph.Beta.Models;
var requestBody = new LogTeleconferenceDeviceQualityPostRequestBody
{
Quality = new TeleconferenceDeviceQuality
{
OdataType = "#microsoft.graph.teleconferenceDeviceQuality",
CallChainId = Guid.Parse("0622673d-9f69-49b3-9d4f-5ec64f42ecce"),
ParticipantId = Guid.Parse("ea078406-b5d4-4d3c-b85e-90103dcec7f6"),
MediaLegId = Guid.Parse("bd9ee398-4b9d-42c7-8b8d-4e8efad9435f"),
DeviceName = "TestAgent",
DeviceDescription = "TestDescription",
MediaQualityList = new List<TeleconferenceDeviceMediaQuality>
{
new TeleconferenceDeviceAudioQuality
{
OdataType = "#microsoft.graph.teleconferenceDeviceAudioQuality",
ChannelIndex = 1,
MediaDuration = TimeSpan.Parse("PT20M"),
NetworkLinkSpeedInBytes = 13000L,
LocalIPAddress = "127.0.0.1",
LocalPort = 6300,
RemoteIPAddress = "102.1.1.101",
RemotePort = 6301,
InboundPackets = 5500L,
OutboundPackets = 5400L,
AverageInboundPacketLossRateInPercentage = 0.01d,
AverageOutboundPacketLossRateInPercentage = 0.02d,
MaximumInboundPacketLossRateInPercentage = 0.05d,
MaximumOutboundPacketLossRateInPercentage = 0.06d,
AverageInboundRoundTripDelay = TimeSpan.Parse("PT0.03S"),
AverageOutboundRoundTripDelay = TimeSpan.Parse("PT0.04S"),
MaximumInboundRoundTripDelay = TimeSpan.Parse("PT0.13S"),
MaximumOutboundRoundTripDelay = TimeSpan.Parse("PT0.14S"),
AverageInboundJitter = TimeSpan.Parse("PT0.01S"),
AverageOutboundJitter = TimeSpan.Parse("PT0.015S"),
MaximumInboundJitter = TimeSpan.Parse("PT0.023S"),
MaximumOutboundJitter = TimeSpan.Parse("PT0.024S"),
},
new TeleconferenceDeviceVideoQuality
{
OdataType = "#microsoft.graph.teleconferenceDeviceVideoQuality",
ChannelIndex = 1,
MediaDuration = TimeSpan.Parse("PT20M"),
NetworkLinkSpeedInBytes = 13000L,
LocalIPAddress = "127.0.0.1",
LocalPort = 6300,
RemoteIPAddress = "102.1.1.101",
RemotePort = 6301,
InboundPackets = 5500L,
OutboundPackets = 5400L,
AverageInboundPacketLossRateInPercentage = 0.01d,
AverageOutboundPacketLossRateInPercentage = 0.02d,
MaximumInboundPacketLossRateInPercentage = 0.05d,
MaximumOutboundPacketLossRateInPercentage = 0.06d,
AverageInboundRoundTripDelay = TimeSpan.Parse("PT0.03S"),
AverageOutboundRoundTripDelay = TimeSpan.Parse("PT0.04S"),
MaximumInboundRoundTripDelay = TimeSpan.Parse("PT0.13S"),
MaximumOutboundRoundTripDelay = TimeSpan.Parse("PT0.14S"),
AverageInboundJitter = TimeSpan.Parse("PT0.01S"),
AverageOutboundJitter = TimeSpan.Parse("PT0.015S"),
MaximumInboundJitter = TimeSpan.Parse("PT0.023S"),
MaximumOutboundJitter = TimeSpan.Parse("PT0.024S"),
},
new TeleconferenceDeviceScreenSharingQuality
{
OdataType = "#microsoft.graph.teleconferenceDeviceScreenSharingQuality",
ChannelIndex = 1,
MediaDuration = TimeSpan.Parse("PT20M"),
NetworkLinkSpeedInBytes = 13000L,
LocalIPAddress = "127.0.0.1",
LocalPort = 6300,
RemoteIPAddress = "102.1.1.101",
RemotePort = 6301,
InboundPackets = 5500L,
OutboundPackets = 5400L,
AverageInboundPacketLossRateInPercentage = 0.01d,
AverageOutboundPacketLossRateInPercentage = 0.02d,
MaximumInboundPacketLossRateInPercentage = 0.05d,
MaximumOutboundPacketLossRateInPercentage = 0.06d,
AverageInboundRoundTripDelay = TimeSpan.Parse("PT0.03S"),
AverageOutboundRoundTripDelay = TimeSpan.Parse("PT0.04S"),
MaximumInboundRoundTripDelay = TimeSpan.Parse("PT0.13S"),
MaximumOutboundRoundTripDelay = TimeSpan.Parse("PT0.14S"),
AverageInboundJitter = TimeSpan.Parse("PT0.01S"),
AverageOutboundJitter = TimeSpan.Parse("PT0.015S"),
MaximumInboundJitter = TimeSpan.Parse("PT0.023S"),
MaximumOutboundJitter = TimeSpan.Parse("PT0.024S"),
},
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Communications.Calls.LogTeleconferenceDeviceQuality.PostAsync(requestBody);
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ版で使用可能なすべての型、プロパティ、API がサポートされているわけではありません。 SDK を使用してベータ API にアクセスする方法の詳細については、「ベータ API で Microsoft Graph SDK を使用する」を参照してください。
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
mgc-beta communications calls log-teleconference-device-quality post --body '{\
"quality": {\
"@odata.type": "#microsoft.graph.teleconferenceDeviceQuality",\
"callChainId": "0622673d-9f69-49b3-9d4f-5ec64f42ecce",\
"participantId": "ea078406-b5d4-4d3c-b85e-90103dcec7f6",\
"mediaLegId": "bd9ee398-4b9d-42c7-8b8d-4e8efad9435f",\
"deviceName": "TestAgent",\
"deviceDescription": "TestDescription",\
"mediaQualityList": [\
{\
"@odata.type": "#microsoft.graph.teleconferenceDeviceAudioQuality",\
"channelIndex": 1,\
"mediaDuration": "PT20M",\
"networkLinkSpeedInBytes": 13000,\
"localIPAddress": "127.0.0.1",\
"localPort": 6300,\
"remoteIPAddress": "102.1.1.101",\
"remotePort": 6301,\
"inboundPackets": 5500,\
"outboundPackets": 5400,\
"averageInboundPacketLossRateInPercentage": 0.01,\
"averageOutboundPacketLossRateInPercentage": 0.02,\
"maximumInboundPacketLossRateInPercentage": 0.05,\
"maximumOutboundPacketLossRateInPercentage": 0.06,\
"averageInboundRoundTripDelay": "PT0.03S",\
"averageOutboundRoundTripDelay": "PT0.04S",\
"maximumInboundRoundTripDelay": "PT0.13S",\
"maximumOutboundRoundTripDelay": "PT0.14S",\
"averageInboundJitter": "PT0.01S",\
"averageOutboundJitter": "PT0.015S",\
"maximumInboundJitter": "PT0.023S",\
"maximumOutboundJitter": "PT0.024S"\
},\
{\
"@odata.type": "#microsoft.graph.teleconferenceDeviceVideoQuality",\
"channelIndex": 1,\
"mediaDuration": "PT20M",\
"networkLinkSpeedInBytes": 13000,\
"localIPAddress": "127.0.0.1",\
"localPort": 6300,\
"remoteIPAddress": "102.1.1.101",\
"remotePort": 6301,\
"inboundPackets": 5500,\
"outboundPackets": 5400,\
"averageInboundPacketLossRateInPercentage": 0.01,\
"averageOutboundPacketLossRateInPercentage": 0.02,\
"maximumInboundPacketLossRateInPercentage": 0.05,\
"maximumOutboundPacketLossRateInPercentage": 0.06,\
"averageInboundRoundTripDelay": "PT0.03S",\
"averageOutboundRoundTripDelay": "PT0.04S",\
"maximumInboundRoundTripDelay": "PT0.13S",\
"maximumOutboundRoundTripDelay": "PT0.14S",\
"averageInboundJitter": "PT0.01S",\
"averageOutboundJitter": "PT0.015S",\
"maximumInboundJitter": "PT0.023S",\
"maximumOutboundJitter": "PT0.024S"\
},\
{\
"@odata.type": "#microsoft.graph.teleconferenceDeviceScreenSharingQuality",\
"channelIndex": 1,\
"mediaDuration": "PT20M",\
"networkLinkSpeedInBytes": 13000,\
"localIPAddress": "127.0.0.1",\
"localPort": 6300,\
"remoteIPAddress": "102.1.1.101",\
"remotePort": 6301,\
"inboundPackets": 5500,\
"outboundPackets": 5400,\
"averageInboundPacketLossRateInPercentage": 0.01,\
"averageOutboundPacketLossRateInPercentage": 0.02,\
"maximumInboundPacketLossRateInPercentage": 0.05,\
"maximumOutboundPacketLossRateInPercentage": 0.06,\
"averageInboundRoundTripDelay": "PT0.03S",\
"averageOutboundRoundTripDelay": "PT0.04S",\
"maximumInboundRoundTripDelay": "PT0.13S",\
"maximumOutboundRoundTripDelay": "PT0.14S",\
"averageInboundJitter": "PT0.01S",\
"averageOutboundJitter": "PT0.015S",\
"maximumInboundJitter": "PT0.023S",\
"maximumOutboundJitter": "PT0.024S"\
}\
]\
}\
}\
'
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ版で使用可能なすべての型、プロパティ、API がサポートされているわけではありません。 SDK を使用してベータ API にアクセスする方法の詳細については、「ベータ API で Microsoft Graph SDK を使用する」を参照してください。
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
// 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"
graphcommunications "github.com/microsoftgraph/msgraph-beta-sdk-go/communications"
graphmodels "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
//other-imports
)
requestBody := graphcommunications.NewLogTeleconferenceDeviceQualityPostRequestBody()
quality := graphmodels.NewTeleconferenceDeviceQuality()
callChainId := uuid.MustParse("0622673d-9f69-49b3-9d4f-5ec64f42ecce")
quality.SetCallChainId(&callChainId)
participantId := uuid.MustParse("ea078406-b5d4-4d3c-b85e-90103dcec7f6")
quality.SetParticipantId(&participantId)
mediaLegId := uuid.MustParse("bd9ee398-4b9d-42c7-8b8d-4e8efad9435f")
quality.SetMediaLegId(&mediaLegId)
deviceName := "TestAgent"
quality.SetDeviceName(&deviceName)
deviceDescription := "TestDescription"
quality.SetDeviceDescription(&deviceDescription)
teleconferenceDeviceMediaQuality := graphmodels.NewTeleconferenceDeviceAudioQuality()
channelIndex := int32(1)
teleconferenceDeviceMediaQuality.SetChannelIndex(&channelIndex)
mediaDuration , err := abstractions.ParseISODuration("PT20M")
teleconferenceDeviceMediaQuality.SetMediaDuration(&mediaDuration)
networkLinkSpeedInBytes := int64(13000)
teleconferenceDeviceMediaQuality.SetNetworkLinkSpeedInBytes(&networkLinkSpeedInBytes)
localIPAddress := "127.0.0.1"
teleconferenceDeviceMediaQuality.SetLocalIPAddress(&localIPAddress)
localPort := int32(6300)
teleconferenceDeviceMediaQuality.SetLocalPort(&localPort)
remoteIPAddress := "102.1.1.101"
teleconferenceDeviceMediaQuality.SetRemoteIPAddress(&remoteIPAddress)
remotePort := int32(6301)
teleconferenceDeviceMediaQuality.SetRemotePort(&remotePort)
inboundPackets := int64(5500)
teleconferenceDeviceMediaQuality.SetInboundPackets(&inboundPackets)
outboundPackets := int64(5400)
teleconferenceDeviceMediaQuality.SetOutboundPackets(&outboundPackets)
averageInboundPacketLossRateInPercentage := float64(0.01)
teleconferenceDeviceMediaQuality.SetAverageInboundPacketLossRateInPercentage(&averageInboundPacketLossRateInPercentage)
averageOutboundPacketLossRateInPercentage := float64(0.02)
teleconferenceDeviceMediaQuality.SetAverageOutboundPacketLossRateInPercentage(&averageOutboundPacketLossRateInPercentage)
maximumInboundPacketLossRateInPercentage := float64(0.05)
teleconferenceDeviceMediaQuality.SetMaximumInboundPacketLossRateInPercentage(&maximumInboundPacketLossRateInPercentage)
maximumOutboundPacketLossRateInPercentage := float64(0.06)
teleconferenceDeviceMediaQuality.SetMaximumOutboundPacketLossRateInPercentage(&maximumOutboundPacketLossRateInPercentage)
averageInboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.03S")
teleconferenceDeviceMediaQuality.SetAverageInboundRoundTripDelay(&averageInboundRoundTripDelay)
averageOutboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.04S")
teleconferenceDeviceMediaQuality.SetAverageOutboundRoundTripDelay(&averageOutboundRoundTripDelay)
maximumInboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.13S")
teleconferenceDeviceMediaQuality.SetMaximumInboundRoundTripDelay(&maximumInboundRoundTripDelay)
maximumOutboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.14S")
teleconferenceDeviceMediaQuality.SetMaximumOutboundRoundTripDelay(&maximumOutboundRoundTripDelay)
averageInboundJitter , err := abstractions.ParseISODuration("PT0.01S")
teleconferenceDeviceMediaQuality.SetAverageInboundJitter(&averageInboundJitter)
averageOutboundJitter , err := abstractions.ParseISODuration("PT0.015S")
teleconferenceDeviceMediaQuality.SetAverageOutboundJitter(&averageOutboundJitter)
maximumInboundJitter , err := abstractions.ParseISODuration("PT0.023S")
teleconferenceDeviceMediaQuality.SetMaximumInboundJitter(&maximumInboundJitter)
maximumOutboundJitter , err := abstractions.ParseISODuration("PT0.024S")
teleconferenceDeviceMediaQuality.SetMaximumOutboundJitter(&maximumOutboundJitter)
teleconferenceDeviceMediaQuality1 := graphmodels.NewTeleconferenceDeviceVideoQuality()
channelIndex := int32(1)
teleconferenceDeviceMediaQuality1.SetChannelIndex(&channelIndex)
mediaDuration , err := abstractions.ParseISODuration("PT20M")
teleconferenceDeviceMediaQuality1.SetMediaDuration(&mediaDuration)
networkLinkSpeedInBytes := int64(13000)
teleconferenceDeviceMediaQuality1.SetNetworkLinkSpeedInBytes(&networkLinkSpeedInBytes)
localIPAddress := "127.0.0.1"
teleconferenceDeviceMediaQuality1.SetLocalIPAddress(&localIPAddress)
localPort := int32(6300)
teleconferenceDeviceMediaQuality1.SetLocalPort(&localPort)
remoteIPAddress := "102.1.1.101"
teleconferenceDeviceMediaQuality1.SetRemoteIPAddress(&remoteIPAddress)
remotePort := int32(6301)
teleconferenceDeviceMediaQuality1.SetRemotePort(&remotePort)
inboundPackets := int64(5500)
teleconferenceDeviceMediaQuality1.SetInboundPackets(&inboundPackets)
outboundPackets := int64(5400)
teleconferenceDeviceMediaQuality1.SetOutboundPackets(&outboundPackets)
averageInboundPacketLossRateInPercentage := float64(0.01)
teleconferenceDeviceMediaQuality1.SetAverageInboundPacketLossRateInPercentage(&averageInboundPacketLossRateInPercentage)
averageOutboundPacketLossRateInPercentage := float64(0.02)
teleconferenceDeviceMediaQuality1.SetAverageOutboundPacketLossRateInPercentage(&averageOutboundPacketLossRateInPercentage)
maximumInboundPacketLossRateInPercentage := float64(0.05)
teleconferenceDeviceMediaQuality1.SetMaximumInboundPacketLossRateInPercentage(&maximumInboundPacketLossRateInPercentage)
maximumOutboundPacketLossRateInPercentage := float64(0.06)
teleconferenceDeviceMediaQuality1.SetMaximumOutboundPacketLossRateInPercentage(&maximumOutboundPacketLossRateInPercentage)
averageInboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.03S")
teleconferenceDeviceMediaQuality1.SetAverageInboundRoundTripDelay(&averageInboundRoundTripDelay)
averageOutboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.04S")
teleconferenceDeviceMediaQuality1.SetAverageOutboundRoundTripDelay(&averageOutboundRoundTripDelay)
maximumInboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.13S")
teleconferenceDeviceMediaQuality1.SetMaximumInboundRoundTripDelay(&maximumInboundRoundTripDelay)
maximumOutboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.14S")
teleconferenceDeviceMediaQuality1.SetMaximumOutboundRoundTripDelay(&maximumOutboundRoundTripDelay)
averageInboundJitter , err := abstractions.ParseISODuration("PT0.01S")
teleconferenceDeviceMediaQuality1.SetAverageInboundJitter(&averageInboundJitter)
averageOutboundJitter , err := abstractions.ParseISODuration("PT0.015S")
teleconferenceDeviceMediaQuality1.SetAverageOutboundJitter(&averageOutboundJitter)
maximumInboundJitter , err := abstractions.ParseISODuration("PT0.023S")
teleconferenceDeviceMediaQuality1.SetMaximumInboundJitter(&maximumInboundJitter)
maximumOutboundJitter , err := abstractions.ParseISODuration("PT0.024S")
teleconferenceDeviceMediaQuality1.SetMaximumOutboundJitter(&maximumOutboundJitter)
teleconferenceDeviceMediaQuality2 := graphmodels.NewTeleconferenceDeviceScreenSharingQuality()
channelIndex := int32(1)
teleconferenceDeviceMediaQuality2.SetChannelIndex(&channelIndex)
mediaDuration , err := abstractions.ParseISODuration("PT20M")
teleconferenceDeviceMediaQuality2.SetMediaDuration(&mediaDuration)
networkLinkSpeedInBytes := int64(13000)
teleconferenceDeviceMediaQuality2.SetNetworkLinkSpeedInBytes(&networkLinkSpeedInBytes)
localIPAddress := "127.0.0.1"
teleconferenceDeviceMediaQuality2.SetLocalIPAddress(&localIPAddress)
localPort := int32(6300)
teleconferenceDeviceMediaQuality2.SetLocalPort(&localPort)
remoteIPAddress := "102.1.1.101"
teleconferenceDeviceMediaQuality2.SetRemoteIPAddress(&remoteIPAddress)
remotePort := int32(6301)
teleconferenceDeviceMediaQuality2.SetRemotePort(&remotePort)
inboundPackets := int64(5500)
teleconferenceDeviceMediaQuality2.SetInboundPackets(&inboundPackets)
outboundPackets := int64(5400)
teleconferenceDeviceMediaQuality2.SetOutboundPackets(&outboundPackets)
averageInboundPacketLossRateInPercentage := float64(0.01)
teleconferenceDeviceMediaQuality2.SetAverageInboundPacketLossRateInPercentage(&averageInboundPacketLossRateInPercentage)
averageOutboundPacketLossRateInPercentage := float64(0.02)
teleconferenceDeviceMediaQuality2.SetAverageOutboundPacketLossRateInPercentage(&averageOutboundPacketLossRateInPercentage)
maximumInboundPacketLossRateInPercentage := float64(0.05)
teleconferenceDeviceMediaQuality2.SetMaximumInboundPacketLossRateInPercentage(&maximumInboundPacketLossRateInPercentage)
maximumOutboundPacketLossRateInPercentage := float64(0.06)
teleconferenceDeviceMediaQuality2.SetMaximumOutboundPacketLossRateInPercentage(&maximumOutboundPacketLossRateInPercentage)
averageInboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.03S")
teleconferenceDeviceMediaQuality2.SetAverageInboundRoundTripDelay(&averageInboundRoundTripDelay)
averageOutboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.04S")
teleconferenceDeviceMediaQuality2.SetAverageOutboundRoundTripDelay(&averageOutboundRoundTripDelay)
maximumInboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.13S")
teleconferenceDeviceMediaQuality2.SetMaximumInboundRoundTripDelay(&maximumInboundRoundTripDelay)
maximumOutboundRoundTripDelay , err := abstractions.ParseISODuration("PT0.14S")
teleconferenceDeviceMediaQuality2.SetMaximumOutboundRoundTripDelay(&maximumOutboundRoundTripDelay)
averageInboundJitter , err := abstractions.ParseISODuration("PT0.01S")
teleconferenceDeviceMediaQuality2.SetAverageInboundJitter(&averageInboundJitter)
averageOutboundJitter , err := abstractions.ParseISODuration("PT0.015S")
teleconferenceDeviceMediaQuality2.SetAverageOutboundJitter(&averageOutboundJitter)
maximumInboundJitter , err := abstractions.ParseISODuration("PT0.023S")
teleconferenceDeviceMediaQuality2.SetMaximumInboundJitter(&maximumInboundJitter)
maximumOutboundJitter , err := abstractions.ParseISODuration("PT0.024S")
teleconferenceDeviceMediaQuality2.SetMaximumOutboundJitter(&maximumOutboundJitter)
mediaQualityList := []graphmodels.TeleconferenceDeviceMediaQualityable {
teleconferenceDeviceMediaQuality,
teleconferenceDeviceMediaQuality1,
teleconferenceDeviceMediaQuality2,
}
quality.SetMediaQualityList(mediaQualityList)
requestBody.SetQuality(quality)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.Communications().Calls().LogTeleconferenceDeviceQuality().Post(context.Background(), requestBody, nil)
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ版で使用可能なすべての型、プロパティ、API がサポートされているわけではありません。 SDK を使用してベータ API にアクセスする方法の詳細については、「ベータ API で Microsoft Graph SDK を使用する」を参照してください。
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.communications.calls.logteleconferencedevicequality.LogTeleconferenceDeviceQualityPostRequestBody logTeleconferenceDeviceQualityPostRequestBody = new com.microsoft.graph.beta.communications.calls.logteleconferencedevicequality.LogTeleconferenceDeviceQualityPostRequestBody();
TeleconferenceDeviceQuality quality = new TeleconferenceDeviceQuality();
quality.setOdataType("#microsoft.graph.teleconferenceDeviceQuality");
quality.setCallChainId(UUID.fromString("0622673d-9f69-49b3-9d4f-5ec64f42ecce"));
quality.setParticipantId(UUID.fromString("ea078406-b5d4-4d3c-b85e-90103dcec7f6"));
quality.setMediaLegId(UUID.fromString("bd9ee398-4b9d-42c7-8b8d-4e8efad9435f"));
quality.setDeviceName("TestAgent");
quality.setDeviceDescription("TestDescription");
LinkedList<TeleconferenceDeviceMediaQuality> mediaQualityList = new LinkedList<TeleconferenceDeviceMediaQuality>();
TeleconferenceDeviceAudioQuality teleconferenceDeviceMediaQuality = new TeleconferenceDeviceAudioQuality();
teleconferenceDeviceMediaQuality.setOdataType("#microsoft.graph.teleconferenceDeviceAudioQuality");
teleconferenceDeviceMediaQuality.setChannelIndex(1);
PeriodAndDuration mediaDuration = PeriodAndDuration.ofDuration(Duration.parse("PT20M"));
teleconferenceDeviceMediaQuality.setMediaDuration(mediaDuration);
teleconferenceDeviceMediaQuality.setNetworkLinkSpeedInBytes(13000L);
teleconferenceDeviceMediaQuality.setLocalIPAddress("127.0.0.1");
teleconferenceDeviceMediaQuality.setLocalPort(6300);
teleconferenceDeviceMediaQuality.setRemoteIPAddress("102.1.1.101");
teleconferenceDeviceMediaQuality.setRemotePort(6301);
teleconferenceDeviceMediaQuality.setInboundPackets(5500L);
teleconferenceDeviceMediaQuality.setOutboundPackets(5400L);
teleconferenceDeviceMediaQuality.setAverageInboundPacketLossRateInPercentage(0.01d);
teleconferenceDeviceMediaQuality.setAverageOutboundPacketLossRateInPercentage(0.02d);
teleconferenceDeviceMediaQuality.setMaximumInboundPacketLossRateInPercentage(0.05d);
teleconferenceDeviceMediaQuality.setMaximumOutboundPacketLossRateInPercentage(0.06d);
PeriodAndDuration averageInboundRoundTripDelay = PeriodAndDuration.ofDuration(Duration.parse("PT0.03S"));
teleconferenceDeviceMediaQuality.setAverageInboundRoundTripDelay(averageInboundRoundTripDelay);
PeriodAndDuration averageOutboundRoundTripDelay = PeriodAndDuration.ofDuration(Duration.parse("PT0.04S"));
teleconferenceDeviceMediaQuality.setAverageOutboundRoundTripDelay(averageOutboundRoundTripDelay);
PeriodAndDuration maximumInboundRoundTripDelay = PeriodAndDuration.ofDuration(Duration.parse("PT0.13S"));
teleconferenceDeviceMediaQuality.setMaximumInboundRoundTripDelay(maximumInboundRoundTripDelay);
PeriodAndDuration maximumOutboundRoundTripDelay = PeriodAndDuration.ofDuration(Duration.parse("PT0.14S"));
teleconferenceDeviceMediaQuality.setMaximumOutboundRoundTripDelay(maximumOutboundRoundTripDelay);
PeriodAndDuration averageInboundJitter = PeriodAndDuration.ofDuration(Duration.parse("PT0.01S"));
teleconferenceDeviceMediaQuality.setAverageInboundJitter(averageInboundJitter);
PeriodAndDuration averageOutboundJitter = PeriodAndDuration.ofDuration(Duration.parse("PT0.015S"));
teleconferenceDeviceMediaQuality.setAverageOutboundJitter(averageOutboundJitter);
PeriodAndDuration maximumInboundJitter = PeriodAndDuration.ofDuration(Duration.parse("PT0.023S"));
teleconferenceDeviceMediaQuality.setMaximumInboundJitter(maximumInboundJitter);
PeriodAndDuration maximumOutboundJitter = PeriodAndDuration.ofDuration(Duration.parse("PT0.024S"));
teleconferenceDeviceMediaQuality.setMaximumOutboundJitter(maximumOutboundJitter);
mediaQualityList.add(teleconferenceDeviceMediaQuality);
TeleconferenceDeviceVideoQuality teleconferenceDeviceMediaQuality1 = new TeleconferenceDeviceVideoQuality();
teleconferenceDeviceMediaQuality1.setOdataType("#microsoft.graph.teleconferenceDeviceVideoQuality");
teleconferenceDeviceMediaQuality1.setChannelIndex(1);
PeriodAndDuration mediaDuration1 = PeriodAndDuration.ofDuration(Duration.parse("PT20M"));
teleconferenceDeviceMediaQuality1.setMediaDuration(mediaDuration1);
teleconferenceDeviceMediaQuality1.setNetworkLinkSpeedInBytes(13000L);
teleconferenceDeviceMediaQuality1.setLocalIPAddress("127.0.0.1");
teleconferenceDeviceMediaQuality1.setLocalPort(6300);
teleconferenceDeviceMediaQuality1.setRemoteIPAddress("102.1.1.101");
teleconferenceDeviceMediaQuality1.setRemotePort(6301);
teleconferenceDeviceMediaQuality1.setInboundPackets(5500L);
teleconferenceDeviceMediaQuality1.setOutboundPackets(5400L);
teleconferenceDeviceMediaQuality1.setAverageInboundPacketLossRateInPercentage(0.01d);
teleconferenceDeviceMediaQuality1.setAverageOutboundPacketLossRateInPercentage(0.02d);
teleconferenceDeviceMediaQuality1.setMaximumInboundPacketLossRateInPercentage(0.05d);
teleconferenceDeviceMediaQuality1.setMaximumOutboundPacketLossRateInPercentage(0.06d);
PeriodAndDuration averageInboundRoundTripDelay1 = PeriodAndDuration.ofDuration(Duration.parse("PT0.03S"));
teleconferenceDeviceMediaQuality1.setAverageInboundRoundTripDelay(averageInboundRoundTripDelay1);
PeriodAndDuration averageOutboundRoundTripDelay1 = PeriodAndDuration.ofDuration(Duration.parse("PT0.04S"));
teleconferenceDeviceMediaQuality1.setAverageOutboundRoundTripDelay(averageOutboundRoundTripDelay1);
PeriodAndDuration maximumInboundRoundTripDelay1 = PeriodAndDuration.ofDuration(Duration.parse("PT0.13S"));
teleconferenceDeviceMediaQuality1.setMaximumInboundRoundTripDelay(maximumInboundRoundTripDelay1);
PeriodAndDuration maximumOutboundRoundTripDelay1 = PeriodAndDuration.ofDuration(Duration.parse("PT0.14S"));
teleconferenceDeviceMediaQuality1.setMaximumOutboundRoundTripDelay(maximumOutboundRoundTripDelay1);
PeriodAndDuration averageInboundJitter1 = PeriodAndDuration.ofDuration(Duration.parse("PT0.01S"));
teleconferenceDeviceMediaQuality1.setAverageInboundJitter(averageInboundJitter1);
PeriodAndDuration averageOutboundJitter1 = PeriodAndDuration.ofDuration(Duration.parse("PT0.015S"));
teleconferenceDeviceMediaQuality1.setAverageOutboundJitter(averageOutboundJitter1);
PeriodAndDuration maximumInboundJitter1 = PeriodAndDuration.ofDuration(Duration.parse("PT0.023S"));
teleconferenceDeviceMediaQuality1.setMaximumInboundJitter(maximumInboundJitter1);
PeriodAndDuration maximumOutboundJitter1 = PeriodAndDuration.ofDuration(Duration.parse("PT0.024S"));
teleconferenceDeviceMediaQuality1.setMaximumOutboundJitter(maximumOutboundJitter1);
mediaQualityList.add(teleconferenceDeviceMediaQuality1);
TeleconferenceDeviceScreenSharingQuality teleconferenceDeviceMediaQuality2 = new TeleconferenceDeviceScreenSharingQuality();
teleconferenceDeviceMediaQuality2.setOdataType("#microsoft.graph.teleconferenceDeviceScreenSharingQuality");
teleconferenceDeviceMediaQuality2.setChannelIndex(1);
PeriodAndDuration mediaDuration2 = PeriodAndDuration.ofDuration(Duration.parse("PT20M"));
teleconferenceDeviceMediaQuality2.setMediaDuration(mediaDuration2);
teleconferenceDeviceMediaQuality2.setNetworkLinkSpeedInBytes(13000L);
teleconferenceDeviceMediaQuality2.setLocalIPAddress("127.0.0.1");
teleconferenceDeviceMediaQuality2.setLocalPort(6300);
teleconferenceDeviceMediaQuality2.setRemoteIPAddress("102.1.1.101");
teleconferenceDeviceMediaQuality2.setRemotePort(6301);
teleconferenceDeviceMediaQuality2.setInboundPackets(5500L);
teleconferenceDeviceMediaQuality2.setOutboundPackets(5400L);
teleconferenceDeviceMediaQuality2.setAverageInboundPacketLossRateInPercentage(0.01d);
teleconferenceDeviceMediaQuality2.setAverageOutboundPacketLossRateInPercentage(0.02d);
teleconferenceDeviceMediaQuality2.setMaximumInboundPacketLossRateInPercentage(0.05d);
teleconferenceDeviceMediaQuality2.setMaximumOutboundPacketLossRateInPercentage(0.06d);
PeriodAndDuration averageInboundRoundTripDelay2 = PeriodAndDuration.ofDuration(Duration.parse("PT0.03S"));
teleconferenceDeviceMediaQuality2.setAverageInboundRoundTripDelay(averageInboundRoundTripDelay2);
PeriodAndDuration averageOutboundRoundTripDelay2 = PeriodAndDuration.ofDuration(Duration.parse("PT0.04S"));
teleconferenceDeviceMediaQuality2.setAverageOutboundRoundTripDelay(averageOutboundRoundTripDelay2);
PeriodAndDuration maximumInboundRoundTripDelay2 = PeriodAndDuration.ofDuration(Duration.parse("PT0.13S"));
teleconferenceDeviceMediaQuality2.setMaximumInboundRoundTripDelay(maximumInboundRoundTripDelay2);
PeriodAndDuration maximumOutboundRoundTripDelay2 = PeriodAndDuration.ofDuration(Duration.parse("PT0.14S"));
teleconferenceDeviceMediaQuality2.setMaximumOutboundRoundTripDelay(maximumOutboundRoundTripDelay2);
PeriodAndDuration averageInboundJitter2 = PeriodAndDuration.ofDuration(Duration.parse("PT0.01S"));
teleconferenceDeviceMediaQuality2.setAverageInboundJitter(averageInboundJitter2);
PeriodAndDuration averageOutboundJitter2 = PeriodAndDuration.ofDuration(Duration.parse("PT0.015S"));
teleconferenceDeviceMediaQuality2.setAverageOutboundJitter(averageOutboundJitter2);
PeriodAndDuration maximumInboundJitter2 = PeriodAndDuration.ofDuration(Duration.parse("PT0.023S"));
teleconferenceDeviceMediaQuality2.setMaximumInboundJitter(maximumInboundJitter2);
PeriodAndDuration maximumOutboundJitter2 = PeriodAndDuration.ofDuration(Duration.parse("PT0.024S"));
teleconferenceDeviceMediaQuality2.setMaximumOutboundJitter(maximumOutboundJitter2);
mediaQualityList.add(teleconferenceDeviceMediaQuality2);
quality.setMediaQualityList(mediaQualityList);
logTeleconferenceDeviceQualityPostRequestBody.setQuality(quality);
graphClient.communications().calls().logTeleconferenceDeviceQuality().post(logTeleconferenceDeviceQualityPostRequestBody);
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ版で使用可能なすべての型、プロパティ、API がサポートされているわけではありません。 SDK を使用してベータ API にアクセスする方法の詳細については、「ベータ API で Microsoft Graph SDK を使用する」を参照してください。
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
const options = {
authProvider,
};
const client = Client.init(options);
const logTeleconferenceDeviceQuality = {
quality: {
'@odata.type': '#microsoft.graph.teleconferenceDeviceQuality',
callChainId: '0622673d-9f69-49b3-9d4f-5ec64f42ecce',
participantId: 'ea078406-b5d4-4d3c-b85e-90103dcec7f6',
mediaLegId: 'bd9ee398-4b9d-42c7-8b8d-4e8efad9435f',
deviceName: 'TestAgent',
deviceDescription: 'TestDescription',
mediaQualityList: [
{
'@odata.type': '#microsoft.graph.teleconferenceDeviceAudioQuality',
channelIndex: 1,
mediaDuration: 'PT20M',
networkLinkSpeedInBytes: 13000,
localIPAddress: '127.0.0.1',
localPort: 6300,
remoteIPAddress: '102.1.1.101',
remotePort: 6301,
inboundPackets: 5500,
outboundPackets: 5400,
averageInboundPacketLossRateInPercentage: 0.01,
averageOutboundPacketLossRateInPercentage: 0.02,
maximumInboundPacketLossRateInPercentage: 0.05,
maximumOutboundPacketLossRateInPercentage: 0.06,
averageInboundRoundTripDelay: 'PT0.03S',
averageOutboundRoundTripDelay: 'PT0.04S',
maximumInboundRoundTripDelay: 'PT0.13S',
maximumOutboundRoundTripDelay: 'PT0.14S',
averageInboundJitter: 'PT0.01S',
averageOutboundJitter: 'PT0.015S',
maximumInboundJitter: 'PT0.023S',
maximumOutboundJitter: 'PT0.024S'
},
{
'@odata.type': '#microsoft.graph.teleconferenceDeviceVideoQuality',
channelIndex: 1,
mediaDuration: 'PT20M',
networkLinkSpeedInBytes: 13000,
localIPAddress: '127.0.0.1',
localPort: 6300,
remoteIPAddress: '102.1.1.101',
remotePort: 6301,
inboundPackets: 5500,
outboundPackets: 5400,
averageInboundPacketLossRateInPercentage: 0.01,
averageOutboundPacketLossRateInPercentage: 0.02,
maximumInboundPacketLossRateInPercentage: 0.05,
maximumOutboundPacketLossRateInPercentage: 0.06,
averageInboundRoundTripDelay: 'PT0.03S',
averageOutboundRoundTripDelay: 'PT0.04S',
maximumInboundRoundTripDelay: 'PT0.13S',
maximumOutboundRoundTripDelay: 'PT0.14S',
averageInboundJitter: 'PT0.01S',
averageOutboundJitter: 'PT0.015S',
maximumInboundJitter: 'PT0.023S',
maximumOutboundJitter: 'PT0.024S'
},
{
'@odata.type': '#microsoft.graph.teleconferenceDeviceScreenSharingQuality',
channelIndex: 1,
mediaDuration: 'PT20M',
networkLinkSpeedInBytes: 13000,
localIPAddress: '127.0.0.1',
localPort: 6300,
remoteIPAddress: '102.1.1.101',
remotePort: 6301,
inboundPackets: 5500,
outboundPackets: 5400,
averageInboundPacketLossRateInPercentage: 0.01,
averageOutboundPacketLossRateInPercentage: 0.02,
maximumInboundPacketLossRateInPercentage: 0.05,
maximumOutboundPacketLossRateInPercentage: 0.06,
averageInboundRoundTripDelay: 'PT0.03S',
averageOutboundRoundTripDelay: 'PT0.04S',
maximumInboundRoundTripDelay: 'PT0.13S',
maximumOutboundRoundTripDelay: 'PT0.14S',
averageInboundJitter: 'PT0.01S',
averageOutboundJitter: 'PT0.015S',
maximumInboundJitter: 'PT0.023S',
maximumOutboundJitter: 'PT0.024S'
}
]
}
};
await client.api('/communications/calls/logTeleconferenceDeviceQuality')
.version('beta')
.post(logTeleconferenceDeviceQuality);
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ版で使用可能なすべての型、プロパティ、API がサポートされているわけではありません。 SDK を使用してベータ API にアクセスする方法の詳細については、「ベータ API で Microsoft Graph SDK を使用する」を参照してください。
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\Communications\Calls\LogTeleconferenceDeviceQuality\LogTeleconferenceDeviceQualityPostRequestBody;
use Microsoft\Graph\Beta\Generated\Models\TeleconferenceDeviceQuality;
use Microsoft\Graph\Beta\Generated\Models\TeleconferenceDeviceMediaQuality;
use Microsoft\Graph\Beta\Generated\Models\TeleconferenceDeviceAudioQuality;
use Microsoft\Graph\Beta\Generated\Models\TeleconferenceDeviceVideoQuality;
use Microsoft\Graph\Beta\Generated\Models\TeleconferenceDeviceScreenSharingQuality;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new LogTeleconferenceDeviceQualityPostRequestBody();
$quality = new TeleconferenceDeviceQuality();
$quality->setOdataType('#microsoft.graph.teleconferenceDeviceQuality');
$quality->setCallChainId('0622673d-9f69-49b3-9d4f-5ec64f42ecce');
$quality->setParticipantId('ea078406-b5d4-4d3c-b85e-90103dcec7f6');
$quality->setMediaLegId('bd9ee398-4b9d-42c7-8b8d-4e8efad9435f');
$quality->setDeviceName('TestAgent');
$quality->setDeviceDescription('TestDescription');
$mediaQualityListTeleconferenceDeviceMediaQuality1 = new TeleconferenceDeviceAudioQuality();
$mediaQualityListTeleconferenceDeviceMediaQuality1->setOdataType('#microsoft.graph.teleconferenceDeviceAudioQuality');
$mediaQualityListTeleconferenceDeviceMediaQuality1->setChannelIndex(1);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setMediaDuration(new \DateInterval('PT20M'));
$mediaQualityListTeleconferenceDeviceMediaQuality1->setNetworkLinkSpeedInBytes(13000);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setLocalIPAddress('127.0.0.1');
$mediaQualityListTeleconferenceDeviceMediaQuality1->setLocalPort(6300);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setRemoteIPAddress('102.1.1.101');
$mediaQualityListTeleconferenceDeviceMediaQuality1->setRemotePort(6301);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setInboundPackets(5500);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setOutboundPackets(5400);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setAverageInboundPacketLossRateInPercentage(0.01);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setAverageOutboundPacketLossRateInPercentage(0.02);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setMaximumInboundPacketLossRateInPercentage(0.05);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setMaximumOutboundPacketLossRateInPercentage(0.06);
$mediaQualityListTeleconferenceDeviceMediaQuality1->setAverageInboundRoundTripDelay(new \DateInterval('PT0.03S'));
$mediaQualityListTeleconferenceDeviceMediaQuality1->setAverageOutboundRoundTripDelay(new \DateInterval('PT0.04S'));
$mediaQualityListTeleconferenceDeviceMediaQuality1->setMaximumInboundRoundTripDelay(new \DateInterval('PT0.13S'));
$mediaQualityListTeleconferenceDeviceMediaQuality1->setMaximumOutboundRoundTripDelay(new \DateInterval('PT0.14S'));
$mediaQualityListTeleconferenceDeviceMediaQuality1->setAverageInboundJitter(new \DateInterval('PT0.01S'));
$mediaQualityListTeleconferenceDeviceMediaQuality1->setAverageOutboundJitter(new \DateInterval('PT0.015S'));
$mediaQualityListTeleconferenceDeviceMediaQuality1->setMaximumInboundJitter(new \DateInterval('PT0.023S'));
$mediaQualityListTeleconferenceDeviceMediaQuality1->setMaximumOutboundJitter(new \DateInterval('PT0.024S'));
$mediaQualityListArray []= $mediaQualityListTeleconferenceDeviceMediaQuality1;
$mediaQualityListTeleconferenceDeviceMediaQuality2 = new TeleconferenceDeviceVideoQuality();
$mediaQualityListTeleconferenceDeviceMediaQuality2->setOdataType('#microsoft.graph.teleconferenceDeviceVideoQuality');
$mediaQualityListTeleconferenceDeviceMediaQuality2->setChannelIndex(1);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setMediaDuration(new \DateInterval('PT20M'));
$mediaQualityListTeleconferenceDeviceMediaQuality2->setNetworkLinkSpeedInBytes(13000);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setLocalIPAddress('127.0.0.1');
$mediaQualityListTeleconferenceDeviceMediaQuality2->setLocalPort(6300);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setRemoteIPAddress('102.1.1.101');
$mediaQualityListTeleconferenceDeviceMediaQuality2->setRemotePort(6301);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setInboundPackets(5500);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setOutboundPackets(5400);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setAverageInboundPacketLossRateInPercentage(0.01);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setAverageOutboundPacketLossRateInPercentage(0.02);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setMaximumInboundPacketLossRateInPercentage(0.05);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setMaximumOutboundPacketLossRateInPercentage(0.06);
$mediaQualityListTeleconferenceDeviceMediaQuality2->setAverageInboundRoundTripDelay(new \DateInterval('PT0.03S'));
$mediaQualityListTeleconferenceDeviceMediaQuality2->setAverageOutboundRoundTripDelay(new \DateInterval('PT0.04S'));
$mediaQualityListTeleconferenceDeviceMediaQuality2->setMaximumInboundRoundTripDelay(new \DateInterval('PT0.13S'));
$mediaQualityListTeleconferenceDeviceMediaQuality2->setMaximumOutboundRoundTripDelay(new \DateInterval('PT0.14S'));
$mediaQualityListTeleconferenceDeviceMediaQuality2->setAverageInboundJitter(new \DateInterval('PT0.01S'));
$mediaQualityListTeleconferenceDeviceMediaQuality2->setAverageOutboundJitter(new \DateInterval('PT0.015S'));
$mediaQualityListTeleconferenceDeviceMediaQuality2->setMaximumInboundJitter(new \DateInterval('PT0.023S'));
$mediaQualityListTeleconferenceDeviceMediaQuality2->setMaximumOutboundJitter(new \DateInterval('PT0.024S'));
$mediaQualityListArray []= $mediaQualityListTeleconferenceDeviceMediaQuality2;
$mediaQualityListTeleconferenceDeviceMediaQuality3 = new TeleconferenceDeviceScreenSharingQuality();
$mediaQualityListTeleconferenceDeviceMediaQuality3->setOdataType('#microsoft.graph.teleconferenceDeviceScreenSharingQuality');
$mediaQualityListTeleconferenceDeviceMediaQuality3->setChannelIndex(1);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setMediaDuration(new \DateInterval('PT20M'));
$mediaQualityListTeleconferenceDeviceMediaQuality3->setNetworkLinkSpeedInBytes(13000);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setLocalIPAddress('127.0.0.1');
$mediaQualityListTeleconferenceDeviceMediaQuality3->setLocalPort(6300);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setRemoteIPAddress('102.1.1.101');
$mediaQualityListTeleconferenceDeviceMediaQuality3->setRemotePort(6301);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setInboundPackets(5500);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setOutboundPackets(5400);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setAverageInboundPacketLossRateInPercentage(0.01);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setAverageOutboundPacketLossRateInPercentage(0.02);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setMaximumInboundPacketLossRateInPercentage(0.05);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setMaximumOutboundPacketLossRateInPercentage(0.06);
$mediaQualityListTeleconferenceDeviceMediaQuality3->setAverageInboundRoundTripDelay(new \DateInterval('PT0.03S'));
$mediaQualityListTeleconferenceDeviceMediaQuality3->setAverageOutboundRoundTripDelay(new \DateInterval('PT0.04S'));
$mediaQualityListTeleconferenceDeviceMediaQuality3->setMaximumInboundRoundTripDelay(new \DateInterval('PT0.13S'));
$mediaQualityListTeleconferenceDeviceMediaQuality3->setMaximumOutboundRoundTripDelay(new \DateInterval('PT0.14S'));
$mediaQualityListTeleconferenceDeviceMediaQuality3->setAverageInboundJitter(new \DateInterval('PT0.01S'));
$mediaQualityListTeleconferenceDeviceMediaQuality3->setAverageOutboundJitter(new \DateInterval('PT0.015S'));
$mediaQualityListTeleconferenceDeviceMediaQuality3->setMaximumInboundJitter(new \DateInterval('PT0.023S'));
$mediaQualityListTeleconferenceDeviceMediaQuality3->setMaximumOutboundJitter(new \DateInterval('PT0.024S'));
$mediaQualityListArray []= $mediaQualityListTeleconferenceDeviceMediaQuality3;
$quality->setMediaQualityList($mediaQualityListArray);
$requestBody->setQuality($quality);
$graphServiceClient->communications()->calls()->logTeleconferenceDeviceQuality()->post($requestBody)->wait();
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ版で使用可能なすべての型、プロパティ、API がサポートされているわけではありません。 SDK を使用してベータ API にアクセスする方法の詳細については、「ベータ API で Microsoft Graph SDK を使用する」を参照してください。
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.communications.calls.log_teleconference_device_quality.log_teleconference_device_quality_post_request_body import LogTeleconferenceDeviceQualityPostRequestBody
from msgraph_beta.generated.models.teleconference_device_quality import TeleconferenceDeviceQuality
from msgraph_beta.generated.models.teleconference_device_media_quality import TeleconferenceDeviceMediaQuality
from msgraph_beta.generated.models.teleconference_device_audio_quality import TeleconferenceDeviceAudioQuality
from msgraph_beta.generated.models.teleconference_device_video_quality import TeleconferenceDeviceVideoQuality
from msgraph_beta.generated.models.teleconference_device_screen_sharing_quality import TeleconferenceDeviceScreenSharingQuality
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = LogTeleconferenceDeviceQualityPostRequestBody(
quality = TeleconferenceDeviceQuality(
odata_type = "#microsoft.graph.teleconferenceDeviceQuality",
call_chain_id = UUID("0622673d-9f69-49b3-9d4f-5ec64f42ecce"),
participant_id = UUID("ea078406-b5d4-4d3c-b85e-90103dcec7f6"),
media_leg_id = UUID("bd9ee398-4b9d-42c7-8b8d-4e8efad9435f"),
device_name = "TestAgent",
device_description = "TestDescription",
media_quality_list = [
TeleconferenceDeviceAudioQuality(
odata_type = "#microsoft.graph.teleconferenceDeviceAudioQuality",
channel_index = 1,
media_duration = "PT20M",
network_link_speed_in_bytes = 13000,
local_i_p_address = "127.0.0.1",
local_port = 6300,
remote_i_p_address = "102.1.1.101",
remote_port = 6301,
inbound_packets = 5500,
outbound_packets = 5400,
average_inbound_packet_loss_rate_in_percentage = 0.01,
average_outbound_packet_loss_rate_in_percentage = 0.02,
maximum_inbound_packet_loss_rate_in_percentage = 0.05,
maximum_outbound_packet_loss_rate_in_percentage = 0.06,
average_inbound_round_trip_delay = "PT0.03S",
average_outbound_round_trip_delay = "PT0.04S",
maximum_inbound_round_trip_delay = "PT0.13S",
maximum_outbound_round_trip_delay = "PT0.14S",
average_inbound_jitter = "PT0.01S",
average_outbound_jitter = "PT0.015S",
maximum_inbound_jitter = "PT0.023S",
maximum_outbound_jitter = "PT0.024S",
),
TeleconferenceDeviceVideoQuality(
odata_type = "#microsoft.graph.teleconferenceDeviceVideoQuality",
channel_index = 1,
media_duration = "PT20M",
network_link_speed_in_bytes = 13000,
local_i_p_address = "127.0.0.1",
local_port = 6300,
remote_i_p_address = "102.1.1.101",
remote_port = 6301,
inbound_packets = 5500,
outbound_packets = 5400,
average_inbound_packet_loss_rate_in_percentage = 0.01,
average_outbound_packet_loss_rate_in_percentage = 0.02,
maximum_inbound_packet_loss_rate_in_percentage = 0.05,
maximum_outbound_packet_loss_rate_in_percentage = 0.06,
average_inbound_round_trip_delay = "PT0.03S",
average_outbound_round_trip_delay = "PT0.04S",
maximum_inbound_round_trip_delay = "PT0.13S",
maximum_outbound_round_trip_delay = "PT0.14S",
average_inbound_jitter = "PT0.01S",
average_outbound_jitter = "PT0.015S",
maximum_inbound_jitter = "PT0.023S",
maximum_outbound_jitter = "PT0.024S",
),
TeleconferenceDeviceScreenSharingQuality(
odata_type = "#microsoft.graph.teleconferenceDeviceScreenSharingQuality",
channel_index = 1,
media_duration = "PT20M",
network_link_speed_in_bytes = 13000,
local_i_p_address = "127.0.0.1",
local_port = 6300,
remote_i_p_address = "102.1.1.101",
remote_port = 6301,
inbound_packets = 5500,
outbound_packets = 5400,
average_inbound_packet_loss_rate_in_percentage = 0.01,
average_outbound_packet_loss_rate_in_percentage = 0.02,
maximum_inbound_packet_loss_rate_in_percentage = 0.05,
maximum_outbound_packet_loss_rate_in_percentage = 0.06,
average_inbound_round_trip_delay = "PT0.03S",
average_outbound_round_trip_delay = "PT0.04S",
maximum_inbound_round_trip_delay = "PT0.13S",
maximum_outbound_round_trip_delay = "PT0.14S",
average_inbound_jitter = "PT0.01S",
average_outbound_jitter = "PT0.015S",
maximum_inbound_jitter = "PT0.023S",
maximum_outbound_jitter = "PT0.024S",
),
],
),
)
await graph_client.communications.calls.log_teleconference_device_quality.post(request_body)
重要
Microsoft Graph SDK では、既定で v1.0 バージョンの API が使用され、ベータ版で使用可能なすべての型、プロパティ、API がサポートされているわけではありません。 SDK を使用してベータ API にアクセスする方法の詳細については、「ベータ API で Microsoft Graph SDK を使用する」を参照してください。
プロジェクトに SDK を追加し、authProvider インスタンスを作成する方法の詳細については、SDK のドキュメントを参照してください。
応答
次の例は応答を示しています。
HTTP/1.1 200 OK
フィードバック
このページはお役に立ちましたか?