Implement queryTotal for RRD and make it standard

This commit is contained in:
emanuele-f 2018-10-17 12:53:59 +02:00
parent 62101347f8
commit ef0f401e51
4 changed files with 56 additions and 8 deletions

View file

@ -22,7 +22,7 @@ end
function driver:append(schema, timestamp, tags, metrics)
end
--! @brief Append a new data point to the timeseries.
--! @brief Query timeseries data.
--! @param schema the schema object.
--! @param tstart lower time bound for the query.
--! @param tend upper time bound for the query.
@ -32,6 +32,16 @@ end
function driver:query(schema, tstart, tend, tags, options)
end
--! @brief Calculate a sum on the timeseries metrics.
--! @param schema the schema object.
--! @param tstart lower time bound for the query.
--! @param tend upper time bound for the query.
--! @param tags a list of filter tags. It contains exactly the tags defined in the schema.
--! @param options query options.
--! @return a table containing metric->metric_total mappings on success, nil on failure.
function driver:queryTotal(schema_name, tstart, tend, tags, options)
end
--! @brief List all available timeseries for the specified schema, tags and time.
--! @param schema the schema object.
--! @param tags_filter a list of filter tags.