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 VizqlEndComputeQuickFilterState(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); Elapsed = values.GetDouble("elapsed"); Sheet = values.GetString("sheet"); View = values.GetString("view"); }
public VizqlProcessQuery(BsonDocument document) { SetEventMetadata(document); BsonDocument values = BsonDocumentHelper.GetValuesStruct(document); Error = values.GetString("error"); Cached = values.GetBool("cached"); Success = values.GetBool("success"); CacheHit = values.GetBool("cachehit"); Elapsed = values.GetDouble("elapsed"); Query = values.GetString("query"); }
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 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)); } }