diff --git a/.apigentools-info b/.apigentools-info index ed16102918a..0e7d403ccfe 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-04 10:38:24.095988", - "spec_repo_commit": "7a63d530" + "regenerated": "2024-10-04 13:47:51.718305", + "spec_repo_commit": "7679754f" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-04 10:38:24.110677", - "spec_repo_commit": "7a63d530" + "regenerated": "2024-10-04 13:47:51.732772", + "spec_repo_commit": "7679754f" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 7bdcbc0abc4..29e93dcdc3b 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -22548,18 +22548,18 @@ components: type: integer x: description: The position of the widget on the x (horizontal) axis. Should - be a non-negative integer. + be a non-negative number. example: 0 - format: int64 + format: double minimum: 0 - type: integer + type: number y: description: The position of the widget on the y (vertical) axis. Should - be a non-negative integer. + be a non-negative number. example: 0 - format: int64 + format: double minimum: 0 - type: integer + type: number required: - x - y diff --git a/examples/v1/dashboards/CreateDashboard_1024858348.java b/examples/v1/dashboards/CreateDashboard_1024858348.java index 24f842833e5..7c9f20f1da7 100644 --- a/examples/v1/dashboards/CreateDashboard_1024858348.java +++ b/examples/v1/dashboards/CreateDashboard_1024858348.java @@ -66,7 +66,7 @@ public static void main(String[] args) { .COUNT))))) .responseFormat( FormulaAndFunctionResponseFormat.SCALAR))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(4L)))) + .layout(new WidgetLayout().width(4L).height(4L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_109450134.java b/examples/v1/dashboards/CreateDashboard_109450134.java index 1ee652940bd..f37d040b49b 100644 --- a/examples/v1/dashboards/CreateDashboard_109450134.java +++ b/examples/v1/dashboards/CreateDashboard_109450134.java @@ -30,7 +30,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(60L).height(21L)) + .layout(new WidgetLayout().width(60L).height(21L)) .definition( new WidgetDefinition( new SLOListWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1094917386.java b/examples/v1/dashboards/CreateDashboard_1094917386.java index c8b1f3172ad..108c1a74da1 100644 --- a/examples/v1/dashboards/CreateDashboard_1094917386.java +++ b/examples/v1/dashboards/CreateDashboard_1094917386.java @@ -28,7 +28,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(50L).height(25L)) + .layout(new WidgetLayout().width(50L).height(25L)) .definition( new WidgetDefinition( new MonitorSummaryWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1177423752.java b/examples/v1/dashboards/CreateDashboard_1177423752.java index 906dc6588c3..f923dd89f47 100644 --- a/examples/v1/dashboards/CreateDashboard_1177423752.java +++ b/examples/v1/dashboards/CreateDashboard_1177423752.java @@ -29,7 +29,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new HeatMapWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1200099236.java b/examples/v1/dashboards/CreateDashboard_1200099236.java index 9803ce8993d..5dab5228d5b 100644 --- a/examples/v1/dashboards/CreateDashboard_1200099236.java +++ b/examples/v1/dashboards/CreateDashboard_1200099236.java @@ -29,7 +29,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(22L)) + .layout(new WidgetLayout().width(47L).height(22L)) .definition( new WidgetDefinition( new HostMapWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1213075383.java b/examples/v1/dashboards/CreateDashboard_1213075383.java index 00febf64887..e17a3ef2087 100644 --- a/examples/v1/dashboards/CreateDashboard_1213075383.java +++ b/examples/v1/dashboards/CreateDashboard_1213075383.java @@ -45,7 +45,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new ToplistWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1413226400.java b/examples/v1/dashboards/CreateDashboard_1413226400.java index 60f8fe07720..9ed72414eea 100644 --- a/examples/v1/dashboards/CreateDashboard_1413226400.java +++ b/examples/v1/dashboards/CreateDashboard_1413226400.java @@ -44,7 +44,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new ToplistWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1423904722.java b/examples/v1/dashboards/CreateDashboard_1423904722.java index 66c24905ae5..0475763ca53 100644 --- a/examples/v1/dashboards/CreateDashboard_1423904722.java +++ b/examples/v1/dashboards/CreateDashboard_1423904722.java @@ -28,7 +28,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(60L).height(21L)) + .layout(new WidgetLayout().width(60L).height(21L)) .definition( new WidgetDefinition( new SLOListWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1442588603.java b/examples/v1/dashboards/CreateDashboard_1442588603.java index 6c73157e5c8..3c912072176 100644 --- a/examples/v1/dashboards/CreateDashboard_1442588603.java +++ b/examples/v1/dashboards/CreateDashboard_1442588603.java @@ -81,7 +81,7 @@ public static void main(String[] args) { DistributionWidgetHistogramRequestType .HISTOGRAM) .style(new WidgetStyle().palette("dog_classic")))))) - .layout(new WidgetLayout().x(8L).y(0L).width(4L).height(2L)))) + .layout(new WidgetLayout().x(8.0).width(4L).height(2L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_145494973.java b/examples/v1/dashboards/CreateDashboard_145494973.java index 5b6c0a618c5..6ad139fe445 100644 --- a/examples/v1/dashboards/CreateDashboard_145494973.java +++ b/examples/v1/dashboards/CreateDashboard_145494973.java @@ -62,7 +62,7 @@ public static void main(String[] args) { .groupBy( Collections.singletonList( "resource_name"))))))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(4L)))) + .layout(new WidgetLayout().width(4L).height(4L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_173805046.java b/examples/v1/dashboards/CreateDashboard_173805046.java index 79abc3b934e..16b5f2a52e6 100644 --- a/examples/v1/dashboards/CreateDashboard_173805046.java +++ b/examples/v1/dashboards/CreateDashboard_173805046.java @@ -30,7 +30,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(60L).height(21L)) + .layout(new WidgetLayout().width(60L).height(21L)) .definition( new WidgetDefinition( new SLOWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1738608750.java b/examples/v1/dashboards/CreateDashboard_1738608750.java index 34c1d75ff64..9f39e14aacc 100644 --- a/examples/v1/dashboards/CreateDashboard_1738608750.java +++ b/examples/v1/dashboards/CreateDashboard_1738608750.java @@ -25,7 +25,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(24L).height(6L)) + .layout(new WidgetLayout().width(24L).height(6L)) .definition( new WidgetDefinition( new FreeTextWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_1754992756.java b/examples/v1/dashboards/CreateDashboard_1754992756.java index 628b6bbe29f..9842db8ab76 100644 --- a/examples/v1/dashboards/CreateDashboard_1754992756.java +++ b/examples/v1/dashboards/CreateDashboard_1754992756.java @@ -47,8 +47,8 @@ public static void main(String[] args) { "baz", "qux", "quuz"))))))) .layout( new WidgetLayout() - .x(1L) - .y(1L) + .x(1.0) + .y(1.0) .width(2L) .height(2L) .isColumnBreak(false)))) diff --git a/examples/v1/dashboards/CreateDashboard_2029850837.java b/examples/v1/dashboards/CreateDashboard_2029850837.java index 2195300a2b7..5c8a37d3857 100644 --- a/examples/v1/dashboards/CreateDashboard_2029850837.java +++ b/examples/v1/dashboards/CreateDashboard_2029850837.java @@ -29,7 +29,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(36L)) + .layout(new WidgetLayout().width(47L).height(36L)) .definition( new WidgetDefinition( new LogStreamWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2034634967.java b/examples/v1/dashboards/CreateDashboard_2034634967.java index 5406ca7bf4b..e4742126b9f 100644 --- a/examples/v1/dashboards/CreateDashboard_2034634967.java +++ b/examples/v1/dashboards/CreateDashboard_2034634967.java @@ -26,7 +26,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new ServiceMapWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2064651578.java b/examples/v1/dashboards/CreateDashboard_2064651578.java index 838cf7412c0..ad383af7efb 100644 --- a/examples/v1/dashboards/CreateDashboard_2064651578.java +++ b/examples/v1/dashboards/CreateDashboard_2064651578.java @@ -81,7 +81,7 @@ public static void main(String[] args) { .orderBy(WidgetOrderBy.CHANGE) .changeType(WidgetChangeType.ABSOLUTE) .orderDir(WidgetSort.DESCENDING))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(4L)))) + .layout(new WidgetLayout().width(4L).height(4L)))) .tags(Collections.singletonList("team:foobar")) .layoutType(DashboardLayoutType.ORDERED); diff --git a/examples/v1/dashboards/CreateDashboard_2104498738.java b/examples/v1/dashboards/CreateDashboard_2104498738.java index 6414d871334..078df36da70 100644 --- a/examples/v1/dashboards/CreateDashboard_2104498738.java +++ b/examples/v1/dashboards/CreateDashboard_2104498738.java @@ -84,7 +84,7 @@ public static void main(String[] args) { .AVG)))) .responseFormat( FormulaAndFunctionResponseFormat.SCALAR))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(2L)))) + .layout(new WidgetLayout().width(4L).height(2L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_2278756614.java b/examples/v1/dashboards/CreateDashboard_2278756614.java index f863bb4ece5..53fe7c0f86d 100644 --- a/examples/v1/dashboards/CreateDashboard_2278756614.java +++ b/examples/v1/dashboards/CreateDashboard_2278756614.java @@ -45,7 +45,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(12L).height(8L)) + .layout(new WidgetLayout().width(12L).height(8L)) .definition( new WidgetDefinition( new SplitGraphWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2308247857.java b/examples/v1/dashboards/CreateDashboard_2308247857.java index 6644d3ab162..83c795f0249 100644 --- a/examples/v1/dashboards/CreateDashboard_2308247857.java +++ b/examples/v1/dashboards/CreateDashboard_2308247857.java @@ -31,7 +31,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new AlertGraphWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2316374332.java b/examples/v1/dashboards/CreateDashboard_2316374332.java index 7428f9ce68d..1c803ac35d7 100644 --- a/examples/v1/dashboards/CreateDashboard_2316374332.java +++ b/examples/v1/dashboards/CreateDashboard_2316374332.java @@ -28,7 +28,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(15L).height(8L)) + .layout(new WidgetLayout().width(15L).height(8L)) .definition( new WidgetDefinition( new AlertValueWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2336428357.java b/examples/v1/dashboards/CreateDashboard_2336428357.java index 8f5bf9bea51..c9893cdfc01 100644 --- a/examples/v1/dashboards/CreateDashboard_2336428357.java +++ b/examples/v1/dashboards/CreateDashboard_2336428357.java @@ -41,7 +41,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(54L).height(32L)) + .layout(new WidgetLayout().width(54L).height(32L)) .definition( new WidgetDefinition( new TableWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2342457693.java b/examples/v1/dashboards/CreateDashboard_2342457693.java index 058889d2afe..68d7233c70b 100644 --- a/examples/v1/dashboards/CreateDashboard_2342457693.java +++ b/examples/v1/dashboards/CreateDashboard_2342457693.java @@ -38,7 +38,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new ScatterPlotWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2349863258.java b/examples/v1/dashboards/CreateDashboard_2349863258.java index 0a659c221f7..185b6b79613 100644 --- a/examples/v1/dashboards/CreateDashboard_2349863258.java +++ b/examples/v1/dashboards/CreateDashboard_2349863258.java @@ -33,7 +33,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new QueryValueWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2490110261.java b/examples/v1/dashboards/CreateDashboard_2490110261.java index c72baf54092..0c4171ea88b 100644 --- a/examples/v1/dashboards/CreateDashboard_2490110261.java +++ b/examples/v1/dashboards/CreateDashboard_2490110261.java @@ -60,7 +60,7 @@ public static void main(String[] args) { .indexes( Collections.singletonList( "*"))))))))) - .layout(new WidgetLayout().x(2L).y(0L).width(4L).height(2L)))); + .layout(new WidgetLayout().x(2.0).width(4L).height(2L)))); try { Dashboard result = apiInstance.createDashboard(body); diff --git a/examples/v1/dashboards/CreateDashboard_252716965.java b/examples/v1/dashboards/CreateDashboard_252716965.java index e8fe07fa2de..0a23d85c38c 100644 --- a/examples/v1/dashboards/CreateDashboard_252716965.java +++ b/examples/v1/dashboards/CreateDashboard_252716965.java @@ -74,7 +74,7 @@ public static void main(String[] args) { DistributionWidgetHistogramRequestType .HISTOGRAM) .style(new WidgetStyle().palette("dog_classic")))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(2L)))) + .layout(new WidgetLayout().width(4L).height(2L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_2563642929.java b/examples/v1/dashboards/CreateDashboard_2563642929.java index 4d2fa5aec01..007bcc72b8b 100644 --- a/examples/v1/dashboards/CreateDashboard_2563642929.java +++ b/examples/v1/dashboards/CreateDashboard_2563642929.java @@ -45,7 +45,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new ToplistWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2607944105.java b/examples/v1/dashboards/CreateDashboard_2607944105.java index 826a7f1bb37..95d15f44ef0 100644 --- a/examples/v1/dashboards/CreateDashboard_2607944105.java +++ b/examples/v1/dashboards/CreateDashboard_2607944105.java @@ -26,7 +26,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(15L).height(8L)) + .layout(new WidgetLayout().width(15L).height(8L)) .definition( new WidgetDefinition( new CheckStatusWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2610827685.java b/examples/v1/dashboards/CreateDashboard_2610827685.java index be95edcfe17..a797e3f7238 100644 --- a/examples/v1/dashboards/CreateDashboard_2610827685.java +++ b/examples/v1/dashboards/CreateDashboard_2610827685.java @@ -28,7 +28,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new RunWorkflowWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2634813877.java b/examples/v1/dashboards/CreateDashboard_2634813877.java index f6052b79353..650655b3f95 100644 --- a/examples/v1/dashboards/CreateDashboard_2634813877.java +++ b/examples/v1/dashboards/CreateDashboard_2634813877.java @@ -26,7 +26,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(38L)) + .layout(new WidgetLayout().width(47L).height(38L)) .definition( new WidgetDefinition( new EventStreamWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2644712913.java b/examples/v1/dashboards/CreateDashboard_2644712913.java index 9695be23e2d..9714805e578 100644 --- a/examples/v1/dashboards/CreateDashboard_2644712913.java +++ b/examples/v1/dashboards/CreateDashboard_2644712913.java @@ -65,7 +65,7 @@ public static void main(String[] args) { FormulaAndFunctionMetricAggregation .PERCENTILE)))))) .type(QueryValueWidgetDefinitionType.QUERY_VALUE))) - .layout(new WidgetLayout().y(0L).x(0L).height(2L).width(2L)))); + .layout(new WidgetLayout().height(2L).width(2L)))); try { Dashboard result = apiInstance.createDashboard(body); diff --git a/examples/v1/dashboards/CreateDashboard_2652180930.java b/examples/v1/dashboards/CreateDashboard_2652180930.java index c9ab1b6e803..24440527a91 100644 --- a/examples/v1/dashboards/CreateDashboard_2652180930.java +++ b/examples/v1/dashboards/CreateDashboard_2652180930.java @@ -30,7 +30,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new TopologyMapWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2705593938.java b/examples/v1/dashboards/CreateDashboard_2705593938.java index a60bd00eacc..8119d9d29a5 100644 --- a/examples/v1/dashboards/CreateDashboard_2705593938.java +++ b/examples/v1/dashboards/CreateDashboard_2705593938.java @@ -62,7 +62,7 @@ public static void main(String[] args) { FormulaAndFunctionMetricAggregation .SUM)))) .style(new WidgetStyle().palette("dog_classic")))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(4L)))) + .layout(new WidgetLayout().width(4L).height(4L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_2917274132.java b/examples/v1/dashboards/CreateDashboard_2917274132.java index 2cc05e7de06..214594e1948 100644 --- a/examples/v1/dashboards/CreateDashboard_2917274132.java +++ b/examples/v1/dashboards/CreateDashboard_2917274132.java @@ -28,7 +28,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(50L).height(25L)) + .layout(new WidgetLayout().width(50L).height(25L)) .definition( new WidgetDefinition( new MonitorSummaryWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_2921337351.java b/examples/v1/dashboards/CreateDashboard_2921337351.java index ce5b11a0353..8fd292b2cd8 100644 --- a/examples/v1/dashboards/CreateDashboard_2921337351.java +++ b/examples/v1/dashboards/CreateDashboard_2921337351.java @@ -28,7 +28,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(72L).height(72L)) + .layout(new WidgetLayout().width(72L).height(72L)) .definition( new WidgetDefinition( new ServiceSummaryWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_3250131584.java b/examples/v1/dashboards/CreateDashboard_3250131584.java index fb3e725d768..c7853cdb433 100644 --- a/examples/v1/dashboards/CreateDashboard_3250131584.java +++ b/examples/v1/dashboards/CreateDashboard_3250131584.java @@ -25,7 +25,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(9L)) + .layout(new WidgetLayout().width(47L).height(9L)) .definition( new WidgetDefinition( new EventTimelineWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_3513586382.java b/examples/v1/dashboards/CreateDashboard_3513586382.java index ebabb62615a..8e0181b8d22 100644 --- a/examples/v1/dashboards/CreateDashboard_3513586382.java +++ b/examples/v1/dashboards/CreateDashboard_3513586382.java @@ -80,7 +80,7 @@ public static void main(String[] args) { .palette("hostmap_blues") .paletteFlip(false)) .view(new GeomapWidgetDefinitionView().focus("WORLD")))) - .layout(new WidgetLayout().x(0L).y(0L).width(12L).height(6L)))) + .layout(new WidgetLayout().width(12L).height(6L)))) .layoutType(DashboardLayoutType.ORDERED) .reflowType(DashboardReflowType.FIXED); diff --git a/examples/v1/dashboards/CreateDashboard_3562282606.java b/examples/v1/dashboards/CreateDashboard_3562282606.java index 0b8363a9099..6a5a6b4d0c1 100644 --- a/examples/v1/dashboards/CreateDashboard_3562282606.java +++ b/examples/v1/dashboards/CreateDashboard_3562282606.java @@ -83,7 +83,7 @@ public static void main(String[] args) { .changeType(WidgetChangeType.ABSOLUTE) .increaseGood(true) .orderDir(WidgetSort.ASCENDING))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(2L)))) + .layout(new WidgetLayout().width(4L).height(2L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_3777304439.java b/examples/v1/dashboards/CreateDashboard_3777304439.java index 13f498691c4..10d86c8cf25 100644 --- a/examples/v1/dashboards/CreateDashboard_3777304439.java +++ b/examples/v1/dashboards/CreateDashboard_3777304439.java @@ -33,7 +33,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(15L)) + .layout(new WidgetLayout().width(47L).height(15L)) .definition( new WidgetDefinition( new HeatMapWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_3882428227.java b/examples/v1/dashboards/CreateDashboard_3882428227.java index 5471a4f804a..adc75f8c535 100644 --- a/examples/v1/dashboards/CreateDashboard_3882428227.java +++ b/examples/v1/dashboards/CreateDashboard_3882428227.java @@ -80,7 +80,7 @@ public static void main(String[] args) { .requestType( DistributionWidgetHistogramRequestType .HISTOGRAM))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(2L)))) + .layout(new WidgetLayout().width(4L).height(2L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_417992286.java b/examples/v1/dashboards/CreateDashboard_417992286.java index 9dd90305be8..4cb8e324d78 100644 --- a/examples/v1/dashboards/CreateDashboard_417992286.java +++ b/examples/v1/dashboards/CreateDashboard_417992286.java @@ -24,7 +24,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(18L).height(24L)) + .layout(new WidgetLayout().width(18L).height(24L)) .definition( new WidgetDefinition( new NoteWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_578885732.java b/examples/v1/dashboards/CreateDashboard_578885732.java index e7d09c34aa9..f16bfb19764 100644 --- a/examples/v1/dashboards/CreateDashboard_578885732.java +++ b/examples/v1/dashboards/CreateDashboard_578885732.java @@ -81,7 +81,7 @@ public static void main(String[] args) { .orderBy(WidgetOrderBy.CHANGE) .changeType(WidgetChangeType.ABSOLUTE) .orderDir(WidgetSort.DESCENDING))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(4L)))) + .layout(new WidgetLayout().width(4L).height(4L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_651038379.java b/examples/v1/dashboards/CreateDashboard_651038379.java index c9f9a5b322f..bcf4999fbb6 100644 --- a/examples/v1/dashboards/CreateDashboard_651038379.java +++ b/examples/v1/dashboards/CreateDashboard_651038379.java @@ -25,7 +25,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(12L).height(12L)) + .layout(new WidgetLayout().width(12L).height(12L)) .definition( new WidgetDefinition( new ImageWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_765140092.java b/examples/v1/dashboards/CreateDashboard_765140092.java index 8dd8f6df5b0..f18395bd37b 100644 --- a/examples/v1/dashboards/CreateDashboard_765140092.java +++ b/examples/v1/dashboards/CreateDashboard_765140092.java @@ -72,7 +72,7 @@ public static void main(String[] args) { new TimeseriesBackground() .type(TimeseriesBackgroundType.AREA) .yaxis(new WidgetAxis().includeZero(true))))) - .layout(new WidgetLayout().y(0L).x(0L).height(2L).width(2L)))); + .layout(new WidgetLayout().height(2L).width(2L)))); try { Dashboard result = apiInstance.createDashboard(body); diff --git a/examples/v1/dashboards/CreateDashboard_794302680.java b/examples/v1/dashboards/CreateDashboard_794302680.java index 50a3a46eecf..815fbcb78e0 100644 --- a/examples/v1/dashboards/CreateDashboard_794302680.java +++ b/examples/v1/dashboards/CreateDashboard_794302680.java @@ -213,7 +213,7 @@ public static void main(String[] args) { .CUSTOM_TEXT) .customFgColor("#632ca6")))))) .hasSearchBar(TableWidgetHasSearchBar.NEVER))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(4L)))) + .layout(new WidgetLayout().width(4L).height(4L)))) .layoutType(DashboardLayoutType.FREE) .isReadOnly(false); diff --git a/examples/v1/dashboards/CreateDashboard_798168180.java b/examples/v1/dashboards/CreateDashboard_798168180.java index 39723219d91..8ac9945705a 100644 --- a/examples/v1/dashboards/CreateDashboard_798168180.java +++ b/examples/v1/dashboards/CreateDashboard_798168180.java @@ -66,7 +66,7 @@ public static void main(String[] args) { .primaryTagName("datacenter") .operationName( "cassandra.query")))))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(4L)))) + .layout(new WidgetLayout().width(4L).height(4L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_803346562.java b/examples/v1/dashboards/CreateDashboard_803346562.java index e9b70930090..2bcfa554db6 100644 --- a/examples/v1/dashboards/CreateDashboard_803346562.java +++ b/examples/v1/dashboards/CreateDashboard_803346562.java @@ -44,7 +44,7 @@ public static void main(String[] args) { .name("cassandra.query") .primaryTag("datacenter:dc1") .rowType(ApmStatsQueryRowType.SERVICE)))))) - .layout(new WidgetLayout().x(0L).y(0L).width(4L).height(4L)))) + .layout(new WidgetLayout().width(4L).height(4L)))) .layoutType(DashboardLayoutType.ORDERED); try { diff --git a/examples/v1/dashboards/CreateDashboard_913313564.java b/examples/v1/dashboards/CreateDashboard_913313564.java index 469a69080a4..e1111ee6463 100644 --- a/examples/v1/dashboards/CreateDashboard_913313564.java +++ b/examples/v1/dashboards/CreateDashboard_913313564.java @@ -24,7 +24,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(12L).height(12L)) + .layout(new WidgetLayout().width(12L).height(12L)) .definition( new WidgetDefinition( new IFrameWidgetDefinition() diff --git a/examples/v1/dashboards/CreateDashboard_915214113.java b/examples/v1/dashboards/CreateDashboard_915214113.java index ef5a4f54428..a354c00e93a 100644 --- a/examples/v1/dashboards/CreateDashboard_915214113.java +++ b/examples/v1/dashboards/CreateDashboard_915214113.java @@ -46,7 +46,7 @@ public static void main(String[] args) { .widgets( Collections.singletonList( new Widget() - .layout(new WidgetLayout().x(0L).y(0L).width(47L).height(30L)) + .layout(new WidgetLayout().width(47L).height(30L)) .definition( new WidgetDefinition( new GeomapWidgetDefinition() diff --git a/src/main/java/com/datadog/api/client/v1/model/WidgetLayout.java b/src/main/java/com/datadog/api/client/v1/model/WidgetLayout.java index b453c25709c..014b0a34909 100644 --- a/src/main/java/com/datadog/api/client/v1/model/WidgetLayout.java +++ b/src/main/java/com/datadog/api/client/v1/model/WidgetLayout.java @@ -42,10 +42,10 @@ public class WidgetLayout { private Long width; public static final String JSON_PROPERTY_X = "x"; - private Long x; + private Double x; public static final String JSON_PROPERTY_Y = "y"; - private Long y; + private Double y; public WidgetLayout() {} @@ -53,8 +53,8 @@ public WidgetLayout() {} public WidgetLayout( @JsonProperty(required = true, value = JSON_PROPERTY_HEIGHT) Long height, @JsonProperty(required = true, value = JSON_PROPERTY_WIDTH) Long width, - @JsonProperty(required = true, value = JSON_PROPERTY_X) Long x, - @JsonProperty(required = true, value = JSON_PROPERTY_Y) Long y) { + @JsonProperty(required = true, value = JSON_PROPERTY_X) Double x, + @JsonProperty(required = true, value = JSON_PROPERTY_Y) Double y) { this.height = height; this.width = width; this.x = x; @@ -124,45 +124,45 @@ public void setWidth(Long width) { this.width = width; } - public WidgetLayout x(Long x) { + public WidgetLayout x(Double x) { this.x = x; return this; } /** - * The position of the widget on the x (horizontal) axis. Should be a non-negative integer. + * The position of the widget on the x (horizontal) axis. Should be a non-negative number. * minimum: 0 * * @return x */ @JsonProperty(JSON_PROPERTY_X) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getX() { + public Double getX() { return x; } - public void setX(Long x) { + public void setX(Double x) { this.x = x; } - public WidgetLayout y(Long y) { + public WidgetLayout y(Double y) { this.y = y; return this; } /** - * The position of the widget on the y (vertical) axis. Should be a non-negative integer. minimum: + * The position of the widget on the y (vertical) axis. Should be a non-negative number. minimum: * 0 * * @return y */ @JsonProperty(JSON_PROPERTY_Y) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getY() { + public Double getY() { return y; } - public void setY(Long y) { + public void setY(Double y) { this.y = y; }