C# Class Graphite.Helpers

显示文件 Open project: peschuster/graphite-client

Public Methods

Method Description
ConvertTicksToMs ( long ticks, long fequency ) : int
IsHostname ( string value ) : bool
LookupIpAddress ( string hostname ) : IPAddress
ParseAddress ( string ipAddressOrHostname ) : IPAddress
ToMetricKey ( this uri ) : string
ToUnderscores ( this camelCased ) : string

Method Details

ConvertTicksToMs() public static method

public static ConvertTicksToMs ( long ticks, long fequency ) : int
ticks long
fequency long
return int

IsHostname() public static method

public static IsHostname ( string value ) : bool
value string
return bool

LookupIpAddress() public static method

public static LookupIpAddress ( string hostname ) : IPAddress
hostname string
return System.Net.IPAddress

ParseAddress() public static method

public static ParseAddress ( string ipAddressOrHostname ) : IPAddress
ipAddressOrHostname string
return System.Net.IPAddress

ToMetricKey() public static method

public static ToMetricKey ( this uri ) : string
uri this
return string

ToUnderscores() public static method

public static ToUnderscores ( this camelCased ) : string
camelCased this
return string