Skip to content

Commit f11a290

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 3a1d4b2 of spec repo (#4177)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 7bec70f commit f11a290

4 files changed

Lines changed: 435 additions & 19 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4591,6 +4591,22 @@ components:
45914591
- id
45924592
- base_severity
45934593
type: object
4594+
AgentTrigger:
4595+
description: "Trigger a workflow from an agent via the MCP execute tool. Workflow can be executed from Bits Chat, Bits Agent Builder, Claude Code, Codex, Cursor, and any other coding agent using the Datadog MCP."
4596+
properties:
4597+
rateLimit:
4598+
$ref: "#/components/schemas/TriggerRateLimit"
4599+
type: object
4600+
AgentTriggerWrapper:
4601+
description: "Schema for an agent-based trigger."
4602+
properties:
4603+
agentTrigger:
4604+
$ref: "#/components/schemas/AgentTrigger"
4605+
startStepNames:
4606+
$ref: "#/components/schemas/StartStepNames"
4607+
required:
4608+
- agentTrigger
4609+
type: object
45944610
AggregatedHighFrozenFrameRate:
45954611
description: Aggregated high frozen frame rate detection at view level.
45964612
properties:
@@ -114425,6 +114441,7 @@ components:
114425114441
Trigger:
114426114442
description: "One of the triggers that can start the execution of a workflow."
114427114443
oneOf:
114444+
- $ref: "#/components/schemas/AgentTriggerWrapper"
114428114445
- $ref: "#/components/schemas/APITriggerWrapper"
114429114446
- $ref: "#/components/schemas/AppTriggerWrapper"
114430114447
- $ref: "#/components/schemas/CaseTriggerWrapper"
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*/
6+
7+
package com.datadog.api.client.v2.model;
8+
9+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
10+
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonIgnore;
12+
import com.fasterxml.jackson.annotation.JsonInclude;
13+
import com.fasterxml.jackson.annotation.JsonProperty;
14+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
15+
import java.util.HashMap;
16+
import java.util.Map;
17+
import java.util.Objects;
18+
19+
/**
20+
* Trigger a workflow from an agent via the MCP execute tool. Workflow can be executed from Bits
21+
* Chat, Bits Agent Builder, Claude Code, Codex, Cursor, and any other coding agent using the
22+
* Datadog MCP.
23+
*/
24+
@JsonPropertyOrder({AgentTrigger.JSON_PROPERTY_RATE_LIMIT})
25+
@jakarta.annotation.Generated(
26+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
27+
public class AgentTrigger {
28+
@JsonIgnore public boolean unparsed = false;
29+
public static final String JSON_PROPERTY_RATE_LIMIT = "rateLimit";
30+
private TriggerRateLimit rateLimit;
31+
32+
public AgentTrigger rateLimit(TriggerRateLimit rateLimit) {
33+
this.rateLimit = rateLimit;
34+
this.unparsed |= rateLimit.unparsed;
35+
return this;
36+
}
37+
38+
/**
39+
* Defines a rate limit for a trigger.
40+
*
41+
* @return rateLimit
42+
*/
43+
@jakarta.annotation.Nullable
44+
@JsonProperty(JSON_PROPERTY_RATE_LIMIT)
45+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
46+
public TriggerRateLimit getRateLimit() {
47+
return rateLimit;
48+
}
49+
50+
public void setRateLimit(TriggerRateLimit rateLimit) {
51+
this.rateLimit = rateLimit;
52+
if (rateLimit != null) {
53+
this.unparsed |= rateLimit.unparsed;
54+
}
55+
}
56+
57+
/**
58+
* A container for additional, undeclared properties. This is a holder for any undeclared
59+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
60+
*/
61+
private Map<String, Object> additionalProperties;
62+
63+
/**
64+
* Set the additional (undeclared) property with the specified name and value. If the property
65+
* does not already exist, create it otherwise replace it.
66+
*
67+
* @param key The arbitrary key to set
68+
* @param value The associated value
69+
* @return AgentTrigger
70+
*/
71+
@JsonAnySetter
72+
public AgentTrigger putAdditionalProperty(String key, Object value) {
73+
if (this.additionalProperties == null) {
74+
this.additionalProperties = new HashMap<String, Object>();
75+
}
76+
this.additionalProperties.put(key, value);
77+
return this;
78+
}
79+
80+
/**
81+
* Return the additional (undeclared) property.
82+
*
83+
* @return The additional properties
84+
*/
85+
@JsonAnyGetter
86+
public Map<String, Object> getAdditionalProperties() {
87+
return additionalProperties;
88+
}
89+
90+
/**
91+
* Return the additional (undeclared) property with the specified name.
92+
*
93+
* @param key The arbitrary key to get
94+
* @return The specific additional property for the given key
95+
*/
96+
public Object getAdditionalProperty(String key) {
97+
if (this.additionalProperties == null) {
98+
return null;
99+
}
100+
return this.additionalProperties.get(key);
101+
}
102+
103+
/** Return true if this AgentTrigger object is equal to o. */
104+
@Override
105+
public boolean equals(Object o) {
106+
if (this == o) {
107+
return true;
108+
}
109+
if (o == null || getClass() != o.getClass()) {
110+
return false;
111+
}
112+
AgentTrigger agentTrigger = (AgentTrigger) o;
113+
return Objects.equals(this.rateLimit, agentTrigger.rateLimit)
114+
&& Objects.equals(this.additionalProperties, agentTrigger.additionalProperties);
115+
}
116+
117+
@Override
118+
public int hashCode() {
119+
return Objects.hash(rateLimit, additionalProperties);
120+
}
121+
122+
@Override
123+
public String toString() {
124+
StringBuilder sb = new StringBuilder();
125+
sb.append("class AgentTrigger {\n");
126+
sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n");
127+
sb.append(" additionalProperties: ")
128+
.append(toIndentedString(additionalProperties))
129+
.append("\n");
130+
sb.append('}');
131+
return sb.toString();
132+
}
133+
134+
/**
135+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
136+
*/
137+
private String toIndentedString(Object o) {
138+
if (o == null) {
139+
return "null";
140+
}
141+
return o.toString().replace("\n", "\n ");
142+
}
143+
}
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*/
6+
7+
package com.datadog.api.client.v2.model;
8+
9+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
10+
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonCreator;
12+
import com.fasterxml.jackson.annotation.JsonIgnore;
13+
import com.fasterxml.jackson.annotation.JsonInclude;
14+
import com.fasterxml.jackson.annotation.JsonProperty;
15+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
16+
import java.util.ArrayList;
17+
import java.util.HashMap;
18+
import java.util.List;
19+
import java.util.Map;
20+
import java.util.Objects;
21+
22+
/** Schema for an agent-based trigger. */
23+
@JsonPropertyOrder({
24+
AgentTriggerWrapper.JSON_PROPERTY_AGENT_TRIGGER,
25+
AgentTriggerWrapper.JSON_PROPERTY_START_STEP_NAMES
26+
})
27+
@jakarta.annotation.Generated(
28+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
29+
public class AgentTriggerWrapper {
30+
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_AGENT_TRIGGER = "agentTrigger";
32+
private AgentTrigger agentTrigger;
33+
34+
public static final String JSON_PROPERTY_START_STEP_NAMES = "startStepNames";
35+
private List<String> startStepNames = null;
36+
37+
public AgentTriggerWrapper() {}
38+
39+
@JsonCreator
40+
public AgentTriggerWrapper(
41+
@JsonProperty(required = true, value = JSON_PROPERTY_AGENT_TRIGGER)
42+
AgentTrigger agentTrigger) {
43+
this.agentTrigger = agentTrigger;
44+
this.unparsed |= agentTrigger.unparsed;
45+
}
46+
47+
public AgentTriggerWrapper agentTrigger(AgentTrigger agentTrigger) {
48+
this.agentTrigger = agentTrigger;
49+
this.unparsed |= agentTrigger.unparsed;
50+
return this;
51+
}
52+
53+
/**
54+
* Trigger a workflow from an agent via the MCP execute tool. Workflow can be executed from Bits
55+
* Chat, Bits Agent Builder, Claude Code, Codex, Cursor, and any other coding agent using the
56+
* Datadog MCP.
57+
*
58+
* @return agentTrigger
59+
*/
60+
@JsonProperty(JSON_PROPERTY_AGENT_TRIGGER)
61+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
62+
public AgentTrigger getAgentTrigger() {
63+
return agentTrigger;
64+
}
65+
66+
public void setAgentTrigger(AgentTrigger agentTrigger) {
67+
this.agentTrigger = agentTrigger;
68+
if (agentTrigger != null) {
69+
this.unparsed |= agentTrigger.unparsed;
70+
}
71+
}
72+
73+
public AgentTriggerWrapper startStepNames(List<String> startStepNames) {
74+
this.startStepNames = startStepNames;
75+
return this;
76+
}
77+
78+
public AgentTriggerWrapper addStartStepNamesItem(String startStepNamesItem) {
79+
if (this.startStepNames == null) {
80+
this.startStepNames = new ArrayList<>();
81+
}
82+
this.startStepNames.add(startStepNamesItem);
83+
return this;
84+
}
85+
86+
/**
87+
* Names of existing workflow steps that run first after a trigger fires.
88+
*
89+
* @return startStepNames
90+
*/
91+
@jakarta.annotation.Nullable
92+
@JsonProperty(JSON_PROPERTY_START_STEP_NAMES)
93+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94+
public List<String> getStartStepNames() {
95+
return startStepNames;
96+
}
97+
98+
public void setStartStepNames(List<String> startStepNames) {
99+
this.startStepNames = startStepNames;
100+
}
101+
102+
/**
103+
* A container for additional, undeclared properties. This is a holder for any undeclared
104+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
105+
*/
106+
private Map<String, Object> additionalProperties;
107+
108+
/**
109+
* Set the additional (undeclared) property with the specified name and value. If the property
110+
* does not already exist, create it otherwise replace it.
111+
*
112+
* @param key The arbitrary key to set
113+
* @param value The associated value
114+
* @return AgentTriggerWrapper
115+
*/
116+
@JsonAnySetter
117+
public AgentTriggerWrapper putAdditionalProperty(String key, Object value) {
118+
if (this.additionalProperties == null) {
119+
this.additionalProperties = new HashMap<String, Object>();
120+
}
121+
this.additionalProperties.put(key, value);
122+
return this;
123+
}
124+
125+
/**
126+
* Return the additional (undeclared) property.
127+
*
128+
* @return The additional properties
129+
*/
130+
@JsonAnyGetter
131+
public Map<String, Object> getAdditionalProperties() {
132+
return additionalProperties;
133+
}
134+
135+
/**
136+
* Return the additional (undeclared) property with the specified name.
137+
*
138+
* @param key The arbitrary key to get
139+
* @return The specific additional property for the given key
140+
*/
141+
public Object getAdditionalProperty(String key) {
142+
if (this.additionalProperties == null) {
143+
return null;
144+
}
145+
return this.additionalProperties.get(key);
146+
}
147+
148+
/** Return true if this AgentTriggerWrapper object is equal to o. */
149+
@Override
150+
public boolean equals(Object o) {
151+
if (this == o) {
152+
return true;
153+
}
154+
if (o == null || getClass() != o.getClass()) {
155+
return false;
156+
}
157+
AgentTriggerWrapper agentTriggerWrapper = (AgentTriggerWrapper) o;
158+
return Objects.equals(this.agentTrigger, agentTriggerWrapper.agentTrigger)
159+
&& Objects.equals(this.startStepNames, agentTriggerWrapper.startStepNames)
160+
&& Objects.equals(this.additionalProperties, agentTriggerWrapper.additionalProperties);
161+
}
162+
163+
@Override
164+
public int hashCode() {
165+
return Objects.hash(agentTrigger, startStepNames, additionalProperties);
166+
}
167+
168+
@Override
169+
public String toString() {
170+
StringBuilder sb = new StringBuilder();
171+
sb.append("class AgentTriggerWrapper {\n");
172+
sb.append(" agentTrigger: ").append(toIndentedString(agentTrigger)).append("\n");
173+
sb.append(" startStepNames: ").append(toIndentedString(startStepNames)).append("\n");
174+
sb.append(" additionalProperties: ")
175+
.append(toIndentedString(additionalProperties))
176+
.append("\n");
177+
sb.append('}');
178+
return sb.toString();
179+
}
180+
181+
/**
182+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
183+
*/
184+
private String toIndentedString(Object o) {
185+
if (o == null) {
186+
return "null";
187+
}
188+
return o.toString().replace("\n", "\n ");
189+
}
190+
}

0 commit comments

Comments
 (0)