Parse a PromQL expression.
PromQL query to parse.
Prometheus feature flags to enable.
Feature documents supported features. Unrecognized features result in a warning and are ignored.
Feature
Resulting error message from parsing query.
query
Empty string if no parse error occurrs.
Indicates if query is valid PromQL.
Empty queries are always valid.
Returns the class of this.
this
Returns a string representation of this.
This method is used to convert the values of string interpolation expressions to strings.
Returns this |> transform if this is non-null, and null otherwise.
this |> transform
null
This method is the complement of the ?? operator and the equivalent of an Option type's map and flatMap methods.
??
Option
map
flatMap
Tells if this object has a property with the given name.
name
Returns the value of the property with the given name.
Throws if a property with this name does not exist.
Returns null if a property with this name does not exist.
Converts this object to a Dynamic object.
Dynamic
Converts this object to a Map.
Map
Check if query is valid PromQL and throw an error if it is not.
The context provides additional user-supplied context to help identify invalid queries. If it is not null, it is included in the thrown error's message.
context
Parse a PromQL expression.