diff --git a/generated/kbapi/Makefile b/generated/kbapi/Makefile index 0df105b8c..18daafb7c 100644 --- a/generated/kbapi/Makefile +++ b/generated/kbapi/Makefile @@ -2,7 +2,7 @@ SHELL := /bin/bash ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) -github_ref ?= 07655a0a20808401ae4531541ed85885b2f61fea +github_ref ?= b4553b66b64a9def31c960b781b21ef342de9022 oas_url := https://raw.githubusercontent.com/elastic/kibana/$(github_ref)/oas_docs/output/kibana.yaml .PHONY: all diff --git a/generated/kbapi/kibana.gen.go b/generated/kbapi/kibana.gen.go index 4f49cb0d8..599f2bdc3 100644 --- a/generated/kbapi/kibana.gen.go +++ b/generated/kbapi/kibana.gen.go @@ -3513,10 +3513,11 @@ const ( // Defines values for GetMaintenanceWindowFindParamsStatus. const ( - Archived GetMaintenanceWindowFindParamsStatus = "archived" - Finished GetMaintenanceWindowFindParamsStatus = "finished" - Running GetMaintenanceWindowFindParamsStatus = "running" - Upcoming GetMaintenanceWindowFindParamsStatus = "upcoming" + GetMaintenanceWindowFindParamsStatusArchived GetMaintenanceWindowFindParamsStatus = "archived" + GetMaintenanceWindowFindParamsStatusDisabled GetMaintenanceWindowFindParamsStatus = "disabled" + GetMaintenanceWindowFindParamsStatusFinished GetMaintenanceWindowFindParamsStatus = "finished" + GetMaintenanceWindowFindParamsStatusRunning GetMaintenanceWindowFindParamsStatus = "running" + GetMaintenanceWindowFindParamsStatusUpcoming GetMaintenanceWindowFindParamsStatus = "upcoming" ) // Defines values for ConfigureRiskEngineSavedObjectJSONBodyFiltersEntityTypes. @@ -3796,8 +3797,8 @@ const ( // Defines values for PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatus. const ( - PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatusDisabled PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatus = "disabled" - PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatusEnabled PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatus = "enabled" + Disabled PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatus = "disabled" + Enabled PutStreamsNameIngestJSONBodyIngest0WiredRoutingStatus = "enabled" ) // Defines values for PutStreamsNameIngestJSONBodyIngest1ProcessingSteps00Action. @@ -3874,6 +3875,11 @@ const ( PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue1Minus1 PutStreamsNameIngestJSONBodyIngest1SettingsIndexRefreshIntervalValue1 = -1 ) +// Defines values for PostStreamsNameSignificantEventsGenerateJSONBodyFeatureType. +const ( + System PostStreamsNameSignificantEventsGenerateJSONBodyFeatureType = "system" +) + // Defines values for GetSyntheticMonitorsParamsMonitorTypes0. const ( GetSyntheticMonitorsParamsMonitorTypes0Browser GetSyntheticMonitorsParamsMonitorTypes0 = "browser" @@ -31164,7 +31170,7 @@ type GetMaintenanceWindowFindParams struct { // CreatedBy The user who created the maintenance window. CreatedBy *string `form:"created_by,omitempty" json:"created_by,omitempty"` - // Status The status of the maintenance window. One of "running", "upcoming", "finished" or "archived". + // Status The status of the maintenance window. One of "running", "upcoming", "finished", "archived", or "disabled". Status *[]GetMaintenanceWindowFindParamsStatus `form:"status,omitempty" json:"status,omitempty"` // Page The page number to return. @@ -32199,8 +32205,9 @@ type PutStreamsNameJSONBody00 struct { Rules []string `json:"rules"` Stream struct { Ingest struct { - Lifecycle PutStreamsNameJSONBody_0_0_Stream_Ingest_Lifecycle `json:"lifecycle"` - Processing struct { + FailureStore PutStreamsNameJSONBody_0_0_Stream_Ingest_FailureStore `json:"failure_store"` + Lifecycle PutStreamsNameJSONBody_0_0_Stream_Ingest_Lifecycle `json:"lifecycle"` + Processing struct { Steps []PutStreamsNameJSONBody_0_0_Stream_Ingest_Processing_Steps_Item `json:"steps"` } `json:"processing"` Settings struct { @@ -32462,6 +32469,42 @@ type PutStreamsNameJSONBody_0_0_Queries_Feature_Filter struct { union json.RawMessage } +// PutStreamsNameJSONBody00StreamIngestFailureStore0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00StreamIngestFailureStore0 struct { + Inherit map[string]interface{} `json:"inherit"` +} + +// PutStreamsNameJSONBody00StreamIngestFailureStore1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00StreamIngestFailureStore1 struct { + Disabled map[string]interface{} `json:"disabled"` +} + +// PutStreamsNameJSONBody00StreamIngestFailureStore2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00StreamIngestFailureStore2 struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody00StreamIngestFailureStore20 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00StreamIngestFailureStore20 struct { + Lifecycle struct { + Enabled struct { + DataRetention *string `json:"data_retention,omitempty"` + } `json:"enabled"` + } `json:"lifecycle"` +} + +// PutStreamsNameJSONBody00StreamIngestFailureStore21 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody00StreamIngestFailureStore21 struct { + Lifecycle struct { + Disabled map[string]interface{} `json:"disabled"` + } `json:"lifecycle"` +} + +// PutStreamsNameJSONBody_0_0_Stream_Ingest_FailureStore defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_0_Stream_Ingest_FailureStore struct { + union json.RawMessage +} + // PutStreamsNameJSONBody00StreamIngestLifecycle0 defines parameters for PutStreamsName. type PutStreamsNameJSONBody00StreamIngestLifecycle0 struct { Dsl struct { @@ -35437,8 +35480,9 @@ type PutStreamsNameJSONBody01 struct { Rules []string `json:"rules"` Stream struct { Ingest struct { - Lifecycle PutStreamsNameJSONBody_0_1_Stream_Ingest_Lifecycle `json:"lifecycle"` - Processing struct { + FailureStore PutStreamsNameJSONBody_0_1_Stream_Ingest_FailureStore `json:"failure_store"` + Lifecycle PutStreamsNameJSONBody_0_1_Stream_Ingest_Lifecycle `json:"lifecycle"` + Processing struct { Steps []PutStreamsNameJSONBody_0_1_Stream_Ingest_Processing_Steps_Item `json:"steps"` } `json:"processing"` Settings struct { @@ -35700,6 +35744,42 @@ type PutStreamsNameJSONBody_0_1_Queries_Feature_Filter struct { union json.RawMessage } +// PutStreamsNameJSONBody01StreamIngestFailureStore0 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01StreamIngestFailureStore0 struct { + Inherit map[string]interface{} `json:"inherit"` +} + +// PutStreamsNameJSONBody01StreamIngestFailureStore1 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01StreamIngestFailureStore1 struct { + Disabled map[string]interface{} `json:"disabled"` +} + +// PutStreamsNameJSONBody01StreamIngestFailureStore2 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01StreamIngestFailureStore2 struct { + union json.RawMessage +} + +// PutStreamsNameJSONBody01StreamIngestFailureStore20 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01StreamIngestFailureStore20 struct { + Lifecycle struct { + Enabled struct { + DataRetention *string `json:"data_retention,omitempty"` + } `json:"enabled"` + } `json:"lifecycle"` +} + +// PutStreamsNameJSONBody01StreamIngestFailureStore21 defines parameters for PutStreamsName. +type PutStreamsNameJSONBody01StreamIngestFailureStore21 struct { + Lifecycle struct { + Disabled map[string]interface{} `json:"disabled"` + } `json:"lifecycle"` +} + +// PutStreamsNameJSONBody_0_1_Stream_Ingest_FailureStore defines parameters for PutStreamsName. +type PutStreamsNameJSONBody_0_1_Stream_Ingest_FailureStore struct { + union json.RawMessage +} + // PutStreamsNameJSONBody01StreamIngestLifecycle0 defines parameters for PutStreamsName. type PutStreamsNameJSONBody01StreamIngestLifecycle0 struct { Dsl struct { @@ -39225,8 +39305,9 @@ type PutStreamsNameIngestJSONBody struct { // PutStreamsNameIngestJSONBodyIngest0 defines parameters for PutStreamsNameIngest. type PutStreamsNameIngestJSONBodyIngest0 struct { - Lifecycle PutStreamsNameIngestJSONBody_Ingest_0_Lifecycle `json:"lifecycle"` - Processing struct { + FailureStore PutStreamsNameIngestJSONBody_Ingest_0_FailureStore `json:"failure_store"` + Lifecycle PutStreamsNameIngestJSONBody_Ingest_0_Lifecycle `json:"lifecycle"` + Processing struct { Steps []PutStreamsNameIngestJSONBody_Ingest_0_Processing_Steps_Item `json:"steps"` } `json:"processing"` Settings struct { @@ -39250,6 +39331,42 @@ type PutStreamsNameIngestJSONBodyIngest0 struct { } `json:"wired"` } +// PutStreamsNameIngestJSONBodyIngest0FailureStore0 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest0FailureStore0 struct { + Inherit map[string]interface{} `json:"inherit"` +} + +// PutStreamsNameIngestJSONBodyIngest0FailureStore1 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest0FailureStore1 struct { + Disabled map[string]interface{} `json:"disabled"` +} + +// PutStreamsNameIngestJSONBodyIngest0FailureStore2 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest0FailureStore2 struct { + union json.RawMessage +} + +// PutStreamsNameIngestJSONBodyIngest0FailureStore20 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest0FailureStore20 struct { + Lifecycle struct { + Enabled struct { + DataRetention *string `json:"data_retention,omitempty"` + } `json:"enabled"` + } `json:"lifecycle"` +} + +// PutStreamsNameIngestJSONBodyIngest0FailureStore21 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest0FailureStore21 struct { + Lifecycle struct { + Disabled map[string]interface{} `json:"disabled"` + } `json:"lifecycle"` +} + +// PutStreamsNameIngestJSONBody_Ingest_0_FailureStore defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBody_Ingest_0_FailureStore struct { + union json.RawMessage +} + // PutStreamsNameIngestJSONBodyIngest0Lifecycle0 defines parameters for PutStreamsNameIngest. type PutStreamsNameIngestJSONBodyIngest0Lifecycle0 struct { Dsl struct { @@ -42513,8 +42630,9 @@ type PutStreamsNameIngestJSONBodyIngest1 struct { Classic struct { FieldOverrides *map[string]map[string]PutStreamsNameIngestJSONBody_Ingest_1_Classic_FieldOverrides_AdditionalProperties `json:"field_overrides,omitempty"` } `json:"classic"` - Lifecycle PutStreamsNameIngestJSONBody_Ingest_1_Lifecycle `json:"lifecycle"` - Processing struct { + FailureStore PutStreamsNameIngestJSONBody_Ingest_1_FailureStore `json:"failure_store"` + Lifecycle PutStreamsNameIngestJSONBody_Ingest_1_Lifecycle `json:"lifecycle"` + Processing struct { Steps []PutStreamsNameIngestJSONBody_Ingest_1_Processing_Steps_Item `json:"steps"` } `json:"processing"` Settings struct { @@ -42584,6 +42702,42 @@ type PutStreamsNameIngestJSONBody_Ingest_1_Classic_FieldOverrides_AdditionalProp union json.RawMessage } +// PutStreamsNameIngestJSONBodyIngest1FailureStore0 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest1FailureStore0 struct { + Inherit map[string]interface{} `json:"inherit"` +} + +// PutStreamsNameIngestJSONBodyIngest1FailureStore1 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest1FailureStore1 struct { + Disabled map[string]interface{} `json:"disabled"` +} + +// PutStreamsNameIngestJSONBodyIngest1FailureStore2 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest1FailureStore2 struct { + union json.RawMessage +} + +// PutStreamsNameIngestJSONBodyIngest1FailureStore20 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest1FailureStore20 struct { + Lifecycle struct { + Enabled struct { + DataRetention *string `json:"data_retention,omitempty"` + } `json:"enabled"` + } `json:"lifecycle"` +} + +// PutStreamsNameIngestJSONBodyIngest1FailureStore21 defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBodyIngest1FailureStore21 struct { + Lifecycle struct { + Disabled map[string]interface{} `json:"disabled"` + } `json:"lifecycle"` +} + +// PutStreamsNameIngestJSONBody_Ingest_1_FailureStore defines parameters for PutStreamsNameIngest. +type PutStreamsNameIngestJSONBody_Ingest_1_FailureStore struct { + union json.RawMessage +} + // PutStreamsNameIngestJSONBodyIngest1Lifecycle0 defines parameters for PutStreamsNameIngest. type PutStreamsNameIngestJSONBodyIngest1Lifecycle0 struct { Dsl struct { @@ -46279,6 +46433,7 @@ type PostStreamsNameSignificantEventsGenerateJSONBody struct { Description string `json:"description"` Filter PostStreamsNameSignificantEventsGenerateJSONBody_Feature_Filter `json:"filter"` Name string `json:"name"` + Type PostStreamsNameSignificantEventsGenerateJSONBodyFeatureType `json:"type"` } `json:"feature,omitempty"` } @@ -46533,6 +46688,9 @@ type PostStreamsNameSignificantEventsGenerateJSONBody_Feature_Filter struct { union json.RawMessage } +// PostStreamsNameSignificantEventsGenerateJSONBodyFeatureType defines parameters for PostStreamsNameSignificantEventsGenerate. +type PostStreamsNameSignificantEventsGenerateJSONBodyFeatureType string + // PostStreamsNameSignificantEventsPreviewJSONBody defines parameters for PostStreamsNameSignificantEventsPreview. type PostStreamsNameSignificantEventsPreviewJSONBody struct { Query struct { @@ -60562,7 +60720,7 @@ func (t SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) AsSLO // FromSLOsTimesliceMetricBasicMetricWithField overwrites any union data inside the SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item as the provided SLOsTimesliceMetricBasicMetricWithField func (t *SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) FromSLOsTimesliceMetricBasicMetricWithField(v SLOsTimesliceMetricBasicMetricWithField) error { - v.Aggregation = "min" + v.Aggregation = "avg" b, err := json.Marshal(v) t.union = b return err @@ -60570,7 +60728,7 @@ func (t *SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) From // MergeSLOsTimesliceMetricBasicMetricWithField performs a merge with any union data inside the SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item, using the provided SLOsTimesliceMetricBasicMetricWithField func (t *SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) MergeSLOsTimesliceMetricBasicMetricWithField(v SLOsTimesliceMetricBasicMetricWithField) error { - v.Aggregation = "min" + v.Aggregation = "avg" b, err := json.Marshal(v) if err != nil { return err @@ -60651,10 +60809,10 @@ func (t SLOsIndicatorPropertiesTimesliceMetric_Params_Metric_Metrics_Item) Value return nil, err } switch discriminator { + case "avg": + return t.AsSLOsTimesliceMetricBasicMetricWithField() case "doc_count": return t.AsSLOsTimesliceMetricDocCountMetric() - case "min": - return t.AsSLOsTimesliceMetricBasicMetricWithField() case "percentile": return t.AsSLOsTimesliceMetricPercentileMetric() default: