Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE#8481]Unified TRACE capacity building #8805

Merged
merged 3 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,35 @@
package com.alibaba.nacos.common.trace;

/**
* The reasons of health state change.
* The types of health check.
*
* @author yanda
*/

public enum HealthStateChangeReason {
public enum HealthCheckType {
/**
* Instance heart beat timeout.
*/
HEARTBEAT_TIMEOUT,
CLIENT_BEAT("client_beat"),
/**
* Instance heart beat refresh.
* Http health check.
*/
HEARTBEAT_REFRESH,
HTTP_HEALTH_CHECK("http"),
/**
* Instance health check fail.
* Mysql health check.
*/
HEALTH_CHECK_FAIL,
MYSQL_HEALTH_CHECK("mysql"),
/**
* Instance health check success.
* Tcp super sense health check .
*/
HEALTH_CHECK_SUCCESS;
TCP_SUPER_SENSE("tcp");

private String prefix;

private HealthCheckType(String prefix) {
this.prefix = prefix;
}

public String getPrefix() {
return prefix;
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* @author yanda
*/
public class TraceEvent extends Event {
private String type;

private final long eventTime;

private final String namespace;
Expand All @@ -32,6 +34,10 @@ public class TraceEvent extends Event {

private final String name;

public String getType() {
return type;
}

public long getEventTime() {
return eventTime;
}
Expand All @@ -48,7 +54,8 @@ public String getName() {
return name;
}

public TraceEvent(long eventTime, String namespace, String group, String name) {
public TraceEvent(String eventType, long eventTime, String namespace, String group, String name) {
this.type = eventType;
this.eventTime = eventTime;
this.namespace = namespace;
this.group = group;
Expand Down
Loading