段资源类型

命名空间:microsoft.graph.callRecords

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

表示 User-User 通信的一部分,或者对于电话会议,则表示 User-Meeting 通信的一部分。 典型的 VOIP 呼叫每个会话有一个段。 在某些情况下(例如 PSTN 呼叫),由于连接呼叫需要额外的服务器到服务器通信,因此每个会话有多个段。

方法

不存在直接访问段的方法。 将 Get callRecord API 与 $expand=sessions($expand=segments)列表会话 API 用于 $expand=segments 获取 callRecord 的段。

属性

属性 类型 说明
id String 段的唯一标识符。 此为只读属性。
来电 microsoft.graph.callRecords.endpoint 启动此段的终结点。
被调用方 microsoft.graph.callRecords.endpoint 回答此段的终结点。
failureInfo microsoft.graph.callRecords.failureInfo 与段关联的失败信息(如果失败)。
媒体 microsoft.graph.callRecords.media 集合 与此段关联的媒体。
startDateTime DateTimeOffset 段开始的 UTC 时间。 DateTimeOffset 表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z
endDateTime DateTimeOffset 段结束的 UTC 时间。 DateTimeOffset 表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z

关系

JSON 表示形式

以下 JSON 表示形式显示了资源类型。

{
  "id": "String (identifier)",
  "caller": {"@odata.type": "microsoft.graph.callRecords.endpoint"},
  "callee": {"@odata.type": "microsoft.graph.callRecords.endpoint"},
  "failureInfo": {"@odata.type": "microsoft.graph.callRecords.failureInfo"},
  "media": [{"@odata.type": "microsoft.graph.callRecords.media"}],
  "startDateTime": "String (timestamp)",
  "endDateTime": "String (timestamp)"
}