build_url: Construct a URL for the specified query.

View source: R/build_url.R

build_urlR Documentation

Construct a URL for the specified query.

Description

Construct a URL for the specified query.

Usage

build_url(base, query, start, end, step, timeout = NA)

Arguments

base

A hostname and schema to base the generated path off of.

query

A PromQL query.

start

A RFC3339 timestamp string, numerical unix timestamp, or POSIXct object.

end

A RFC3339 timestamp string, numerical unix timestamp, or POSIXct object.

step

A query resolution step width.

timeout

An optional query timeout value, defaulting to server-side limit. Note this timeout is capped to the server-side value.

Value

A URL to execute the query.


promr documentation built on Aug. 24, 2022, 5:05 p.m.