Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
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");
        }
Ejemplo n.º 3
0
        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");
        }
Ejemplo n.º 4
0
        public VizqlMessage(BsonDocument document)
        {
            SetEventMetadata(document);

            Line    = document.GetInt("line");
            Message = document.GetString("v");
            Sev     = document.GetString("sev");
        }
Ejemplo n.º 5
0
 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");
 }
Ejemplo n.º 6
0
        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"];
            }
        }
Ejemplo n.º 7
0
        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");
        }
Ejemplo n.º 9
0
        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");
        }
Ejemplo n.º 10
0
        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");
        }
Ejemplo n.º 11
0
        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");
        }
Ejemplo n.º 12
0
        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");
        }
Ejemplo n.º 13
0
        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();
        }
Ejemplo n.º 14
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));
            }
        }