Skip to content

Commit

Permalink
[GitHub Bot] Generated java SDK (#97)
Browse files Browse the repository at this point in the history
Co-authored-by: API Team <[email protected]>
  • Loading branch information
mpragosa-te and API Team authored Dec 4, 2024
1 parent 9794a89 commit 07bc726
Show file tree
Hide file tree
Showing 187 changed files with 4,863 additions and 173 deletions.
2 changes: 1 addition & 1 deletion administrative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Administrative API

- API version: 7.0.28
- API version: 7.0.29

Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API.
This API provides the following operations to manage your organization:
Expand Down
2 changes: 1 addition & 1 deletion agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Agents API

- API version: 7.0.28
- API version: 7.0.29


## Overview
Expand Down
1 change: 1 addition & 0 deletions alerts/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ src/main/java/com/thousandeyes/sdk/alerts/AlertsApi.java
src/main/java/com/thousandeyes/sdk/alerts/model/Alert.java
src/main/java/com/thousandeyes/sdk/alerts/model/AlertDetail.java
src/main/java/com/thousandeyes/sdk/alerts/model/AlertDirection.java
src/main/java/com/thousandeyes/sdk/alerts/model/AlertGroupType.java
src/main/java/com/thousandeyes/sdk/alerts/model/AlertLinks.java
src/main/java/com/thousandeyes/sdk/alerts/model/AlertMeta.java
src/main/java/com/thousandeyes/sdk/alerts/model/AlertMetricDetail.java
Expand Down
2 changes: 1 addition & 1 deletion alerts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Alerts API

- API version: 7.0.28
- API version: 7.0.29

You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* 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;

/**
* Category of alert type based on the application or network layer and source of the test.
*/
public enum AlertGroupType {

BROWSER_SESSION("browser-session"),

CLOUD_ENTERPRISE("cloud-enterprise"),

ENDPOINT("endpoint"),

UNKNOWN("unknown");

private String value;

AlertGroupType(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

@JsonCreator
public static AlertGroupType fromValue(String value) {
for (AlertGroupType b : AlertGroupType.values()) {
if (b.value.equals(value)) {
return b;
}
}
return UNKNOWN;
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.thousandeyes.sdk.alerts.model.AlertDirection;
import com.thousandeyes.sdk.alerts.model.AlertGroupType;
import com.thousandeyes.sdk.alerts.model.AlertRoundsViolationMode;
import com.thousandeyes.sdk.alerts.model.AlertType;
import com.thousandeyes.sdk.alerts.model.SensitivityLevel;
Expand All @@ -39,6 +40,7 @@
BaseRule.JSON_PROPERTY_NOTIFY_ON_CLEAR,
BaseRule.JSON_PROPERTY_IS_DEFAULT,
BaseRule.JSON_PROPERTY_ALERT_TYPE,
BaseRule.JSON_PROPERTY_ALERT_GROUP_TYPE,
BaseRule.JSON_PROPERTY_MINIMUM_SOURCES,
BaseRule.JSON_PROPERTY_MINIMUM_SOURCES_PCT,
BaseRule.JSON_PROPERTY_ROUNDS_VIOLATING_MODE,
Expand Down Expand Up @@ -71,6 +73,9 @@ public class BaseRule {
public static final String JSON_PROPERTY_ALERT_TYPE = "alertType";
private AlertType alertType;

public static final String JSON_PROPERTY_ALERT_GROUP_TYPE = "alertGroupType";
private AlertGroupType alertGroupType;

public static final String JSON_PROPERTY_MINIMUM_SOURCES = "minimumSources";
private Integer minimumSources;

Expand Down Expand Up @@ -271,6 +276,31 @@ public void setAlertType(AlertType alertType) {
}


public BaseRule alertGroupType(AlertGroupType alertGroupType) {
this.alertGroupType = alertGroupType;
return this;
}

/**
* Get alertGroupType
* @return alertGroupType
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALERT_GROUP_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public AlertGroupType getAlertGroupType() {
return alertGroupType;
}


@JsonProperty(JSON_PROPERTY_ALERT_GROUP_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAlertGroupType(AlertGroupType alertGroupType) {
this.alertGroupType = alertGroupType;
}


public BaseRule minimumSources(Integer minimumSources) {
this.minimumSources = minimumSources;
return this;
Expand Down Expand Up @@ -490,6 +520,7 @@ public boolean equals(Object o) {
Objects.equals(this.notifyOnClear, baseRule.notifyOnClear) &&
Objects.equals(this.isDefault, baseRule.isDefault) &&
Objects.equals(this.alertType, baseRule.alertType) &&
Objects.equals(this.alertGroupType, baseRule.alertGroupType) &&
Objects.equals(this.minimumSources, baseRule.minimumSources) &&
Objects.equals(this.minimumSourcesPct, baseRule.minimumSourcesPct) &&
Objects.equals(this.roundsViolatingMode, baseRule.roundsViolatingMode) &&
Expand All @@ -502,7 +533,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, 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);
}

@Override
Expand All @@ -516,6 +547,7 @@ public String toString() {
sb.append(" notifyOnClear: ").append(toIndentedString(notifyOnClear)).append("\n");
sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n");
sb.append(" alertType: ").append(toIndentedString(alertType)).append("\n");
sb.append(" alertGroupType: ").append(toIndentedString(alertGroupType)).append("\n");
sb.append(" minimumSources: ").append(toIndentedString(minimumSources)).append("\n");
sb.append(" minimumSourcesPct: ").append(toIndentedString(minimumSourcesPct)).append("\n");
sb.append(" roundsViolatingMode: ").append(toIndentedString(roundsViolatingMode)).append("\n");
Expand Down
34 changes: 33 additions & 1 deletion alerts/src/main/java/com/thousandeyes/sdk/alerts/model/Rule.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.thousandeyes.sdk.alerts.model.AlertDirection;
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.AlertType;
Expand All @@ -44,6 +45,7 @@
Rule.JSON_PROPERTY_NOTIFY_ON_CLEAR,
Rule.JSON_PROPERTY_IS_DEFAULT,
Rule.JSON_PROPERTY_ALERT_TYPE,
Rule.JSON_PROPERTY_ALERT_GROUP_TYPE,
Rule.JSON_PROPERTY_MINIMUM_SOURCES,
Rule.JSON_PROPERTY_MINIMUM_SOURCES_PCT,
Rule.JSON_PROPERTY_ROUNDS_VIOLATING_MODE,
Expand Down Expand Up @@ -79,6 +81,9 @@ public class Rule {
public static final String JSON_PROPERTY_ALERT_TYPE = "alertType";
private AlertType alertType;

public static final String JSON_PROPERTY_ALERT_GROUP_TYPE = "alertGroupType";
private AlertGroupType alertGroupType;

public static final String JSON_PROPERTY_MINIMUM_SOURCES = "minimumSources";
private Integer minimumSources;

Expand Down Expand Up @@ -288,6 +293,31 @@ public void setAlertType(AlertType alertType) {
}


public Rule alertGroupType(AlertGroupType alertGroupType) {
this.alertGroupType = alertGroupType;
return this;
}

/**
* Get alertGroupType
* @return alertGroupType
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALERT_GROUP_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public AlertGroupType getAlertGroupType() {
return alertGroupType;
}


@JsonProperty(JSON_PROPERTY_ALERT_GROUP_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAlertGroupType(AlertGroupType alertGroupType) {
this.alertGroupType = alertGroupType;
}


public Rule minimumSources(Integer minimumSources) {
this.minimumSources = minimumSources;
return this;
Expand Down Expand Up @@ -590,6 +620,7 @@ public boolean equals(Object o) {
Objects.equals(this.notifyOnClear, rule.notifyOnClear) &&
Objects.equals(this.isDefault, rule.isDefault) &&
Objects.equals(this.alertType, rule.alertType) &&
Objects.equals(this.alertGroupType, rule.alertGroupType) &&
Objects.equals(this.minimumSources, rule.minimumSources) &&
Objects.equals(this.minimumSourcesPct, rule.minimumSourcesPct) &&
Objects.equals(this.roundsViolatingMode, rule.roundsViolatingMode) &&
Expand All @@ -605,7 +636,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, 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, notifications, testIds, links);
}

@Override
Expand All @@ -619,6 +650,7 @@ public String toString() {
sb.append(" notifyOnClear: ").append(toIndentedString(notifyOnClear)).append("\n");
sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n");
sb.append(" alertType: ").append(toIndentedString(alertType)).append("\n");
sb.append(" alertGroupType: ").append(toIndentedString(alertGroupType)).append("\n");
sb.append(" minimumSources: ").append(toIndentedString(minimumSources)).append("\n");
sb.append(" minimumSourcesPct: ").append(toIndentedString(minimumSourcesPct)).append("\n");
sb.append(" roundsViolatingMode: ").append(toIndentedString(roundsViolatingMode)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.thousandeyes.sdk.alerts.model.AlertDirection;
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.AlertType;
Expand All @@ -45,6 +46,7 @@
RuleDetail.JSON_PROPERTY_NOTIFY_ON_CLEAR,
RuleDetail.JSON_PROPERTY_IS_DEFAULT,
RuleDetail.JSON_PROPERTY_ALERT_TYPE,
RuleDetail.JSON_PROPERTY_ALERT_GROUP_TYPE,
RuleDetail.JSON_PROPERTY_MINIMUM_SOURCES,
RuleDetail.JSON_PROPERTY_MINIMUM_SOURCES_PCT,
RuleDetail.JSON_PROPERTY_ROUNDS_VIOLATING_MODE,
Expand Down Expand Up @@ -80,6 +82,9 @@ public class RuleDetail {
public static final String JSON_PROPERTY_ALERT_TYPE = "alertType";
private AlertType alertType;

public static final String JSON_PROPERTY_ALERT_GROUP_TYPE = "alertGroupType";
private AlertGroupType alertGroupType;

public static final String JSON_PROPERTY_MINIMUM_SOURCES = "minimumSources";
private Integer minimumSources;

Expand Down Expand Up @@ -291,6 +296,31 @@ public void setAlertType(AlertType alertType) {
}


public RuleDetail alertGroupType(AlertGroupType alertGroupType) {
this.alertGroupType = alertGroupType;
return this;
}

/**
* Get alertGroupType
* @return alertGroupType
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALERT_GROUP_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public AlertGroupType getAlertGroupType() {
return alertGroupType;
}


@JsonProperty(JSON_PROPERTY_ALERT_GROUP_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAlertGroupType(AlertGroupType alertGroupType) {
this.alertGroupType = alertGroupType;
}


public RuleDetail minimumSources(Integer minimumSources) {
this.minimumSources = minimumSources;
return this;
Expand Down Expand Up @@ -575,6 +605,7 @@ public boolean equals(Object o) {
Objects.equals(this.notifyOnClear, ruleDetail.notifyOnClear) &&
Objects.equals(this.isDefault, ruleDetail.isDefault) &&
Objects.equals(this.alertType, ruleDetail.alertType) &&
Objects.equals(this.alertGroupType, ruleDetail.alertGroupType) &&
Objects.equals(this.minimumSources, ruleDetail.minimumSources) &&
Objects.equals(this.minimumSourcesPct, ruleDetail.minimumSourcesPct) &&
Objects.equals(this.roundsViolatingMode, ruleDetail.roundsViolatingMode) &&
Expand All @@ -590,7 +621,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(ruleId, ruleName, expression, direction, notifyOnClear, isDefault, alertType, 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, notifications, tests, links);
}

@Override
Expand All @@ -604,6 +635,7 @@ public String toString() {
sb.append(" notifyOnClear: ").append(toIndentedString(notifyOnClear)).append("\n");
sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n");
sb.append(" alertType: ").append(toIndentedString(alertType)).append("\n");
sb.append(" alertGroupType: ").append(toIndentedString(alertGroupType)).append("\n");
sb.append(" minimumSources: ").append(toIndentedString(minimumSources)).append("\n");
sb.append(" minimumSourcesPct: ").append(toIndentedString(minimumSourcesPct)).append("\n");
sb.append(" roundsViolatingMode: ").append(toIndentedString(roundsViolatingMode)).append("\n");
Expand Down
Loading

0 comments on commit 07bc726

Please sign in to comment.