檔案傳輸 > 檔案傳輸監視
檔案傳輸監視
檔案傳輸是 ThingWorx Platform 的重要功能。監視及警示檔案傳輸非常重要。ThingWorx 支援下列檔案傳輸指標:
Queued File Transfer Jobs - 此量測計類型指標表示在該時刻 ThingWorx 實例中所加入佇列的檔案傳輸。在觸發檔案傳輸後會立即建立檔案傳輸工作,並將其加入離線佇列。指標名稱為 queuedTransferJobs,位於「檔案傳輸」子系統的 GetPerformanceMetrics 服務下。針對像 Prometheus 這樣的外部耗用,其可作為 /Thingworx/Metrics 端點下的 thingworx_FileTransferSubsystem_queuedTransferJobs 使用。
Active File Transfer Jobs - 此量測計類型指標表示在該時刻 ThingWorx 實例中的使用中檔案傳輸。啟動檔案傳輸時,傳輸工作會從離線佇列移至使用中佇列。此指標表示使用中檔案傳輸。指標名稱為 activeTransferJobs,位於「檔案傳輸」子系統的 GetPerformanceMetrics 服務下。針對像 Prometheus 這樣的外部耗用,其可作為 /Thingworx/Metrics 端點下的 thingworx_FileTransferSubsystem_activeTransferJobs 使用。
File Transfer Metrics - 檔案傳輸還有其他指標可用。所有這些指標的類型均為 counter。這些指標以檔案傳輸的類型與狀態為基礎。檔案傳輸類型有上載、下載、存放庫之間與跨 Edge 裝置。檔案傳輸狀態為 StartedCompletedCancelledFailed。不同的指標可用於不同的檔案傳輸類型組合。對於外部耗用,例如在 Prometheus 中,檔案傳輸指標將在 /Thingworx/Metrics 端點下作為 thingworx_FileTransferSubsystem_{upload/download/acrossRepo/acrossEdge}{Started/Completed/Cancelled/failed}Transfers_total 提供。
對於 Edge 裝置之間的傳輸,計數會顯示在 acrossRepo 指標下。例如,啟動 Edge 裝置之間的檔案傳輸時,會更新 acrossRepoStartedTransfers 指標。同樣的,如果取消 Edge 檔案傳輸,則會更新 acrossRepoCancelledTransfers 指標。適用時,會更新其他狀態指標 acrossRepoFailedTransfersacrossRepoCompletedTransfers
* 
針對單一使用者使用 GetPerformanceMetrics,針對「高可用性」使用者使用 GetClusterPerformanceMetrics
這是否有幫助?