Use schema name in timeseries API

This commit is contained in:
emanuele-f 2018-06-27 17:18:23 +02:00
parent 39a7375727
commit 5d50622341
9 changed files with 86 additions and 108 deletions

View file

@ -105,7 +105,7 @@ function find_schema(rrdFile, rrdfname, tags, ts_utils)
end
end
for _, schema in pairs(ts_utils.getLoadedSchemas()) do
for schema_name, schema in pairs(ts_utils.getLoadedSchemas()) do
-- verify tags compatibility
for tag in pairs(schema.tags) do
if tags[tag] == nil then
@ -116,7 +116,7 @@ function find_schema(rrdFile, rrdfname, tags, ts_utils)
local full_path = schema_get_full_path(schema, tags)
if full_path == rrdFile then
return schema
return schema_name
end
::next_schema::