Skip to content
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
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "e4f653f",
"generated": "2025-07-25 14:08:34.729"
"spec_repo_commit": "b737cc4",
"generated": "2025-07-28 13:12:45.774"
}
11 changes: 11 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22867,6 +22867,17 @@ components:
maximum: 5
minimum: 0
type: number
tags:
description: List of tag keys used in the asset.
example:
- env
- service
- host
- datacenter
items:
description: Tag key used in assets.
type: string
type: array
title:
description: Title of the asset.
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/** Attributes related to the dashboard, including title, popularity, and url. */
@JsonPropertyOrder({
MetricDashboardAttributes.JSON_PROPERTY_POPULARITY,
MetricDashboardAttributes.JSON_PROPERTY_TAGS,
MetricDashboardAttributes.JSON_PROPERTY_TITLE,
MetricDashboardAttributes.JSON_PROPERTY_URL
})
Expand All @@ -29,6 +32,9 @@ public class MetricDashboardAttributes {
public static final String JSON_PROPERTY_POPULARITY = "popularity";
private Double popularity;

public static final String JSON_PROPERTY_TAGS = "tags";
private List<String> tags = null;

public static final String JSON_PROPERTY_TITLE = "title";
private String title;

Expand Down Expand Up @@ -56,6 +62,35 @@ public void setPopularity(Double popularity) {
this.popularity = popularity;
}

public MetricDashboardAttributes tags(List<String> tags) {
this.tags = tags;
return this;
}

public MetricDashboardAttributes addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}

/**
* List of tag keys used in the asset.
*
* @return tags
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getTags() {
return tags;
}

public void setTags(List<String> tags) {
this.tags = tags;
}

public MetricDashboardAttributes title(String title) {
this.title = title;
return this;
Expand Down Expand Up @@ -155,6 +190,7 @@ public boolean equals(Object o) {
}
MetricDashboardAttributes metricDashboardAttributes = (MetricDashboardAttributes) o;
return Objects.equals(this.popularity, metricDashboardAttributes.popularity)
&& Objects.equals(this.tags, metricDashboardAttributes.tags)
&& Objects.equals(this.title, metricDashboardAttributes.title)
&& Objects.equals(this.url, metricDashboardAttributes.url)
&& Objects.equals(
Expand All @@ -163,14 +199,15 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(popularity, title, url, additionalProperties);
return Objects.hash(popularity, tags, title, url, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetricDashboardAttributes {\n");
sb.append(" popularity: ").append(toIndentedString(popularity)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" additionalProperties: ")
Expand Down