frontend::instance::prom_store

Function negotiate_response_type

Source
fn negotiate_response_type(
    accepted_response_types: &[i32],
) -> Result<ResponseType>
Expand description

Negotiating the content type of the remote read response.

Response types are taken from the list in the FIFO order. If no response type in accepted_response_types is implemented by server, error is returned. For request that do not contain accepted_response_types field the SAMPLES response type will be used.