protected ResourceManagerEvent(BsonDocument document, string processName) { ProcessName = processName; ProcessId = ParseProcessId(document.GetString("file")); Timestamp = document.GetDateTime("ts"); Pid = document.GetInt("pid"); Worker = document.GetString("worker"); FilePath = document.GetString("file_path"); FileName = document.GetString("file"); Line = document.GetInt("line"); }
public VizqlEndQuery(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); Query = values.GetString("query-trunc") ?? values.GetString("query"); ProtocolId = values.GetNullableLong("protocol-id"); Cols = values.GetInt("cols"); Rows = values.GetInt("rows"); QueryHash = values.GetNullableLong("query-hash"); Elapsed = values.GetDouble("elapsed"); }
public VizqlEcStore(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); KeyHash = values.GetString("key-hash"); Outcome = values.GetString("outcome"); KeySizeB = values.GetInt("key-size-b"); ValueSizeB = values.GetInt("value-size-b"); Cns = values.GetString("cns"); ElapsedMs = values.GetNullableInt("elapsed-ms"); LoadTimeMs = values.GetInt("load-time-ms"); LowerBoundMs = values.GetInt("lower-bound-ms"); }
public VizqlMessage(BsonDocument document) { SetEventMetadata(document); Line = document.GetInt("line"); Message = document.GetString("v"); Sev = document.GetString("sev"); }
protected BaseClusterControllerEvent(BsonDocument document) { Timestamp = document.GetDateTime("ts"); Worker = document.GetString("worker"); FilePath = document.GetString("file_path"); File = document.GetString("file"); LineNumber = document.GetInt("line"); }
public void SetEventMetadata(BsonDocument document) { VizqlSessionId = document.GetString("sess"); ThreadId = document.GetString("tid"); ApacheRequestId = document.GetString("req"); EventTimestamp = document.GetDateTime("ts"); ProcessId = document.GetInt("pid"); KeyType = BsonDocumentHelper.GetKeyType(document); Worker = document.GetString("worker"); FilePath = document.GetString("file_path"); File = document.GetString("file"); LineNumber = document.GetInt("line"); if (document.Contains("v")) { ValuePayload = document["v"]; } }
protected BaseTabadminModel(BsonDocument document) { Id = document.GetString("_id"); Worker = document.GetString("worker"); FilePath = document.GetString("file_path"); File = document.GetString("file"); Line = document.GetInt("line"); }
public VizqlEndSqlTempTableTuplesCreate(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); Elapsed = values.GetDouble("elapsed"); ElapsedCreate = values.GetDouble("elapsed-create"); ElapsedInsert = values.GetDouble("elapsed-insert"); ProtocolId = values.GetInt("protocol-id"); TableName = values.GetString("tablename"); }
public VizqlConstructProtocolGroup(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); InConstructionCount = values.GetNullableInt("in-construction-count"); ClosedProtocolsCount = values.GetNullableInt("closed-protocols-count"); ProtocolGroupId = values.GetNullableInt("group-id"); ConnectionLimit = values.GetInt("connection-limit"); Attributes = values.GetString("attributes"); }
public VizqlEcLoad(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); KeyHash = values.GetString("key-hash"); Outcome = values.GetString("outcome"); KeySizeB = values.GetInt("key-size-b"); Cns = values.GetString("cns"); ElapsedMs = values.GetNullableInt("elapsed-ms"); }
public VizqlQpQueryEnd(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); QueryId = values.GetInt("query-id"); OwnerDashboard = values.GetString("owner-dashboard"); OwnerComponent = values.GetString("owner-component"); OwnerWorksheet = values.GetString("owner-worksheet"); CacheHit = values.GetString("cache-hit"); ProtocolId = values.GetNullableInt("protocol-id"); Elapsed = values.GetNullableDouble("elapsed"); }
public VizqlQpBatchSummaryJob(string qpBatchSummaryEventGuid, string vizqlSessionId, BsonDocument document) { QpBatchSummaryEventGuid = qpBatchSummaryEventGuid; VizqlSessionId = vizqlSessionId; QueryId = document.GetInt("query-id"); ProtocolId = document.GetNullableInt("protocol-id"); Elapsed = document.GetNullableDouble("elapsed"); OwnerComponent = document.GetString("owner-component"); OwnerDashboard = document.GetString("owner-dashboard"); OwnerWorksheet = document.GetString("owner-worksheet"); QueryAbstract = document.GetString("query-abstract"); QueryCompiled = document.GetString("query-compiled"); CacheHit = document.GetString("cache-hit"); FusionParent = document.GetNullableInt("fusion-parent"); Exception = document.GetString("exception"); }
public VizqlDesktopSession(BsonDocument startupinfo) { BsonDocument values = BsonDocumentHelper.GetValuesStruct(startupinfo); TableauVersion = values.GetString("tableau-version"); CurrentWorkingDirectory = values.GetString("cwd"); ProcessId = startupinfo.GetInt("pid"); Domain = values.GetString("domain"); if (Domain.Equals("\'\'")) { Domain = null; } Hostname = values.GetString("hostname"); Os = values.GetString("os"); StartTime = startupinfo.GetDateTime("ts"); VizqlSessionId = String.Format("{0}_{1}_{2:yyMMdd_HHmmssff}", Hostname, ProcessId, StartTime); CreateEventCollections(); }
public VizqlQpBatchSummary(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); Elapsed = values.GetDouble("elapsed"); ElapsedComputeKeys = values.GetNullableDouble("elapsed-compute-keys"); ElapsedSum = values.GetDouble("elapsed-sum"); JobCount = values.GetInt("job-count"); QpBatchSummaryEventGuid = GetQpBatchSummaryGuid(); QpBatchSummaryJobs = new List <VizqlQpBatchSummaryJob>(); BsonArray jobs = values.GetValue("jobs").AsBsonArray; foreach (BsonDocument job in jobs) { QpBatchSummaryJobs.Add(new VizqlQpBatchSummaryJob(QpBatchSummaryEventGuid, VizqlSessionId, job)); } }