From 35da0b285c8b6a3ae433137ce0c47530fc784ceb Mon Sep 17 00:00:00 2001 From: API Team Date: Tue, 28 Jan 2025 22:55:27 +0000 Subject: [PATCH] [GitHub Bot] Generated java SDK --- administrative/README.md | 2 +- agents/README.md | 2 +- alerts/README.md | 2 +- .../sdk/alerts/model/BaseRule.java | 126 +++++++++++++++++- .../thousandeyes/sdk/alerts/model/Rule.java | 119 ++++++++++++++++- .../sdk/alerts/model/RuleDetail.java | 119 ++++++++++++++++- .../sdk/alerts/model/RuleDetailUpdate.java | 119 ++++++++++++++++- .../sdk/alerts/AlertRulesApiTest.java | 21 +++ bgp-monitors/README.md | 2 +- credentials/README.md | 2 +- dashboards/README.md | 2 +- emulation/README.md | 2 +- endpoint-agents/README.md | 2 +- endpoint-instant-tests/README.md | 2 +- endpoint-labels/README.md | 2 +- endpoint-test-results/README.md | 2 +- endpoint-tests/README.md | 2 +- event-detection/README.md | 2 +- instant-tests/README.md | 2 +- internet-insights/README.md | 2 +- snapshots/README.md | 2 +- streaming/README.md | 2 +- streaming/docs/StreamingApi.md | 4 +- tags/README.md | 2 +- test-results/README.md | 2 +- tests/README.md | 2 +- usage/README.md | 2 +- 27 files changed, 521 insertions(+), 29 deletions(-) diff --git a/administrative/README.md b/administrative/README.md index 60fd17fbe..c5a6dc763 100644 --- a/administrative/README.md +++ b/administrative/README.md @@ -2,7 +2,7 @@ Administrative API -- API version: 7.0.35 +- API version: 7.0.36 Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following operations to manage your organization: diff --git a/agents/README.md b/agents/README.md index 9f70a5a5e..d46f867ca 100644 --- a/agents/README.md +++ b/agents/README.md @@ -2,7 +2,7 @@ Agents API -- API version: 7.0.35 +- API version: 7.0.36 ## Overview diff --git a/alerts/README.md b/alerts/README.md index 6105b2d51..57741033f 100644 --- a/alerts/README.md +++ b/alerts/README.md @@ -2,7 +2,7 @@ Alerts API -- API version: 7.0.35 +- API version: 7.0.36 You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API: diff --git a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/BaseRule.java b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/BaseRule.java index 215d737b9..3696dbc80 100644 --- a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/BaseRule.java +++ b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/BaseRule.java @@ -26,6 +26,9 @@ import com.thousandeyes.sdk.alerts.model.AlertType; import com.thousandeyes.sdk.alerts.model.SensitivityLevel; import com.thousandeyes.sdk.alerts.model.Severity; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -48,7 +51,10 @@ BaseRule.JSON_PROPERTY_ROUNDS_VIOLATING_REQUIRED, BaseRule.JSON_PROPERTY_INCLUDE_COVERED_PREFIXES, BaseRule.JSON_PROPERTY_SENSITIVITY_LEVEL, - BaseRule.JSON_PROPERTY_SEVERITY + BaseRule.JSON_PROPERTY_SEVERITY, + BaseRule.JSON_PROPERTY_ENDPOINT_AGENT_IDS, + BaseRule.JSON_PROPERTY_ENDPOINT_LABEL_IDS, + BaseRule.JSON_PROPERTY_VISITED_SITES_FILTER }) @jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator") public class BaseRule { @@ -100,6 +106,15 @@ public class BaseRule { public static final String JSON_PROPERTY_SEVERITY = "severity"; private Severity severity; + public static final String JSON_PROPERTY_ENDPOINT_AGENT_IDS = "endpointAgentIds"; + private List endpointAgentIds = new ArrayList<>(); + + public static final String JSON_PROPERTY_ENDPOINT_LABEL_IDS = "endpointLabelIds"; + private List endpointLabelIds = new ArrayList<>(); + + public static final String JSON_PROPERTY_VISITED_SITES_FILTER = "visitedSitesFilter"; + private List visitedSitesFilter = new ArrayList<>(); + public BaseRule() { } @@ -501,6 +516,105 @@ public void setSeverity(Severity severity) { } + public BaseRule endpointAgentIds(List endpointAgentIds) { + this.endpointAgentIds = endpointAgentIds; + return this; + } + + public BaseRule addEndpointAgentIdsItem(String endpointAgentIdsItem) { + if (this.endpointAgentIds == null) { + this.endpointAgentIds = new ArrayList<>(); + } + this.endpointAgentIds.add(endpointAgentIdsItem); + return this; + } + + /** + * An array of endpoint agent IDs associated with the rule (get `id` from `/endpoint/agents` API). This is applicable when `alertGroupType` is `browser-session`. + * @return endpointAgentIds + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getEndpointAgentIds() { + return endpointAgentIds; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpointAgentIds(List endpointAgentIds) { + this.endpointAgentIds = endpointAgentIds; + } + + + public BaseRule endpointLabelIds(List endpointLabelIds) { + this.endpointLabelIds = endpointLabelIds; + return this; + } + + public BaseRule addEndpointLabelIdsItem(String endpointLabelIdsItem) { + if (this.endpointLabelIds == null) { + this.endpointLabelIds = new ArrayList<>(); + } + this.endpointLabelIds.add(endpointLabelIdsItem); + return this; + } + + /** + * An array of label IDs used to assign specific Endpoint Agents to the test (get `id` from `/endpoint/labels`). This is applicable when `alertGroupType` is `browser-session`. + * @return endpointLabelIds + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getEndpointLabelIds() { + return endpointLabelIds; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpointLabelIds(List endpointLabelIds) { + this.endpointLabelIds = endpointLabelIds; + } + + + public BaseRule visitedSitesFilter(List visitedSitesFilter) { + this.visitedSitesFilter = visitedSitesFilter; + return this; + } + + public BaseRule addVisitedSitesFilterItem(String visitedSitesFilterItem) { + if (this.visitedSitesFilter == null) { + this.visitedSitesFilter = new ArrayList<>(); + } + this.visitedSitesFilter.add(visitedSitesFilterItem); + return this; + } + + /** + * A list of website domains visited during the session. This is applicable when `alertGroupType` is `browser-session`. + * @return visitedSitesFilter + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getVisitedSitesFilter() { + return visitedSitesFilter; + } + + + @JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVisitedSitesFilter(List visitedSitesFilter) { + this.visitedSitesFilter = visitedSitesFilter; + } + + /** * Return true if this BaseRule object is equal to o. */ @@ -528,12 +642,15 @@ public boolean equals(Object o) { Objects.equals(this.roundsViolatingRequired, baseRule.roundsViolatingRequired) && Objects.equals(this.includeCoveredPrefixes, baseRule.includeCoveredPrefixes) && Objects.equals(this.sensitivityLevel, baseRule.sensitivityLevel) && - Objects.equals(this.severity, baseRule.severity); + Objects.equals(this.severity, baseRule.severity) && + Objects.equals(this.endpointAgentIds, baseRule.endpointAgentIds) && + Objects.equals(this.endpointLabelIds, baseRule.endpointLabelIds) && + Objects.equals(this.visitedSitesFilter, baseRule.visitedSitesFilter); } @Override public int hashCode() { - return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity); + return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, endpointAgentIds, endpointLabelIds, visitedSitesFilter); } @Override @@ -556,6 +673,9 @@ public String toString() { sb.append(" includeCoveredPrefixes: ").append(toIndentedString(includeCoveredPrefixes)).append("\n"); sb.append(" sensitivityLevel: ").append(toIndentedString(sensitivityLevel)).append("\n"); sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" endpointAgentIds: ").append(toIndentedString(endpointAgentIds)).append("\n"); + sb.append(" endpointLabelIds: ").append(toIndentedString(endpointLabelIds)).append("\n"); + sb.append(" visitedSitesFilter: ").append(toIndentedString(visitedSitesFilter)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/Rule.java b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/Rule.java index 9efd06f8b..7c83a93b0 100644 --- a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/Rule.java +++ b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/Rule.java @@ -54,6 +54,9 @@ Rule.JSON_PROPERTY_INCLUDE_COVERED_PREFIXES, Rule.JSON_PROPERTY_SENSITIVITY_LEVEL, Rule.JSON_PROPERTY_SEVERITY, + Rule.JSON_PROPERTY_ENDPOINT_AGENT_IDS, + Rule.JSON_PROPERTY_ENDPOINT_LABEL_IDS, + Rule.JSON_PROPERTY_VISITED_SITES_FILTER, Rule.JSON_PROPERTY_NOTIFICATIONS, Rule.JSON_PROPERTY_TEST_IDS, Rule.JSON_PROPERTY_LINKS @@ -108,6 +111,15 @@ public class Rule { public static final String JSON_PROPERTY_SEVERITY = "severity"; private Severity severity; + public static final String JSON_PROPERTY_ENDPOINT_AGENT_IDS = "endpointAgentIds"; + private List endpointAgentIds = new ArrayList<>(); + + public static final String JSON_PROPERTY_ENDPOINT_LABEL_IDS = "endpointLabelIds"; + private List endpointLabelIds = new ArrayList<>(); + + public static final String JSON_PROPERTY_VISITED_SITES_FILTER = "visitedSitesFilter"; + private List visitedSitesFilter = new ArrayList<>(); + public static final String JSON_PROPERTY_NOTIFICATIONS = "notifications"; private AlertNotification notifications; @@ -518,6 +530,105 @@ public void setSeverity(Severity severity) { } + public Rule endpointAgentIds(List endpointAgentIds) { + this.endpointAgentIds = endpointAgentIds; + return this; + } + + public Rule addEndpointAgentIdsItem(String endpointAgentIdsItem) { + if (this.endpointAgentIds == null) { + this.endpointAgentIds = new ArrayList<>(); + } + this.endpointAgentIds.add(endpointAgentIdsItem); + return this; + } + + /** + * An array of endpoint agent IDs associated with the rule (get `id` from `/endpoint/agents` API). This is applicable when `alertGroupType` is `browser-session`. + * @return endpointAgentIds + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getEndpointAgentIds() { + return endpointAgentIds; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpointAgentIds(List endpointAgentIds) { + this.endpointAgentIds = endpointAgentIds; + } + + + public Rule endpointLabelIds(List endpointLabelIds) { + this.endpointLabelIds = endpointLabelIds; + return this; + } + + public Rule addEndpointLabelIdsItem(String endpointLabelIdsItem) { + if (this.endpointLabelIds == null) { + this.endpointLabelIds = new ArrayList<>(); + } + this.endpointLabelIds.add(endpointLabelIdsItem); + return this; + } + + /** + * An array of label IDs used to assign specific Endpoint Agents to the test (get `id` from `/endpoint/labels`). This is applicable when `alertGroupType` is `browser-session`. + * @return endpointLabelIds + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getEndpointLabelIds() { + return endpointLabelIds; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpointLabelIds(List endpointLabelIds) { + this.endpointLabelIds = endpointLabelIds; + } + + + public Rule visitedSitesFilter(List visitedSitesFilter) { + this.visitedSitesFilter = visitedSitesFilter; + return this; + } + + public Rule addVisitedSitesFilterItem(String visitedSitesFilterItem) { + if (this.visitedSitesFilter == null) { + this.visitedSitesFilter = new ArrayList<>(); + } + this.visitedSitesFilter.add(visitedSitesFilterItem); + return this; + } + + /** + * A list of website domains visited during the session. This is applicable when `alertGroupType` is `browser-session`. + * @return visitedSitesFilter + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getVisitedSitesFilter() { + return visitedSitesFilter; + } + + + @JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVisitedSitesFilter(List visitedSitesFilter) { + this.visitedSitesFilter = visitedSitesFilter; + } + + public Rule notifications(AlertNotification notifications) { this.notifications = notifications; return this; @@ -629,6 +740,9 @@ public boolean equals(Object o) { Objects.equals(this.includeCoveredPrefixes, rule.includeCoveredPrefixes) && Objects.equals(this.sensitivityLevel, rule.sensitivityLevel) && Objects.equals(this.severity, rule.severity) && + Objects.equals(this.endpointAgentIds, rule.endpointAgentIds) && + Objects.equals(this.endpointLabelIds, rule.endpointLabelIds) && + Objects.equals(this.visitedSitesFilter, rule.visitedSitesFilter) && Objects.equals(this.notifications, rule.notifications) && Objects.equals(this.testIds, rule.testIds) && Objects.equals(this.links, rule.links); @@ -636,7 +750,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, notifications, testIds, links); + return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, endpointAgentIds, endpointLabelIds, visitedSitesFilter, notifications, testIds, links); } @Override @@ -659,6 +773,9 @@ public String toString() { sb.append(" includeCoveredPrefixes: ").append(toIndentedString(includeCoveredPrefixes)).append("\n"); sb.append(" sensitivityLevel: ").append(toIndentedString(sensitivityLevel)).append("\n"); sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" endpointAgentIds: ").append(toIndentedString(endpointAgentIds)).append("\n"); + sb.append(" endpointLabelIds: ").append(toIndentedString(endpointLabelIds)).append("\n"); + sb.append(" visitedSitesFilter: ").append(toIndentedString(visitedSitesFilter)).append("\n"); sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); sb.append(" testIds: ").append(toIndentedString(testIds)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); diff --git a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/RuleDetail.java b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/RuleDetail.java index fe406e77c..8b21efa02 100644 --- a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/RuleDetail.java +++ b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/RuleDetail.java @@ -55,6 +55,9 @@ RuleDetail.JSON_PROPERTY_INCLUDE_COVERED_PREFIXES, RuleDetail.JSON_PROPERTY_SENSITIVITY_LEVEL, RuleDetail.JSON_PROPERTY_SEVERITY, + RuleDetail.JSON_PROPERTY_ENDPOINT_AGENT_IDS, + RuleDetail.JSON_PROPERTY_ENDPOINT_LABEL_IDS, + RuleDetail.JSON_PROPERTY_VISITED_SITES_FILTER, RuleDetail.JSON_PROPERTY_NOTIFICATIONS, RuleDetail.JSON_PROPERTY_TESTS, RuleDetail.JSON_PROPERTY_LINKS @@ -109,6 +112,15 @@ public class RuleDetail { public static final String JSON_PROPERTY_SEVERITY = "severity"; private Severity severity; + public static final String JSON_PROPERTY_ENDPOINT_AGENT_IDS = "endpointAgentIds"; + private List endpointAgentIds = new ArrayList<>(); + + public static final String JSON_PROPERTY_ENDPOINT_LABEL_IDS = "endpointLabelIds"; + private List endpointLabelIds = new ArrayList<>(); + + public static final String JSON_PROPERTY_VISITED_SITES_FILTER = "visitedSitesFilter"; + private List visitedSitesFilter = new ArrayList<>(); + public static final String JSON_PROPERTY_NOTIFICATIONS = "notifications"; private AlertNotification notifications; @@ -521,6 +533,105 @@ public void setSeverity(Severity severity) { } + public RuleDetail endpointAgentIds(List endpointAgentIds) { + this.endpointAgentIds = endpointAgentIds; + return this; + } + + public RuleDetail addEndpointAgentIdsItem(String endpointAgentIdsItem) { + if (this.endpointAgentIds == null) { + this.endpointAgentIds = new ArrayList<>(); + } + this.endpointAgentIds.add(endpointAgentIdsItem); + return this; + } + + /** + * An array of endpoint agent IDs associated with the rule (get `id` from `/endpoint/agents` API). This is applicable when `alertGroupType` is `browser-session`. + * @return endpointAgentIds + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getEndpointAgentIds() { + return endpointAgentIds; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpointAgentIds(List endpointAgentIds) { + this.endpointAgentIds = endpointAgentIds; + } + + + public RuleDetail endpointLabelIds(List endpointLabelIds) { + this.endpointLabelIds = endpointLabelIds; + return this; + } + + public RuleDetail addEndpointLabelIdsItem(String endpointLabelIdsItem) { + if (this.endpointLabelIds == null) { + this.endpointLabelIds = new ArrayList<>(); + } + this.endpointLabelIds.add(endpointLabelIdsItem); + return this; + } + + /** + * An array of label IDs used to assign specific Endpoint Agents to the test (get `id` from `/endpoint/labels`). This is applicable when `alertGroupType` is `browser-session`. + * @return endpointLabelIds + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getEndpointLabelIds() { + return endpointLabelIds; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpointLabelIds(List endpointLabelIds) { + this.endpointLabelIds = endpointLabelIds; + } + + + public RuleDetail visitedSitesFilter(List visitedSitesFilter) { + this.visitedSitesFilter = visitedSitesFilter; + return this; + } + + public RuleDetail addVisitedSitesFilterItem(String visitedSitesFilterItem) { + if (this.visitedSitesFilter == null) { + this.visitedSitesFilter = new ArrayList<>(); + } + this.visitedSitesFilter.add(visitedSitesFilterItem); + return this; + } + + /** + * A list of website domains visited during the session. This is applicable when `alertGroupType` is `browser-session`. + * @return visitedSitesFilter + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getVisitedSitesFilter() { + return visitedSitesFilter; + } + + + @JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVisitedSitesFilter(List visitedSitesFilter) { + this.visitedSitesFilter = visitedSitesFilter; + } + + public RuleDetail notifications(AlertNotification notifications) { this.notifications = notifications; return this; @@ -614,6 +725,9 @@ public boolean equals(Object o) { Objects.equals(this.includeCoveredPrefixes, ruleDetail.includeCoveredPrefixes) && Objects.equals(this.sensitivityLevel, ruleDetail.sensitivityLevel) && Objects.equals(this.severity, ruleDetail.severity) && + Objects.equals(this.endpointAgentIds, ruleDetail.endpointAgentIds) && + Objects.equals(this.endpointLabelIds, ruleDetail.endpointLabelIds) && + Objects.equals(this.visitedSitesFilter, ruleDetail.visitedSitesFilter) && Objects.equals(this.notifications, ruleDetail.notifications) && Objects.equals(this.tests, ruleDetail.tests) && Objects.equals(this.links, ruleDetail.links); @@ -621,7 +735,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, notifications, tests, links); + return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, endpointAgentIds, endpointLabelIds, visitedSitesFilter, notifications, tests, links); } @Override @@ -644,6 +758,9 @@ public String toString() { sb.append(" includeCoveredPrefixes: ").append(toIndentedString(includeCoveredPrefixes)).append("\n"); sb.append(" sensitivityLevel: ").append(toIndentedString(sensitivityLevel)).append("\n"); sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" endpointAgentIds: ").append(toIndentedString(endpointAgentIds)).append("\n"); + sb.append(" endpointLabelIds: ").append(toIndentedString(endpointLabelIds)).append("\n"); + sb.append(" visitedSitesFilter: ").append(toIndentedString(visitedSitesFilter)).append("\n"); sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); sb.append(" tests: ").append(toIndentedString(tests)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); diff --git a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/RuleDetailUpdate.java b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/RuleDetailUpdate.java index 5e3cb82b4..609d2c11a 100644 --- a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/RuleDetailUpdate.java +++ b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/RuleDetailUpdate.java @@ -53,6 +53,9 @@ RuleDetailUpdate.JSON_PROPERTY_INCLUDE_COVERED_PREFIXES, RuleDetailUpdate.JSON_PROPERTY_SENSITIVITY_LEVEL, RuleDetailUpdate.JSON_PROPERTY_SEVERITY, + RuleDetailUpdate.JSON_PROPERTY_ENDPOINT_AGENT_IDS, + RuleDetailUpdate.JSON_PROPERTY_ENDPOINT_LABEL_IDS, + RuleDetailUpdate.JSON_PROPERTY_VISITED_SITES_FILTER, RuleDetailUpdate.JSON_PROPERTY_NOTIFICATIONS, RuleDetailUpdate.JSON_PROPERTY_TEST_IDS }) @@ -106,6 +109,15 @@ public class RuleDetailUpdate { public static final String JSON_PROPERTY_SEVERITY = "severity"; private Severity severity; + public static final String JSON_PROPERTY_ENDPOINT_AGENT_IDS = "endpointAgentIds"; + private List endpointAgentIds = new ArrayList<>(); + + public static final String JSON_PROPERTY_ENDPOINT_LABEL_IDS = "endpointLabelIds"; + private List endpointLabelIds = new ArrayList<>(); + + public static final String JSON_PROPERTY_VISITED_SITES_FILTER = "visitedSitesFilter"; + private List visitedSitesFilter = new ArrayList<>(); + public static final String JSON_PROPERTY_NOTIFICATIONS = "notifications"; private AlertNotification notifications; @@ -513,6 +525,105 @@ public void setSeverity(Severity severity) { } + public RuleDetailUpdate endpointAgentIds(List endpointAgentIds) { + this.endpointAgentIds = endpointAgentIds; + return this; + } + + public RuleDetailUpdate addEndpointAgentIdsItem(String endpointAgentIdsItem) { + if (this.endpointAgentIds == null) { + this.endpointAgentIds = new ArrayList<>(); + } + this.endpointAgentIds.add(endpointAgentIdsItem); + return this; + } + + /** + * An array of endpoint agent IDs associated with the rule (get `id` from `/endpoint/agents` API). This is applicable when `alertGroupType` is `browser-session`. + * @return endpointAgentIds + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getEndpointAgentIds() { + return endpointAgentIds; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT_AGENT_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpointAgentIds(List endpointAgentIds) { + this.endpointAgentIds = endpointAgentIds; + } + + + public RuleDetailUpdate endpointLabelIds(List endpointLabelIds) { + this.endpointLabelIds = endpointLabelIds; + return this; + } + + public RuleDetailUpdate addEndpointLabelIdsItem(String endpointLabelIdsItem) { + if (this.endpointLabelIds == null) { + this.endpointLabelIds = new ArrayList<>(); + } + this.endpointLabelIds.add(endpointLabelIdsItem); + return this; + } + + /** + * An array of label IDs used to assign specific Endpoint Agents to the test (get `id` from `/endpoint/labels`). This is applicable when `alertGroupType` is `browser-session`. + * @return endpointLabelIds + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getEndpointLabelIds() { + return endpointLabelIds; + } + + + @JsonProperty(JSON_PROPERTY_ENDPOINT_LABEL_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndpointLabelIds(List endpointLabelIds) { + this.endpointLabelIds = endpointLabelIds; + } + + + public RuleDetailUpdate visitedSitesFilter(List visitedSitesFilter) { + this.visitedSitesFilter = visitedSitesFilter; + return this; + } + + public RuleDetailUpdate addVisitedSitesFilterItem(String visitedSitesFilterItem) { + if (this.visitedSitesFilter == null) { + this.visitedSitesFilter = new ArrayList<>(); + } + this.visitedSitesFilter.add(visitedSitesFilterItem); + return this; + } + + /** + * A list of website domains visited during the session. This is applicable when `alertGroupType` is `browser-session`. + * @return visitedSitesFilter + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getVisitedSitesFilter() { + return visitedSitesFilter; + } + + + @JsonProperty(JSON_PROPERTY_VISITED_SITES_FILTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVisitedSitesFilter(List visitedSitesFilter) { + this.visitedSitesFilter = visitedSitesFilter; + } + + public RuleDetailUpdate notifications(AlertNotification notifications) { this.notifications = notifications; return this; @@ -599,13 +710,16 @@ public boolean equals(Object o) { Objects.equals(this.includeCoveredPrefixes, ruleDetailUpdate.includeCoveredPrefixes) && Objects.equals(this.sensitivityLevel, ruleDetailUpdate.sensitivityLevel) && Objects.equals(this.severity, ruleDetailUpdate.severity) && + Objects.equals(this.endpointAgentIds, ruleDetailUpdate.endpointAgentIds) && + Objects.equals(this.endpointLabelIds, ruleDetailUpdate.endpointLabelIds) && + Objects.equals(this.visitedSitesFilter, ruleDetailUpdate.visitedSitesFilter) && Objects.equals(this.notifications, ruleDetailUpdate.notifications) && Objects.equals(this.testIds, ruleDetailUpdate.testIds); } @Override public int hashCode() { - return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, notifications, testIds); + return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, alertGroupType, minimumSources, minimumSourcesPct, roundsViolatingMode, roundsViolatingOutOf, roundsViolatingRequired, includeCoveredPrefixes, sensitivityLevel, severity, endpointAgentIds, endpointLabelIds, visitedSitesFilter, notifications, testIds); } @Override @@ -628,6 +742,9 @@ public String toString() { sb.append(" includeCoveredPrefixes: ").append(toIndentedString(includeCoveredPrefixes)).append("\n"); sb.append(" sensitivityLevel: ").append(toIndentedString(sensitivityLevel)).append("\n"); sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" endpointAgentIds: ").append(toIndentedString(endpointAgentIds)).append("\n"); + sb.append(" endpointLabelIds: ").append(toIndentedString(endpointLabelIds)).append("\n"); + sb.append(" visitedSitesFilter: ").append(toIndentedString(visitedSitesFilter)).append("\n"); sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n"); sb.append(" testIds: ").append(toIndentedString(testIds)).append("\n"); sb.append("}"); diff --git a/alerts/src/test/java/com/thousandeyes/sdk/alerts/AlertRulesApiTest.java b/alerts/src/test/java/com/thousandeyes/sdk/alerts/AlertRulesApiTest.java index 9fa40ef70..2d3072964 100644 --- a/alerts/src/test/java/com/thousandeyes/sdk/alerts/AlertRulesApiTest.java +++ b/alerts/src/test/java/com/thousandeyes/sdk/alerts/AlertRulesApiTest.java @@ -90,6 +90,7 @@ public void createAlertRuleRequestAndResponseDeserializationTest() "expression" : "((hops((hopDelay >= 100 ms))))", "alertType" : "http-server", "includeCoveredPrefixes" : true, + "visitedSitesFilter" : [ "app.thousandeyes.com" ], "roundsViolatingMode" : "exact", "sensitivityLevel" : "medium", "alertGroupType" : "endpoint", @@ -98,8 +99,10 @@ public void createAlertRuleRequestAndResponseDeserializationTest() "roundsViolatingOutOf" : 5, "roundsViolatingRequired" : 2, "isDefault" : true, + "endpointAgentIds" : [ "281474976710706", "281474976710706" ], "minimumSourcesPct" : 99, "ruleName" : "The End of the Internet", + "endpointLabelIds" : [ "123456", "123456" ], "minimumSources" : 10, "ruleId" : "127094", "notifications" : { @@ -163,6 +166,7 @@ public void createAlertRuleRequestAndResponseDeserializationTest() } }, "includeCoveredPrefixes" : true, + "visitedSitesFilter" : [ "app.thousandeyes.com" ], "roundsViolatingMode" : "exact", "sensitivityLevel" : "medium", "alertGroupType" : "endpoint", @@ -171,8 +175,10 @@ public void createAlertRuleRequestAndResponseDeserializationTest() "roundsViolatingOutOf" : 5, "roundsViolatingRequired" : 2, "isDefault" : true, + "endpointAgentIds" : [ "281474976710706", "281474976710706" ], "minimumSourcesPct" : 99, "ruleName" : "The End of the Internet", + "endpointLabelIds" : [ "123456", "123456" ], "minimumSources" : 10, "ruleId" : "127094", "notifications" : { @@ -292,6 +298,7 @@ public void getAlertRuleRequestAndResponseDeserializationTest() } }, "includeCoveredPrefixes" : true, + "visitedSitesFilter" : [ "app.thousandeyes.com" ], "roundsViolatingMode" : "exact", "sensitivityLevel" : "medium", "alertGroupType" : "endpoint", @@ -299,6 +306,7 @@ public void getAlertRuleRequestAndResponseDeserializationTest() "roundsViolatingOutOf" : 5, "roundsViolatingRequired" : 2, "isDefault" : true, + "endpointAgentIds" : [ "281474976710706", "281474976710706" ], "tests" : [ { "_links" : { "testResults" : [ { @@ -364,6 +372,7 @@ public void getAlertRuleRequestAndResponseDeserializationTest() } ], "minimumSourcesPct" : 99, "ruleName" : "The End of the Internet", + "endpointLabelIds" : [ "123456", "123456" ], "minimumSources" : 10, "ruleId" : "127094", "notifications" : { @@ -455,6 +464,7 @@ public void getAlertsRulesRequestAndResponseDeserializationTest() "expression" : "((hops((hopDelay >= 100 ms))))", "alertType" : "http-server", "includeCoveredPrefixes" : true, + "visitedSitesFilter" : [ "app.thousandeyes.com" ], "roundsViolatingMode" : "exact", "sensitivityLevel" : "medium", "alertGroupType" : "endpoint", @@ -462,8 +472,10 @@ public void getAlertsRulesRequestAndResponseDeserializationTest() "roundsViolatingOutOf" : 5, "roundsViolatingRequired" : 2, "isDefault" : true, + "endpointAgentIds" : [ "281474976710706", "281474976710706" ], "minimumSourcesPct" : 99, "ruleName" : "The End of the Internet", + "endpointLabelIds" : [ "123456", "123456" ], "minimumSources" : 10, "ruleId" : "127094", "direction" : "to-target" @@ -472,6 +484,7 @@ public void getAlertsRulesRequestAndResponseDeserializationTest() "expression" : "((hops((hopDelay >= 100 ms))))", "alertType" : "http-server", "includeCoveredPrefixes" : true, + "visitedSitesFilter" : [ "app.thousandeyes.com" ], "roundsViolatingMode" : "exact", "sensitivityLevel" : "medium", "alertGroupType" : "endpoint", @@ -479,8 +492,10 @@ public void getAlertsRulesRequestAndResponseDeserializationTest() "roundsViolatingOutOf" : 5, "roundsViolatingRequired" : 2, "isDefault" : true, + "endpointAgentIds" : [ "281474976710706", "281474976710706" ], "minimumSourcesPct" : 99, "ruleName" : "The End of the Internet", + "endpointLabelIds" : [ "123456", "123456" ], "minimumSources" : 10, "ruleId" : "127094", "direction" : "to-target" @@ -524,6 +539,7 @@ public void updateAlertRuleRequestAndResponseDeserializationTest() "expression" : "((hops((hopDelay >= 100 ms))))", "alertType" : "http-server", "includeCoveredPrefixes" : true, + "visitedSitesFilter" : [ "app.thousandeyes.com" ], "roundsViolatingMode" : "exact", "sensitivityLevel" : "medium", "alertGroupType" : "endpoint", @@ -532,8 +548,10 @@ public void updateAlertRuleRequestAndResponseDeserializationTest() "roundsViolatingOutOf" : 5, "roundsViolatingRequired" : 2, "isDefault" : true, + "endpointAgentIds" : [ "281474976710706", "281474976710706" ], "minimumSourcesPct" : 99, "ruleName" : "The End of the Internet", + "endpointLabelIds" : [ "123456", "123456" ], "minimumSources" : 10, "ruleId" : "127094", "notifications" : { @@ -597,6 +615,7 @@ public void updateAlertRuleRequestAndResponseDeserializationTest() } }, "includeCoveredPrefixes" : true, + "visitedSitesFilter" : [ "app.thousandeyes.com" ], "roundsViolatingMode" : "exact", "sensitivityLevel" : "medium", "alertGroupType" : "endpoint", @@ -605,8 +624,10 @@ public void updateAlertRuleRequestAndResponseDeserializationTest() "roundsViolatingOutOf" : 5, "roundsViolatingRequired" : 2, "isDefault" : true, + "endpointAgentIds" : [ "281474976710706", "281474976710706" ], "minimumSourcesPct" : 99, "ruleName" : "The End of the Internet", + "endpointLabelIds" : [ "123456", "123456" ], "minimumSources" : 10, "ruleId" : "127094", "notifications" : { diff --git a/bgp-monitors/README.md b/bgp-monitors/README.md index d3451b44a..7e396e9ff 100644 --- a/bgp-monitors/README.md +++ b/bgp-monitors/README.md @@ -2,7 +2,7 @@ BGP Monitors API -- API version: 7.0.35 +- API version: 7.0.36 Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. diff --git a/credentials/README.md b/credentials/README.md index be745c3c6..ad99feab5 100644 --- a/credentials/README.md +++ b/credentials/README.md @@ -2,7 +2,7 @@ Credentials API -- API version: 7.0.35 +- API version: 7.0.36 Manage credentials for transaction tests using the Credentials API. diff --git a/dashboards/README.md b/dashboards/README.md index 201c8dc1f..8e421c5de 100644 --- a/dashboards/README.md +++ b/dashboards/README.md @@ -2,7 +2,7 @@ Dashboards API -- API version: 7.0.35 +- API version: 7.0.36 Manage ThousandEyes Dashboards. diff --git a/emulation/README.md b/emulation/README.md index 3ce95f776..e75d09a95 100644 --- a/emulation/README.md +++ b/emulation/README.md @@ -2,7 +2,7 @@ Emulation API -- API version: 7.0.35 +- API version: 7.0.36 The Emulation API facilitates the retrieval of user-agent strings for HTTP, pageload, and transaction tests. It also enables the retrieval and addition of emulated devices for pageload and transaction tests. diff --git a/endpoint-agents/README.md b/endpoint-agents/README.md index b74cffd05..d24014204 100644 --- a/endpoint-agents/README.md +++ b/endpoint-agents/README.md @@ -2,7 +2,7 @@ Endpoint Agents API -- API version: 7.0.35 +- API version: 7.0.36 Manage ThousandEyes Endpoint Agents using this API. diff --git a/endpoint-instant-tests/README.md b/endpoint-instant-tests/README.md index 64c00adda..cd6065fe3 100644 --- a/endpoint-instant-tests/README.md +++ b/endpoint-instant-tests/README.md @@ -2,7 +2,7 @@ Endpoint Instant Scheduled Tests API -- API version: 7.0.35 +- API version: 7.0.36 You can create and execute a new endpoint instant scheduled test within ThousandEyes using this API. The test parameters are specified in the `POST` data. diff --git a/endpoint-labels/README.md b/endpoint-labels/README.md index 5ee6565bd..05aad8722 100644 --- a/endpoint-labels/README.md +++ b/endpoint-labels/README.md @@ -2,7 +2,7 @@ Endpoint Agent Labels API -- API version: 7.0.35 +- API version: 7.0.36 Manage labels applied to endpoint agents using this API. diff --git a/endpoint-test-results/README.md b/endpoint-test-results/README.md index 84e1fb4fb..4cf5f1f24 100644 --- a/endpoint-test-results/README.md +++ b/endpoint-test-results/README.md @@ -2,7 +2,7 @@ Endpoint Test Results API -- API version: 7.0.35 +- API version: 7.0.36 Retrieve results for scheduled and dynamic tests on endpoint agents. diff --git a/endpoint-tests/README.md b/endpoint-tests/README.md index b863b3d44..232c21932 100644 --- a/endpoint-tests/README.md +++ b/endpoint-tests/README.md @@ -2,7 +2,7 @@ Endpoint Tests API -- API version: 7.0.35 +- API version: 7.0.36 Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API. diff --git a/event-detection/README.md b/event-detection/README.md index e8444552f..2727610f5 100644 --- a/event-detection/README.md +++ b/event-detection/README.md @@ -2,7 +2,7 @@ Event Detection API -- API version: 7.0.35 +- API version: 7.0.36 Event detection occurs when ThousandEyes identifies that error signals related to a component (proxy, network node, AS, server etc) have deviated from the baselines established by events. diff --git a/instant-tests/README.md b/instant-tests/README.md index 8065120f3..5ea291c81 100644 --- a/instant-tests/README.md +++ b/instant-tests/README.md @@ -2,7 +2,7 @@ Instant Tests API -- API version: 7.0.35 +- API version: 7.0.36 The Instant Tests API operations lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` diff --git a/internet-insights/README.md b/internet-insights/README.md index 8bd201f54..a20995ea3 100644 --- a/internet-insights/README.md +++ b/internet-insights/README.md @@ -2,7 +2,7 @@ Internet Insights API -- API version: 7.0.35 +- API version: 7.0.36 We are happy to announce the release of the Internet Insights API set. This limited release includes endpoints that: diff --git a/snapshots/README.md b/snapshots/README.md index 47329abca..221aa8ddd 100644 --- a/snapshots/README.md +++ b/snapshots/README.md @@ -2,7 +2,7 @@ Test Snapshots API -- API version: 7.0.35 +- API version: 7.0.36 Creates a new test snapshot in ThousandEyes. diff --git a/streaming/README.md b/streaming/README.md index 3eddbcd9d..fb0c9b4f0 100644 --- a/streaming/README.md +++ b/streaming/README.md @@ -2,7 +2,7 @@ ThousandEyes for OpenTelemetry API -- API version: 7.0.35 +- API version: 7.0.36 ThousandEyes for OpenTelemetry provides machine-to-machine integration between ThousandEyes and its customers. It allows you to export ThousandEyes telemetry data in OTel format, which is widely used in the industry. With ThousandEyes for OTel, you can leverage frameworks widely used in the observability domain - such as Splunk, Grafana, and Honeycomb - to capture and analyze ThousandEyes data. Any client that supports OTel can use ThousandEyes for OpenTelemetry. diff --git a/streaming/docs/StreamingApi.md b/streaming/docs/StreamingApi.md index 70eb05ea6..02ba95702 100644 --- a/streaming/docs/StreamingApi.md +++ b/streaming/docs/StreamingApi.md @@ -91,7 +91,7 @@ public class Example { | **400** | Bad Request | - | | **401** | Unauthorized | - | | **409** | An existing item already exists | - | -| **412** | Reached limit on number of streams (maximum 5 data streams per account group) | - | +| **412** | Reached limit on number of streams (maximum 10 data streams per account group) | - | | **500** | Internal Server Error | - | ## createStreamWithHttpInfo @@ -171,7 +171,7 @@ ApiResponse<[**CreateStreamResponse**](CreateStreamResponse.md)> | **400** | Bad Request | - | | **401** | Unauthorized | - | | **409** | An existing item already exists | - | -| **412** | Reached limit on number of streams (maximum 5 data streams per account group) | - | +| **412** | Reached limit on number of streams (maximum 10 data streams per account group) | - | | **500** | Internal Server Error | - | diff --git a/tags/README.md b/tags/README.md index da7f0718b..c638f1de6 100644 --- a/tags/README.md +++ b/tags/README.md @@ -2,7 +2,7 @@ Tags API -- API version: 7.0.35 +- API version: 7.0.36 The ThousandEyes Tags API provides a tagging system with key/value pairs. It allows you to tag assets within the ThousandEyes platform (such as agents, tests, or alert rules) with meaningful metadata. For example: `branch:sfo`, `branch:nyc`, and `team:netops`. diff --git a/test-results/README.md b/test-results/README.md index 70bdce260..b9962fd86 100644 --- a/test-results/README.md +++ b/test-results/README.md @@ -2,7 +2,7 @@ Test Results API -- API version: 7.0.35 +- API version: 7.0.36 Get test result metrics for Cloud and Enterprise Agent tests. diff --git a/tests/README.md b/tests/README.md index 0466ead5a..2250397be 100644 --- a/tests/README.md +++ b/tests/README.md @@ -2,7 +2,7 @@ Tests API -- API version: 7.0.35 +- API version: 7.0.36 This API supports listing, creating, editing, and deleting Cloud and Enterprise Agent (CEA) based tests. diff --git a/usage/README.md b/usage/README.md index d23cc6979..971abd3a8 100644 --- a/usage/README.md +++ b/usage/README.md @@ -2,7 +2,7 @@ Usage API -- API version: 7.0.35 +- API version: 7.0.36 These usage endpoints define the following operations: