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");
        }
예제 #3
0
        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");
        }
예제 #4
0
        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");
        }
예제 #5
0
        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));
            }
        }