Skip to content
Open
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
92 changes: 88 additions & 4 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18654,7 +18654,7 @@ components:
finished_at: 1693491984000000000
git:
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
repository_url: https://github.com/organization/example-repository
repository_id: github.com/organization/example-repository
service: shopist
started_at: 1693491974000000000
team: backend
Expand Down Expand Up @@ -18685,7 +18685,7 @@ components:
format: int64
type: integer
git:
$ref: '#/components/schemas/DORAGitInfo'
$ref: '#/components/schemas/DORAGitInfoResponse'
service:
description: Service name.
example: shopist
Expand Down Expand Up @@ -18896,7 +18896,7 @@ components:
finished_at: 1693491984000000000
git:
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
repository_url: https://github.com/organization/example-repository
repository_id: github.com/organization/example-repository
service: shopist
started_at: 1693491974000000000
team: backend
Expand All @@ -18911,7 +18911,7 @@ components:
finished_at: 1693492084000000000
git:
commit_sha: 77bdc9350f2cc9b250b69abddab733dd55e1a599
repository_url: https://github.com/organization/api-service
repository_id: github.com/organization/api-service
service: api-service
started_at: 1693492074000000000
team: backend
Expand Down Expand Up @@ -19085,6 +19085,17 @@ components:
- repository_url
- commit_sha
type: object
DORAGitInfoResponse:
description: Git info returned by DORA Metrics events.
properties:
commit_sha:
$ref: '#/components/schemas/GitCommitSHA'
repository_id:
$ref: '#/components/schemas/GitRepositoryID'
required:
- repository_id
- commit_sha
type: object
DORAIncidentObject:
description: A DORA incident event.
example:
Expand Down Expand Up @@ -28632,6 +28643,10 @@ components:
example: 66adc9350f2cc9b250b69abddab733dd55e1a588
pattern: ^[a-fA-F0-9]{40,}$
type: string
GitRepositoryID:
description: Git Repository ID
example: github.com/organization/example-repository
type: string
GitRepositoryURL:
description: Git Repository URL
example: https://github.com/organization/example-repository
Expand Down Expand Up @@ -54739,6 +54754,69 @@ components:
type: string
x-enum-varnames:
- RULESET
RumCrossProductSampling:
description: 'Configuration for additional APM trace data retention for sessions
that match this retention filter.

When a session matches the filter and is retained (based on `sample_rate`),
you can configure

the percentage of retained sessions with ingested traces whose traces are
indexed.'
properties:
trace_enabled:
description: Indicates whether trace cross-product sampling is enabled.
If `false`, no traces are indexed regardless of `trace_sample_rate`.
example: true
type: boolean
trace_sample_rate:
description: 'The percentage (0-100) of retained sessions with ingested
traces whose traces are indexed.

