C# Class CogMon.Services.RRD.RrdTool

Inheritance: IRrdTool
Afficher le fichier Open project: lafar6502/cogmon

Méthodes publiques

Méthode Description
AppendData ( string rrdFile, System.DateTime timestamp, double>.IDictionary values ) : void
AppendData ( string rrdFile, System.DateTime timestamp, double values ) : void
CreateRRDFile ( RrdCreateInfo config, string fileName ) : void
DrawGraph ( GraphDefinition gd, DrawOptions opts, IEnumerable addEvents, string destinationFile ) : RrdImageInfo
DrawGraph ( Lib gd, Lib opts, string destinationFile ) : RrdImageInfo
DrawGraph ( Lib gd, Lib opts, Stream writeImageTo ) : void
ExportGraphData ( GraphDefinition gd, DrawOptions opts ) : TimeSeriesData
FromUnixTime ( int ut ) : System.DateTime
GetGraphXForTime ( int time, int startTime, int endTime, int graphWidth ) : int
GetRrdInfoFromFile ( string fileName ) : RrdFileInfo
RrdTool ( ) : System
SaveGraphFile ( RRDGraphInfo graphConfig, string outputFile ) : void
ToUnixTime ( System.DateTime dt ) : int

Méthodes protégées

Méthode Description
BuildRrdGraphCmdline ( GraphDefinition gd, DrawOptions opts, IEnumerable addEvents, string destinationFile, bool asXport ) : string

Private Methods

Méthode Description
ParseDouble ( string val ) : double
ParseRRDInfo ( TextReader tr, bool dynAsArray ) : object>.Dictionary
ParseRRDInfo ( string txt, bool dynAsArray ) : object>.Dictionary
ParseRrdValue ( string val ) : object
PrepareGraphParams ( GraphDefinition gd, DrawOptions opts ) : object>.Dictionary
RunExeWithCommandline ( string exe, string cmdline ) : string

Runs external command and returns its output text

RunRrdWithCommandline ( string cmdline ) : string
ToString ( double val ) : string

Method Details

AppendData() public méthode

public AppendData ( string rrdFile, System.DateTime timestamp, double>.IDictionary values ) : void
rrdFile string
timestamp System.DateTime
values double>.IDictionary
Résultat void

AppendData() public méthode

public AppendData ( string rrdFile, System.DateTime timestamp, double values ) : void
rrdFile string
timestamp System.DateTime
values double
Résultat void

BuildRrdGraphCmdline() protected méthode

protected BuildRrdGraphCmdline ( GraphDefinition gd, DrawOptions opts, IEnumerable addEvents, string destinationFile, bool asXport ) : string
gd CogMon.Lib.Graph.GraphDefinition
opts CogMon.Lib.Graph.DrawOptions
addEvents IEnumerable
destinationFile string
asXport bool
Résultat string

CreateRRDFile() public méthode

public CreateRRDFile ( RrdCreateInfo config, string fileName ) : void
config RrdCreateInfo
fileName string
Résultat void

DrawGraph() public méthode

public DrawGraph ( GraphDefinition gd, DrawOptions opts, IEnumerable addEvents, string destinationFile ) : RrdImageInfo
gd CogMon.Lib.Graph.GraphDefinition
opts CogMon.Lib.Graph.DrawOptions
addEvents IEnumerable
destinationFile string
Résultat CogMon.Lib.Graph.RrdImageInfo

DrawGraph() public méthode

public DrawGraph ( Lib gd, Lib opts, string destinationFile ) : RrdImageInfo
gd Lib
opts Lib
destinationFile string
Résultat CogMon.Lib.Graph.RrdImageInfo

DrawGraph() public méthode

public DrawGraph ( Lib gd, Lib opts, Stream writeImageTo ) : void
gd Lib
opts Lib
writeImageTo Stream
Résultat void

ExportGraphData() public méthode

public ExportGraphData ( GraphDefinition gd, DrawOptions opts ) : TimeSeriesData
gd CogMon.Lib.Graph.GraphDefinition
opts CogMon.Lib.Graph.DrawOptions
Résultat CogMon.Lib.DataSeries.TimeSeriesData

FromUnixTime() public static méthode

public static FromUnixTime ( int ut ) : System.DateTime
ut int
Résultat System.DateTime

GetGraphXForTime() public static méthode

public static GetGraphXForTime ( int time, int startTime, int endTime, int graphWidth ) : int
time int
startTime int
endTime int
graphWidth int
Résultat int

GetRrdInfoFromFile() public méthode

public GetRrdInfoFromFile ( string fileName ) : RrdFileInfo
fileName string
Résultat RrdFileInfo

RrdTool() public méthode

public RrdTool ( ) : System
Résultat System

SaveGraphFile() public méthode

public SaveGraphFile ( RRDGraphInfo graphConfig, string outputFile ) : void
graphConfig RRDGraphInfo
outputFile string
Résultat void

ToUnixTime() public static méthode

public static ToUnixTime ( System.DateTime dt ) : int
dt System.DateTime
Résultat int