23 using System.Drawing.Imaging;
32 namespace Ntp.Analyzer.Config.Node.Graph
48 DateTimeKind? graphTime,
58 this.frequency = frequency;
59 this.initialRun = initialRun;
60 this.fixedRun = fixedRun;
61 this.timespan = timespan;
64 this.graphTime = graphTime;
65 FilterFactor = filterFactor;
71 Destinations = destinations;
93 public int Frequency => frequency ?? 5;
97 public bool InitialRun => initialRun ??
false;
101 public bool FixedRun => fixedRun ??
true;
109 public override DateTimeKind GraphTime => graphTime ?? DateTimeKind.Utc;
117 public override string Title {
get; }
125 public override int Timespan => timespan ?? 60*12;
133 public override int Width => width ?? 1024;
141 public override int Height => height ?? 550;
148 public override ImageFormat Format => ImageFormat.Png;
156 public double? FilterFactor {
get; }
164 public double? Jitter {
get; }
172 public double? Offset {
get; }
180 public double? Balance {
get; }
188 public double? Delay {
get; }
192 return string.Concat(namedObject.
DisplayName,
" ", Title);
197 string peerName = postfix;
198 return GraphName +
"-" + peerName.Replace(
'.',
'-') +
".png";
204 Append(Links.Destinations[owner.
LinkIndex - 1].Link).
205 AppendExtension(postfix.Replace(
'.',
'-')).
206 AppendExtension(
".png");
override string GetAltName(GraphSetConfiguration owner, string postfix)
PeerGraphConfiguration(string name, int?frequency, bool?initialRun, bool?fixedRun, string title, int?width, int?height, int?timespan, DateTimeKind?graphTime, double?filterFactor, double?balance, double?delay, double?jitter, double?offset, DestinationCollection destinations, WebLinkCollection links)
readonly DateTimeKind graphTime
virtual string DisplayName
Base class for graph configurations.
override string GetTitle(NamedObject namedObject)
override Uri GetLink(GraphSetConfiguration owner, string postfix)
Peer graph configuration used when creating Ntp.Analyzer.Graph.PeerGraph.