Skip to content

Commit ec9490e

Browse files
author
Samuel Vandamme
committed
Added latest version 2.7.5
1 parent a97e269 commit ec9490e

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/coscale/command/data.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Mandatory:
2222
The subject string eg. s1 for server 1, g2 for servergroup 2, a for application.
2323
Optional:
2424
--start
25-
The start timestamp in seconds ago. [default: 0]
25+
The start timestamp in seconds ago(negative values) or unix timestamp (positive values). [default: 0]
2626
--stop
27-
The stop timestamp in seconds ago. [default: 0]
27+
The stop timestamp in seconds ago(negative values) or unix timestamp (positive values). [default: 0]
2828
--aggregator
2929
The data aggregator (AVG, MIN, MAX). [default: AVG]
3030
--aggregateSubjects

src/coscale/command/event.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ Optional:
130130
--attribute
131131
JSON String detailing the progress of the event.
132132
--timestamp
133-
Timestamp in seconds ago. [default: 0]
133+
Timestamp in seconds ago(negative values) or unix timestamp(positive values). [default: 0]
134134
--stopTime
135-
The time at which the EventData stopped in seconds ago. [default: 0]
135+
The time at which the EventData stopped in seconds ago(negative values) or unix timestamp(positive values). [default: 0]
136136
`,
137137
Run: func(cmd *Command, args []string) {
138138
var id, timestamp, stopTime int64
@@ -167,13 +167,6 @@ Optional:
167167
if err != nil {
168168
cmd.PrintResult("", err)
169169
}
170-
// be sure that the time values are negative
171-
if timestamp > 0 {
172-
timestamp = -timestamp
173-
}
174-
if stopTime > 0 {
175-
stopTime = -stopTime
176-
}
177170
cmd.PrintResult(cmd.Capi.InsertEventData(eventObj.ID, message, subject, attribute, timestamp, stopTime))
178171
},
179172
},

0 commit comments

Comments
 (0)