public static CommandHandlerRecord FromBson(BsonDocument doc) { var handler = new CommandHandlerRecord() { HandlerId = doc.GetString("HandlerId"), CommandId = doc.GetString("CommandId"), StartedDate = doc.GetDateTime("StartedDate"), EndedDate = doc.GetDateTime("EndedDate"), ErrorMessage = doc.GetString("ErrorMessage"), ErrorStackTrace = doc.GetString("ErrorStackTrace"), TypeName = doc.GetString("TypeName"), }; return handler; }
public static CommandHandlerRecord FromBson(BsonDocument doc) { var handler = new CommandHandlerRecord() { HandlerId = doc.GetString("HandlerId"), CommandId = doc.GetString("CommandId"), StartedDate = doc.GetDateTime("StartedDate"), EndedDate = doc.GetDateTime("EndedDate"), ErrorMessage = doc.GetString("ErrorMessage"), ErrorStackTrace = doc.GetString("ErrorStackTrace"), TypeName = doc.GetString("TypeName"), }; return(handler); }
protected ResourceManagerEvent(BsonDocument document, string processName) { ProcessName = processName; WorkerId = document.GetString("worker"); Timestamp = document.GetDateTime("ts"); Pid = document.GetInt("pid"); ProcessId = ParseProcessId(document.GetString("file")); }
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"); }
public TabadminLogEvent(BsonDocument document, IEnumerable <TableauServerVersion> versionTimeline) : base(document) { Timestamp = document.GetDateTime("ts"); TimestampOffset = document.GetString("ts_offset"); TimestampGmt = (DateTime)DateTimeConversionHelper.ConvertDateTime(Timestamp, TimestampOffset); Hostname = document.GetString("hostname"); ServerVersion = GetVersionByDate(versionTimeline); }
public TableauServerVersion(BsonDocument document) : base(document) { Match match = versionRegex.Match(BsonDocumentHelper.GetString("message", document)); Version = match.Groups["shortVersion"].Value; VersionLong = match.Groups["longVersion"].Value; StartDate = document.GetDateTime("ts"); TimestampOffset = document.GetString("ts_offset"); StartDateGmt = (DateTime)DateTimeConversionHelper.ConvertDateTime(StartDate, TimestampOffset); EndDateGmt = DateTimeConversionHelper.ConvertDateTime(EndDate, TimestampOffset); }
public static CommandMetadata CreateCommandMetadata(this BsonDocument doc) { var eventMetadata = new CommandMetadata() { CommandId = doc.GetString("CommandId"), UserId = doc.GetString("UserId"), CreatedDate = doc.GetDateTime("CreatedDate"), TypeName = doc.GetString("TypeName") }; return(eventMetadata); }
public static EventMetadata CreateEventMetadata(this BsonDocument doc) { var eventMetadata = new EventMetadata() { CommandId = doc.GetString("CommandId"), EventId = doc.GetString("EventId"), UserId = doc.GetString("UserId"), StoredDate = doc.GetDateTime("StoredDate"), TypeName = doc.GetString("TypeName"), }; return(eventMetadata); }
public VizqlServerSession(BsonDocument firstEvent, BsonDocument lastEvent, string workbookName, string processName, string bootstrapRequestId) { VizqlSessionId = firstEvent.GetString("sess"); BootstrapApacheRequestId = bootstrapRequestId; Username = firstEvent.GetString("user"); Site = firstEvent.GetString("site"); CreationTimestamp = firstEvent.GetDateTime("ts"); DestructionTimestamp = lastEvent.GetDateTime("ts"); File = firstEvent.GetString("file"); Worker = firstEvent.GetString("worker"); Workbook = workbookName; ProcessName = processName; CreateEventCollections(); }
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"]; } }
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(); }