mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Fix collector's class name on response output
This commit is contained in:
parent
c50b22f95f
commit
5cfefe08b0
@ -123,8 +123,8 @@ public class CollectorResult implements ToXContent, Writeable {
|
|||||||
@Override
|
@Override
|
||||||
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException {
|
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException {
|
||||||
builder = builder.startObject()
|
builder = builder.startObject()
|
||||||
.field(NAME.getPreferredName(), toString())
|
.field(NAME.getPreferredName(), getName())
|
||||||
.field(REASON.getPreferredName(), reason)
|
.field(REASON.getPreferredName(), getReason())
|
||||||
.field(TIME.getPreferredName(), String.format(Locale.US, "%.10gms", (double) (getTime() / 1000000.0)));
|
.field(TIME.getPreferredName(), String.format(Locale.US, "%.10gms", (double) (getTime() / 1000000.0)));
|
||||||
|
|
||||||
if (!children.isEmpty()) {
|
if (!children.isEmpty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user