ProjectsAgentsModelFactory.TelephonyCallLifecycleEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
The stable provider-neutral event name.
The component that supplied the observation.
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.
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.
Returns
A new TelephonyCallLifecycleEvent instance for mocking.