From 51e7cf7a8b466158b5a4c65924206f26e066e0fb Mon Sep 17 00:00:00 2001 From: API Team Date: Thu, 19 Dec 2024 15:38:07 +0000 Subject: [PATCH] [GitHub Bot] Generated java SDK --- administrative/README.md | 2 +- agents/README.md | 2 +- alerts/.openapi-generator/FILES | 2 + alerts/README.md | 2 +- .../sdk/alerts/model/AlertGroupType.java | 2 + .../sdk/alerts/model/AlertSimpleTest.java | 515 ++++++++++++++++++ .../sdk/alerts/model/AlertTestType.java | 90 +++ .../sdk/alerts/model/RuleDetail.java | 8 +- bgp-monitors/README.md | 2 +- credentials/README.md | 2 +- dashboards/README.md | 2 +- .../sdk/dashboards/model/DashboardMetric.java | 16 + 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 +- .../RealUserEndpointTestResultsApiTest.java | 4 +- 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/model/CreateStreamResponse.java | 2 +- .../streaming/model/GetStreamResponse.java | 2 +- .../sdk/streaming/model/PutStream.java | 33 +- .../sdk/streaming/model/Stream.java | 64 +-- .../sdk/streaming/StreamingApiTest.java | 1 + tags/README.md | 2 +- test-results/README.md | 2 +- tests/README.md | 2 +- usage/README.md | 2 +- 33 files changed, 719 insertions(+), 62 deletions(-) create mode 100644 alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertSimpleTest.java create mode 100644 alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertTestType.java diff --git a/administrative/README.md b/administrative/README.md index 6999e73bf..178127d34 100644 --- a/administrative/README.md +++ b/administrative/README.md @@ -2,7 +2,7 @@ Administrative API -- API version: 7.0.32 +- API version: 7.0.34 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 7bd520cab..779434baf 100644 --- a/agents/README.md +++ b/agents/README.md @@ -2,7 +2,7 @@ Agents API -- API version: 7.0.32 +- API version: 7.0.34 ## Overview diff --git a/alerts/.openapi-generator/FILES b/alerts/.openapi-generator/FILES index 8d6331fdc..3f1ae4019 100644 --- a/alerts/.openapi-generator/FILES +++ b/alerts/.openapi-generator/FILES @@ -17,11 +17,13 @@ src/main/java/com/thousandeyes/sdk/alerts/model/AlertMeta.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertMetricDetail.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertNotification.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertRoundsViolationMode.java +src/main/java/com/thousandeyes/sdk/alerts/model/AlertSimpleTest.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertSuppressionWindow.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertSuppressionWindowDetail.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertSuppressionWindowRequest.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertSuppressionWindowState.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertSuppressionWindows.java +src/main/java/com/thousandeyes/sdk/alerts/model/AlertTestType.java src/main/java/com/thousandeyes/sdk/alerts/model/AlertType.java src/main/java/com/thousandeyes/sdk/alerts/model/Alerts.java src/main/java/com/thousandeyes/sdk/alerts/model/BaseAlert.java diff --git a/alerts/README.md b/alerts/README.md index 780f0f301..d6e9c64aa 100644 --- a/alerts/README.md +++ b/alerts/README.md @@ -2,7 +2,7 @@ Alerts API -- API version: 7.0.32 +- API version: 7.0.34 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/AlertGroupType.java b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertGroupType.java index 263c76d01..eb93c58dd 100644 --- a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertGroupType.java +++ b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertGroupType.java @@ -26,6 +26,8 @@ */ public enum AlertGroupType { + BGP("bgp"), + BROWSER_SESSION("browser-session"), CLOUD_ENTERPRISE("cloud-enterprise"), diff --git a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertSimpleTest.java b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertSimpleTest.java new file mode 100644 index 000000000..1ee66dc0c --- /dev/null +++ b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertSimpleTest.java @@ -0,0 +1,515 @@ +/* + * Alerts API + * You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API: * **Alerts**: Retrieve alert details. Alerts are assigned to tests through alert rules. * **Alert Rules**: Conditions that you configure in order to highlight or be notified of events of interest in your ThousandEyes tests. When an alert rule’s conditions are met, the associated alert is triggered and the alert becomes active. It remains active until the alert is cleared. Alert rules are reusable across multiple tests.. * **Alert Suppression Windows**: Suppress alerts for tests during periods such as planned maintenance. Windows can be one-time events or recurring events to handle periodic occurrences such as monthly downtime for maintenance. For more information about the alerts, see [Alerts](https://docs.thousandeyes.com/product-documentation/alerts). + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.thousandeyes.sdk.alerts.model; + +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.thousandeyes.sdk.alerts.model.AlertTestType; +import com.thousandeyes.sdk.alerts.model.TestInterval; +import com.thousandeyes.sdk.alerts.model.TestLinks; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * Each test includes additional fields depending on its `type`. Refer `/tests/{type}` endpoint to know the set of fields returned by a given `type`. + */ +@JsonPropertyOrder({ + AlertSimpleTest.JSON_PROPERTY_INTERVAL, + AlertSimpleTest.JSON_PROPERTY_ALERTS_ENABLED, + AlertSimpleTest.JSON_PROPERTY_ENABLED, + AlertSimpleTest.JSON_PROPERTY_CREATED_BY, + AlertSimpleTest.JSON_PROPERTY_CREATED_DATE, + AlertSimpleTest.JSON_PROPERTY_DESCRIPTION, + AlertSimpleTest.JSON_PROPERTY_LIVE_SHARE, + AlertSimpleTest.JSON_PROPERTY_MODIFIED_BY, + AlertSimpleTest.JSON_PROPERTY_MODIFIED_DATE, + AlertSimpleTest.JSON_PROPERTY_SAVED_EVENT, + AlertSimpleTest.JSON_PROPERTY_TEST_ID, + AlertSimpleTest.JSON_PROPERTY_TEST_NAME, + AlertSimpleTest.JSON_PROPERTY_TYPE, + AlertSimpleTest.JSON_PROPERTY_LINKS +}) +@jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator") +public class AlertSimpleTest extends HashMap { + public static final String JSON_PROPERTY_INTERVAL = "interval"; + private TestInterval interval = TestInterval.NUMBER_60; + + public static final String JSON_PROPERTY_ALERTS_ENABLED = "alertsEnabled"; + private Boolean alertsEnabled; + + public static final String JSON_PROPERTY_ENABLED = "enabled"; + private Boolean enabled = true; + + public static final String JSON_PROPERTY_CREATED_BY = "createdBy"; + private String createdBy; + + public static final String JSON_PROPERTY_CREATED_DATE = "createdDate"; + private OffsetDateTime createdDate; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_LIVE_SHARE = "liveShare"; + private Boolean liveShare; + + public static final String JSON_PROPERTY_MODIFIED_BY = "modifiedBy"; + private String modifiedBy; + + public static final String JSON_PROPERTY_MODIFIED_DATE = "modifiedDate"; + private OffsetDateTime modifiedDate; + + public static final String JSON_PROPERTY_SAVED_EVENT = "savedEvent"; + private Boolean savedEvent; + + public static final String JSON_PROPERTY_TEST_ID = "testId"; + private String testId; + + public static final String JSON_PROPERTY_TEST_NAME = "testName"; + private String testName; + + public static final String JSON_PROPERTY_TYPE = "type"; + private AlertTestType type; + + public static final String JSON_PROPERTY_LINKS = "_links"; + private TestLinks links; + + public AlertSimpleTest() { + } + + @JsonCreator + public AlertSimpleTest( + @JsonProperty(JSON_PROPERTY_CREATED_BY) String createdBy, + @JsonProperty(JSON_PROPERTY_CREATED_DATE) OffsetDateTime createdDate, + @JsonProperty(JSON_PROPERTY_LIVE_SHARE) Boolean liveShare, + @JsonProperty(JSON_PROPERTY_MODIFIED_BY) String modifiedBy, + @JsonProperty(JSON_PROPERTY_MODIFIED_DATE) OffsetDateTime modifiedDate, + @JsonProperty(JSON_PROPERTY_SAVED_EVENT) Boolean savedEvent, + @JsonProperty(JSON_PROPERTY_TEST_ID) String testId + ) { + this(); + this.createdBy = createdBy; + this.createdDate = createdDate; + this.liveShare = liveShare; + this.modifiedBy = modifiedBy; + this.modifiedDate = modifiedDate; + this.savedEvent = savedEvent; + this.testId = testId; + } + + public AlertSimpleTest interval(TestInterval interval) { + this.interval = interval; + return this; + } + + /** + * Get interval + * @return interval + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INTERVAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TestInterval getInterval() { + return interval; + } + + + @JsonProperty(JSON_PROPERTY_INTERVAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInterval(TestInterval interval) { + this.interval = interval; + } + + + public AlertSimpleTest alertsEnabled(Boolean alertsEnabled) { + this.alertsEnabled = alertsEnabled; + return this; + } + + /** + * Indicates if alerts are enabled. + * @return alertsEnabled + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ALERTS_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getAlertsEnabled() { + return alertsEnabled; + } + + + @JsonProperty(JSON_PROPERTY_ALERTS_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAlertsEnabled(Boolean alertsEnabled) { + this.alertsEnabled = alertsEnabled; + } + + + public AlertSimpleTest enabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Test is enabled. + * @return enabled + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getEnabled() { + return enabled; + } + + + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + + /** + * User that created the test. + * @return createdBy + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedBy() { + return createdBy; + } + + + + + /** + * UTC created date (ISO date-time format). + * @return createdDate + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CREATED_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getCreatedDate() { + return createdDate; + } + + + + + public AlertSimpleTest description(String description) { + this.description = description; + return this; + } + + /** + * A description of the test. + * @return description + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + /** + * Indicates if the test is shared with the account group. + * @return liveShare + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LIVE_SHARE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getLiveShare() { + return liveShare; + } + + + + + /** + * User that modified the test. + * @return modifiedBy + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MODIFIED_BY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getModifiedBy() { + return modifiedBy; + } + + + + + /** + * UTC last modification date (ISO date-time format). + * @return modifiedDate + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MODIFIED_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getModifiedDate() { + return modifiedDate; + } + + + + + /** + * Indicates if the test is a saved event. + * @return savedEvent + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SAVED_EVENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSavedEvent() { + return savedEvent; + } + + + + + /** + * Each test is assigned an unique ID; this is used to access test information and results from other endpoints. + * @return testId + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TEST_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTestId() { + return testId; + } + + + + + public AlertSimpleTest testName(String testName) { + this.testName = testName; + return this; + } + + /** + * The name of the test. Test name must be unique. + * @return testName + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TEST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTestName() { + return testName; + } + + + @JsonProperty(JSON_PROPERTY_TEST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTestName(String testName) { + this.testName = testName; + } + + + public AlertSimpleTest type(AlertTestType type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AlertTestType getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(AlertTestType type) { + this.type = type; + } + + + public AlertSimpleTest links(TestLinks links) { + this.links = links; + return this; + } + + /** + * Get links + * @return links + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LINKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TestLinks getLinks() { + return links; + } + + + @JsonProperty(JSON_PROPERTY_LINKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLinks(TestLinks links) { + this.links = links; + } + + /** + * 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 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 name of the property + * @param value the value of the property + * @return self reference + */ + @JsonAnySetter + public AlertSimpleTest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) properties. + * @return the additional (undeclared) properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * @param key the name of the property + * @return the additional (undeclared) property with the specified name + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this AlertSimpleTest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlertSimpleTest alertSimpleTest = (AlertSimpleTest) o; + return Objects.equals(this.interval, alertSimpleTest.interval) && + Objects.equals(this.alertsEnabled, alertSimpleTest.alertsEnabled) && + Objects.equals(this.enabled, alertSimpleTest.enabled) && + Objects.equals(this.createdBy, alertSimpleTest.createdBy) && + Objects.equals(this.createdDate, alertSimpleTest.createdDate) && + Objects.equals(this.description, alertSimpleTest.description) && + Objects.equals(this.liveShare, alertSimpleTest.liveShare) && + Objects.equals(this.modifiedBy, alertSimpleTest.modifiedBy) && + Objects.equals(this.modifiedDate, alertSimpleTest.modifiedDate) && + Objects.equals(this.savedEvent, alertSimpleTest.savedEvent) && + Objects.equals(this.testId, alertSimpleTest.testId) && + Objects.equals(this.testName, alertSimpleTest.testName) && + Objects.equals(this.type, alertSimpleTest.type) && + Objects.equals(this.links, alertSimpleTest.links)&& + Objects.equals(this.additionalProperties, alertSimpleTest.additionalProperties) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(interval, alertsEnabled, enabled, createdBy, createdDate, description, liveShare, modifiedBy, modifiedDate, savedEvent, testId, testName, type, links, super.hashCode(), additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlertSimpleTest {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append(" alertsEnabled: ").append(toIndentedString(alertsEnabled)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" liveShare: ").append(toIndentedString(liveShare)).append("\n"); + sb.append(" modifiedBy: ").append(toIndentedString(modifiedBy)).append("\n"); + sb.append(" modifiedDate: ").append(toIndentedString(modifiedDate)).append("\n"); + sb.append(" savedEvent: ").append(toIndentedString(savedEvent)).append("\n"); + sb.append(" testId: ").append(toIndentedString(testId)).append("\n"); + sb.append(" testName: ").append(toIndentedString(testName)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).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 "); + } +} + diff --git a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertTestType.java b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertTestType.java new file mode 100644 index 000000000..f60e40ec9 --- /dev/null +++ b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/AlertTestType.java @@ -0,0 +1,90 @@ +/* + * Alerts API + * You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API: * **Alerts**: Retrieve alert details. Alerts are assigned to tests through alert rules. * **Alert Rules**: Conditions that you configure in order to highlight or be notified of events of interest in your ThousandEyes tests. When an alert rule’s conditions are met, the associated alert is triggered and the alert becomes active. It remains active until the alert is cleared. Alert rules are reusable across multiple tests.. * **Alert Suppression Windows**: Suppress alerts for tests during periods such as planned maintenance. Windows can be one-time events or recurring events to handle periodic occurrences such as monthly downtime for maintenance. For more information about the alerts, see [Alerts](https://docs.thousandeyes.com/product-documentation/alerts). + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.thousandeyes.sdk.alerts.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Valid Alert Types for which to return test links. + */ +public enum AlertTestType { + + API("api"), + + AGENT_TO_AGENT("agent-to-agent"), + + AGENT_TO_SERVER("agent-to-server"), + + BGP("bgp"), + + HTTP_SERVER("http-server"), + + PAGE_LOAD("page-load"), + + WEB_TRANSACTIONS("web-transactions"), + + FTP_SERVER("ftp-server"), + + DNS_TRACE("dns-trace"), + + DNS_SERVER("dns-server"), + + DNSSEC("dnssec"), + + SIP_SERVER("sip-server"), + + VOICE("voice"), + + ENDPOINT_HTTP_SERVER("endpoint-http-server"), + + ENDPOINT_NETWORK_SERVER("endpoint-network-server"), + + ENDPOINT_PATH_TRACE("endpoint-path-trace"), + + UNKNOWN("unknown"); + + private String value; + + AlertTestType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AlertTestType fromValue(String value) { + for (AlertTestType b : AlertTestType.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN; + } + +} + 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 f4210e8cd..fe406e77c 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 @@ -24,11 +24,11 @@ import com.thousandeyes.sdk.alerts.model.AlertGroupType; import com.thousandeyes.sdk.alerts.model.AlertNotification; import com.thousandeyes.sdk.alerts.model.AlertRoundsViolationMode; +import com.thousandeyes.sdk.alerts.model.AlertSimpleTest; import com.thousandeyes.sdk.alerts.model.AlertType; import com.thousandeyes.sdk.alerts.model.SelfLinks; import com.thousandeyes.sdk.alerts.model.SensitivityLevel; import com.thousandeyes.sdk.alerts.model.Severity; -import com.thousandeyes.sdk.alerts.model.SimpleTest; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -113,7 +113,7 @@ public class RuleDetail { private AlertNotification notifications; public static final String JSON_PROPERTY_TESTS = "tests"; - private List tests = new ArrayList<>(); + private List tests = new ArrayList<>(); public static final String JSON_PROPERTY_LINKS = "_links"; private SelfLinks links; @@ -124,7 +124,7 @@ public RuleDetail() { @JsonCreator public RuleDetail( @JsonProperty(JSON_PROPERTY_RULE_ID) String ruleId, - @JsonProperty(JSON_PROPERTY_TESTS) List tests + @JsonProperty(JSON_PROPERTY_TESTS) List tests ) { this(); this.ruleId = ruleId; @@ -554,7 +554,7 @@ public void setNotifications(AlertNotification notifications) { @JsonProperty(JSON_PROPERTY_TESTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTests() { + public List getTests() { return tests; } diff --git a/bgp-monitors/README.md b/bgp-monitors/README.md index f63fd94d3..66996d7f5 100644 --- a/bgp-monitors/README.md +++ b/bgp-monitors/README.md @@ -2,7 +2,7 @@ BGP Monitors API -- API version: 7.0.32 +- API version: 7.0.34 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 0d06bcec7..0aed7509a 100644 --- a/credentials/README.md +++ b/credentials/README.md @@ -2,7 +2,7 @@ Credentials API -- API version: 7.0.32 +- API version: 7.0.34 Manage credentials for transaction tests using the Credentials API. diff --git a/dashboards/README.md b/dashboards/README.md index 406f1b339..c0e2f0e60 100644 --- a/dashboards/README.md +++ b/dashboards/README.md @@ -2,7 +2,7 @@ Dashboards API -- API version: 7.0.32 +- API version: 7.0.34 Manage ThousandEyes Dashboards. diff --git a/dashboards/src/main/java/com/thousandeyes/sdk/dashboards/model/DashboardMetric.java b/dashboards/src/main/java/com/thousandeyes/sdk/dashboards/model/DashboardMetric.java index 5ff691e2b..4a23d6c69 100644 --- a/dashboards/src/main/java/com/thousandeyes/sdk/dashboards/model/DashboardMetric.java +++ b/dashboards/src/main/java/com/thousandeyes/sdk/dashboards/model/DashboardMetric.java @@ -334,14 +334,24 @@ public enum DashboardMetric { ENDPOINT_GATEWAY_LATENCY("ENDPOINT_GATEWAY_LATENCY"), + ENDPOINT_GATEWAY_AGENT_SCORE("ENDPOINT_GATEWAY_AGENT_SCORE"), + + ENDPOINT_GATEWAY_SCORE("ENDPOINT_GATEWAY_SCORE"), + + ENDPOINT_GATEWAY_CONNECTION_SCORE("ENDPOINT_GATEWAY_CONNECTION_SCORE"), + ENDPOINT_GATEWAY_PROXY_LOSS("ENDPOINT_GATEWAY_PROXY_LOSS"), ENDPOINT_GATEWAY_PROXY_LATENCY("ENDPOINT_GATEWAY_PROXY_LATENCY"), + ENDPOINT_GATEWAY_PROXY_SCORE("ENDPOINT_GATEWAY_PROXY_SCORE"), + ENDPOINT_GATEWAY_VPN_LOSS("ENDPOINT_GATEWAY_VPN_LOSS"), ENDPOINT_GATEWAY_VPN_LATENCY("ENDPOINT_GATEWAY_VPN_LATENCY"), + ENDPOINT_GATEWAY_VPN_SCORE("ENDPOINT_GATEWAY_VPN_SCORE"), + ENDPOINT_GATEWAY_DNS_LOSS("ENDPOINT_GATEWAY_DNS_LOSS"), ENDPOINT_GATEWAY_DNS_LATENCY("ENDPOINT_GATEWAY_DNS_LATENCY"), @@ -378,6 +388,8 @@ public enum DashboardMetric { ENDPOINT_AST_TEST_TCP_CONNECTION_ERROR_COUNT("ENDPOINT_AST_TEST_TCP_CONNECTION_ERROR_COUNT"), + ENDPOINT_AST_TEST_APPLICATION_SCORE("ENDPOINT_AST_TEST_APPLICATION_SCORE"), + ENDPOINT_GATEWAY_WIRELESS_CHANNEL_SWAP_EVENTS("ENDPOINT_GATEWAY_WIRELESS_CHANNEL_SWAP_EVENTS"), ENDPOINT_GATEWAY_WIRELESS_RETRANSMISSION_RATE("ENDPOINT_GATEWAY_WIRELESS_RETRANSMISSION_RATE"), @@ -404,6 +416,8 @@ public enum DashboardMetric { ENDPOINT_TEST_TCP_CONNECTION_ERROR_COUNT("ENDPOINT_TEST_TCP_CONNECTION_ERROR_COUNT"), + ENDPOINT_TEST_APPLICATION_SCORE("ENDPOINT_TEST_APPLICATION_SCORE"), + ENDPOINT_TEST_HTTP_AVAILABILITY("ENDPOINT_TEST_HTTP_AVAILABILITY"), ENDPOINT_TEST_HTTP_WAIT("ENDPOINT_TEST_HTTP_WAIT"), @@ -418,6 +432,8 @@ public enum DashboardMetric { ENDPOINT_TEST_HTTP_THROUGHPUT("ENDPOINT_TEST_HTTP_THROUGHPUT"), + ENDPOINT_TEST_HTTP_APPLICATION_SCORE("ENDPOINT_TEST_HTTP_APPLICATION_SCORE"), + DEVICE_AVAILABILITY("DEVICE_AVAILABILITY"), DEVICE_THROUGHPUT_INPUT("DEVICE_THROUGHPUT_INPUT"), diff --git a/emulation/README.md b/emulation/README.md index d7e78aed0..ad27b583e 100644 --- a/emulation/README.md +++ b/emulation/README.md @@ -2,7 +2,7 @@ Emulation API -- API version: 7.0.32 +- API version: 7.0.34 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 9ce0a27da..cf02d3d55 100644 --- a/endpoint-agents/README.md +++ b/endpoint-agents/README.md @@ -2,7 +2,7 @@ Endpoint Agents API -- API version: 7.0.32 +- API version: 7.0.34 Manage ThousandEyes Endpoint Agents using this API. diff --git a/endpoint-instant-tests/README.md b/endpoint-instant-tests/README.md index 46c8a5b66..0fa9196b4 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.32 +- API version: 7.0.34 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 939d82d2c..d76dc90c8 100644 --- a/endpoint-labels/README.md +++ b/endpoint-labels/README.md @@ -2,7 +2,7 @@ Endpoint Agent Labels API -- API version: 7.0.32 +- API version: 7.0.34 Manage labels applied to endpoint agents using this API. diff --git a/endpoint-test-results/README.md b/endpoint-test-results/README.md index 9d81ba704..40ec88fb6 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.32 +- API version: 7.0.34 Retrieve results for scheduled and dynamic tests on endpoint agents. diff --git a/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApiTest.java b/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApiTest.java index 6ada4b390..eed8c74c6 100644 --- a/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApiTest.java +++ b/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApiTest.java @@ -526,11 +526,11 @@ public void getRealUserTestPageResultsRequestAndResponseDeserializationTest() "log" : { "browser" : { "name" : "Google Chrome", - "version" : "7.0.32.98" + "version" : "7.0.34.98" }, "creator" : { "name" : "ThousandEyes Endpoint Agent", - "version" : "7.0.32" + "version" : "7.0.34" }, "entries" : [ { "pageref" : "page_1", diff --git a/endpoint-tests/README.md b/endpoint-tests/README.md index 8cd33aa54..d04602504 100644 --- a/endpoint-tests/README.md +++ b/endpoint-tests/README.md @@ -2,7 +2,7 @@ Endpoint Tests API -- API version: 7.0.32 +- API version: 7.0.34 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 b4838d0af..b7e061fd3 100644 --- a/event-detection/README.md +++ b/event-detection/README.md @@ -2,7 +2,7 @@ Event Detection API -- API version: 7.0.32 +- API version: 7.0.34 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 201fc9207..cfb08d2a0 100644 --- a/instant-tests/README.md +++ b/instant-tests/README.md @@ -2,7 +2,7 @@ Instant Tests API -- API version: 7.0.32 +- API version: 7.0.34 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 ef32c9953..f3c2cf8ac 100644 --- a/internet-insights/README.md +++ b/internet-insights/README.md @@ -2,7 +2,7 @@ Internet Insights API -- API version: 7.0.32 +- API version: 7.0.34 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 92747b69d..54aa10840 100644 --- a/snapshots/README.md +++ b/snapshots/README.md @@ -2,7 +2,7 @@ Test Snapshots API -- API version: 7.0.32 +- API version: 7.0.34 Creates a new test snapshot in ThousandEyes. diff --git a/streaming/README.md b/streaming/README.md index e365435ec..10cde08d6 100644 --- a/streaming/README.md +++ b/streaming/README.md @@ -2,7 +2,7 @@ ThousandEyes for OpenTelemetry API -- API version: 7.0.32 +- API version: 7.0.34 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/src/main/java/com/thousandeyes/sdk/streaming/model/CreateStreamResponse.java b/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/CreateStreamResponse.java index b05a4768c..4e61db6d8 100644 --- a/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/CreateStreamResponse.java +++ b/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/CreateStreamResponse.java @@ -258,7 +258,7 @@ public CreateStreamResponse streamEndpointUrl(String streamEndpointUrl) { } /** - * The URL ThousandEyes sends data stream to. For a URL to be valid, it needs to: - Be syntactically correct. - Be reachable. - Use the HTTPS protocol. - When using the `grpc` endpointType, streamEndpointUrl cannot contain paths: - Valid . `grpc` - `https://example.com` - Invalid . `grpc` - `https://example.com/collector`. - Valid . `http` - `https://example.com/collector`. - When using the `http` endpointType, the operation must match the exact final full URL (including the path if there is one) to which the metrics will be sent. Examples below: - `https://api.honeycomb.io:443/v1/metrics` - `https://ingest.eu0.signalfx.com/v2/datapoint/otlp` + * The URL ThousandEyes sends data stream to. For a URL to be valid, it needs to: - Be syntactically correct. - Be reachable. - Use the HTTPS protocol. - When using the `grpc` endpointType, streamEndpointUrl cannot contain paths: - Valid . `grpc` - `https://example.com` - Invalid . `grpc` - `https://example.com/collector`. - Valid . `http` - `https://example.com/collector`. - When using the `http` endpointType, the operation must match the exact final full URL (including the path if there is one) to which the data will be sent. Examples below: - `https://api.honeycomb.io:443/v1/metrics` - `https://ingest.eu0.signalfx.com/v2/datapoint/otlp` * @return streamEndpointUrl **/ @jakarta.annotation.Nullable diff --git a/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/GetStreamResponse.java b/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/GetStreamResponse.java index 014f22a35..bb805e6a4 100644 --- a/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/GetStreamResponse.java +++ b/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/GetStreamResponse.java @@ -258,7 +258,7 @@ public GetStreamResponse streamEndpointUrl(String streamEndpointUrl) { } /** - * The URL ThousandEyes sends data stream to. For a URL to be valid, it needs to: - Be syntactically correct. - Be reachable. - Use the HTTPS protocol. - When using the `grpc` endpointType, streamEndpointUrl cannot contain paths: - Valid . `grpc` - `https://example.com` - Invalid . `grpc` - `https://example.com/collector`. - Valid . `http` - `https://example.com/collector`. - When using the `http` endpointType, the operation must match the exact final full URL (including the path if there is one) to which the metrics will be sent. Examples below: - `https://api.honeycomb.io:443/v1/metrics` - `https://ingest.eu0.signalfx.com/v2/datapoint/otlp` + * The URL ThousandEyes sends data stream to. For a URL to be valid, it needs to: - Be syntactically correct. - Be reachable. - Use the HTTPS protocol. - When using the `grpc` endpointType, streamEndpointUrl cannot contain paths: - Valid . `grpc` - `https://example.com` - Invalid . `grpc` - `https://example.com/collector`. - Valid . `http` - `https://example.com/collector`. - When using the `http` endpointType, the operation must match the exact final full URL (including the path if there is one) to which the data will be sent. Examples below: - `https://api.honeycomb.io:443/v1/metrics` - `https://ingest.eu0.signalfx.com/v2/datapoint/otlp` * @return streamEndpointUrl **/ @jakarta.annotation.Nullable diff --git a/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/PutStream.java b/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/PutStream.java index e45c49d69..976de2ba0 100644 --- a/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/PutStream.java +++ b/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/PutStream.java @@ -37,6 +37,7 @@ */ @JsonPropertyOrder({ PutStream.JSON_PROPERTY_CUSTOM_HEADERS, + PutStream.JSON_PROPERTY_STREAM_ENDPOINT_URL, PutStream.JSON_PROPERTY_TAG_MATCH, PutStream.JSON_PROPERTY_TEST_MATCH, PutStream.JSON_PROPERTY_ENABLED, @@ -48,6 +49,9 @@ public class PutStream { public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; private Map customHeaders = new HashMap<>(); + public static final String JSON_PROPERTY_STREAM_ENDPOINT_URL = "streamEndpointUrl"; + private String streamEndpointUrl; + public static final String JSON_PROPERTY_TAG_MATCH = "tagMatch"; private List tagMatch = new ArrayList<>(); @@ -99,6 +103,31 @@ public void setCustomHeaders(Map customHeaders) { } + public PutStream streamEndpointUrl(String streamEndpointUrl) { + this.streamEndpointUrl = streamEndpointUrl; + return this; + } + + /** + * The URL ThousandEyes sends data stream to. For a URL to be valid, it needs to: - Be syntactically correct. - Be reachable. - Use the HTTPS protocol. - When using the `grpc` endpointType, streamEndpointUrl cannot contain paths: - Valid . `grpc` - `https://example.com` - Invalid . `grpc` - `https://example.com/collector`. - Valid . `http` - `https://example.com/collector`. - When using the `http` endpointType, the operation must match the exact final full URL (including the path if there is one) to which the data will be sent. Examples below: - `https://api.honeycomb.io:443/v1/metrics` - `https://ingest.eu0.signalfx.com/v2/datapoint/otlp` + * @return streamEndpointUrl + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STREAM_ENDPOINT_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getStreamEndpointUrl() { + return streamEndpointUrl; + } + + + @JsonProperty(JSON_PROPERTY_STREAM_ENDPOINT_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreamEndpointUrl(String streamEndpointUrl) { + this.streamEndpointUrl = streamEndpointUrl; + } + + public PutStream tagMatch(List tagMatch) { this.tagMatch = tagMatch; return this; @@ -253,6 +282,7 @@ public boolean equals(Object o) { } PutStream putStream = (PutStream) o; return Objects.equals(this.customHeaders, putStream.customHeaders) && + Objects.equals(this.streamEndpointUrl, putStream.streamEndpointUrl) && Objects.equals(this.tagMatch, putStream.tagMatch) && Objects.equals(this.testMatch, putStream.testMatch) && Objects.equals(this.enabled, putStream.enabled) && @@ -262,7 +292,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(customHeaders, tagMatch, testMatch, enabled, filters, exporterConfig); + return Objects.hash(customHeaders, streamEndpointUrl, tagMatch, testMatch, enabled, filters, exporterConfig); } @Override @@ -270,6 +300,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PutStream {\n"); sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" streamEndpointUrl: ").append(toIndentedString(streamEndpointUrl)).append("\n"); sb.append(" tagMatch: ").append(toIndentedString(tagMatch)).append("\n"); sb.append(" testMatch: ").append(toIndentedString(testMatch)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); diff --git a/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/Stream.java b/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/Stream.java index 57b72bd0c..e14107a39 100644 --- a/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/Stream.java +++ b/streaming/src/main/java/com/thousandeyes/sdk/streaming/model/Stream.java @@ -41,6 +41,7 @@ */ @JsonPropertyOrder({ Stream.JSON_PROPERTY_CUSTOM_HEADERS, + Stream.JSON_PROPERTY_STREAM_ENDPOINT_URL, Stream.JSON_PROPERTY_TAG_MATCH, Stream.JSON_PROPERTY_TEST_MATCH, Stream.JSON_PROPERTY_ENABLED, @@ -49,7 +50,6 @@ Stream.JSON_PROPERTY_TYPE, Stream.JSON_PROPERTY_SIGNAL, Stream.JSON_PROPERTY_ENDPOINT_TYPE, - Stream.JSON_PROPERTY_STREAM_ENDPOINT_URL, Stream.JSON_PROPERTY_DATA_MODEL_VERSION }) @jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator") @@ -57,6 +57,9 @@ public class Stream { public static final String JSON_PROPERTY_CUSTOM_HEADERS = "customHeaders"; private Map customHeaders = new HashMap<>(); + public static final String JSON_PROPERTY_STREAM_ENDPOINT_URL = "streamEndpointUrl"; + private String streamEndpointUrl; + public static final String JSON_PROPERTY_TAG_MATCH = "tagMatch"; private List tagMatch = new ArrayList<>(); @@ -81,9 +84,6 @@ public class Stream { public static final String JSON_PROPERTY_ENDPOINT_TYPE = "endpointType"; private EndpointType endpointType = EndpointType.GRPC; - public static final String JSON_PROPERTY_STREAM_ENDPOINT_URL = "streamEndpointUrl"; - private String streamEndpointUrl; - public static final String JSON_PROPERTY_DATA_MODEL_VERSION = "dataModelVersion"; private DataModelVersion dataModelVersion = DataModelVersion.V2; @@ -123,6 +123,31 @@ public void setCustomHeaders(Map customHeaders) { } + public Stream streamEndpointUrl(String streamEndpointUrl) { + this.streamEndpointUrl = streamEndpointUrl; + return this; + } + + /** + * The URL ThousandEyes sends data stream to. For a URL to be valid, it needs to: - Be syntactically correct. - Be reachable. - Use the HTTPS protocol. - When using the `grpc` endpointType, streamEndpointUrl cannot contain paths: - Valid . `grpc` - `https://example.com` - Invalid . `grpc` - `https://example.com/collector`. - Valid . `http` - `https://example.com/collector`. - When using the `http` endpointType, the operation must match the exact final full URL (including the path if there is one) to which the data will be sent. Examples below: - `https://api.honeycomb.io:443/v1/metrics` - `https://ingest.eu0.signalfx.com/v2/datapoint/otlp` + * @return streamEndpointUrl + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STREAM_ENDPOINT_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getStreamEndpointUrl() { + return streamEndpointUrl; + } + + + @JsonProperty(JSON_PROPERTY_STREAM_ENDPOINT_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreamEndpointUrl(String streamEndpointUrl) { + this.streamEndpointUrl = streamEndpointUrl; + } + + public Stream tagMatch(List tagMatch) { this.tagMatch = tagMatch; return this; @@ -339,31 +364,6 @@ public void setEndpointType(EndpointType endpointType) { } - public Stream streamEndpointUrl(String streamEndpointUrl) { - this.streamEndpointUrl = streamEndpointUrl; - return this; - } - - /** - * The URL ThousandEyes sends data stream to. For a URL to be valid, it needs to: - Be syntactically correct. - Be reachable. - Use the HTTPS protocol. - When using the `grpc` endpointType, streamEndpointUrl cannot contain paths: - Valid . `grpc` - `https://example.com` - Invalid . `grpc` - `https://example.com/collector`. - Valid . `http` - `https://example.com/collector`. - When using the `http` endpointType, the operation must match the exact final full URL (including the path if there is one) to which the metrics will be sent. Examples below: - `https://api.honeycomb.io:443/v1/metrics` - `https://ingest.eu0.signalfx.com/v2/datapoint/otlp` - * @return streamEndpointUrl - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STREAM_ENDPOINT_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getStreamEndpointUrl() { - return streamEndpointUrl; - } - - - @JsonProperty(JSON_PROPERTY_STREAM_ENDPOINT_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreamEndpointUrl(String streamEndpointUrl) { - this.streamEndpointUrl = streamEndpointUrl; - } - - public Stream dataModelVersion(DataModelVersion dataModelVersion) { this.dataModelVersion = dataModelVersion; return this; @@ -402,6 +402,7 @@ public boolean equals(Object o) { } Stream stream = (Stream) o; return Objects.equals(this.customHeaders, stream.customHeaders) && + Objects.equals(this.streamEndpointUrl, stream.streamEndpointUrl) && Objects.equals(this.tagMatch, stream.tagMatch) && Objects.equals(this.testMatch, stream.testMatch) && Objects.equals(this.enabled, stream.enabled) && @@ -410,13 +411,12 @@ public boolean equals(Object o) { Objects.equals(this.type, stream.type) && Objects.equals(this.signal, stream.signal) && Objects.equals(this.endpointType, stream.endpointType) && - Objects.equals(this.streamEndpointUrl, stream.streamEndpointUrl) && Objects.equals(this.dataModelVersion, stream.dataModelVersion); } @Override public int hashCode() { - return Objects.hash(customHeaders, tagMatch, testMatch, enabled, filters, exporterConfig, type, signal, endpointType, streamEndpointUrl, dataModelVersion); + return Objects.hash(customHeaders, streamEndpointUrl, tagMatch, testMatch, enabled, filters, exporterConfig, type, signal, endpointType, dataModelVersion); } @Override @@ -424,6 +424,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Stream {\n"); sb.append(" customHeaders: ").append(toIndentedString(customHeaders)).append("\n"); + sb.append(" streamEndpointUrl: ").append(toIndentedString(streamEndpointUrl)).append("\n"); sb.append(" tagMatch: ").append(toIndentedString(tagMatch)).append("\n"); sb.append(" testMatch: ").append(toIndentedString(testMatch)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); @@ -432,7 +433,6 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" signal: ").append(toIndentedString(signal)).append("\n"); sb.append(" endpointType: ").append(toIndentedString(endpointType)).append("\n"); - sb.append(" streamEndpointUrl: ").append(toIndentedString(streamEndpointUrl)).append("\n"); sb.append(" dataModelVersion: ").append(toIndentedString(dataModelVersion)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/streaming/src/test/java/com/thousandeyes/sdk/streaming/StreamingApiTest.java b/streaming/src/test/java/com/thousandeyes/sdk/streaming/StreamingApiTest.java index 96239b44d..86177504c 100644 --- a/streaming/src/test/java/com/thousandeyes/sdk/streaming/StreamingApiTest.java +++ b/streaming/src/test/java/com/thousandeyes/sdk/streaming/StreamingApiTest.java @@ -471,6 +471,7 @@ public void updateStreamRequestAndResponseDeserializationTest() "id" : "5678", "domain" : "endpoint" } ], + "streamEndpointUrl" : "https://api.thousandeyes.otel-collector", "exporterConfig" : { "splunkHec" : { "sourceType" : "ThousandEyesOTel", diff --git a/tags/README.md b/tags/README.md index 5c346e99d..6c9365457 100644 --- a/tags/README.md +++ b/tags/README.md @@ -2,7 +2,7 @@ Tags API -- API version: 7.0.32 +- API version: 7.0.34 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 d3b506eee..8c27e8432 100644 --- a/test-results/README.md +++ b/test-results/README.md @@ -2,7 +2,7 @@ Test Results API -- API version: 7.0.32 +- API version: 7.0.34 Get test result metrics for Cloud and Enterprise Agent tests. diff --git a/tests/README.md b/tests/README.md index c05700b62..ea3b4e8ba 100644 --- a/tests/README.md +++ b/tests/README.md @@ -2,7 +2,7 @@ Tests API -- API version: 7.0.32 +- API version: 7.0.34 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 5bf4d1663..1e12d0231 100644 --- a/usage/README.md +++ b/usage/README.md @@ -2,7 +2,7 @@ Usage API -- API version: 7.0.32 +- API version: 7.0.34 These usage endpoints define the following operations: