[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #15177 [Onionoo]: Add fractional times of relays having flags assigned to them to uptime documents



#15177: Add fractional times of relays having flags assigned to them to uptime
documents
-----------------------------+-----------------
     Reporter:  karsten      |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  Onionoo      |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+-----------------

Comment (by karsten):

 weasel says on IRC that he'd rather have more detailed information when a
 relay had which flags, so that he could do things like weighting recent
 flags more than older ones or pick different time frames than 3 months or
 1 year.

 New suggestion: add an object `"flags"` adjacent to `"uptime"` and include
 a history object for each flag the relay ever had.  Example:

 {{{
 {
     "version": "2.2",
     "relays_published": "2015-03-06 11:00:00",
     "relays": [
         {
             "fingerprint": "847B1F850344D7876491A54892F904934E4EB85D",
             "uptime": {
                 "3_months": {
                     "first": "2014-12-04 06:00:00",
                     "last": "2015-03-06 06:00:00",
                     "interval": 43200,
                     "factor": 0.001001001001001001,
                     "count": 185,
                     "values": [
                         999,
                         999,
                         999,
                         ...
                         999,
                         999,
                         999
                     ]
                 }
             },
             "flags": {
                 "Authority": {
                     "3_months": {
                         "first": "2014-12-04 06:00:00",
                         "last": "2015-03-06 06:00:00",
                         "interval": 43200,
                         "factor": 0.001001001001001001,
                         "count": 185,
                         "values": [
                             999,
                             999,
                             999,
                             ...
                             999,
                             999,
                             999
                         ]
                     }
                 },
                 "HSDir": ...,
                 "Running": ...,
                 "Stable": ...,
                 "V2Dir": ...,
                 "Valid": ...
             }
         }
     ]
 }
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15177#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs