Skip to content

update metrics.yaml for ListMetricAssets #2970

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

Merged
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": "4727afe",
"generated": "2025-07-23 15:38:09.593"
"spec_repo_commit": "c09ac23",
"generated": "2025-07-24 19:59:23.532"
}
13 changes: 12 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22454,8 +22454,19 @@ components:
readOnly: true
type: object
MetricAssetAttributes:
description: Assets related to the object, including title and url.
description: Assets related to the object, including title, url, and tags.
properties:
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,25 +12,60 @@
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;

/** Assets related to the object, including title and url. */
/** Assets related to the object, including title, url, and tags. */
@JsonPropertyOrder({
MetricAssetAttributes.JSON_PROPERTY_TAGS,
MetricAssetAttributes.JSON_PROPERTY_TITLE,
MetricAssetAttributes.JSON_PROPERTY_URL
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class MetricAssetAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_TAGS = "tags";
private List<String> tags = null;

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

public static final String JSON_PROPERTY_URL = "url";
private String url;

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

public MetricAssetAttributes 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 MetricAssetAttributes title(String title) {
this.title = title;
return this;
Expand Down Expand Up @@ -129,20 +164,22 @@ public boolean equals(Object o) {
return false;
}
MetricAssetAttributes metricAssetAttributes = (MetricAssetAttributes) o;
return Objects.equals(this.title, metricAssetAttributes.title)
return Objects.equals(this.tags, metricAssetAttributes.tags)
&& Objects.equals(this.title, metricAssetAttributes.title)
&& Objects.equals(this.url, metricAssetAttributes.url)
&& Objects.equals(this.additionalProperties, metricAssetAttributes.additionalProperties);
}

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

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetricAssetAttributes {\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
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public MetricMonitorAsset attributes(MetricAssetAttributes attributes) {
}

/**
* Assets related to the object, including title and url.
* Assets related to the object, including title, url, and tags.
*
* @return attributes
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public MetricNotebookAsset attributes(MetricAssetAttributes attributes) {
}

/**
* Assets related to the object, including title and url.
* Assets related to the object, including title, url, and tags.
*
* @return attributes
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public MetricSLOAsset attributes(MetricAssetAttributes attributes) {
}

/**
* Assets related to the object, including title and url.
* Assets related to the object, including title, url, and tags.
*
* @return attributes
*/
Expand Down