Sprog

ProjectsAgentsModelFactory.TelephonyCallTiming Method

Definition

Detailed provider-neutral timing for an inbound telephony call.

public static Azure.AI.Projects.Agents.TelephonyCallTiming TelephonyCallTiming(DateTimeOffset? receivedOn = default, DateTimeOffset? validatedOn = default, DateTimeOffset? admittedOn = default, DateTimeOffset? answerRequestedOn = default, DateTimeOffset? answeredOn = default, DateTimeOffset? mediaConnectedOn = default, DateTimeOffset? agentSessionReadyOn = default, DateTimeOffset? firstCallerAudioOn = default, DateTimeOffset? firstAgentAudioOn = default, DateTimeOffset? endedOn = default, Azure.AI.Projects.Agents.TelephonyCallDurationBasis? durationBasis = default, Azure.AI.Projects.Agents.TelephonyCallTimestampSource timestampSource = default);
static member TelephonyCallTiming : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.AI.Projects.Agents.TelephonyCallDurationBasis> * Azure.AI.Projects.Agents.TelephonyCallTimestampSource -> Azure.AI.Projects.Agents.TelephonyCallTiming
Public Shared Function TelephonyCallTiming (Optional receivedOn As Nullable(Of DateTimeOffset) = Nothing, Optional validatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional admittedOn As Nullable(Of DateTimeOffset) = Nothing, Optional answerRequestedOn As Nullable(Of DateTimeOffset) = Nothing, Optional answeredOn As Nullable(Of DateTimeOffset) = Nothing, Optional mediaConnectedOn As Nullable(Of DateTimeOffset) = Nothing, Optional agentSessionReadyOn As Nullable(Of DateTimeOffset) = Nothing, Optional firstCallerAudioOn As Nullable(Of DateTimeOffset) = Nothing, Optional firstAgentAudioOn As Nullable(Of DateTimeOffset) = Nothing, Optional endedOn As Nullable(Of DateTimeOffset) = Nothing, Optional durationBasis As Nullable(Of TelephonyCallDurationBasis) = Nothing, Optional timestampSource As TelephonyCallTimestampSource = Nothing) As TelephonyCallTiming

Parameters

receivedOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the provider webhook was received.

validatedOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when webhook validation completed.

admittedOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the call was admitted to an agent binding.

answerRequestedOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the service requested that the provider answer the call.

answeredOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the provider reported that the call was answered.

mediaConnectedOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the provider media channel connected.

agentSessionReadyOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the voice-agent session became ready.

firstCallerAudioOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when caller audio was first observed.

firstAgentAudioOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when agent audio was first observed.

endedOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the call reached a terminal state.

durationBasis
Nullable<TelephonyCallDurationBasis>

The timestamp used as the basis for duration.

timestampSource
TelephonyCallTimestampSource

The primary source of the timing milestones. Individual lifecycle events identify their own timestamp source separately.

Returns

A new TelephonyCallTiming instance for mocking.

Applies to