forked from pinpoint-apm/pinpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pinpoint-apm#9631] Add new optional parameter
filters
to errorList…
… API
- Loading branch information
Showing
7 changed files
with
202 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...eb/src/main/java/com/navercorp/pinpoint/exceptiontrace/web/model/RawGroupedFieldName.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* Copyright 2024 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.navercorp.pinpoint.exceptiontrace.web.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
/** | ||
* @author intr3p1d | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class RawGroupedFieldName { | ||
private String uriTemplate; | ||
private String errorClassName; | ||
private String errorMessage_logtype; | ||
private String stackTraceHash; | ||
|
||
|
||
public String getUriTemplate() { | ||
return uriTemplate; | ||
} | ||
|
||
public void setUriTemplate(String uriTemplate) { | ||
this.uriTemplate = uriTemplate; | ||
} | ||
|
||
public String getErrorClassName() { | ||
return errorClassName; | ||
} | ||
|
||
public void setErrorClassName(String errorClassName) { | ||
this.errorClassName = errorClassName; | ||
} | ||
|
||
public String getErrorMessage_logtype() { | ||
return errorMessage_logtype; | ||
} | ||
|
||
public void setErrorMessage_logtype(String errorMessage_logtype) { | ||
this.errorMessage_logtype = errorMessage_logtype; | ||
} | ||
|
||
public String getStackTraceHash() { | ||
return stackTraceHash; | ||
} | ||
|
||
public void setStackTraceHash(String stackTraceHash) { | ||
this.stackTraceHash = stackTraceHash; | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
return "RawGroupedFieldName{" + | ||
"uriTemplate='" + uriTemplate + '\'' + | ||
", errorClassName='" + errorClassName + '\'' + | ||
", errorMessage_logtype='" + errorMessage_logtype + '\'' + | ||
", stackTraceHash='" + stackTraceHash + '\'' + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...-web/src/main/java/com/navercorp/pinpoint/exceptiontrace/web/util/FilterByAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Copyright 2024 NAVER Corp. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.navercorp.pinpoint.exceptiontrace.web.util; | ||
|
||
import com.navercorp.pinpoint.common.server.util.EnumGetter; | ||
import com.navercorp.pinpoint.exceptiontrace.common.pinot.PinotColumns; | ||
|
||
import java.util.EnumMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author intr3p1d | ||
*/ | ||
public class FilterByAttributes { | ||
|
||
public enum FilterByColumn { | ||
URI_TEMPLATE(PinotColumns.URI_TEMPLATE), | ||
ERROR_MESSAGE_LOG_TYPE(PinotColumns.ERROR_MESSAGE_LOG_TYPE), | ||
ERROR_CLASS_NAME(PinotColumns.ERROR_CLASS_NAME), | ||
STACK_TRACE(PinotColumns.STACK_TRACE_HASH); | ||
|
||
private static final EnumGetter<FilterByColumn> GETTER = new EnumGetter<>(FilterByColumn.class); | ||
|
||
private final PinotColumns column; | ||
|
||
FilterByColumn(PinotColumns column) { | ||
this.column = column; | ||
} | ||
|
||
public PinotColumns getColumn() { | ||
return column; | ||
} | ||
|
||
public static FilterByColumn fromValue(String column) { | ||
return GETTER.fromValue((FilterByColumn x) -> x.getColumn().getName(), column); | ||
} | ||
} | ||
|
||
|
||
private final Map<FilterByColumn, String> map = new EnumMap<>(FilterByColumn.class); | ||
|
||
public void put(String column, String value) { | ||
this.map.put(FilterByColumn.fromValue(column), value); | ||
} | ||
|
||
public Map<FilterByColumn, String> getMap() { | ||
return map; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "FilterByAttributes{" + | ||
"map=" + map + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters