Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Send-GraphiteMetric does not work with -DateTime #59

Open
SteveLowe opened this issue May 24, 2016 · 0 comments
Open

Send-GraphiteMetric does not work with -DateTime #59

SteveLowe opened this issue May 24, 2016 · 0 comments

Comments

@SteveLowe
Copy link

The conversion from DateTime to Unix time is broken

>Send-GraphiteMetric -CarbonServer 127.0.0.1 -MetricPath 'test' -MetricValue 123 -DateTime (Get-Date)
Send-GraphiteMetric : Cannot convert value "24/05/2016 09:38:46" to type "System.UInt64". Error: "Invalid cast from
'DateTime' to 'UInt64'."
At line:1 char:1
+ Send-GraphiteMetric -CarbonServer 127.0.0.1 -MetricPath 'test' -Metri ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Send-GraphiteMetric], RuntimeException
    + FullyQualifiedErrorId : InvalidCastIConvertible,Send-GraphiteMetric
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant