call: logTeleconferenceDeviceQuality
- Статья
Пространство имен: microsoft.graph
Важно!
API версии /beta
в Microsoft Graph могут быть изменены. Использование этих API в производственных приложениях не поддерживается. Чтобы определить, доступен ли API в версии 1.0, используйте селектор версий.
Запись в журнал данных о качестве устройств для видеоконференций.
Бот Cloud Video Interop (CVI) представляет устройства видеотелемоста (VTC) и выступает в качестве агента обратной передачи для устройства VTC в конференц-связи. Так как бот CVI находится в центре инфраструктуры VTC и Microsoft Teams в качестве прокси-сервера VTC, он имеет два носителя. Один этап мультимедиа находится между ботом CVI и инфраструктурой Teams, например сервером конференций Teams или клиентом Teams. Другой этап мультимедиа находится между ботом CVI и устройством VTC.
Сторонние партнеры владеют частью мультимедиа VTC, и инфраструктура Teams не может получить доступ к качественным данным стороннего этапа вызова. Этот метод предназначен только для того, чтобы партнеры CVI предоставляли свои данные о качестве мультимедиа.
Этот API доступен в следующих национальных облачных развертываниях.
Глобальная служба | Правительство США L4 | Правительство США L5 (DOD) | Китай управляется 21Vianet |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
Разрешения
Выберите разрешение или разрешения, помеченные как наименее привилегированные для этого API. Используйте более привилегированное разрешение или разрешения только в том случае, если это требуется приложению. Дополнительные сведения о делегированных разрешениях и разрешениях приложений см. в разделе Типы разрешений. Дополнительные сведения об этих разрешениях см. в справочнике по разрешениям.
Тип разрешения | Разрешения с наименьшими привилегиями | Более высокие привилегированные разрешения |
---|---|---|
Делегированные (рабочая или учебная учетная запись) | Не поддерживается. | Не поддерживается. |
Делегированные (личная учетная запись Майкрософт) | Не поддерживается. | Не поддерживается. |
Приложение | Calls.AccessMedia.All | Недоступно. |
HTTP-запрос
POST /communications/calls/logTeleconferenceDeviceQuality
Заголовки запросов
Имя | Описание |
---|---|
Авторизация | Bearer {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);
Важно!
Пакеты SDK для Microsoft Graph по умолчанию используют версию API версии 1.0 и поддерживают не все типы, свойства и API, доступные в бета-версии. Дополнительные сведения о доступе к бета-API с помощью SDK см. в статье Использование пакетов Microsoft Graph SDK с бета-API.
Подробнее о том, как добавить 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"\
}\
]\
}\
}\
'
Важно!
Пакеты SDK для Microsoft Graph по умолчанию используют версию API версии 1.0 и поддерживают не все типы, свойства и API, доступные в бета-версии. Дополнительные сведения о доступе к бета-API с помощью SDK см. в статье Использование пакетов Microsoft Graph SDK с бета-API.
Подробнее о том, как добавить 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)
Важно!
Пакеты SDK для Microsoft Graph по умолчанию используют версию API версии 1.0 и поддерживают не все типы, свойства и API, доступные в бета-версии. Дополнительные сведения о доступе к бета-API с помощью SDK см. в статье Использование пакетов Microsoft Graph SDK с бета-API.
Подробнее о том, как добавить 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);
Важно!
Пакеты SDK для Microsoft Graph по умолчанию используют версию API версии 1.0 и поддерживают не все типы, свойства и API, доступные в бета-версии. Дополнительные сведения о доступе к бета-API с помощью SDK см. в статье Использование пакетов Microsoft Graph SDK с бета-API.
Подробнее о том, как добавить 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);
Важно!
Пакеты SDK для Microsoft Graph по умолчанию используют версию API версии 1.0 и поддерживают не все типы, свойства и API, доступные в бета-версии. Дополнительные сведения о доступе к бета-API с помощью SDK см. в статье Использование пакетов Microsoft Graph SDK с бета-API.
Подробнее о том, как добавить 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();
Важно!
Пакеты SDK для Microsoft Graph по умолчанию используют версию API версии 1.0 и поддерживают не все типы, свойства и API, доступные в бета-версии. Дополнительные сведения о доступе к бета-API с помощью SDK см. в статье Использование пакетов Microsoft Graph SDK с бета-API.
Подробнее о том, как добавить 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)
Важно!
Пакеты SDK для Microsoft Graph по умолчанию используют версию API версии 1.0 и поддерживают не все типы, свойства и API, доступные в бета-версии. Дополнительные сведения о доступе к бета-API с помощью SDK см. в статье Использование пакетов Microsoft Graph SDK с бета-API.
Подробнее о том, как добавить SDK в свой проект и создать экземпляр authProvider, см. в документации по SDK.
Отклик
Ниже приводится пример отклика.
HTTP/1.1 200 OK
Обратная связь
Были ли сведения на этой странице полезными?