Skip to content

Set filter parameters first_seen_since and last_seen_since

Hiro requested to merge first-seen-since-filter into master

This allow filtering of onionoo results by first_seen and last_seen using a date value instead of a number of days.

It can be used in grafana dashboard like discussed in tpo/network-health/team#134 (comment 2762202)

A parameter can be passed to onionoo enpoints as specified in: https://metrics.torproject.org/onionoo.html#parameters

Instead of passing a range of days, like in https://metrics.torproject.org/onionoo.html#parameters_first_seen_days, a date is passed in the format: yyyy-MM-dd.

The date is converted to milliseconds and then to a number of days ago from the current date.

The new parameters introduced are:

  • first_seen_since
  • last_seen_since

The metrics website will also have to be updated with the new specs.

Merge request reports