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"); }