Skip to content

Commit 7a49c2b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e047585 of spec repo
1 parent a6b4a7c commit 7a49c2b

File tree

5 files changed

+668
-15
lines changed

5 files changed

+668
-15
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29582,6 +29582,19 @@ components:
2958229582
type: string
2958329583
x-enum-varnames:
2958429584
- INCIDENT_ATTACHMENTS
29585+
IncidentCondition:
29586+
description: A condition evaluated against incident tags.
29587+
properties:
29588+
tags:
29589+
description: Tags that must match for the condition to pass.
29590+
example:
29591+
- ''
29592+
items:
29593+
type: string
29594+
type: array
29595+
required:
29596+
- tags
29597+
type: object
2958529598
IncidentCreateAttributes:
2958629599
description: The incident's attributes for a create request.
2958729600
properties:
@@ -31416,6 +31429,32 @@ components:
3141631429
user_defined_fields:
3141731430
$ref: '#/components/schemas/RelationshipToIncidentUserDefinedFields'
3141831431
type: object
31432+
IncidentScheduleTrigger:
31433+
description: Trigger a workflow from an Incident Schedule. The workflow must
31434+
be published.
31435+
properties:
31436+
incidentType:
31437+
description: Incident type filter for the schedule.
31438+
type: string
31439+
rrule:
31440+
description: Recurrence rule expression for scheduling.
31441+
example: ''
31442+
type: string
31443+
tagCondition:
31444+
$ref: '#/components/schemas/IncidentCondition'
31445+
required:
31446+
- rrule
31447+
type: object
31448+
IncidentScheduleTriggerWrapper:
31449+
description: Schema for an Incident Schedule-based trigger.
31450+
properties:
31451+
incidentScheduleTrigger:
31452+
$ref: '#/components/schemas/IncidentScheduleTrigger'
31453+
startStepNames:
31454+
$ref: '#/components/schemas/StartStepNames'
31455+
required:
31456+
- incidentScheduleTrigger
31457+
type: object
3141931458
IncidentSearchResponse:
3142031459
description: Response with incidents and facets.
3142131460
properties:
@@ -67073,6 +67112,7 @@ components:
6707367112
- $ref: '#/components/schemas/FormTriggerWrapper'
6707467113
- $ref: '#/components/schemas/GithubWebhookTriggerWrapper'
6707567114
- $ref: '#/components/schemas/IncidentTriggerWrapper'
67115+
- $ref: '#/components/schemas/IncidentScheduleTriggerWrapper'
6707667116
- $ref: '#/components/schemas/MonitorTriggerWrapper'
6707767117
- $ref: '#/components/schemas/NotebookTriggerWrapper'
6707867118
- $ref: '#/components/schemas/OnCallTriggerWrapper'
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
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+
/** A condition evaluated against incident tags. */
23+
@JsonPropertyOrder({IncidentCondition.JSON_PROPERTY_TAGS})
24+
@jakarta.annotation.Generated(
25+
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
26+
public class IncidentCondition {
27+
@JsonIgnore public boolean unparsed = false;
28+
public static final String JSON_PROPERTY_TAGS = "tags";
29+
private List<String> tags = new ArrayList<>();
30+
31+
public IncidentCondition() {}
32+
33+
@JsonCreator
34+
public IncidentCondition(
35+
@JsonProperty(required = true, value = JSON_PROPERTY_TAGS) List<String> tags) {
36+
this.tags = tags;
37+
}
38+
39+
public IncidentCondition tags(List<String> tags) {
40+
this.tags = tags;
41+
return this;
42+
}
43+
44+
public IncidentCondition addTagsItem(String tagsItem) {
45+
this.tags.add(tagsItem);
46+
return this;
47+
}
48+
49+
/**
50+
* Tags that must match for the condition to pass.
51+
*
52+
* @return tags
53+
*/
54+
@JsonProperty(JSON_PROPERTY_TAGS)
55+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
56+
public List<String> getTags() {
57+
return tags;
58+
}
59+
60+
public void setTags(List<String> tags) {
61+
this.tags = tags;
62+
}
63+
64+
/**
65+
* A container for additional, undeclared properties. This is a holder for any undeclared
66+
* properties as specified with the 'additionalProperties' keyword in the OAS document.
67+
*/
68+
private Map<String, Object> additionalProperties;
69+
70+
/**
71+
* Set the additional (undeclared) property with the specified name and value. If the property
72+
* does not already exist, create it otherwise replace it.
73+
*
74+
* @param key The arbitrary key to set
75+
* @param value The associated value
76+
* @return IncidentCondition
77+
*/
78+
@JsonAnySetter
79+
public IncidentCondition putAdditionalProperty(String key, Object value) {
80+
if (this.additionalProperties == null) {
81+
this.additionalProperties = new HashMap<String, Object>();
82+
}
83+
this.additionalProperties.put(key, value);
84+
return this;
85+
}
86+
87+
/**
88+
* Return the additional (undeclared) property.
89+
*
90+
* @return The additional properties
91+
*/
92+
@JsonAnyGetter
93+
public Map<String, Object> getAdditionalProperties() {
94+
return additionalProperties;
95+
}
96+
97+
/**
98+
* Return the additional (undeclared) property with the specified name.
99+
*
100+
* @param key The arbitrary key to get
101+
* @return The specific additional property for the given key
102+
*/
103+
public Object getAdditionalProperty(String key) {
104+
if (this.additionalProperties == null) {
105+
return null;
106+
}
107+
return this.additionalProperties.get(key);
108+
}
109+
110+
/** Return true if this IncidentCondition object is equal to o. */
111+
@Override
112+
public boolean equals(Object o) {
113+
if (this == o) {
114+
return true;
115+
}
116+
if (o == null || getClass() != o.getClass()) {
117+
return false;
118+
}
119+
IncidentCondition incidentCondition = (IncidentCondition) o;
120+
return Objects.equals(this.tags, incidentCondition.tags)
121+
&& Objects.equals(this.additionalProperties, incidentCondition.additionalProperties);
122+
}
123+
124+
@Override
125+
public int hashCode() {
126+
return Objects.hash(tags, additionalProperties);
127+
}
128+
129+
@Override
130+
public String toString() {
131+
StringBuilder sb = new StringBuilder();
132+
sb.append("class IncidentCondition {\n");
133+
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
134+
sb.append(" additionalProperties: ")
135+
.append(toIndentedString(additionalProperties))
136+
.append("\n");
137+
sb.append('}');
138+
return sb.toString();
139+
}
140+
141+
/**
142+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
143+
*/
144+
private String toIndentedString(Object o) {
145+
if (o == null) {
146+
return "null";
147+
}
148+
return o.toString().replace("\n", "\n ");
149+
}
150+
}

0 commit comments

Comments
 (0)