Skip to content

What does strategy and size mean inside options object? #5746

Discussion options

You must be logged in to vote

Hi there!

Good question. These are both optional arguments that some of our views pass through to allow telemetry providers to optimize certain requests.

The size argument tells the telemetry provider the maximum number of results being requested. It is used most commonly in two cases:

  1. "Latest" type views (such as the Latest Available Data or LAD Table) can only show one telemetry value at a time, so fetching more than that is a waste of time. So, it instructs the telemetry provider to only fetch one value if the server supports that sort of request.
  2. Plots will always provide the "size" option as well, which will be equal to the number of horizontal pixels available to the plot. Returnin…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@marcelo-earth
Comment options

@jvigliotta
Comment options

@marcelo-earth
Comment options

Answer selected by marcelo-earth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants