[V8] Remove ability to customize send_ts_mon_values' parameter --target-type

This parameter can only take values 'task' and 'device'. The latter is useful
when monitoring physical devices, which is unlikely to be done from recipes,
thus we simply hard-code 'task' value. Should such a need arise in the future,
the API of this method can be extended to support customizing target_type and/or
many other parameters that can be passed to send_ts_mon_values.

This also improves argument documentation and renames the send_value method to
send_counter_value as there are other types of metrics supported by the
underlying script, e.g. float, gauge etc.

TBR=tmrts@chromium.org,ddoman@chromium.org,nodir@chromium.org

Change-Id: I56e535a82dd681417295effd8db5b0e6a29e56f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/1688796
Commit-Queue: Sergiy Belozorov <sergiyb@chromium.org>
Reviewed-by: Sergiy Belozorov <sergiyb@chromium.org>
10 files changed
tree: 1ee63bc7bac37aace5dfb843d02395c4b440202c
  1. infra/
  2. masters/
  3. scripts/
  4. site_config/
  5. slave/
  6. tests/
  7. third_party/
  8. .gitattributes
  9. .gitignore
  10. .vpython
  11. codereview.settings
  12. DEPS
  13. environment.cfg.py
  14. LICENSE
  15. OWNERS
  16. PRESUBMIT.py
  17. README.md
  18. WATCHLISTS
README.md

build

Hi build contributor! If you do any change in scripts/master/ or touching any master's html/ directories, you must restart master.chromium.fyi first and ensure that it still works before restarting other masters.

Recipes

If you're here to make a change to ‘recipes’ (the code located in scripts/slave/recipes*), please take a look at the README for more information pertaining to recipes.