diff --git a/.apigentools-info b/.apigentools-info index 56b13c2d80d..2e6aa51818f 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-02-12 09:26:24.323929", - "spec_repo_commit": "8d710e1" + "regenerated": "2021-02-12 15:10:30.396849", + "spec_repo_commit": "3ee9214" }, "v2": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-02-12 09:26:34.189653", - "spec_repo_commit": "8d710e1" + "regenerated": "2021-02-12 15:10:41.208494", + "spec_repo_commit": "3ee9214" } } } \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9953d3ed065..f8a37066ea0 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -629,7 +629,6 @@ src/main/java/com/datadog/api/v2/client/model/UserUpdateData.java src/main/java/com/datadog/api/v2/client/model/UserUpdateRequest.java src/main/java/com/datadog/api/v2/client/model/UsersResponse.java src/main/java/com/datadog/api/v2/client/model/UsersType.java -src/test/java/com/datadog/api/v2/client/api/MetricsApiTest.java src/test/java/com/datadog/api/v2/client/model/APIErrorResponseTest.java src/test/java/com/datadog/api/v2/client/model/APIKeyCreateAttributesTest.java src/test/java/com/datadog/api/v2/client/model/APIKeyCreateDataTest.java diff --git a/api_docs/v1/GeomapWidgetDefinition.md b/api_docs/v1/GeomapWidgetDefinition.md new file mode 100644 index 00000000000..2ddd9bfadd9 --- /dev/null +++ b/api_docs/v1/GeomapWidgetDefinition.md @@ -0,0 +1,21 @@ + + +# GeomapWidgetDefinition + +This visualization displays a series of values by country on a world map. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customLinks** | [**List<WidgetCustomLink>**](WidgetCustomLink.md) | A list of custom links. | [optional] +**requests** | [**List<GeomapWidgetRequest>**](GeomapWidgetRequest.md) | Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) for information about building the `REQUEST_SCHEMA`. | +**style** | [**GeomapWidgetDefinitionStyle**](GeomapWidgetDefinitionStyle.md) | | +**time** | [**WidgetTime**](WidgetTime.md) | | [optional] +**title** | **String** | The title of your widget. | [optional] +**titleAlign** | **WidgetTextAlign** | | [optional] +**titleSize** | **String** | The size of the title. | [optional] +**type** | **GeomapWidgetDefinitionType** | | +**view** | [**GeomapWidgetDefinitionView**](GeomapWidgetDefinitionView.md) | | + + + diff --git a/api_docs/v1/GeomapWidgetDefinitionStyle.md b/api_docs/v1/GeomapWidgetDefinitionStyle.md new file mode 100644 index 00000000000..f80416bcca8 --- /dev/null +++ b/api_docs/v1/GeomapWidgetDefinitionStyle.md @@ -0,0 +1,14 @@ + + +# GeomapWidgetDefinitionStyle + +The style to apply to the widget. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**palette** | **String** | The color palette to apply to the widget. | +**paletteFlip** | **Boolean** | Whether to flip the palette tones. | + + + diff --git a/api_docs/v1/GeomapWidgetDefinitionType.md b/api_docs/v1/GeomapWidgetDefinitionType.md new file mode 100644 index 00000000000..353a719a267 --- /dev/null +++ b/api_docs/v1/GeomapWidgetDefinitionType.md @@ -0,0 +1,11 @@ + + +# GeomapWidgetDefinitionType + +## Enum + + +* `GEOMAP` (value: `"geomap"`) + + + diff --git a/api_docs/v1/GeomapWidgetDefinitionView.md b/api_docs/v1/GeomapWidgetDefinitionView.md new file mode 100644 index 00000000000..e02920fca48 --- /dev/null +++ b/api_docs/v1/GeomapWidgetDefinitionView.md @@ -0,0 +1,13 @@ + + +# GeomapWidgetDefinitionView + +The view of the world that the map should render. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**focus** | **String** | The 2-letter ISO code of a country to focus the map on. Or `WORLD`. | + + + diff --git a/api_docs/v1/GeomapWidgetRequest.md b/api_docs/v1/GeomapWidgetRequest.md new file mode 100644 index 00000000000..de6effc990e --- /dev/null +++ b/api_docs/v1/GeomapWidgetRequest.md @@ -0,0 +1,15 @@ + + +# GeomapWidgetRequest + +An updated geomap widget. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logQuery** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] +**q** | **String** | The widget metrics query. | [optional] +**rumQuery** | [**LogQueryDefinition**](LogQueryDefinition.md) | | [optional] + + + diff --git a/api_docs/v1/README.md b/api_docs/v1/README.md index f7d4aa8a7cf..a1bc68d3df5 100644 --- a/api_docs/v1/README.md +++ b/api_docs/v1/README.md @@ -257,6 +257,11 @@ Class | Method | HTTP request | Description - [FreeTextWidgetDefinition](FreeTextWidgetDefinition.md) - [FreeTextWidgetDefinitionType](FreeTextWidgetDefinitionType.md) - [GCPAccount](GCPAccount.md) + - [GeomapWidgetDefinition](GeomapWidgetDefinition.md) + - [GeomapWidgetDefinitionStyle](GeomapWidgetDefinitionStyle.md) + - [GeomapWidgetDefinitionType](GeomapWidgetDefinitionType.md) + - [GeomapWidgetDefinitionView](GeomapWidgetDefinitionView.md) + - [GeomapWidgetRequest](GeomapWidgetRequest.md) - [GraphSnapshot](GraphSnapshot.md) - [GroupWidgetDefinition](GroupWidgetDefinition.md) - [GroupWidgetDefinitionType](GroupWidgetDefinitionType.md) diff --git a/api_docs/v1/WidgetDefinition.md b/api_docs/v1/WidgetDefinition.md index 59e3185744c..672361c5650 100644 --- a/api_docs/v1/WidgetDefinition.md +++ b/api_docs/v1/WidgetDefinition.md @@ -13,6 +13,7 @@ * [EventStreamWidgetDefinition](EventStreamWidgetDefinition.md) * [EventTimelineWidgetDefinition](EventTimelineWidgetDefinition.md) * [FreeTextWidgetDefinition](FreeTextWidgetDefinition.md) +* [GeomapWidgetDefinition](GeomapWidgetDefinition.md) * [GroupWidgetDefinition](GroupWidgetDefinition.md) * [HeatMapWidgetDefinition](HeatMapWidgetDefinition.md) * [HostMapWidgetDefinition](HostMapWidgetDefinition.md) @@ -42,6 +43,7 @@ import com.datadog.api.v1.client.model.DistributionWidgetDefinition; import com.datadog.api.v1.client.model.EventStreamWidgetDefinition; import com.datadog.api.v1.client.model.EventTimelineWidgetDefinition; import com.datadog.api.v1.client.model.FreeTextWidgetDefinition; +import com.datadog.api.v1.client.model.GeomapWidgetDefinition; import com.datadog.api.v1.client.model.GroupWidgetDefinition; import com.datadog.api.v1.client.model.HeatMapWidgetDefinition; import com.datadog.api.v1.client.model.HostMapWidgetDefinition; @@ -119,6 +121,13 @@ public class Example { // to get back the FreeTextWidgetDefinition set earlier FreeTextWidgetDefinition testFreeTextWidgetDefinition = (FreeTextWidgetDefinition) exampleWidgetDefinition.getActualInstance(); + // create a new GeomapWidgetDefinition + GeomapWidgetDefinition exampleGeomapWidgetDefinition = new GeomapWidgetDefinition(); + // set WidgetDefinition to GeomapWidgetDefinition + exampleWidgetDefinition.setActualInstance(exampleGeomapWidgetDefinition); + // to get back the GeomapWidgetDefinition set earlier + GeomapWidgetDefinition testGeomapWidgetDefinition = (GeomapWidgetDefinition) exampleWidgetDefinition.getActualInstance(); + // create a new GroupWidgetDefinition GroupWidgetDefinition exampleGroupWidgetDefinition = new GroupWidgetDefinition(); // set WidgetDefinition to GroupWidgetDefinition diff --git a/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinition.java b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinition.java new file mode 100644 index 00000000000..6344bf86ef6 --- /dev/null +++ b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinition.java @@ -0,0 +1,366 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + * + * 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.datadog.api.v1.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.datadog.api.v1.client.model.GeomapWidgetDefinitionStyle; +import com.datadog.api.v1.client.model.GeomapWidgetDefinitionType; +import com.datadog.api.v1.client.model.GeomapWidgetDefinitionView; +import com.datadog.api.v1.client.model.GeomapWidgetRequest; +import com.datadog.api.v1.client.model.WidgetCustomLink; +import com.datadog.api.v1.client.model.WidgetTextAlign; +import com.datadog.api.v1.client.model.WidgetTime; +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.datadog.api.v1.client.JSON; + + +/** + * This visualization displays a series of values by country on a world map. + */ +@ApiModel(description = "This visualization displays a series of values by country on a world map.") +@JsonPropertyOrder({ + GeomapWidgetDefinition.JSON_PROPERTY_CUSTOM_LINKS, + GeomapWidgetDefinition.JSON_PROPERTY_REQUESTS, + GeomapWidgetDefinition.JSON_PROPERTY_STYLE, + GeomapWidgetDefinition.JSON_PROPERTY_TIME, + GeomapWidgetDefinition.JSON_PROPERTY_TITLE, + GeomapWidgetDefinition.JSON_PROPERTY_TITLE_ALIGN, + GeomapWidgetDefinition.JSON_PROPERTY_TITLE_SIZE, + GeomapWidgetDefinition.JSON_PROPERTY_TYPE, + GeomapWidgetDefinition.JSON_PROPERTY_VIEW +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GeomapWidgetDefinition { + public static final String JSON_PROPERTY_CUSTOM_LINKS = "custom_links"; + private List customLinks = null; + + public static final String JSON_PROPERTY_REQUESTS = "requests"; + private List requests = new ArrayList<>(); + + public static final String JSON_PROPERTY_STYLE = "style"; + private GeomapWidgetDefinitionStyle style; + + public static final String JSON_PROPERTY_TIME = "time"; + private WidgetTime time; + + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_TITLE_ALIGN = "title_align"; + private WidgetTextAlign titleAlign; + + public static final String JSON_PROPERTY_TITLE_SIZE = "title_size"; + private String titleSize; + + public static final String JSON_PROPERTY_TYPE = "type"; + private GeomapWidgetDefinitionType type = GeomapWidgetDefinitionType.GEOMAP; + + public static final String JSON_PROPERTY_VIEW = "view"; + private GeomapWidgetDefinitionView view; + + + public GeomapWidgetDefinition customLinks(List customLinks) { + this.customLinks = customLinks; + return this; + } + + public GeomapWidgetDefinition addCustomLinksItem(WidgetCustomLink customLinksItem) { + if (this.customLinks == null) { + this.customLinks = new ArrayList<>(); + } + this.customLinks.add(customLinksItem); + return this; + } + + /** + * A list of custom links. + * @return customLinks + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of custom links.") + @JsonProperty(JSON_PROPERTY_CUSTOM_LINKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getCustomLinks() { + return customLinks; + } + + + public void setCustomLinks(List customLinks) { + this.customLinks = customLinks; + } + + + public GeomapWidgetDefinition requests(List requests) { + this.requests = requests; + return this; + } + + public GeomapWidgetDefinition addRequestsItem(GeomapWidgetRequest requestsItem) { + this.requests.add(requestsItem); + return this; + } + + /** + * Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) for information about building the `REQUEST_SCHEMA`. + * @return requests + **/ + @ApiModelProperty(example = "[{\"rum_query\":\"{}\"}]", required = true, value = "Array of one request object to display in the widget. The request must contain a `group-by` tag whose value is a country ISO code. See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) for information about building the `REQUEST_SCHEMA`.") + @JsonProperty(JSON_PROPERTY_REQUESTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getRequests() { + return requests; + } + + + public void setRequests(List requests) { + this.requests = requests; + } + + + public GeomapWidgetDefinition style(GeomapWidgetDefinitionStyle style) { + this.style = style; + return this; + } + + /** + * Get style + * @return style + **/ + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_STYLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public GeomapWidgetDefinitionStyle getStyle() { + return style; + } + + + public void setStyle(GeomapWidgetDefinitionStyle style) { + this.style = style; + } + + + public GeomapWidgetDefinition time(WidgetTime time) { + this.time = time; + return this; + } + + /** + * Get time + * @return time + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WidgetTime getTime() { + return time; + } + + + public void setTime(WidgetTime time) { + this.time = time; + } + + + public GeomapWidgetDefinition title(String title) { + this.title = title; + return this; + } + + /** + * The title of your widget. + * @return title + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The title of your widget.") + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public GeomapWidgetDefinition titleAlign(WidgetTextAlign titleAlign) { + this.titleAlign = titleAlign; + return this; + } + + /** + * Get titleAlign + * @return titleAlign + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TITLE_ALIGN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WidgetTextAlign getTitleAlign() { + return titleAlign; + } + + + public void setTitleAlign(WidgetTextAlign titleAlign) { + this.titleAlign = titleAlign; + } + + + public GeomapWidgetDefinition titleSize(String titleSize) { + this.titleSize = titleSize; + return this; + } + + /** + * The size of the title. + * @return titleSize + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The size of the title.") + @JsonProperty(JSON_PROPERTY_TITLE_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTitleSize() { + return titleSize; + } + + + public void setTitleSize(String titleSize) { + this.titleSize = titleSize; + } + + + public GeomapWidgetDefinition type(GeomapWidgetDefinitionType type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public GeomapWidgetDefinitionType getType() { + return type; + } + + + public void setType(GeomapWidgetDefinitionType type) { + this.type = type; + } + + + public GeomapWidgetDefinition view(GeomapWidgetDefinitionView view) { + this.view = view; + return this; + } + + /** + * Get view + * @return view + **/ + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_VIEW) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public GeomapWidgetDefinitionView getView() { + return view; + } + + + public void setView(GeomapWidgetDefinitionView view) { + this.view = view; + } + + + /** + * Return true if this GeomapWidgetDefinition object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GeomapWidgetDefinition geomapWidgetDefinition = (GeomapWidgetDefinition) o; + return Objects.equals(this.customLinks, geomapWidgetDefinition.customLinks) && + Objects.equals(this.requests, geomapWidgetDefinition.requests) && + Objects.equals(this.style, geomapWidgetDefinition.style) && + Objects.equals(this.time, geomapWidgetDefinition.time) && + Objects.equals(this.title, geomapWidgetDefinition.title) && + Objects.equals(this.titleAlign, geomapWidgetDefinition.titleAlign) && + Objects.equals(this.titleSize, geomapWidgetDefinition.titleSize) && + Objects.equals(this.type, geomapWidgetDefinition.type) && + Objects.equals(this.view, geomapWidgetDefinition.view); + } + + @Override + public int hashCode() { + return Objects.hash(customLinks, requests, style, time, title, titleAlign, titleSize, type, view); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GeomapWidgetDefinition {\n"); + sb.append(" customLinks: ").append(toIndentedString(customLinks)).append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append(" style: ").append(toIndentedString(style)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" titleAlign: ").append(toIndentedString(titleAlign)).append("\n"); + sb.append(" titleSize: ").append(toIndentedString(titleSize)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" view: ").append(toIndentedString(view)).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/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionStyle.java b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionStyle.java new file mode 100644 index 00000000000..fd927b11ec9 --- /dev/null +++ b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionStyle.java @@ -0,0 +1,136 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + * + * 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.datadog.api.v1.client.model; + +import java.util.Objects; +import java.util.Arrays; +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.datadog.api.v1.client.JSON; + + +/** + * The style to apply to the widget. + */ +@ApiModel(description = "The style to apply to the widget.") +@JsonPropertyOrder({ + GeomapWidgetDefinitionStyle.JSON_PROPERTY_PALETTE, + GeomapWidgetDefinitionStyle.JSON_PROPERTY_PALETTE_FLIP +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GeomapWidgetDefinitionStyle { + public static final String JSON_PROPERTY_PALETTE = "palette"; + private String palette; + + public static final String JSON_PROPERTY_PALETTE_FLIP = "palette_flip"; + private Boolean paletteFlip; + + + public GeomapWidgetDefinitionStyle palette(String palette) { + this.palette = palette; + return this; + } + + /** + * The color palette to apply to the widget. + * @return palette + **/ + @ApiModelProperty(example = "hostmap_blues", required = true, value = "The color palette to apply to the widget.") + @JsonProperty(JSON_PROPERTY_PALETTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getPalette() { + return palette; + } + + + public void setPalette(String palette) { + this.palette = palette; + } + + + public GeomapWidgetDefinitionStyle paletteFlip(Boolean paletteFlip) { + this.paletteFlip = paletteFlip; + return this; + } + + /** + * Whether to flip the palette tones. + * @return paletteFlip + **/ + @ApiModelProperty(example = "false", required = true, value = "Whether to flip the palette tones.") + @JsonProperty(JSON_PROPERTY_PALETTE_FLIP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getPaletteFlip() { + return paletteFlip; + } + + + public void setPaletteFlip(Boolean paletteFlip) { + this.paletteFlip = paletteFlip; + } + + + /** + * Return true if this GeomapWidgetDefinition_style object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GeomapWidgetDefinitionStyle geomapWidgetDefinitionStyle = (GeomapWidgetDefinitionStyle) o; + return Objects.equals(this.palette, geomapWidgetDefinitionStyle.palette) && + Objects.equals(this.paletteFlip, geomapWidgetDefinitionStyle.paletteFlip); + } + + @Override + public int hashCode() { + return Objects.hash(palette, paletteFlip); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GeomapWidgetDefinitionStyle {\n"); + sb.append(" palette: ").append(toIndentedString(palette)).append("\n"); + sb.append(" paletteFlip: ").append(toIndentedString(paletteFlip)).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/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionType.java b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionType.java new file mode 100644 index 00000000000..d8d42ed8761 --- /dev/null +++ b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionType.java @@ -0,0 +1,59 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + * + * 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.datadog.api.v1.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import io.swagger.annotations.ApiModel; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.datadog.api.v1.client.JSON; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Type of the geomap widget. + */ +public enum GeomapWidgetDefinitionType { + + GEOMAP("geomap"); + + private String value; + + GeomapWidgetDefinitionType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static GeomapWidgetDefinitionType fromValue(String value) { + for (GeomapWidgetDefinitionType b : GeomapWidgetDefinitionType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionView.java b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionView.java new file mode 100644 index 00000000000..99c9d370fc3 --- /dev/null +++ b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetDefinitionView.java @@ -0,0 +1,107 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + * + * 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.datadog.api.v1.client.model; + +import java.util.Objects; +import java.util.Arrays; +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.datadog.api.v1.client.JSON; + + +/** + * The view of the world that the map should render. + */ +@ApiModel(description = "The view of the world that the map should render.") +@JsonPropertyOrder({ + GeomapWidgetDefinitionView.JSON_PROPERTY_FOCUS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GeomapWidgetDefinitionView { + public static final String JSON_PROPERTY_FOCUS = "focus"; + private String focus; + + + public GeomapWidgetDefinitionView focus(String focus) { + this.focus = focus; + return this; + } + + /** + * The 2-letter ISO code of a country to focus the map on. Or `WORLD`. + * @return focus + **/ + @ApiModelProperty(example = "WORLD", required = true, value = "The 2-letter ISO code of a country to focus the map on. Or `WORLD`.") + @JsonProperty(JSON_PROPERTY_FOCUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getFocus() { + return focus; + } + + + public void setFocus(String focus) { + this.focus = focus; + } + + + /** + * Return true if this GeomapWidgetDefinition_view object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GeomapWidgetDefinitionView geomapWidgetDefinitionView = (GeomapWidgetDefinitionView) o; + return Objects.equals(this.focus, geomapWidgetDefinitionView.focus); + } + + @Override + public int hashCode() { + return Objects.hash(focus); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GeomapWidgetDefinitionView {\n"); + sb.append(" focus: ").append(toIndentedString(focus)).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/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetRequest.java b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetRequest.java new file mode 100644 index 00000000000..6ecb4e14af9 --- /dev/null +++ b/src/main/java/com/datadog/api/v1/client/model/GeomapWidgetRequest.java @@ -0,0 +1,169 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + * + * 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.datadog.api.v1.client.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.datadog.api.v1.client.model.LogQueryDefinition; +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 io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.datadog.api.v1.client.JSON; + + +/** + * An updated geomap widget. + */ +@ApiModel(description = "An updated geomap widget.") +@JsonPropertyOrder({ + GeomapWidgetRequest.JSON_PROPERTY_LOG_QUERY, + GeomapWidgetRequest.JSON_PROPERTY_Q, + GeomapWidgetRequest.JSON_PROPERTY_RUM_QUERY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GeomapWidgetRequest { + public static final String JSON_PROPERTY_LOG_QUERY = "log_query"; + private LogQueryDefinition logQuery; + + public static final String JSON_PROPERTY_Q = "q"; + private String q; + + public static final String JSON_PROPERTY_RUM_QUERY = "rum_query"; + private LogQueryDefinition rumQuery; + + + public GeomapWidgetRequest logQuery(LogQueryDefinition logQuery) { + this.logQuery = logQuery; + return this; + } + + /** + * Get logQuery + * @return logQuery + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LOG_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LogQueryDefinition getLogQuery() { + return logQuery; + } + + + public void setLogQuery(LogQueryDefinition logQuery) { + this.logQuery = logQuery; + } + + + public GeomapWidgetRequest q(String q) { + this.q = q; + return this; + } + + /** + * The widget metrics query. + * @return q + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The widget metrics query.") + @JsonProperty(JSON_PROPERTY_Q) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getQ() { + return q; + } + + + public void setQ(String q) { + this.q = q; + } + + + public GeomapWidgetRequest rumQuery(LogQueryDefinition rumQuery) { + this.rumQuery = rumQuery; + return this; + } + + /** + * Get rumQuery + * @return rumQuery + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RUM_QUERY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LogQueryDefinition getRumQuery() { + return rumQuery; + } + + + public void setRumQuery(LogQueryDefinition rumQuery) { + this.rumQuery = rumQuery; + } + + + /** + * Return true if this GeomapWidgetRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GeomapWidgetRequest geomapWidgetRequest = (GeomapWidgetRequest) o; + return Objects.equals(this.logQuery, geomapWidgetRequest.logQuery) && + Objects.equals(this.q, geomapWidgetRequest.q) && + Objects.equals(this.rumQuery, geomapWidgetRequest.rumQuery); + } + + @Override + public int hashCode() { + return Objects.hash(logQuery, q, rumQuery); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GeomapWidgetRequest {\n"); + sb.append(" logQuery: ").append(toIndentedString(logQuery)).append("\n"); + sb.append(" q: ").append(toIndentedString(q)).append("\n"); + sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).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/src/main/java/com/datadog/api/v1/client/model/WidgetDefinition.java b/src/main/java/com/datadog/api/v1/client/model/WidgetDefinition.java index dd5e2fd276c..4ee885ee5dc 100644 --- a/src/main/java/com/datadog/api/v1/client/model/WidgetDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/WidgetDefinition.java @@ -23,6 +23,8 @@ import com.datadog.api.v1.client.model.EventStreamWidgetDefinition; import com.datadog.api.v1.client.model.EventTimelineWidgetDefinition; import com.datadog.api.v1.client.model.FreeTextWidgetDefinition; +import com.datadog.api.v1.client.model.GeomapWidgetDefinition; +import com.datadog.api.v1.client.model.GeomapWidgetDefinitionView; import com.datadog.api.v1.client.model.GroupWidgetDefinition; import com.datadog.api.v1.client.model.HeatMapWidgetDefinition; import com.datadog.api.v1.client.model.HostMapWidgetDefinition; @@ -350,6 +352,32 @@ public WidgetDefinition deserialize(JsonParser jp, DeserializationContext ctxt) log.log(Level.FINER, "Input data does not match schema 'FreeTextWidgetDefinition'", e); } + // deserialize GeomapWidgetDefinition + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (GeomapWidgetDefinition.class.equals(Integer.class) || GeomapWidgetDefinition.class.equals(Long.class) || GeomapWidgetDefinition.class.equals(Float.class) || GeomapWidgetDefinition.class.equals(Double.class) || GeomapWidgetDefinition.class.equals(Boolean.class) || GeomapWidgetDefinition.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((GeomapWidgetDefinition.class.equals(Integer.class) || GeomapWidgetDefinition.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((GeomapWidgetDefinition.class.equals(Float.class) || GeomapWidgetDefinition.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (GeomapWidgetDefinition.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (GeomapWidgetDefinition.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(GeomapWidgetDefinition.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'GeomapWidgetDefinition'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'GeomapWidgetDefinition'", e); + } + // deserialize GroupWidgetDefinition try { boolean attemptParsing = true; @@ -830,6 +858,11 @@ public WidgetDefinition(FreeTextWidgetDefinition o) { setActualInstance(o); } + public WidgetDefinition(GeomapWidgetDefinition o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public WidgetDefinition(GroupWidgetDefinition o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -927,6 +960,8 @@ public WidgetDefinition(ToplistWidgetDefinition o) { }); schemas.put("FreeTextWidgetDefinition", new GenericType() { }); + schemas.put("GeomapWidgetDefinition", new GenericType() { + }); schemas.put("GroupWidgetDefinition", new GenericType() { }); schemas.put("HeatMapWidgetDefinition", new GenericType() { @@ -970,7 +1005,7 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * AlertGraphWidgetDefinition, AlertValueWidgetDefinition, ChangeWidgetDefinition, CheckStatusWidgetDefinition, DistributionWidgetDefinition, EventStreamWidgetDefinition, EventTimelineWidgetDefinition, FreeTextWidgetDefinition, GroupWidgetDefinition, HeatMapWidgetDefinition, HostMapWidgetDefinition, IFrameWidgetDefinition, ImageWidgetDefinition, LogStreamWidgetDefinition, MonitorSummaryWidgetDefinition, NoteWidgetDefinition, QueryValueWidgetDefinition, SLOWidgetDefinition, ScatterPlotWidgetDefinition, ServiceMapWidgetDefinition, ServiceSummaryWidgetDefinition, TableWidgetDefinition, TimeseriesWidgetDefinition, ToplistWidgetDefinition + * AlertGraphWidgetDefinition, AlertValueWidgetDefinition, ChangeWidgetDefinition, CheckStatusWidgetDefinition, DistributionWidgetDefinition, EventStreamWidgetDefinition, EventTimelineWidgetDefinition, FreeTextWidgetDefinition, GeomapWidgetDefinition, GroupWidgetDefinition, HeatMapWidgetDefinition, HostMapWidgetDefinition, IFrameWidgetDefinition, ImageWidgetDefinition, LogStreamWidgetDefinition, MonitorSummaryWidgetDefinition, NoteWidgetDefinition, QueryValueWidgetDefinition, SLOWidgetDefinition, ScatterPlotWidgetDefinition, ServiceMapWidgetDefinition, ServiceSummaryWidgetDefinition, TableWidgetDefinition, TimeseriesWidgetDefinition, ToplistWidgetDefinition * * It could be an instance of the 'oneOf' schemas. * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). @@ -1017,6 +1052,11 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(GeomapWidgetDefinition.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(GroupWidgetDefinition.class, instance, new HashSet>())) { super.setActualInstance(instance); return; @@ -1097,14 +1137,14 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be AlertGraphWidgetDefinition, AlertValueWidgetDefinition, ChangeWidgetDefinition, CheckStatusWidgetDefinition, DistributionWidgetDefinition, EventStreamWidgetDefinition, EventTimelineWidgetDefinition, FreeTextWidgetDefinition, GroupWidgetDefinition, HeatMapWidgetDefinition, HostMapWidgetDefinition, IFrameWidgetDefinition, ImageWidgetDefinition, LogStreamWidgetDefinition, MonitorSummaryWidgetDefinition, NoteWidgetDefinition, QueryValueWidgetDefinition, SLOWidgetDefinition, ScatterPlotWidgetDefinition, ServiceMapWidgetDefinition, ServiceSummaryWidgetDefinition, TableWidgetDefinition, TimeseriesWidgetDefinition, ToplistWidgetDefinition"); + throw new RuntimeException("Invalid instance type. Must be AlertGraphWidgetDefinition, AlertValueWidgetDefinition, ChangeWidgetDefinition, CheckStatusWidgetDefinition, DistributionWidgetDefinition, EventStreamWidgetDefinition, EventTimelineWidgetDefinition, FreeTextWidgetDefinition, GeomapWidgetDefinition, GroupWidgetDefinition, HeatMapWidgetDefinition, HostMapWidgetDefinition, IFrameWidgetDefinition, ImageWidgetDefinition, LogStreamWidgetDefinition, MonitorSummaryWidgetDefinition, NoteWidgetDefinition, QueryValueWidgetDefinition, SLOWidgetDefinition, ScatterPlotWidgetDefinition, ServiceMapWidgetDefinition, ServiceSummaryWidgetDefinition, TableWidgetDefinition, TimeseriesWidgetDefinition, ToplistWidgetDefinition"); } /** * Get the actual instance, which can be the following: - * AlertGraphWidgetDefinition, AlertValueWidgetDefinition, ChangeWidgetDefinition, CheckStatusWidgetDefinition, DistributionWidgetDefinition, EventStreamWidgetDefinition, EventTimelineWidgetDefinition, FreeTextWidgetDefinition, GroupWidgetDefinition, HeatMapWidgetDefinition, HostMapWidgetDefinition, IFrameWidgetDefinition, ImageWidgetDefinition, LogStreamWidgetDefinition, MonitorSummaryWidgetDefinition, NoteWidgetDefinition, QueryValueWidgetDefinition, SLOWidgetDefinition, ScatterPlotWidgetDefinition, ServiceMapWidgetDefinition, ServiceSummaryWidgetDefinition, TableWidgetDefinition, TimeseriesWidgetDefinition, ToplistWidgetDefinition + * AlertGraphWidgetDefinition, AlertValueWidgetDefinition, ChangeWidgetDefinition, CheckStatusWidgetDefinition, DistributionWidgetDefinition, EventStreamWidgetDefinition, EventTimelineWidgetDefinition, FreeTextWidgetDefinition, GeomapWidgetDefinition, GroupWidgetDefinition, HeatMapWidgetDefinition, HostMapWidgetDefinition, IFrameWidgetDefinition, ImageWidgetDefinition, LogStreamWidgetDefinition, MonitorSummaryWidgetDefinition, NoteWidgetDefinition, QueryValueWidgetDefinition, SLOWidgetDefinition, ScatterPlotWidgetDefinition, ServiceMapWidgetDefinition, ServiceSummaryWidgetDefinition, TableWidgetDefinition, TimeseriesWidgetDefinition, ToplistWidgetDefinition * - * @return The actual instance (AlertGraphWidgetDefinition, AlertValueWidgetDefinition, ChangeWidgetDefinition, CheckStatusWidgetDefinition, DistributionWidgetDefinition, EventStreamWidgetDefinition, EventTimelineWidgetDefinition, FreeTextWidgetDefinition, GroupWidgetDefinition, HeatMapWidgetDefinition, HostMapWidgetDefinition, IFrameWidgetDefinition, ImageWidgetDefinition, LogStreamWidgetDefinition, MonitorSummaryWidgetDefinition, NoteWidgetDefinition, QueryValueWidgetDefinition, SLOWidgetDefinition, ScatterPlotWidgetDefinition, ServiceMapWidgetDefinition, ServiceSummaryWidgetDefinition, TableWidgetDefinition, TimeseriesWidgetDefinition, ToplistWidgetDefinition) + * @return The actual instance (AlertGraphWidgetDefinition, AlertValueWidgetDefinition, ChangeWidgetDefinition, CheckStatusWidgetDefinition, DistributionWidgetDefinition, EventStreamWidgetDefinition, EventTimelineWidgetDefinition, FreeTextWidgetDefinition, GeomapWidgetDefinition, GroupWidgetDefinition, HeatMapWidgetDefinition, HostMapWidgetDefinition, IFrameWidgetDefinition, ImageWidgetDefinition, LogStreamWidgetDefinition, MonitorSummaryWidgetDefinition, NoteWidgetDefinition, QueryValueWidgetDefinition, SLOWidgetDefinition, ScatterPlotWidgetDefinition, ServiceMapWidgetDefinition, ServiceSummaryWidgetDefinition, TableWidgetDefinition, TimeseriesWidgetDefinition, ToplistWidgetDefinition) */ @Override public Object getActualInstance() { @@ -1199,6 +1239,17 @@ public FreeTextWidgetDefinition getFreeTextWidgetDefinition() throws ClassCastEx return (FreeTextWidgetDefinition)super.getActualInstance(); } + /** + * Get the actual instance of `GeomapWidgetDefinition`. If the actual instanct is not `GeomapWidgetDefinition`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `GeomapWidgetDefinition` + * @throws ClassCastException if the instance is not `GeomapWidgetDefinition` + */ + public GeomapWidgetDefinition getGeomapWidgetDefinition() throws ClassCastException { + return (GeomapWidgetDefinition)super.getActualInstance(); + } + /** * Get the actual instance of `GroupWidgetDefinition`. If the actual instanct is not `GroupWidgetDefinition`, * the ClassCastException will be thrown. diff --git a/src/main/java/com/datadog/api/v1/openapi.yaml b/src/main/java/com/datadog/api/v1/openapi.yaml index 016d53f3f94..71a9407c85b 100644 --- a/src/main/java/com/datadog/api/v1/openapi.yaml +++ b/src/main/java/com/datadog/api/v1/openapi.yaml @@ -1747,6 +1747,99 @@ components: items: $ref: '#/components/schemas/GCPAccount' type: array + GeomapWidgetDefinition: + description: This visualization displays a series of values by country on a + world map. + properties: + custom_links: + description: A list of custom links. + items: + $ref: '#/components/schemas/WidgetCustomLink' + type: array + requests: + description: 'Array of one request object to display in the widget. The + request must contain a `group-by` tag whose value is a country ISO code. + + + See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) + + for information about building the `REQUEST_SCHEMA`.' + example: + - rum_query: {} + items: + $ref: '#/components/schemas/GeomapWidgetRequest' + maxItems: 1 + minItems: 1 + type: array + style: + description: The style to apply to the widget. + example: + palette: hostmap_blues + palette_flip: false + properties: + palette: + description: The color palette to apply to the widget. + example: hostmap_blues + type: string + palette_flip: + description: Whether to flip the palette tones. + example: false + type: boolean + required: + - palette + - palette_flip + type: object + time: + $ref: '#/components/schemas/WidgetTime' + title: + description: The title of your widget. + type: string + title_align: + $ref: '#/components/schemas/WidgetTextAlign' + title_size: + description: The size of the title. + type: string + type: + $ref: '#/components/schemas/GeomapWidgetDefinitionType' + view: + description: The view of the world that the map should render. + example: + focus: WORLD + properties: + focus: + description: The 2-letter ISO code of a country to focus the map on. + Or `WORLD`. + example: WORLD + type: string + required: + - focus + type: object + required: + - type + - requests + - style + - view + type: object + GeomapWidgetDefinitionType: + default: geomap + description: Type of the geomap widget. + enum: + - geomap + example: geomap + type: string + x-enum-varnames: + - GEOMAP + GeomapWidgetRequest: + description: An updated geomap widget. + properties: + log_query: + $ref: '#/components/schemas/LogQueryDefinition' + q: + description: The widget metrics query. + type: string + rum_query: + $ref: '#/components/schemas/LogQueryDefinition' + type: object GraphSnapshot: description: Object representing a graph snapshot. properties: @@ -9878,6 +9971,7 @@ components: - $ref: '#/components/schemas/EventStreamWidgetDefinition' - $ref: '#/components/schemas/EventTimelineWidgetDefinition' - $ref: '#/components/schemas/FreeTextWidgetDefinition' + - $ref: '#/components/schemas/GeomapWidgetDefinition' - $ref: '#/components/schemas/GroupWidgetDefinition' - $ref: '#/components/schemas/HeatMapWidgetDefinition' - $ref: '#/components/schemas/HostMapWidgetDefinition'