Merge pull request #9012 from JimMoen/rm-influxdb-udp
Hide influxdb udp bridge.
This commit is contained in:
commit
6d37fc8dcb
|
@ -52,8 +52,8 @@
|
|||
T == webhook;
|
||||
T == mysql;
|
||||
T == influxdb_api_v1;
|
||||
T == influxdb_api_v2;
|
||||
T == influxdb_udp
|
||||
T == influxdb_api_v2
|
||||
%% T == influxdb_udp
|
||||
).
|
||||
|
||||
load() ->
|
||||
|
|
|
@ -19,7 +19,7 @@ api_schemas(Method) ->
|
|||
ref(emqx_ee_bridge_mongodb, Method ++ "_sharded"),
|
||||
ref(emqx_ee_bridge_mongodb, Method ++ "_single"),
|
||||
ref(emqx_ee_bridge_hstreamdb, Method),
|
||||
ref(emqx_ee_bridge_influxdb, Method ++ "_udp"),
|
||||
%% ref(emqx_ee_bridge_influxdb, Method ++ "_udp"),
|
||||
ref(emqx_ee_bridge_influxdb, Method ++ "_api_v1"),
|
||||
ref(emqx_ee_bridge_influxdb, Method ++ "_api_v2")
|
||||
].
|
||||
|
@ -83,5 +83,9 @@ fields(influxdb) ->
|
|||
hoconsc:map(name, ref(emqx_ee_bridge_influxdb, Protocol)),
|
||||
#{desc => <<"EMQX Enterprise Config">>}
|
||||
)}
|
||||
|| Protocol <- [influxdb_udp, influxdb_api_v1, influxdb_api_v2]
|
||||
|| Protocol <- [
|
||||
%% influxdb_udp,
|
||||
influxdb_api_v1,
|
||||
influxdb_api_v2
|
||||
]
|
||||
].
|
||||
|
|
|
@ -485,8 +485,12 @@ log_error_points(InstId, Errs) ->
|
|||
%% ===================================================================
|
||||
%% typereflt funcs
|
||||
|
||||
-spec to_server_raw(string()) ->
|
||||
-spec to_server_raw(string() | binary()) ->
|
||||
{string(), pos_integer()}.
|
||||
to_server_raw(<<"http://", Server/binary>>) ->
|
||||
emqx_connector_schema_lib:parse_server(Server, ?INFLUXDB_HOST_OPTIONS);
|
||||
to_server_raw(<<"https://", Server/binary>>) ->
|
||||
emqx_connector_schema_lib:parse_server(Server, ?INFLUXDB_HOST_OPTIONS);
|
||||
to_server_raw(Server) ->
|
||||
emqx_connector_schema_lib:parse_server(Server, ?INFLUXDB_HOST_OPTIONS).
|
||||
|
||||
|
|
Loading…
Reference in New Issue