Share via


透過 HTTP 的用戶端報告支援

適用於: Application Virtualization 4.6

App-V Client 4.6 版現在可支援使用 HTTP 通訊將用戶端報告資料傳輸到發佈伺服器。此功能所支援的案例如下:客戶已實作 HTTP(S) 發佈伺服器,而且該部伺服器已設定用來收集與處理用戶端資料。

如需有關 HTTP 發佈伺服器的詳細資訊,請參閱 https://go.microsoft.com/fwlink/?LinkId=157426

透過 HTTP 提出用戶端報告

當用戶端在發佈伺服器傳回的發佈重新整理回應 XML 中收到 “REPORTING=”TRUE”” 屬性時,用戶端便會開始收集資料。收到這個屬性時,用戶端會將任何累積的資料傳送到負責傳送發佈重新整理的發佈伺服器。這個程序的細節如下:

  • 用戶端將 HTTP GET 要求傳送到發佈伺服器以進行發佈重新整理。此訊息的標頭包含自訂 HTTP(S) 發佈伺服器用來識別訊息類型的 “AppV-Op:Refresh” 自訂標頭。

  • 發佈伺服器接著會傳送包含 “REPORTING=”TRUE”” 值的發佈重新整理回應 XML。

  • 接著,用戶端會將 HTTP POST 要求連同自上次重新整理之後已經收集到的報告資料,傳送到發佈伺服器。此訊息的標頭包含自訂 HTTP(S) 發佈伺服器用來識別訊息類型的 “AppV-Op:Report” 自訂標頭。

下列結構描述提供傳送到伺服器之封裝和應用程式資料的具體詳細資料。

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="CLIENT_DATA">
<xs:complexType>
<xs:all>
<xs:element ref="PKG_LIST" minOccurs="1" maxOccurs="1"/>
<xs:element ref="APP_RECORDS" minOccurs="1" maxOccurs="1"/>
</xs:all>
<!-- no regex for Ver because we want to allow tags like "Beta" -->
<xs:attribute name="Ver" type="xs:normalizedString" use="required"/>
<xs:attribute name="Host" type="xs:token" use="required"/>
<xs:attribute name="CacheSize" type="xs:nonNegativeInteger" use="required"/>
<xs:attribute name="CacheUsed" type="xs:nonNegativeInteger" use="required"/>
</xs:complexType>
</xs:element>

<xs:element name="PKG_LIST">
<xs:complexType>
<xs:choice>
<xs:element ref="PKG_DATA" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>

<xs:element name="PKG_DATA">
<xs:complexType>
<xs:attribute name="Name" type="xs:normalizedString" use="required"/>
<xs:attribute name="Guid" type="xs:token" use="required"/>
<xs:attribute name="Ver" type="xs:normalizedString" use="required"/>
<xs:attribute name="VerGuid" type="xs:token" use="required"/>
<xs:attribute name="Source" type="xs:normalizedString" use="required"/>
<xs:attribute name="PctCached" use="required">
<xs:simpleType>
<xs:restriction base="xs:nonNegativeInteger">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>

<xs:element name="APP_RECORDS">
<xs:complexType>
<xs:choice>
<xs:element ref="APP_RECORD" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>

<xs:element name="APP_RECORD">
<xs:attribute name="Name" type="xs:normalizedString" use="required"/>
<xs:attribute name="Ver" type="xs:normalizedString" use="required"/>
<xs:attribute name="Server" type="xs:normalizedString" use="required"/>
<xs:attribute name="User" type="xs:normalizedString" use="required"/>
<xs:attribute name="Launched" type="xs:dateTime" use="required"/>
<xs:attribute name="Shutdown" type="xs:dateTime" use="optional"/>
</xs:element>

</xs:schema>

-----
您可以在 TechNet Library 中深入瞭解 MDOP、在 TechNet Wiki 上搜尋疑難排解資訊,或是追蹤我們的 FacebookTwitter 動態。 請將有關 MDOP 說明文件的建議和意見寄到 MDOPdocs@microsoft.com。