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 VizqlConstructProtocol(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); Elapsed = values.GetNullableDouble("created-elapsed"); ProtocolId = values.GetNullableInt("id"); ProtocolGroupId = values.GetNullableInt("group_id"); BsonDocument attributes = BsonDocumentHelper.GetBsonDocument("attributes", values); if (attributes != null) { Class = attributes.GetString("class"); DatabaseName = attributes.GetString("dbname"); DatabaseServer = attributes.GetString("server"); Attributes = attributes.ToString(); } }
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)); } }
public VizqlEndDataInterpreter(BsonDocument document) { SetEventMetadata(document); Elapsed = document.GetNullableDouble("elapsed"); }