For example, 25.0 means 25% of retained sessions with ingested traces
have their traces indexed.'
example: 25.0
format: double
maximum: 100
minimum: 0
type: number
type: object
RumCrossProductSamplingCreate:
description: Configuration for cross-product sampling when creating a retention
filter.
properties:
trace_enabled:
description: Indicates whether trace cross-product sampling is enabled.
example: true
type: boolean
trace_sample_rate:
description: The percentage (0-100) of retained sessions with ingested traces
whose traces are indexed.
example: 25.0
format: double
maximum: 100
minimum: 0
type: number
required:
- trace_sample_rate
type: object
RumCrossProductSamplingUpdate:
description: Configuration for cross-product sampling when updating a retention
filter. All fields are optional for partial updates.
properties:
trace_enabled:
description: Indicates whether trace cross-product sampling is enabled.
example: true
type: boolean
trace_sample_rate:
description: The percentage (0-100) of retained sessions with ingested traces
whose traces are indexed.
example: 25.0
format: double
maximum: 100
minimum: 0
type: number
type: object
RumMetricCompute:
description: The compute rule to compute the rum-based metric.
properties:
Expand Down Expand Up @@ -55026,6 +55104,8 @@ components:
RumRetentionFilterAttributes:
description: The object describing attributes of a RUM retention filter.
properties:
cross_product_sampling:
$ref: '#/components/schemas/RumCrossProductSampling'
enabled:
$ref: '#/components/schemas/RumRetentionFilterEnabled'
event_type:
Expand All @@ -55040,6 +55120,8 @@ components:
RumRetentionFilterCreateAttributes:
description: The object describing attributes of a RUM retention filter to create.
properties:
cross_product_sampling:
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
enabled:
$ref: '#/components/schemas/RumRetentionFilterEnabled'
event_type:
Expand Down Expand Up @@ -55141,6 +55223,8 @@ components:
RumRetentionFilterUpdateAttributes:
description: The object describing attributes of a RUM retention filter to update.
properties:
cross_product_sampling:
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
enabled:
$ref: '#/components/schemas/RumRetentionFilterEnabled'
event_type:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class DORADeploymentObjectAttributes {
private Long finishedAt;

public static final String JSON_PROPERTY_GIT = "git";
private DORAGitInfo git;
private DORAGitInfoResponse git;

public static final String JSON_PROPERTY_SERVICE = "service";
private String service;
Expand Down Expand Up @@ -156,25 +156,25 @@ public void setFinishedAt(Long finishedAt) {
this.finishedAt = finishedAt;
}

public DORADeploymentObjectAttributes git(DORAGitInfo git) {
public DORADeploymentObjectAttributes git(DORAGitInfoResponse git) {
this.git = git;
this.unparsed |= git.unparsed;
return this;
}

/**
* Git info for DORA Metrics events.
* Git info returned by DORA Metrics events.
*
* @return git
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DORAGitInfo getGit() {
public DORAGitInfoResponse getGit() {
return git;
}

public void setGit(DORAGitInfo git) {
public void setGit(DORAGitInfoResponse git) {
this.git = git;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*/

package com.datadog.api.client.v2.model;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

/** Git info returned by DORA Metrics events. */
@JsonPropertyOrder({
DORAGitInfoResponse.JSON_PROPERTY_COMMIT_SHA,
DORAGitInfoResponse.JSON_PROPERTY_REPOSITORY_ID
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class DORAGitInfoResponse {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_COMMIT_SHA = "commit_sha";
private String commitSha;

public static final String JSON_PROPERTY_REPOSITORY_ID = "repository_id";
private String repositoryId;

public DORAGitInfoResponse() {}

@JsonCreator
public DORAGitInfoResponse(
@JsonProperty(required = true, value = JSON_PROPERTY_COMMIT_SHA) String commitSha,
@JsonProperty(required = true, value = JSON_PROPERTY_REPOSITORY_ID) String repositoryId) {
this.commitSha = commitSha;
this.repositoryId = repositoryId;
}

public DORAGitInfoResponse commitSha(String commitSha) {
this.commitSha = commitSha;
return this;
}

/**
* Git Commit SHA.
*
* @return commitSha
*/
@JsonProperty(JSON_PROPERTY_COMMIT_SHA)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getCommitSha() {
return commitSha;
}

public void setCommitSha(String commitSha) {
this.commitSha = commitSha;
}

public DORAGitInfoResponse repositoryId(String repositoryId) {
this.repositoryId = repositoryId;
return this;
}

/**
* Git Repository ID
*
* @return repositoryId
*/
@JsonProperty(JSON_PROPERTY_REPOSITORY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getRepositoryId() {
return repositoryId;
}

public void setRepositoryId(String repositoryId) {
this.repositoryId = repositoryId;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
*/
private Map<String, Object> additionalProperties;

/**
* Set the additional (undeclared) property with the specified name and value. If the property
* does not already exist, create it otherwise replace it.
*
* @param key The arbitrary key to set
* @param value The associated value
* @return DORAGitInfoResponse
*/
@JsonAnySetter
public DORAGitInfoResponse putAdditionalProperty(String key, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap<String, Object>();
}
this.additionalProperties.put(key, value);
return this;
}

/**
* Return the additional (undeclared) property.
*
* @return The additional properties
*/
@JsonAnyGetter
public Map<String, Object> getAdditionalProperties() {
return additionalProperties;
}

/**
* Return the additional (undeclared) property with the specified name.
*
* @param key The arbitrary key to get
* @return The specific additional property for the given key
*/
public Object getAdditionalProperty(String key) {
if (this.additionalProperties == null) {
return null;
}
return this.additionalProperties.get(key);
}

/** Return true if this DORAGitInfoResponse object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DORAGitInfoResponse doraGitInfoResponse = (DORAGitInfoResponse) o;
return Objects.equals(this.commitSha, doraGitInfoResponse.commitSha)
&& Objects.equals(this.repositoryId, doraGitInfoResponse.repositoryId)
&& Objects.equals(this.additionalProperties, doraGitInfoResponse.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(commitSha, repositoryId, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DORAGitInfoResponse {\n");
sb.append(" commitSha: ").append(toIndentedString(commitSha)).append("\n");
sb.append(" repositoryId: ").append(toIndentedString(repositoryId)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
sb.append('}');
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
Loading
Loading