chore(opents): bump version && update changes

This commit is contained in:
firest 2024-01-18 22:25:58 +08:00 committed by zhongwencool
parent dad8a32e0b
commit 83a8822798
4 changed files with 16 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{application, emqx_bridge_opents, [ {application, emqx_bridge_opents, [
{description, "EMQX Enterprise OpenTSDB Bridge"}, {description, "EMQX Enterprise OpenTSDB Bridge"},
{vsn, "0.1.3"}, {vsn, "0.1.4"},
{registered, []}, {registered, []},
{applications, [ {applications, [
kernel, kernel,

View File

@ -56,7 +56,10 @@ fields(config) ->
fields("config_connector") -> fields("config_connector") ->
emqx_connector_schema:common_fields() ++ emqx_connector_schema:common_fields() ++
proplists_without([auto_reconnect], fields(config)); proplists_without([auto_reconnect], fields(config)) ++
emqx_connector_schema:resource_opts_ref(?MODULE, connector_resource_opts);
fields(connector_resource_opts) ->
emqx_connector_schema:resource_opts_fields();
fields("post") -> fields("post") ->
emqx_connector_schema:type_and_name_fields(enum([opents])) ++ fields("config_connector"); emqx_connector_schema:type_and_name_fields(enum([opents])) ++ fields("config_connector");
fields("put") -> fields("put") ->
@ -66,6 +69,8 @@ fields("get") ->
desc(config) -> desc(config) ->
?DESC("desc_config"); ?DESC("desc_config");
desc(connector_resource_opts) ->
?DESC(emqx_resource_schema, "resource_opts");
desc("config_connector") -> desc("config_connector") ->
?DESC("desc_config"); ?DESC("desc_config");
desc(Method) when Method =:= "get"; Method =:= "put"; Method =:= "post" -> desc(Method) when Method =:= "get"; Method =:= "put"; Method =:= "post" ->

View File

@ -0,0 +1 @@
The bridges for OpentsDB have been split so it is available via the connectors and actions APIs. They are still backwards compatible with the old bridge API.

View File

@ -24,6 +24,12 @@ emqx_bridge_opents {
desc_name.label: desc_name.label:
"Bridge Name" "Bridge Name"
action_parameters.desc:
"""OpenTSDB action parameters"""
action_parameters.label:
"""Parameters"""
action_parameters_data.desc: action_parameters_data.desc:
"""OpenTSDB action parameter data""" """OpenTSDB action parameter data"""
@ -36,10 +42,10 @@ config_parameters_timestamp.desc:
config_parameters_timestamp.label: config_parameters_timestamp.label:
"""Timestamp""" """Timestamp"""
config_parameters_metric.metric: config_parameters_metric.desc:
"""Metric. Placeholders in format of ${var} is supported""" """Metric. Placeholders in format of ${var} is supported"""
config_parameters_metric.metric: config_parameters_metric.label:
"""Metric""" """Metric"""
config_parameters_tags.desc: config_parameters_tags.desc: