23 using System.Drawing.Imaging;
32 namespace Ntp.Analyzer.Config.Node.Graph
49 DateTimeKind? graphTime,
66 this.frequency = frequency;
67 this.initialRun = initialRun;
68 this.fixedRun = fixedRun;
70 this.timespan = timespan;
73 this.graphTime = graphTime;
79 ReceivedAvg = receivedAvg;
80 IgnoredAvg = ignoredAvg;
81 DroppedAvg = droppedAvg;
83 NotSentAvg = notSentAvg;
84 this.plotInterval = plotInterval;
85 this.packetRate = packetRate;
86 Destinations = destinations;
110 public int Frequency => frequency ?? 5;
114 public bool InitialRun => initialRun ??
false;
118 public bool FixedRun => fixedRun ??
true;
126 public override string Title {
get; }
134 public override int Timespan => timespan ?? 60*12;
142 public override int Width => width ?? 1024;
150 public override int Height => height ?? 550;
157 public override ImageFormat Format => ImageFormat.Png;
161 public double? Received {
get; }
165 public double? Ignored {
get; }
169 public double? Dropped {
get; }
173 public double? Sent {
get; }
177 public double? NotSent {
get; }
181 public double? ReceivedAvg {
get; }
185 public double? IgnoredAvg {
get; }
189 public double? DroppedAvg {
get; }
193 public double? SentAvg {
get; }
197 public double? NotSentAvg {
get; }
201 public int PlotInterval => plotInterval ?? 15;
205 public int PacketRate => packetRate ?? 1;
213 public override DateTimeKind GraphTime => graphTime ?? DateTimeKind.Utc;
224 string name = Links.Destinations[index - 1].Link;
227 int pos = name.LastIndexOf(
'/');
228 name = pos != -1 ? name.Remove(0, pos + 1) : name;
241 return WebPath.Append(Links.Destinations[owner.
LinkIndex - 1].Link);
TrafficGraphConfiguration(string name, int?frequency, bool?initialRun, bool?fixedRun, string title, int?width, int?height, int?timespan, DateTimeKind?graphTime, double?received, double?ignored, double?dropped, double?sent, double?notSent, double?receivedAvg, double?ignoredAvg, double?droppedAvg, double?sentAvg, double?notSentAvg, int?plotInterval, int?packetRate, DestinationCollection destinations, WebLinkCollection links)
readonly DateTimeKind graphTime
override string GetTitle(NamedObject namedObject)
Traffic graph configuration used when creating Analyzer.Graph.TrafficGraph.
override string GetAltName(GraphSetConfiguration owner, string postfix)
Gets the alternative name when referred to from web pages.
override Uri GetLink(GraphSetConfiguration owner, string postfix)
Gets the link to use when referred to from web pages.
Base class for graph configurations.
readonly int plotInterval