You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As follows:
uidmeta:
doc1. {"uid":"1", type:"METRIC", name:"sys.cpu.usage"}
doc2. {"uid":"1", type:"TAGK", name:"host.name"}
the document "doc1" will be overrided by "doc2"
source codes:
final StringBuilder uri = new StringBuilder(es.host())
.append("/")
.append(es.index())
.append("/")
.append(doc_type)
.append("/")
.append(meta.getUID());
so, i just add uid type(metric, tagk, tagv) before uid value。
as follows:
final StringBuilder uri = new StringBuilder(es.host())
.append("/")
.append(es.index())
.append("/")
.append(doc_type)
.append("/")
.append(meta.getType().name().toLowerCase()+meta.getUID());
The text was updated successfully, but these errors were encountered:
As follows:
uidmeta:
doc1. {"uid":"1", type:"METRIC", name:"sys.cpu.usage"}
doc2. {"uid":"1", type:"TAGK", name:"host.name"}
the document "doc1" will be overrided by "doc2"
source codes:
final StringBuilder uri = new StringBuilder(es.host())
.append("/")
.append(es.index())
.append("/")
.append(doc_type)
.append("/")
.append(meta.getUID());
so, i just add uid type(metric, tagk, tagv) before uid value。
as follows:
final StringBuilder uri = new StringBuilder(es.host())
.append("/")
.append(es.index())
.append("/")
.append(doc_type)
.append("/")
.append(meta.getType().name().toLowerCase()+meta.getUID());
The text was updated successfully, but these errors were encountered: