ภาษา

ProjectsAgentsModelFactory.TelephonyCallLifecycleEvent Method

Definition

A bounded durable observation in the lifecycle of one telephony call.

public static Azure.AI.Projects.Agents.TelephonyCallLifecycleEvent TelephonyCallLifecycleEvent(long sequence = 0, Azure.AI.Projects.Agents.TelephonyCallLifecycleEventName name = default, Azure.AI.Projects.Agents.TelephonyCallLifecycleEventSource source = default, Azure.AI.Projects.Agents.TelephonyCallLifecycleEventOutcome outcome = default, DateTimeOffset observedOn = default, DateTimeOffset? occurredOn = default, Azure.AI.Projects.Agents.TelephonyCallTimestampSource timestampSource = default, Azure.AI.Projects.Agents.TelephonyCallLifecycleEventReason? reason = default, string providerEventId = default, long? providerSequence = default, int? providerStatusCode = default, int? providerSubCode = default);
static member TelephonyCallLifecycleEvent : int64 * Azure.AI.Projects.Agents.TelephonyCallLifecycleEventName * Azure.AI.Projects.Agents.TelephonyCallLifecycleEventSource * Azure.AI.Projects.Agents.TelephonyCallLifecycleEventOutcome * DateTimeOffset * Nullable<DateTimeOffset> * Azure.AI.Projects.Agents.TelephonyCallTimestampSource * Nullable<Azure.AI.Projects.Agents.TelephonyCallLifecycleEventReason> * string * Nullable<int64> * Nullable<int> * Nullable<int> -> Azure.AI.Projects.Agents.TelephonyCallLifecycleEvent
Public Shared Function TelephonyCallLifecycleEvent (Optional sequence As Long = 0, Optional name As TelephonyCallLifecycleEventName = Nothing, Optional source As TelephonyCallLifecycleEventSource = Nothing, Optional outcome As TelephonyCallLifecycleEventOutcome = Nothing, Optional observedOn As DateTimeOffset = Nothing, Optional occurredOn As Nullable(Of DateTimeOffset) = Nothing, Optional timestampSource As TelephonyCallTimestampSource = Nothing, Optional reason As Nullable(Of TelephonyCallLifecycleEventReason) = Nothing, Optional providerEventId As String = Nothing, Optional providerSequence As Nullable(Of Long) = Nothing, Optional providerStatusCode As Nullable(Of Integer) = Nothing, Optional providerSubCode As Nullable(Of Integer) = Nothing) As TelephonyCallLifecycleEvent

Parameters

sequence
Int64

The service-assigned order of the event within the call record.

name
TelephonyCallLifecycleEventName

The stable provider-neutral event name.

source
TelephonyCallLifecycleEventSource

The component that supplied the observation.

outcome
TelephonyCallLifecycleEventOutcome

The outcome of the observed lifecycle operation.

observedOn
DateTimeOffset

The Unix timestamp (in seconds) for when the service observed the event.

occurredOn
Nullable<DateTimeOffset>

The Unix timestamp (in seconds) for when the event occurred according to the provider.

timestampSource
TelephonyCallTimestampSource

The source of the event timestamp.

reason
Nullable<TelephonyCallLifecycleEventReason>

A stable service-generated reason associated with this lifecycle event, not necessarily the final outcome of the call. Additional string codes may be returned.

providerEventId
String

The provider event identifier used for idempotency, when supplied.

providerSequence
Nullable<Int64>

The provider event sequence, when supplied.

providerStatusCode
Nullable<Int32>

The provider status code associated with the event.

providerSubCode
Nullable<Int32>

The provider subcode associated with the event.

Returns

A new TelephonyCallLifecycleEvent instance for mocking.

Applies to