Pierre Mdawar
d24d51292f
Fix monitoring server connz idle time sorting
2023-09-01 14:32:08 +03:00
Derek Collison
421775a32a
Fix to allow sorting by rtt for connz.
...
Signed-off-by: Derek Collison <derek@nats.io >
2023-05-12 20:22:07 -07:00
Derek Collison
6584a9a828
lint updates
...
Signed-off-by: Derek Collison <derek@nats.io >
2019-05-06 15:41:38 -07:00
Derek Collison
cd834a36fa
Added more sort options, fixed some broken ones.
...
Fixes #700 , #701 , #702
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-29 17:44:01 -07:00
Derek Collison
57e57892da
Test for closed state being correct
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-26 16:54:11 -07:00
Derek Collison
ec8e2636de
Track closed connections and reason for closing
...
Signed-off-by: Derek Collison <derek@nats.io >
2018-06-25 17:56:07 -07:00
Derek Collison
b2a9ed97d6
Merge pull request #650 from nats-io/cncf
...
Move to CNCF and Apache 2 License
2018-03-16 16:23:10 -07:00
Derek Collison
00901acc78
Update license to Apache 2
2018-03-15 22:31:07 -07:00
Ivan Kozlovic
a3e8fba6b3
Add options for each monitoring endpoint and added Connz
...
Even for endpoints that currently do not need options (such as
Subsz and Varz), I added some options and a return of error so that
we don't break the API if we ever need to add options for those.
2018-03-13 10:30:46 -06:00
Ivan Kozlovic
7a4f7bbf03
Fix megacheck
2017-11-17 12:21:05 -07:00
Colin Sullivan
80a504303e
Add uptime sort option for connz.
2016-05-24 19:32:06 -06:00
Colin Sullivan
2baac47820
Address issues found by golint.
...
* No functional changes
* Did not address the ALL_CAPS issues
* Did not modify public APIs and field names.
2016-03-15 15:21:13 -06:00
Ivan Kozlovic
ecec51a771
Reduce number of objects require to sort connection in HandleConnz
...
- Use 'Pair' again, but this time, the key is an int64 that the selected sort field will be casted to.
We therefore have now only one type of sort.
- Check validity of sort string early on.
- Ensure that the ConnInfo's field used by the sort is not the value from 'client', but really the one
that was used for the sort.
- Added a test for sort by Idle time.
2016-02-08 15:40:42 -07:00
Derek Collison
d7c8e6bca8
Fix races in monitoring
...
- Possible race/invalid value in LastActivity
- Routez
- Believe fixes #189
2016-02-06 07:09:13 -08:00
Derek Collison
9702156d72
Connection sort updates
...
- fix bug that did not update last activity on message delivery
- added sort capabilities for last activity
- avoid extra Reverse by simply changing Less func
2016-02-05 05:49:53 -08:00
Derek Collison
26185a9722
Support for connection last activity tracking
2016-02-04 17:33:40 -08:00
Ivan Kozlovic
1d6dafc6a7
Fix race on connz monitor (issue #189 )
2016-02-03 21:26:26 -07:00
Derek Collison
ffa21f3736
fix race
2015-08-23 13:40:35 -07:00
Waldemar Quevedo
9c7de6902c
Add option to sort by pending size
2015-08-22 16:00:27 -07:00
Waldemar Quevedo
a430b3edc5
Remove unecessary conversion to uint64 in sort option
2015-07-23 00:43:30 +00:00
Waldemar Quevedo
ad25bb322a
Add more helper types for sorting and fix test
2015-07-23 00:04:45 +00:00