Skip to content

Commit

Permalink
Merge pull request #65 from tableau/patch/ReplayCreation/specifyingJs…
Browse files Browse the repository at this point in the history
…onKeysExplicitly

3.0.1 release
  • Loading branch information
Xantrul committed Oct 22, 2018
2 parents 23c0751 + f0cb6d9 commit d2f2c48
Show file tree
Hide file tree
Showing 36 changed files with 102 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

// Make internal classes visible to the unit test project.
[assembly: InternalsVisibleTo("Logshark.Tests")]
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

// Make internal classes visible to the unit test project.
[assembly: InternalsVisibleTo("Logshark.Tests")]
4 changes: 2 additions & 2 deletions LogParsers.Base/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Logshark.ArtifactProcessorModel/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Logshark.CLI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

// Required for log4net.
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
4 changes: 2 additions & 2 deletions Logshark.Common/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Logshark.ConfigSection/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

// Make internal classes visible to the unit test project.
[assembly: InternalsVisibleTo("Logshark.Tests")]
4 changes: 2 additions & 2 deletions Logshark.ConfigSectionGenerator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Logshark.ConnectionModel/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

// Required for log4net.
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
Expand Down
4 changes: 2 additions & 2 deletions Logshark.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

// Required for log4net.
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
Expand Down
4 changes: 2 additions & 2 deletions Logshark.PluginLib/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Logshark.PluginModel/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Logshark.RequestModel/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

// Make internal classes visible to the unit test project.
[assembly: InternalsVisibleTo("Logshark.Tests")]
4 changes: 2 additions & 2 deletions Logshark.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]

// Required for log4net.
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
4 changes: 2 additions & 2 deletions Plugins/Apache/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Plugins/Backgrounder/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Plugins/ClusterController/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Plugins/Config/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Plugins/CustomWorkbooks/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Plugins/Filestore/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Plugins/Hyper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Plugins/Netstat/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
4 changes: 2 additions & 2 deletions Plugins/Postgres/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
28 changes: 14 additions & 14 deletions Plugins/ReplayCreation/Models/AccessSessionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@ namespace Logshark.Plugins.ReplayCreation.Models
/// </summary>
internal class AccessSessionInfo
{
public string apache_request_id { get; set; }
public string request_method { get; set; }
public string request_ip { get; set; }
public string resource { get; set; }
public DateTime request_time { get; set; }
public string load_time { get; set; }
public string status_code { get; set; }
public string ApacheRequestID { get; set; }
public string RequestMethod { get; set; }
public string RequestID { get; set; }
public string Resource { get; set; }
public DateTime RequestTime { get; set; }
public string LoadTime { get; set; }
public string StatusCode { get; set; }

/// <summary>
/// Parse logLine and extract required data from it
/// </summary>
/// <param name="logLine"></param>
public AccessSessionInfo(BsonDocument logLine)
{
apache_request_id = logLine.GetValue("request_id").AsString;
request_method = logLine.GetValue("request_method").AsString;
request_ip = logLine.GetValue("request_ip").AsString;
resource = logLine.GetValue("resource").AsString;
load_time = logLine.GetValue("request_time").AsString;
ApacheRequestID = logLine.GetValue("request_id").AsString;
RequestMethod = logLine.GetValue("request_method").AsString;
RequestID = logLine.GetValue("request_ip").AsString;
Resource = logLine.GetValue("resource").AsString;
LoadTime = logLine.GetValue("request_time").AsString;
var offset = logLine.GetElement("ts_offset").Value.ToString();
var timeOffSet = int.Parse(offset);
var ts = new System.TimeSpan(timeOffSet / 100, timeOffSet % 100, 0);

//convert the current time to UTC
var browserStartTime = (DateTime)logLine.GetElement("ts").Value - ts;
request_time = browserStartTime.ToUniversalTime();
RequestTime = browserStartTime.ToUniversalTime();

status_code = logLine.GetValue("status_code").AsString;
StatusCode = logLine.GetValue("status_code").AsString;
}
}
}
13 changes: 11 additions & 2 deletions Plugins/ReplayCreation/Models/BrowserSession.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace Logshark.Plugins.ReplayCreation.Models
{
Expand All @@ -8,27 +9,35 @@ namespace Logshark.Plugins.ReplayCreation.Models
public class BrowserSession
{
//URL that is being accessed
[JsonProperty("Url")]
public string Url { get; set; }


[JsonProperty("BrowserStartTime")]
public string BrowserStartTime { get; set; }

//user who executed the browser session
[JsonProperty("User")]
public string User { get; set; }

//request status
[JsonProperty("HttpStatus")]
public string HttpStatus { get; set; }

//AccessRequestID from access logs
[JsonProperty("AccessRequestID")]
public string AccessRequestID { get; set; }

//Request time showing how long it took to load
[JsonProperty("LoadTime")]
public string LoadTime { get; set; }

//correlated VizqlSession matching accessRequestID
[JsonProperty("VizqlSession")]
public string VizqlSession { get; set; }

//commands that were executed in this session
//has commands and Time
[JsonProperty("Commands")]
public List<TabCommand> Commands { get; set; } = new List<TabCommand>();
}
}
6 changes: 5 additions & 1 deletion Plugins/ReplayCreation/Models/Command.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace Logshark.Plugins.ReplayCreation.Models
{
Expand All @@ -15,12 +16,15 @@ public Command(string cmmdNameSpace, string cmdName, Dictionary<string, object>
}

// namespace of the command "tabdoc" or "tabsrv"
[JsonProperty("commandNamespace")]
public string CommandNamespace { get; set; }

// commandName "Select", "sort-from-indicator"
[JsonProperty("commandName")]
public string CommandName { get; set; }

// parameters for the command
[JsonProperty("commandParams")]
public Dictionary<string, object> CommandParams { get; set; }
}
}
5 changes: 4 additions & 1 deletion Plugins/ReplayCreation/Models/TabCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using Newtonsoft.Json;
using System;

namespace Logshark.Plugins.ReplayCreation.Models
{
Expand All @@ -7,8 +8,10 @@ namespace Logshark.Plugins.ReplayCreation.Models
/// </summary>
public class TabCommand : IComparable<TabCommand>
{
[JsonProperty("Time")]
public string Time { get; set; }

[JsonProperty("Command")]
public Command Command { get; set; }

public TabCommand(string time, Command command)
Expand Down
4 changes: 2 additions & 2 deletions Plugins/ReplayCreation/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
Loading

0 comments on commit d2f2c48

Please sign in to comment.