Skip to content

Commit

Permalink
add id in external link (#3967)
Browse files Browse the repository at this point in the history
Co-authored-by: ShawHee <[email protected]>
  • Loading branch information
ShawHee and ShawHee authored Aug 15, 2024
1 parent 47ba863 commit 9aff8c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
/** configFile Type enum */
public enum PlaceholderTypeEnum {

ID("id"),

JOB_ID("job_id"),

JOB_NAME("job_name"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public List<ExternalLink> render(Long appId) {

private void renderLinkUrl(ExternalLink link, Application app) {
Map<String, String> placeholderValueMap = new HashMap<>();
placeholderValueMap.put(PlaceholderTypeEnum.ID.get(), String.valueOf(app.getId()));
placeholderValueMap.put(PlaceholderTypeEnum.JOB_ID.get(), app.getJobId());
placeholderValueMap.put(PlaceholderTypeEnum.JOB_NAME.get(), app.getJobName());
placeholderValueMap.put(PlaceholderTypeEnum.YARN_ID.get(), app.getClusterId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
h(
'span',
{ class: 'tip-info' },
'Supported variables: {job_id}, {yarn_id}, {job_name},Example: https://grafana/flink-monitoring?var-JobId=var-JobId={job_id}',
'Supported variables: {id}, {job_id}, {yarn_id}, {job_name},Example: https://grafana/flink-monitoring?var-JobId=var-JobId={job_id}',
),
rules: [
{
Expand Down

0 comments on commit 9aff8c8

Please sign in to comment.