ReplicationMonitor.EnumQueueReaderAgentSessions 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳關於排隊讀取代理會話的資訊清單,包括狀態與統計資訊。
public:
System::Data::DataSet ^ EnumQueueReaderAgentSessions(System::String ^ distributionDatabase, int publicationId, int sessionDuration, bool returnOnlyErrorSessions);
public System.Data.DataSet EnumQueueReaderAgentSessions(string distributionDatabase, int publicationId, int sessionDuration, bool returnOnlyErrorSessions);
member this.EnumQueueReaderAgentSessions : string * int * int * bool -> System.Data.DataSet
Public Function EnumQueueReaderAgentSessions (distributionDatabase As String, publicationId As Integer, sessionDuration As Integer, returnOnlyErrorSessions As Boolean) As DataSet
參數
- sessionDuration
- Int32
一個 Int32 指定在當前時間限制結果的前幾小時的數值。 例如,值為 24 會回傳過去 24 小時內的代理人會話資訊。 值為 -1 會回傳過去 100 個會話的資訊,值為 0 則會回傳所有會話的資訊。
- returnOnlyErrorSessions
- Boolean
此 Boolean 值指定是只回傳導致錯誤的會話資訊,還是所有會話回傳。 若 true,則僅回傳錯誤會話。 若 false,則所有會話皆返回。
傳回
一個 DataSet 包含以下欄位的物件。
| 柱狀 | 資料型別 | 描述 |
|---|---|---|
| 運行狀態 | Int32 | 現況: 1 = 起跑 2 = 成功 3 = 進行中 4 = 閒置 5 = 重試 6 = 失敗 |
| start_time | String | 最後一次特工處決的日期和時間。 |
| 時間 | String | 記錄會話的日期和時間。 |
| 留言 | String | 訊息文字由客服記錄下來。 |
| 持續時間 | Int32 | 會談時間,以秒數計。 |
| delivery_rate | Single | 每秒平均傳遞指令數。 |
| delivery_latency | Int32 | 指令提交到已發佈資料庫到提交至分發資料庫之間的時間(以毫秒計)。 |
| publication_id | Int32 | 出版物的識別碼。 |
| transactions_processed | Int32 | 該會話中交付的交易總數。 |
| commands_processed | Int32 | 該會話中交付的指令總數。 |
| average_commands | Int32 | 每筆交易在會話中交付的平均指令數。 |
| action_count | Int32 | 該會話中記錄的客服員日誌訊息數量。 |
| error_id | Int32 | 錯誤的 ID,顯示在 [MSrepl_errors (Transact-SQL)](http://msdn.microsoft.com/library/c6e023c1-2c32-4269-8d76-e442ea309e4b) 系統資料表中。 使用此 EnumErrorRecords(Int32) 方法可回傳錯誤的詳細資訊。 |
備註
你應該在呼叫此方法前,先提交任何屬性變更, ReplicationMonitor 因為如果物件的屬性尚未載入,可能需要先載入。
EnumQueueReaderAgentSessions此方法僅能由分發資料庫中或固定資料庫角色的成員db_ownerreplmonitor呼叫。