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
11 changes: 9 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100099,6 +100099,12 @@ components:
$ref: "#/components/schemas/ComponentRecommendation"
executor:
$ref: "#/components/schemas/ComponentRecommendation"
matched_params:
description: |-
Only returned by the v2 endpoint. The job parameters whose values the recommendation was matched on, as `parameter=value` pairs joined by `|`.
An empty string means the service-wide (coarse) recommendation was used.
example: "detailed_metrics=false|Region=US1"
type: string
required: [driver, executor]
type: object
RecommendationData:
Expand Down Expand Up @@ -100132,7 +100138,7 @@ components:
RecommendationV2RequestAttributes:
description: |-
Attributes for requesting SPA recommendations by forwarding a Spark job's raw arguments
instead of a precomputed shard.
instead of a pre-computed shard.
properties:
arguments:
description: |-
Expand All @@ -100148,7 +100154,7 @@ components:
RecommendationV2RequestBody:
description: |-
Request body for retrieving SPA recommendations by forwarding a Spark job's raw arguments
instead of a precomputed shard.
instead of a pre-computed shard.
properties:
data:
$ref: "#/components/schemas/RecommendationV2RequestData"
Expand Down Expand Up @@ -230935,6 +230941,7 @@ paths:
heap: 3072
memory: 4096
overhead: 1024
matched_params: "detailed_metrics=false"
id: "dedupeactivecontexts:adp_dedupeactivecontexts_org2"
type: recommendation
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
@JsonPropertyOrder({
RecommendationAttributes.JSON_PROPERTY_CONFIDENCE_LEVEL,
RecommendationAttributes.JSON_PROPERTY_DRIVER,
RecommendationAttributes.JSON_PROPERTY_EXECUTOR
RecommendationAttributes.JSON_PROPERTY_EXECUTOR,
RecommendationAttributes.JSON_PROPERTY_MATCHED_PARAMS
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -39,6 +40,9 @@ public class RecommendationAttributes {
public static final String JSON_PROPERTY_EXECUTOR = "executor";
private ComponentRecommendation executor;

public static final String JSON_PROPERTY_MATCHED_PARAMS = "matched_params";
private String matchedParams;

public RecommendationAttributes() {}

@JsonCreator
Expand Down Expand Up @@ -124,6 +128,29 @@ public void setExecutor(ComponentRecommendation executor) {
}
}

public RecommendationAttributes matchedParams(String matchedParams) {
this.matchedParams = matchedParams;
return this;
}

/**
* Only returned by the v2 endpoint. The job parameters whose values the recommendation was
* matched on, as <code>parameter=value</code> pairs joined by <code>|</code>. An empty string
* means the service-wide (coarse) recommendation was used.
*
* @return matchedParams
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MATCHED_PARAMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMatchedParams() {
return matchedParams;
}

public void setMatchedParams(String matchedParams) {
this.matchedParams = matchedParams;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -183,12 +210,13 @@ public boolean equals(Object o) {
return Objects.equals(this.confidenceLevel, recommendationAttributes.confidenceLevel)
&& Objects.equals(this.driver, recommendationAttributes.driver)
&& Objects.equals(this.executor, recommendationAttributes.executor)
&& Objects.equals(this.matchedParams, recommendationAttributes.matchedParams)
&& Objects.equals(this.additionalProperties, recommendationAttributes.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(confidenceLevel, driver, executor, additionalProperties);
return Objects.hash(confidenceLevel, driver, executor, matchedParams, additionalProperties);
}

@Override
Expand All @@ -198,6 +226,7 @@ public String toString() {
sb.append(" confidenceLevel: ").append(toIndentedString(confidenceLevel)).append("\n");
sb.append(" driver: ").append(toIndentedString(driver)).append("\n");
sb.append(" executor: ").append(toIndentedString(executor)).append("\n");
sb.append(" matchedParams: ").append(toIndentedString(matchedParams)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/**
* Attributes for requesting SPA recommendations by forwarding a Spark job's raw arguments instead
* of a precomputed shard.
* of a pre-computed shard.
*/
@JsonPropertyOrder({RecommendationV2RequestAttributes.JSON_PROPERTY_ARGUMENTS})
@jakarta.annotation.Generated(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/**
* Request body for retrieving SPA recommendations by forwarding a Spark job's raw arguments instead
* of a precomputed shard.
* of a pre-computed shard.
*/
@JsonPropertyOrder({RecommendationV2RequestBody.JSON_PROPERTY_DATA})
@jakarta.annotation.Generated(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public RecommendationV2RequestData attributes(RecommendationV2RequestAttributes

/**
* Attributes for requesting SPA recommendations by forwarding a Spark job's raw arguments instead
* of a precomputed shard.
* of a pre-computed shard.
*
* @return attributes
*/
Expand Down
Loading