mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve monitor-support
This commit is contained in:
@@ -25,12 +25,16 @@ import com.alibaba.druid.support.monitor.annotation.MTable;
|
||||
@MTable(name = "druid_wall_sql")
|
||||
public class WallSqlStatValue {
|
||||
|
||||
@MField(aggregate = AggregateType.None)
|
||||
private String sql;
|
||||
|
||||
@MField(aggregate = AggregateType.None)
|
||||
@MField(groupBy = true, aggregate = AggregateType.None, hashFor = "sql", hashForType = "sql")
|
||||
private long sqlHash;
|
||||
|
||||
private String sqlSample;
|
||||
|
||||
@MField(groupBy = true, aggregate = AggregateType.None, hashFor = "sqlSample", hashForType = "sqlSample")
|
||||
private long sqlSampleHash;
|
||||
|
||||
@MField(aggregate = AggregateType.Sum)
|
||||
private long executeCount;
|
||||
|
||||
@@ -58,6 +62,14 @@ public class WallSqlStatValue {
|
||||
this.sql = sql;
|
||||
}
|
||||
|
||||
public long getSqlHash() {
|
||||
return sqlHash;
|
||||
}
|
||||
|
||||
public void setSqlHash(long sqlHash) {
|
||||
this.sqlHash = sqlHash;
|
||||
}
|
||||
|
||||
public String getSqlSample() {
|
||||
return sqlSample;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user