From c5f887e138f6b630ce06bba0cb1f7b5e10a22b9f Mon Sep 17 00:00:00 2001 From: Deon Taljaard Date: Mon, 30 Mar 2026 15:10:59 +0200 Subject: [PATCH 1/2] STAC-24282: support log-based otel mappings --- .../stackstate_api/.openapi-generator/FILES | 142 +- generated/stackstate_api/README.md | 80 +- generated/stackstate_api/api/openapi.yaml | 1182 +++++++++++------ .../api_component_presentation.go | 233 +++- .../stackstate_api/docs/BaseComponentField.md | 98 ++ .../stackstate_api/docs/ComponentField.md | 485 +++++++ .../docs/ComponentHighlightProjection.md | 432 ++++++ .../docs/ComponentLinkDisplay.md | 51 - .../stackstate_api/docs/ComponentLinkField.md | 161 +++ .../docs/ComponentLinkFieldAllOf.md | 93 ++ .../docs/ComponentLinkProjection.md | 22 +- .../docs/ComponentOverviewProjection.md | 406 ++++++ .../docs/ComponentPresentationApi.md | 79 +- .../docs/ComponentPresentationFilter.md | 129 ++ .../ComponentPresentationFilterDefinition.md | 72 + .../stackstate_api/docs/ComponentTypeAbout.md | 51 - .../stackstate_api/docs/ComponentTypeField.md | 114 -- .../docs/ComponentTypeFieldDisplay.md | 77 -- .../stackstate_api/docs/ComponentTypeLabel.md | 77 -- .../docs/ComponentTypeSource.md | 51 - .../docs/ComponentTypeValueExtractor.md | 161 --- .../stackstate_api/docs/CompositeSource.md | 72 - .../stackstate_api/docs/DurationDisplay.md | 51 - .../stackstate_api/docs/DurationField.md | 176 +++ .../stackstate_api/docs/DurationFieldAllOf.md | 108 ++ .../stackstate_api/docs/DurationProjection.md | 48 +- generated/stackstate_api/docs/ErrorField.md | 140 ++ .../{PromQLDisplay.md => ErrorFieldAllOf.md} | 41 +- .../docs/{TagDisplay.md => FilterName.md} | 59 +- .../stackstate_api/docs/FullComponent.md | 31 +- .../stackstate_api/docs/HealthBadgeDisplay.md | 51 - .../docs/HealthCircleDisplay.md | 51 - generated/stackstate_api/docs/HealthField.md | 140 ++ .../stackstate_api/docs/HealthFieldAllOf.md | 72 + generated/stackstate_api/docs/HealthSource.md | 51 - .../stackstate_api/docs/IdentifiersSource.md | 51 - .../docs/LastUpdatedTimestampSource.md | 51 - ...lights.md => LegacyComponentHighlights.md} | 98 +- generated/stackstate_api/docs/LinkField.md | 161 +++ .../stackstate_api/docs/LinkFieldAllOf.md | 93 ++ generated/stackstate_api/docs/MapField.md | 161 +++ .../stackstate_api/docs/MapFieldAllOf.md | 93 ++ .../stackstate_api/docs/MapProjection.md | 98 ++ .../stackstate_api/docs/MetricBindingId.md | 51 + generated/stackstate_api/docs/MetricField.md | 192 +++ .../stackstate_api/docs/MetricFieldAllOf.md | 124 ++ ...artMetaDisplay.md => MetricMetaDisplay.md} | 88 +- ...ChartProjection.md => MetricProjection.md} | 50 +- generated/stackstate_api/docs/NameSource.md | 51 - generated/stackstate_api/docs/NumericField.md | 192 +++ .../stackstate_api/docs/NumericFieldAllOf.md | 124 ++ .../docs/OtelComponentMappingFieldMapping.md | 52 + generated/stackstate_api/docs/OtelInputLog.md | 82 ++ .../stackstate_api/docs/OtelInputScope.md | 26 + .../docs/OverviewColumnDefinition.md | 8 +- .../docs/OverviewColumnMetaDisplay.md | 26 + .../docs/OverviewColumnProjection.md | 380 ------ .../docs/PresentationDefinition.md | 52 + .../stackstate_api/docs/PresentationFilter.md | 114 ++ .../docs/PresentationFilterName.md | 72 + .../docs/PresentationFiltersResponse.md | 72 + .../docs/PresentationHighlight.md | 72 + .../docs/PresentationHighlightField.md | 145 ++ .../docs/PresentationTagFilter.md | 114 ++ .../stackstate_api/docs/PropertySource.md | 98 -- generated/stackstate_api/docs/RatioDisplay.md | 51 - generated/stackstate_api/docs/RatioField.md | 187 +++ .../stackstate_api/docs/RatioFieldAllOf.md | 119 ++ .../stackstate_api/docs/RatioProjection.md | 119 ++ .../stackstate_api/docs/ReadyStatusDisplay.md | 51 - .../docs/ReadyStatusProjection.md | 119 -- .../docs/{TagSource.md => TagFilter.md} | 40 +- generated/stackstate_api/docs/TagsSource.md | 51 - generated/stackstate_api/docs/TextDisplay.md | 51 - generated/stackstate_api/docs/TextField.md | 161 +++ .../{ConstantSource.md => TextFieldAllOf.md} | 47 +- .../stackstate_api/docs/TextProjection.md | 26 + generated/stackstate_api/docs/ViewTimeLink.md | 51 - .../model_base_component_field.go | 172 +++ .../stackstate_api/model_component_field.go | 364 +++++ .../model_component_highlight_projection.go | 336 +++++ .../model_component_link_display.go | 107 -- .../model_component_link_field.go | 259 ++++ .../model_component_link_field_all_of.go | 165 +++ .../model_component_link_projection.go | 28 +- ...=> model_component_overview_projection.go} | 142 +- .../model_component_presentation_filter.go | 217 +++ ...omponent_presentation_filter_definition.go | 112 ++ .../model_component_type_about.go | 107 -- .../model_component_type_field.go | 194 --- .../model_component_type_field_display.go | 364 ----- .../model_component_type_label.go | 143 -- .../model_component_type_source.go | 107 -- .../model_component_type_value_extractor.go | 364 ----- .../stackstate_api/model_duration_field.go | 277 ++++ .../model_duration_field_all_of.go | 183 +++ .../model_duration_projection.go | 64 +- generated/stackstate_api/model_error_field.go | 230 ++++ ..._source.go => model_error_field_all_of.go} | 70 +- generated/stackstate_api/model_filter_name.go | 136 ++ .../stackstate_api/model_full_component.go | 55 +- .../model_health_badge_display.go | 107 -- .../model_health_circle_display.go | 107 -- .../stackstate_api/model_health_field.go | 230 ++++ ...source.go => model_health_field_all_of.go} | 72 +- .../stackstate_api/model_health_source.go | 107 -- .../model_identifiers_source.go | 107 -- .../model_last_updated_timestamp_source.go | 107 -- ...o => model_legacy_component_highlights.go} | 138 +- generated/stackstate_api/model_link_field.go | 259 ++++ .../stackstate_api/model_link_field_all_of.go | 165 +++ generated/stackstate_api/model_map_field.go | 261 ++++ .../stackstate_api/model_map_field_all_of.go | 167 +++ .../stackstate_api/model_map_projection.go | 177 +++ ..._display.go => model_metric_binding_id.go} | 62 +- .../stackstate_api/model_metric_field.go | 303 +++++ .../model_metric_field_all_of.go | 209 +++ ...isplay.go => model_metric_meta_display.go} | 132 +- ...ojection.go => model_metric_projection.go} | 74 +- generated/stackstate_api/model_name_source.go | 107 -- .../stackstate_api/model_numeric_field.go | 302 +++++ .../model_numeric_field_all_of.go | 208 +++ ...el_otel_component_mapping_field_mapping.go | 74 ++ .../stackstate_api/model_otel_input_log.go | 151 +++ .../stackstate_api/model_otel_input_scope.go | 36 + .../stackstate_api/model_otel_input_signal.go | 2 +- .../model_overview_column_definition.go | 16 +- .../model_overview_column_meta_display.go | 30 +- .../model_presentation_definition.go | 78 +- .../model_presentation_filter.go | 112 ++ .../model_presentation_filter_name.go | 136 ++ .../model_presentation_filters_response.go | 138 ++ .../model_presentation_highlight.go | 136 ++ .../model_presentation_highlight_field.go | 237 ++++ .../model_presentation_tag_filter.go | 195 +++ .../stackstate_api/model_promql_display.go | 107 -- .../stackstate_api/model_property_source.go | 172 --- .../stackstate_api/model_ratio_display.go | 107 -- generated/stackstate_api/model_ratio_field.go | 295 ++++ .../model_ratio_field_all_of.go | 201 +++ .../stackstate_api/model_ratio_projection.go | 204 +++ .../model_ready_status_display.go | 107 -- .../model_ready_status_projection.go | 204 --- generated/stackstate_api/model_tag_display.go | 143 -- ...odel_tag_source.go => model_tag_filter.go} | 71 +- generated/stackstate_api/model_tags_source.go | 107 -- .../stackstate_api/model_text_display.go | 107 -- generated/stackstate_api/model_text_field.go | 261 ++++ .../stackstate_api/model_text_field_all_of.go | 167 +++ .../stackstate_api/model_text_projection.go | 41 + .../stackstate_api/model_view_time_link.go | 107 -- stackstate_openapi/openapi_version | 2 +- 152 files changed, 14375 insertions(+), 6317 deletions(-) create mode 100644 generated/stackstate_api/docs/BaseComponentField.md create mode 100644 generated/stackstate_api/docs/ComponentField.md create mode 100644 generated/stackstate_api/docs/ComponentHighlightProjection.md delete mode 100644 generated/stackstate_api/docs/ComponentLinkDisplay.md create mode 100644 generated/stackstate_api/docs/ComponentLinkField.md create mode 100644 generated/stackstate_api/docs/ComponentLinkFieldAllOf.md create mode 100644 generated/stackstate_api/docs/ComponentOverviewProjection.md create mode 100644 generated/stackstate_api/docs/ComponentPresentationFilter.md create mode 100644 generated/stackstate_api/docs/ComponentPresentationFilterDefinition.md delete mode 100644 generated/stackstate_api/docs/ComponentTypeAbout.md delete mode 100644 generated/stackstate_api/docs/ComponentTypeField.md delete mode 100644 generated/stackstate_api/docs/ComponentTypeFieldDisplay.md delete mode 100644 generated/stackstate_api/docs/ComponentTypeLabel.md delete mode 100644 generated/stackstate_api/docs/ComponentTypeSource.md delete mode 100644 generated/stackstate_api/docs/ComponentTypeValueExtractor.md delete mode 100644 generated/stackstate_api/docs/CompositeSource.md delete mode 100644 generated/stackstate_api/docs/DurationDisplay.md create mode 100644 generated/stackstate_api/docs/DurationField.md create mode 100644 generated/stackstate_api/docs/DurationFieldAllOf.md create mode 100644 generated/stackstate_api/docs/ErrorField.md rename generated/stackstate_api/docs/{PromQLDisplay.md => ErrorFieldAllOf.md} (50%) rename generated/stackstate_api/docs/{TagDisplay.md => FilterName.md} (51%) delete mode 100644 generated/stackstate_api/docs/HealthBadgeDisplay.md delete mode 100644 generated/stackstate_api/docs/HealthCircleDisplay.md create mode 100644 generated/stackstate_api/docs/HealthField.md create mode 100644 generated/stackstate_api/docs/HealthFieldAllOf.md delete mode 100644 generated/stackstate_api/docs/HealthSource.md delete mode 100644 generated/stackstate_api/docs/IdentifiersSource.md delete mode 100644 generated/stackstate_api/docs/LastUpdatedTimestampSource.md rename generated/stackstate_api/docs/{ComponentTypeHighlights.md => LegacyComponentHighlights.md} (51%) create mode 100644 generated/stackstate_api/docs/LinkField.md create mode 100644 generated/stackstate_api/docs/LinkFieldAllOf.md create mode 100644 generated/stackstate_api/docs/MapField.md create mode 100644 generated/stackstate_api/docs/MapFieldAllOf.md create mode 100644 generated/stackstate_api/docs/MapProjection.md create mode 100644 generated/stackstate_api/docs/MetricBindingId.md create mode 100644 generated/stackstate_api/docs/MetricField.md create mode 100644 generated/stackstate_api/docs/MetricFieldAllOf.md rename generated/stackstate_api/docs/{MetricChartMetaDisplay.md => MetricMetaDisplay.md} (58%) rename generated/stackstate_api/docs/{MetricChartProjection.md => MetricProjection.md} (65%) delete mode 100644 generated/stackstate_api/docs/NameSource.md create mode 100644 generated/stackstate_api/docs/NumericField.md create mode 100644 generated/stackstate_api/docs/NumericFieldAllOf.md create mode 100644 generated/stackstate_api/docs/OtelInputLog.md delete mode 100644 generated/stackstate_api/docs/OverviewColumnProjection.md create mode 100644 generated/stackstate_api/docs/PresentationFilter.md create mode 100644 generated/stackstate_api/docs/PresentationFilterName.md create mode 100644 generated/stackstate_api/docs/PresentationFiltersResponse.md create mode 100644 generated/stackstate_api/docs/PresentationHighlight.md create mode 100644 generated/stackstate_api/docs/PresentationHighlightField.md create mode 100644 generated/stackstate_api/docs/PresentationTagFilter.md delete mode 100644 generated/stackstate_api/docs/PropertySource.md delete mode 100644 generated/stackstate_api/docs/RatioDisplay.md create mode 100644 generated/stackstate_api/docs/RatioField.md create mode 100644 generated/stackstate_api/docs/RatioFieldAllOf.md create mode 100644 generated/stackstate_api/docs/RatioProjection.md delete mode 100644 generated/stackstate_api/docs/ReadyStatusDisplay.md delete mode 100644 generated/stackstate_api/docs/ReadyStatusProjection.md rename generated/stackstate_api/docs/{TagSource.md => TagFilter.md} (54%) delete mode 100644 generated/stackstate_api/docs/TagsSource.md delete mode 100644 generated/stackstate_api/docs/TextDisplay.md create mode 100644 generated/stackstate_api/docs/TextField.md rename generated/stackstate_api/docs/{ConstantSource.md => TextFieldAllOf.md} (54%) delete mode 100644 generated/stackstate_api/docs/ViewTimeLink.md create mode 100644 generated/stackstate_api/model_base_component_field.go create mode 100644 generated/stackstate_api/model_component_field.go create mode 100644 generated/stackstate_api/model_component_highlight_projection.go delete mode 100644 generated/stackstate_api/model_component_link_display.go create mode 100644 generated/stackstate_api/model_component_link_field.go create mode 100644 generated/stackstate_api/model_component_link_field_all_of.go rename generated/stackstate_api/{model_overview_column_projection.go => model_component_overview_projection.go} (50%) create mode 100644 generated/stackstate_api/model_component_presentation_filter.go create mode 100644 generated/stackstate_api/model_component_presentation_filter_definition.go delete mode 100644 generated/stackstate_api/model_component_type_about.go delete mode 100644 generated/stackstate_api/model_component_type_field.go delete mode 100644 generated/stackstate_api/model_component_type_field_display.go delete mode 100644 generated/stackstate_api/model_component_type_label.go delete mode 100644 generated/stackstate_api/model_component_type_source.go delete mode 100644 generated/stackstate_api/model_component_type_value_extractor.go create mode 100644 generated/stackstate_api/model_duration_field.go create mode 100644 generated/stackstate_api/model_duration_field_all_of.go create mode 100644 generated/stackstate_api/model_error_field.go rename generated/stackstate_api/{model_constant_source.go => model_error_field_all_of.go} (57%) create mode 100644 generated/stackstate_api/model_filter_name.go delete mode 100644 generated/stackstate_api/model_health_badge_display.go delete mode 100644 generated/stackstate_api/model_health_circle_display.go create mode 100644 generated/stackstate_api/model_health_field.go rename generated/stackstate_api/{model_composite_source.go => model_health_field_all_of.go} (52%) delete mode 100644 generated/stackstate_api/model_health_source.go delete mode 100644 generated/stackstate_api/model_identifiers_source.go delete mode 100644 generated/stackstate_api/model_last_updated_timestamp_source.go rename generated/stackstate_api/{model_component_type_highlights.go => model_legacy_component_highlights.go} (55%) create mode 100644 generated/stackstate_api/model_link_field.go create mode 100644 generated/stackstate_api/model_link_field_all_of.go create mode 100644 generated/stackstate_api/model_map_field.go create mode 100644 generated/stackstate_api/model_map_field_all_of.go create mode 100644 generated/stackstate_api/model_map_projection.go rename generated/stackstate_api/{model_duration_display.go => model_metric_binding_id.go} (53%) create mode 100644 generated/stackstate_api/model_metric_field.go create mode 100644 generated/stackstate_api/model_metric_field_all_of.go rename generated/stackstate_api/{model_metric_chart_meta_display.go => model_metric_meta_display.go} (59%) rename generated/stackstate_api/{model_metric_chart_projection.go => model_metric_projection.go} (68%) delete mode 100644 generated/stackstate_api/model_name_source.go create mode 100644 generated/stackstate_api/model_numeric_field.go create mode 100644 generated/stackstate_api/model_numeric_field_all_of.go create mode 100644 generated/stackstate_api/model_otel_input_log.go create mode 100644 generated/stackstate_api/model_presentation_filter.go create mode 100644 generated/stackstate_api/model_presentation_filter_name.go create mode 100644 generated/stackstate_api/model_presentation_filters_response.go create mode 100644 generated/stackstate_api/model_presentation_highlight.go create mode 100644 generated/stackstate_api/model_presentation_highlight_field.go create mode 100644 generated/stackstate_api/model_presentation_tag_filter.go delete mode 100644 generated/stackstate_api/model_promql_display.go delete mode 100644 generated/stackstate_api/model_property_source.go delete mode 100644 generated/stackstate_api/model_ratio_display.go create mode 100644 generated/stackstate_api/model_ratio_field.go create mode 100644 generated/stackstate_api/model_ratio_field_all_of.go create mode 100644 generated/stackstate_api/model_ratio_projection.go delete mode 100644 generated/stackstate_api/model_ready_status_display.go delete mode 100644 generated/stackstate_api/model_ready_status_projection.go delete mode 100644 generated/stackstate_api/model_tag_display.go rename generated/stackstate_api/{model_tag_source.go => model_tag_filter.go} (57%) delete mode 100644 generated/stackstate_api/model_tags_source.go delete mode 100644 generated/stackstate_api/model_text_display.go create mode 100644 generated/stackstate_api/model_text_field.go create mode 100644 generated/stackstate_api/model_text_field_all_of.go delete mode 100644 generated/stackstate_api/model_view_time_link.go diff --git a/generated/stackstate_api/.openapi-generator/FILES b/generated/stackstate_api/.openapi-generator/FILES index 80f3f607..0864c91b 100644 --- a/generated/stackstate_api/.openapi-generator/FILES +++ b/generated/stackstate_api/.openapi-generator/FILES @@ -72,6 +72,7 @@ docs/ArgumentStructTypeVal.md docs/ArgumentTimeWindowVal.md docs/ArgumentTopologyPromQLMetricVal.md docs/ArgumentTopologyQueryVal.md +docs/BaseComponentField.md docs/BaseLayoutHint.md docs/BaseMonitorError.md docs/BaseNotificationChannel.md @@ -91,36 +92,33 @@ docs/ComponentApi.md docs/ComponentCheckState.md docs/ComponentCheckStates.md docs/ComponentData.md +docs/ComponentField.md docs/ComponentHealthChange.md docs/ComponentHealthHistory.md docs/ComponentHighlightLocation.md docs/ComponentHighlightMetricSection.md docs/ComponentHighlightMetricSectionAllOf.md docs/ComponentHighlightMetrics.md +docs/ComponentHighlightProjection.md docs/ComponentLinkCell.md -docs/ComponentLinkDisplay.md +docs/ComponentLinkField.md +docs/ComponentLinkFieldAllOf.md docs/ComponentLinkMetaDisplay.md docs/ComponentLinkProjection.md +docs/ComponentOverviewProjection.md docs/ComponentPresentation.md docs/ComponentPresentationApi.md docs/ComponentPresentationApiError.md +docs/ComponentPresentationFilter.md +docs/ComponentPresentationFilterDefinition.md docs/ComponentPresentationQueryBinding.md docs/ComponentPresentationRank.md docs/ComponentQuery.md docs/ComponentSummaryLocation.md -docs/ComponentTypeAbout.md docs/ComponentTypeEvents.md docs/ComponentTypeExternalComponent.md -docs/ComponentTypeField.md -docs/ComponentTypeFieldDisplay.md -docs/ComponentTypeHighlights.md -docs/ComponentTypeLabel.md docs/ComponentTypeRelatedResources.md -docs/ComponentTypeSource.md -docs/ComponentTypeValueExtractor.md docs/ComponentViewArguments.md -docs/CompositeSource.md -docs/ConstantSource.md docs/ContainerImageProjection.md docs/CreateSubject.md docs/DashboardAuthorizationError.md @@ -144,7 +142,8 @@ docs/DataUnavailable.md docs/DependencyDirection.md docs/DummyApi.md docs/DurationCell.md -docs/DurationDisplay.md +docs/DurationField.md +docs/DurationFieldAllOf.md docs/DurationHistogram.md docs/DurationHistogramBucket.md docs/DurationMetaDisplay.md @@ -155,6 +154,8 @@ docs/EmailChannelWriteSchema.md docs/EmailNotificationChannel.md docs/EmailNotificationChannelAllOf.md docs/EmailNotificationStatus.md +docs/ErrorField.md +docs/ErrorFieldAllOf.md docs/EventApi.md docs/EventBucket.md docs/EventCategory.md @@ -190,6 +191,7 @@ docs/ExternalMonitorDefId.md docs/ExternalRelation.md docs/FAQ.md docs/FailingHealthStateValue.md +docs/FilterName.md docs/FullComponent.md docs/FullRelation.md docs/FullStackPack.md @@ -213,12 +215,11 @@ docs/GetKubernetesLogsInvalidTimeRange.md docs/GetKubernetesLogsResult.md docs/GetTopologyTimeout.md docs/GrantPermission.md -docs/HealthBadgeDisplay.md docs/HealthCell.md -docs/HealthCircleDisplay.md +docs/HealthField.md +docs/HealthFieldAllOf.md docs/HealthMetaDisplay.md docs/HealthProjection.md -docs/HealthSource.md docs/HealthStateValue.md docs/HealthStreamError.md docs/HealthStreamMetrics.md @@ -233,7 +234,6 @@ docs/HealthSubStreamStatus.md docs/HealthSubStreamTransactionalIncrements.md docs/HealthSynchronizationApi.md docs/IdentifierType.md -docs/IdentifiersSource.md docs/ImportApi.md docs/InstantNanoPrecision.md docs/InvalidMonitorIdentifierError.md @@ -245,14 +245,16 @@ docs/KubernetesLogHistogramBucket.md docs/KubernetesLogRecord.md docs/KubernetesLogSeverityHistogramBucket.md docs/KubernetesLogsApi.md -docs/LastUpdatedTimestampSource.md docs/LayoutApi.md docs/LayoutApiError.md docs/LayoutHint.md docs/LayoutList.md +docs/LegacyComponentHighlights.md docs/LicensedSubscription.md docs/LimitOutOfRange.md docs/LinkCell.md +docs/LinkField.md +docs/LinkFieldAllOf.md docs/LinkMetaDisplay.md docs/LockedResponse.md docs/LogLevel.md @@ -261,20 +263,26 @@ docs/LogsDirection.md docs/MainMenuApi.md docs/MainMenuGroup.md docs/MainMenuViewItem.md +docs/MapField.md +docs/MapFieldAllOf.md +docs/MapProjection.md docs/Message.md docs/MessageLevel.md docs/Messages.md docs/MetricApi.md +docs/MetricBindingId.md docs/MetricBindingLayout.md docs/MetricBucketValue.md docs/MetricCell.md -docs/MetricChartMetaDisplay.md -docs/MetricChartProjection.md +docs/MetricField.md +docs/MetricFieldAllOf.md +docs/MetricMetaDisplay.md docs/MetricPerspectiveLocation.md docs/MetricPerspectiveSection.md docs/MetricPerspectiveSectionAllOf.md docs/MetricPerspectiveTab.md docs/MetricPerspectiveTabAllOf.md +docs/MetricProjection.md docs/MetricValuation.md docs/Monitor.md docs/MonitorApi.md @@ -325,7 +333,6 @@ docs/MonitorStatus.md docs/MonitorStatusValue.md docs/MonitorValidationError.md docs/MultipleMatchesCheckState.md -docs/NameSource.md docs/NewLicense.md docs/NewServiceTokenRequest.md docs/Node.md @@ -352,6 +359,8 @@ docs/NotificationConfigurationWriteSchema.md docs/NotificationConfigurationsApi.md docs/NotifyOnOptions.md docs/NumericCell.md +docs/NumericField.md +docs/NumericFieldAllOf.md docs/NumericMetaDisplay.md docs/NumericProjection.md docs/OpsgenieChannelRefId.md @@ -368,6 +377,7 @@ docs/OtelComponentMappingOutput.md docs/OtelInput.md docs/OtelInputConditionAction.md docs/OtelInputDatapoint.md +docs/OtelInputLog.md docs/OtelInputMetric.md docs/OtelInputResource.md docs/OtelInputScope.md @@ -389,7 +399,6 @@ docs/OverviewColumnDefinition.md docs/OverviewColumnFilter.md docs/OverviewColumnMeta.md docs/OverviewColumnMetaDisplay.md -docs/OverviewColumnProjection.md docs/OverviewDataUnavailable.md docs/OverviewErrorResponse.md docs/OverviewFetchTimeout.md @@ -440,9 +449,15 @@ docs/PersesVariableDisplaySpec.md docs/PersesVariableSort.md docs/PersesVariableTypes.md docs/PresentationDefinition.md +docs/PresentationFilter.md +docs/PresentationFilterName.md +docs/PresentationFiltersResponse.md +docs/PresentationHighlight.md +docs/PresentationHighlightField.md docs/PresentationMainMenu.md docs/PresentationName.md docs/PresentationOverview.md +docs/PresentationTagFilter.md docs/ProblemApi.md docs/ProblemNotFound.md docs/PromBatchEnvelope.md @@ -469,18 +484,16 @@ docs/PromScalar.md docs/PromSeriesEnvelope.md docs/PromVector.md docs/PromVectorResult.md -docs/PromqlDisplay.md -docs/PropertySource.md docs/ProvisionResponse.md docs/QueryMetadata.md docs/QueryParsingFailure.md docs/QuerySnapshotResult.md docs/QueryViewArguments.md -docs/RatioDisplay.md +docs/RatioField.md +docs/RatioFieldAllOf.md +docs/RatioProjection.md docs/ReadyStatusCell.md -docs/ReadyStatusDisplay.md docs/ReadyStatusMetaDisplay.md -docs/ReadyStatusProjection.md docs/RelationApi.md docs/RelationData.md docs/ReleaseStatus.md @@ -545,15 +558,14 @@ docs/SystemNotification.md docs/SystemNotificationSeverity.md docs/SystemNotifications.md docs/SystemNotificationsApi.md -docs/TagDisplay.md -docs/TagSource.md -docs/TagsSource.md +docs/TagFilter.md docs/TeamsChannelRefId.md docs/TeamsChannelWriteSchema.md docs/TeamsNotificationChannel.md docs/TeamsNotificationChannelAllOf.md docs/TextCell.md -docs/TextDisplay.md +docs/TextField.md +docs/TextFieldAllOf.md docs/TextMetaDisplay.md docs/TextProjection.md docs/TimelineApi.md @@ -609,7 +621,6 @@ docs/UserProfileSaveError.md docs/UserSessionApi.md docs/ViewCheckState.md docs/ViewSnapshotRequest.md -docs/ViewTimeLink.md docs/WebhookChannelRefId.md docs/WebhookChannelWriteSchema.md docs/WebhookNotificationChannel.md @@ -641,6 +652,7 @@ model_argument_struct_type_val.go model_argument_time_window_val.go model_argument_topology_prom_ql_metric_val.go model_argument_topology_query_val.go +model_base_component_field.go model_base_layout_hint.go model_base_monitor_error.go model_base_notification_channel.go @@ -659,35 +671,32 @@ model_component_action.go model_component_check_state.go model_component_check_states.go model_component_data.go +model_component_field.go model_component_health_change.go model_component_health_history.go model_component_highlight_location.go model_component_highlight_metric_section.go model_component_highlight_metric_section_all_of.go model_component_highlight_metrics.go +model_component_highlight_projection.go model_component_link_cell.go -model_component_link_display.go +model_component_link_field.go +model_component_link_field_all_of.go model_component_link_meta_display.go model_component_link_projection.go +model_component_overview_projection.go model_component_presentation.go model_component_presentation_api_error.go +model_component_presentation_filter.go +model_component_presentation_filter_definition.go model_component_presentation_query_binding.go model_component_presentation_rank.go model_component_query.go model_component_summary_location.go -model_component_type_about.go model_component_type_events.go model_component_type_external_component.go -model_component_type_field.go -model_component_type_field_display.go -model_component_type_highlights.go -model_component_type_label.go model_component_type_related_resources.go -model_component_type_source.go -model_component_type_value_extractor.go model_component_view_arguments.go -model_composite_source.go -model_constant_source.go model_container_image_projection.go model_create_subject.go model_dashboard_authorization_error.go @@ -709,7 +718,8 @@ model_dashboard_write_schema.go model_data_unavailable.go model_dependency_direction.go model_duration_cell.go -model_duration_display.go +model_duration_field.go +model_duration_field_all_of.go model_duration_histogram.go model_duration_histogram_bucket.go model_duration_meta_display.go @@ -720,6 +730,8 @@ model_email_channel_write_schema.go model_email_notification_channel.go model_email_notification_channel_all_of.go model_email_notification_status.go +model_error_field.go +model_error_field_all_of.go model_event_bucket.go model_event_category.go model_event_category_bucket.go @@ -753,6 +765,7 @@ model_external_monitor_def_id.go model_external_relation.go model_failing_health_state_value.go model_faq.go +model_filter_name.go model_full_component.go model_full_relation.go model_full_stack_pack.go @@ -776,12 +789,11 @@ model_get_kubernetes_logs_invalid_time_range.go model_get_kubernetes_logs_result.go model_get_topology_timeout.go model_grant_permission.go -model_health_badge_display.go model_health_cell.go -model_health_circle_display.go +model_health_field.go +model_health_field_all_of.go model_health_meta_display.go model_health_projection.go -model_health_source.go model_health_state_value.go model_health_stream_error.go model_health_stream_metrics.go @@ -795,7 +807,6 @@ model_health_sub_stream_snapshot.go model_health_sub_stream_status.go model_health_sub_stream_transactional_increments.go model_identifier_type.go -model_identifiers_source.go model_instant_nano_precision.go model_invalid_monitor_identifier_error.go model_invalid_notification_configuration_identifier.go @@ -805,13 +816,15 @@ model_kubernetes_log_highlight.go model_kubernetes_log_histogram_bucket.go model_kubernetes_log_record.go model_kubernetes_log_severity_histogram_bucket.go -model_last_updated_timestamp_source.go model_layout_api_error.go model_layout_hint.go model_layout_list.go +model_legacy_component_highlights.go model_licensed_subscription.go model_limit_out_of_range.go model_link_cell.go +model_link_field.go +model_link_field_all_of.go model_link_meta_display.go model_locked_response.go model_log_level.go @@ -819,19 +832,25 @@ model_log_severity.go model_logs_direction.go model_main_menu_group.go model_main_menu_view_item.go +model_map_field.go +model_map_field_all_of.go +model_map_projection.go model_message.go model_message_level.go model_messages.go +model_metric_binding_id.go model_metric_binding_layout.go model_metric_bucket_value.go model_metric_cell.go -model_metric_chart_meta_display.go -model_metric_chart_projection.go +model_metric_field.go +model_metric_field_all_of.go +model_metric_meta_display.go model_metric_perspective_location.go model_metric_perspective_section.go model_metric_perspective_section_all_of.go model_metric_perspective_tab.go model_metric_perspective_tab_all_of.go +model_metric_projection.go model_metric_valuation.go model_monitor.go model_monitor_api_error.go @@ -880,7 +899,6 @@ model_monitor_status.go model_monitor_status_value.go model_monitor_validation_error.go model_multiple_matches_check_state.go -model_name_source.go model_new_license.go model_new_service_token_request.go model_node.go @@ -904,6 +922,8 @@ model_notification_configuration_status_value.go model_notification_configuration_write_schema.go model_notify_on_options.go model_numeric_cell.go +model_numeric_field.go +model_numeric_field_all_of.go model_numeric_meta_display.go model_numeric_projection.go model_opsgenie_channel_ref_id.go @@ -920,6 +940,7 @@ model_otel_component_mapping_output.go model_otel_input.go model_otel_input_condition_action.go model_otel_input_datapoint.go +model_otel_input_log.go model_otel_input_metric.go model_otel_input_resource.go model_otel_input_scope.go @@ -939,7 +960,6 @@ model_overview_column_definition.go model_overview_column_filter.go model_overview_column_meta.go model_overview_column_meta_display.go -model_overview_column_projection.go model_overview_data_unavailable.go model_overview_error_response.go model_overview_fetch_timeout.go @@ -989,9 +1009,15 @@ model_perses_variable_display_spec.go model_perses_variable_sort.go model_perses_variable_types.go model_presentation_definition.go +model_presentation_filter.go +model_presentation_filter_name.go +model_presentation_filters_response.go +model_presentation_highlight.go +model_presentation_highlight_field.go model_presentation_main_menu.go model_presentation_name.go model_presentation_overview.go +model_presentation_tag_filter.go model_problem_not_found.go model_prom_batch_envelope.go model_prom_batch_error.go @@ -1017,18 +1043,16 @@ model_prom_scalar.go model_prom_series_envelope.go model_prom_vector.go model_prom_vector_result.go -model_promql_display.go -model_property_source.go model_provision_response.go model_query_metadata.go model_query_parsing_failure.go model_query_snapshot_result.go model_query_view_arguments.go -model_ratio_display.go +model_ratio_field.go +model_ratio_field_all_of.go +model_ratio_projection.go model_ready_status_cell.go -model_ready_status_display.go model_ready_status_meta_display.go -model_ready_status_projection.go model_relation_data.go model_release_status.go model_request_error.go @@ -1084,15 +1108,14 @@ model_suggestions.go model_system_notification.go model_system_notification_severity.go model_system_notifications.go -model_tag_display.go -model_tag_source.go -model_tags_source.go +model_tag_filter.go model_teams_channel_ref_id.go model_teams_channel_write_schema.go model_teams_notification_channel.go model_teams_notification_channel_all_of.go model_text_cell.go -model_text_display.go +model_text_field.go +model_text_field_all_of.go model_text_meta_display.go model_text_projection.go model_timeline_summary.go @@ -1141,7 +1164,6 @@ model_user_profile.go model_user_profile_save_error.go model_view_check_state.go model_view_snapshot_request.go -model_view_time_link.go model_webhook_channel_ref_id.go model_webhook_channel_write_schema.go model_webhook_notification_channel.go diff --git a/generated/stackstate_api/README.md b/generated/stackstate_api/README.md index 946bbb4f..8a92c9b9 100644 --- a/generated/stackstate_api/README.md +++ b/generated/stackstate_api/README.md @@ -95,10 +95,11 @@ Class | Method | HTTP request | Description *ComponentApi* | [**GetComponentMetricBinding**](docs/ComponentApi.md#getcomponentmetricbinding) | **Get** /components/{componentIdOrUrn}/bindmetric | Get a bound metric binding to a component *ComponentApi* | [**GetComponentMetricsWithData**](docs/ComponentApi.md#getcomponentmetricswithdata) | **Get** /components/{componentIdOrUrn}/boundMetricsWithData | Bound metric bindings that have data for a component *ComponentApi* | [**GetFullComponent**](docs/ComponentApi.md#getfullcomponent) | **Get** /components/{componentIdOrUrn} | Get full component -*ComponentPresentationApi* | [**DeleteComponentPresentationByIdentifier**](docs/ComponentPresentationApi.md#deletecomponentpresentationbyidentifier) | **Delete** /component-presentations/{identifier} | Delete a component presentation by Identifier -*ComponentPresentationApi* | [**GetComponentPresentationByIdentifier**](docs/ComponentPresentationApi.md#getcomponentpresentationbyidentifier) | **Get** /component-presentations/{identifier} | Get a component presentation by Identifier -*ComponentPresentationApi* | [**GetComponentPresentations**](docs/ComponentPresentationApi.md#getcomponentpresentations) | **Get** /component-presentations | List all component presentations -*ComponentPresentationApi* | [**UpsertComponentPresentations**](docs/ComponentPresentationApi.md#upsertcomponentpresentations) | **Put** /component-presentations | Upserts (creates/updates) a component presentation +*ComponentPresentationApi* | [**DeleteComponentPresentationByIdentifier**](docs/ComponentPresentationApi.md#deletecomponentpresentationbyidentifier) | **Delete** /presentations/{identifier} | Delete a component presentation by Identifier +*ComponentPresentationApi* | [**GetComponentPresentationByIdentifier**](docs/ComponentPresentationApi.md#getcomponentpresentationbyidentifier) | **Get** /presentations/{identifier} | Get a component presentation by Identifier +*ComponentPresentationApi* | [**GetComponentPresentations**](docs/ComponentPresentationApi.md#getcomponentpresentations) | **Get** /presentations | List all component presentations +*ComponentPresentationApi* | [**GetPresentationFilters**](docs/ComponentPresentationApi.md#getpresentationfilters) | **Get** /presentations/{presentationOrViewUrn}/filters | Get resolved filters for a presentation +*ComponentPresentationApi* | [**UpsertComponentPresentations**](docs/ComponentPresentationApi.md#upsertcomponentpresentations) | **Put** /presentations | Upserts (creates/updates) a component presentation *DashboardsApi* | [**CloneDashboard**](docs/DashboardsApi.md#clonedashboard) | **Post** /dashboards/{dashboardIdOrUrn}/clone | Clone a dashboard *DashboardsApi* | [**CreateDashboard**](docs/DashboardsApi.md#createdashboard) | **Post** /dashboards | Create a new dashboard *DashboardsApi* | [**DeleteDashboard**](docs/DashboardsApi.md#deletedashboard) | **Delete** /dashboards/{dashboardIdOrUrn} | Delete a dashboard @@ -286,6 +287,7 @@ Class | Method | HTTP request | Description - [ArgumentTimeWindowVal](docs/ArgumentTimeWindowVal.md) - [ArgumentTopologyPromQLMetricVal](docs/ArgumentTopologyPromQLMetricVal.md) - [ArgumentTopologyQueryVal](docs/ArgumentTopologyQueryVal.md) + - [BaseComponentField](docs/BaseComponentField.md) - [BaseLayoutHint](docs/BaseLayoutHint.md) - [BaseMonitorError](docs/BaseMonitorError.md) - [BaseNotificationChannel](docs/BaseNotificationChannel.md) @@ -304,35 +306,32 @@ Class | Method | HTTP request | Description - [ComponentCheckState](docs/ComponentCheckState.md) - [ComponentCheckStates](docs/ComponentCheckStates.md) - [ComponentData](docs/ComponentData.md) + - [ComponentField](docs/ComponentField.md) - [ComponentHealthChange](docs/ComponentHealthChange.md) - [ComponentHealthHistory](docs/ComponentHealthHistory.md) - [ComponentHighlightLocation](docs/ComponentHighlightLocation.md) - [ComponentHighlightMetricSection](docs/ComponentHighlightMetricSection.md) - [ComponentHighlightMetricSectionAllOf](docs/ComponentHighlightMetricSectionAllOf.md) - [ComponentHighlightMetrics](docs/ComponentHighlightMetrics.md) + - [ComponentHighlightProjection](docs/ComponentHighlightProjection.md) - [ComponentLinkCell](docs/ComponentLinkCell.md) - - [ComponentLinkDisplay](docs/ComponentLinkDisplay.md) + - [ComponentLinkField](docs/ComponentLinkField.md) + - [ComponentLinkFieldAllOf](docs/ComponentLinkFieldAllOf.md) - [ComponentLinkMetaDisplay](docs/ComponentLinkMetaDisplay.md) - [ComponentLinkProjection](docs/ComponentLinkProjection.md) + - [ComponentOverviewProjection](docs/ComponentOverviewProjection.md) - [ComponentPresentation](docs/ComponentPresentation.md) - [ComponentPresentationApiError](docs/ComponentPresentationApiError.md) + - [ComponentPresentationFilter](docs/ComponentPresentationFilter.md) + - [ComponentPresentationFilterDefinition](docs/ComponentPresentationFilterDefinition.md) - [ComponentPresentationQueryBinding](docs/ComponentPresentationQueryBinding.md) - [ComponentPresentationRank](docs/ComponentPresentationRank.md) - [ComponentQuery](docs/ComponentQuery.md) - [ComponentSummaryLocation](docs/ComponentSummaryLocation.md) - - [ComponentTypeAbout](docs/ComponentTypeAbout.md) - [ComponentTypeEvents](docs/ComponentTypeEvents.md) - [ComponentTypeExternalComponent](docs/ComponentTypeExternalComponent.md) - - [ComponentTypeField](docs/ComponentTypeField.md) - - [ComponentTypeFieldDisplay](docs/ComponentTypeFieldDisplay.md) - - [ComponentTypeHighlights](docs/ComponentTypeHighlights.md) - - [ComponentTypeLabel](docs/ComponentTypeLabel.md) - [ComponentTypeRelatedResources](docs/ComponentTypeRelatedResources.md) - - [ComponentTypeSource](docs/ComponentTypeSource.md) - - [ComponentTypeValueExtractor](docs/ComponentTypeValueExtractor.md) - [ComponentViewArguments](docs/ComponentViewArguments.md) - - [CompositeSource](docs/CompositeSource.md) - - [ConstantSource](docs/ConstantSource.md) - [ContainerImageProjection](docs/ContainerImageProjection.md) - [CreateSubject](docs/CreateSubject.md) - [DashboardAuthorizationError](docs/DashboardAuthorizationError.md) @@ -354,7 +353,8 @@ Class | Method | HTTP request | Description - [DataUnavailable](docs/DataUnavailable.md) - [DependencyDirection](docs/DependencyDirection.md) - [DurationCell](docs/DurationCell.md) - - [DurationDisplay](docs/DurationDisplay.md) + - [DurationField](docs/DurationField.md) + - [DurationFieldAllOf](docs/DurationFieldAllOf.md) - [DurationHistogram](docs/DurationHistogram.md) - [DurationHistogramBucket](docs/DurationHistogramBucket.md) - [DurationMetaDisplay](docs/DurationMetaDisplay.md) @@ -365,6 +365,8 @@ Class | Method | HTTP request | Description - [EmailNotificationChannel](docs/EmailNotificationChannel.md) - [EmailNotificationChannelAllOf](docs/EmailNotificationChannelAllOf.md) - [EmailNotificationStatus](docs/EmailNotificationStatus.md) + - [ErrorField](docs/ErrorField.md) + - [ErrorFieldAllOf](docs/ErrorFieldAllOf.md) - [EventBucket](docs/EventBucket.md) - [EventCategory](docs/EventCategory.md) - [EventCategoryBucket](docs/EventCategoryBucket.md) @@ -398,6 +400,7 @@ Class | Method | HTTP request | Description - [ExternalRelation](docs/ExternalRelation.md) - [FAQ](docs/FAQ.md) - [FailingHealthStateValue](docs/FailingHealthStateValue.md) + - [FilterName](docs/FilterName.md) - [FullComponent](docs/FullComponent.md) - [FullRelation](docs/FullRelation.md) - [FullStackPack](docs/FullStackPack.md) @@ -421,12 +424,11 @@ Class | Method | HTTP request | Description - [GetKubernetesLogsResult](docs/GetKubernetesLogsResult.md) - [GetTopologyTimeout](docs/GetTopologyTimeout.md) - [GrantPermission](docs/GrantPermission.md) - - [HealthBadgeDisplay](docs/HealthBadgeDisplay.md) - [HealthCell](docs/HealthCell.md) - - [HealthCircleDisplay](docs/HealthCircleDisplay.md) + - [HealthField](docs/HealthField.md) + - [HealthFieldAllOf](docs/HealthFieldAllOf.md) - [HealthMetaDisplay](docs/HealthMetaDisplay.md) - [HealthProjection](docs/HealthProjection.md) - - [HealthSource](docs/HealthSource.md) - [HealthStateValue](docs/HealthStateValue.md) - [HealthStreamError](docs/HealthStreamError.md) - [HealthStreamMetrics](docs/HealthStreamMetrics.md) @@ -440,7 +442,6 @@ Class | Method | HTTP request | Description - [HealthSubStreamStatus](docs/HealthSubStreamStatus.md) - [HealthSubStreamTransactionalIncrements](docs/HealthSubStreamTransactionalIncrements.md) - [IdentifierType](docs/IdentifierType.md) - - [IdentifiersSource](docs/IdentifiersSource.md) - [InstantNanoPrecision](docs/InstantNanoPrecision.md) - [InvalidMonitorIdentifierError](docs/InvalidMonitorIdentifierError.md) - [InvalidNotificationConfigurationIdentifier](docs/InvalidNotificationConfigurationIdentifier.md) @@ -450,13 +451,15 @@ Class | Method | HTTP request | Description - [KubernetesLogHistogramBucket](docs/KubernetesLogHistogramBucket.md) - [KubernetesLogRecord](docs/KubernetesLogRecord.md) - [KubernetesLogSeverityHistogramBucket](docs/KubernetesLogSeverityHistogramBucket.md) - - [LastUpdatedTimestampSource](docs/LastUpdatedTimestampSource.md) - [LayoutApiError](docs/LayoutApiError.md) - [LayoutHint](docs/LayoutHint.md) - [LayoutList](docs/LayoutList.md) + - [LegacyComponentHighlights](docs/LegacyComponentHighlights.md) - [LicensedSubscription](docs/LicensedSubscription.md) - [LimitOutOfRange](docs/LimitOutOfRange.md) - [LinkCell](docs/LinkCell.md) + - [LinkField](docs/LinkField.md) + - [LinkFieldAllOf](docs/LinkFieldAllOf.md) - [LinkMetaDisplay](docs/LinkMetaDisplay.md) - [LockedResponse](docs/LockedResponse.md) - [LogLevel](docs/LogLevel.md) @@ -464,19 +467,25 @@ Class | Method | HTTP request | Description - [LogsDirection](docs/LogsDirection.md) - [MainMenuGroup](docs/MainMenuGroup.md) - [MainMenuViewItem](docs/MainMenuViewItem.md) + - [MapField](docs/MapField.md) + - [MapFieldAllOf](docs/MapFieldAllOf.md) + - [MapProjection](docs/MapProjection.md) - [Message](docs/Message.md) - [MessageLevel](docs/MessageLevel.md) - [Messages](docs/Messages.md) + - [MetricBindingId](docs/MetricBindingId.md) - [MetricBindingLayout](docs/MetricBindingLayout.md) - [MetricBucketValue](docs/MetricBucketValue.md) - [MetricCell](docs/MetricCell.md) - - [MetricChartMetaDisplay](docs/MetricChartMetaDisplay.md) - - [MetricChartProjection](docs/MetricChartProjection.md) + - [MetricField](docs/MetricField.md) + - [MetricFieldAllOf](docs/MetricFieldAllOf.md) + - [MetricMetaDisplay](docs/MetricMetaDisplay.md) - [MetricPerspectiveLocation](docs/MetricPerspectiveLocation.md) - [MetricPerspectiveSection](docs/MetricPerspectiveSection.md) - [MetricPerspectiveSectionAllOf](docs/MetricPerspectiveSectionAllOf.md) - [MetricPerspectiveTab](docs/MetricPerspectiveTab.md) - [MetricPerspectiveTabAllOf](docs/MetricPerspectiveTabAllOf.md) + - [MetricProjection](docs/MetricProjection.md) - [MetricValuation](docs/MetricValuation.md) - [Monitor](docs/Monitor.md) - [MonitorApiError](docs/MonitorApiError.md) @@ -525,7 +534,6 @@ Class | Method | HTTP request | Description - [MonitorStatusValue](docs/MonitorStatusValue.md) - [MonitorValidationError](docs/MonitorValidationError.md) - [MultipleMatchesCheckState](docs/MultipleMatchesCheckState.md) - - [NameSource](docs/NameSource.md) - [NewLicense](docs/NewLicense.md) - [NewServiceTokenRequest](docs/NewServiceTokenRequest.md) - [Node](docs/Node.md) @@ -549,6 +557,8 @@ Class | Method | HTTP request | Description - [NotificationConfigurationWriteSchema](docs/NotificationConfigurationWriteSchema.md) - [NotifyOnOptions](docs/NotifyOnOptions.md) - [NumericCell](docs/NumericCell.md) + - [NumericField](docs/NumericField.md) + - [NumericFieldAllOf](docs/NumericFieldAllOf.md) - [NumericMetaDisplay](docs/NumericMetaDisplay.md) - [NumericProjection](docs/NumericProjection.md) - [OpsgenieChannelRefId](docs/OpsgenieChannelRefId.md) @@ -565,6 +575,7 @@ Class | Method | HTTP request | Description - [OtelInput](docs/OtelInput.md) - [OtelInputConditionAction](docs/OtelInputConditionAction.md) - [OtelInputDatapoint](docs/OtelInputDatapoint.md) + - [OtelInputLog](docs/OtelInputLog.md) - [OtelInputMetric](docs/OtelInputMetric.md) - [OtelInputResource](docs/OtelInputResource.md) - [OtelInputScope](docs/OtelInputScope.md) @@ -584,7 +595,6 @@ Class | Method | HTTP request | Description - [OverviewColumnFilter](docs/OverviewColumnFilter.md) - [OverviewColumnMeta](docs/OverviewColumnMeta.md) - [OverviewColumnMetaDisplay](docs/OverviewColumnMetaDisplay.md) - - [OverviewColumnProjection](docs/OverviewColumnProjection.md) - [OverviewDataUnavailable](docs/OverviewDataUnavailable.md) - [OverviewErrorResponse](docs/OverviewErrorResponse.md) - [OverviewFetchTimeout](docs/OverviewFetchTimeout.md) @@ -634,9 +644,15 @@ Class | Method | HTTP request | Description - [PersesVariableSort](docs/PersesVariableSort.md) - [PersesVariableTypes](docs/PersesVariableTypes.md) - [PresentationDefinition](docs/PresentationDefinition.md) + - [PresentationFilter](docs/PresentationFilter.md) + - [PresentationFilterName](docs/PresentationFilterName.md) + - [PresentationFiltersResponse](docs/PresentationFiltersResponse.md) + - [PresentationHighlight](docs/PresentationHighlight.md) + - [PresentationHighlightField](docs/PresentationHighlightField.md) - [PresentationMainMenu](docs/PresentationMainMenu.md) - [PresentationName](docs/PresentationName.md) - [PresentationOverview](docs/PresentationOverview.md) + - [PresentationTagFilter](docs/PresentationTagFilter.md) - [ProblemNotFound](docs/ProblemNotFound.md) - [PromBatchEnvelope](docs/PromBatchEnvelope.md) - [PromBatchError](docs/PromBatchError.md) @@ -662,18 +678,16 @@ Class | Method | HTTP request | Description - [PromSeriesEnvelope](docs/PromSeriesEnvelope.md) - [PromVector](docs/PromVector.md) - [PromVectorResult](docs/PromVectorResult.md) - - [PromqlDisplay](docs/PromqlDisplay.md) - - [PropertySource](docs/PropertySource.md) - [ProvisionResponse](docs/ProvisionResponse.md) - [QueryMetadata](docs/QueryMetadata.md) - [QueryParsingFailure](docs/QueryParsingFailure.md) - [QuerySnapshotResult](docs/QuerySnapshotResult.md) - [QueryViewArguments](docs/QueryViewArguments.md) - - [RatioDisplay](docs/RatioDisplay.md) + - [RatioField](docs/RatioField.md) + - [RatioFieldAllOf](docs/RatioFieldAllOf.md) + - [RatioProjection](docs/RatioProjection.md) - [ReadyStatusCell](docs/ReadyStatusCell.md) - - [ReadyStatusDisplay](docs/ReadyStatusDisplay.md) - [ReadyStatusMetaDisplay](docs/ReadyStatusMetaDisplay.md) - - [ReadyStatusProjection](docs/ReadyStatusProjection.md) - [RelationData](docs/RelationData.md) - [ReleaseStatus](docs/ReleaseStatus.md) - [RequestError](docs/RequestError.md) @@ -729,15 +743,14 @@ Class | Method | HTTP request | Description - [SystemNotification](docs/SystemNotification.md) - [SystemNotificationSeverity](docs/SystemNotificationSeverity.md) - [SystemNotifications](docs/SystemNotifications.md) - - [TagDisplay](docs/TagDisplay.md) - - [TagSource](docs/TagSource.md) - - [TagsSource](docs/TagsSource.md) + - [TagFilter](docs/TagFilter.md) - [TeamsChannelRefId](docs/TeamsChannelRefId.md) - [TeamsChannelWriteSchema](docs/TeamsChannelWriteSchema.md) - [TeamsNotificationChannel](docs/TeamsNotificationChannel.md) - [TeamsNotificationChannelAllOf](docs/TeamsNotificationChannelAllOf.md) - [TextCell](docs/TextCell.md) - - [TextDisplay](docs/TextDisplay.md) + - [TextField](docs/TextField.md) + - [TextFieldAllOf](docs/TextFieldAllOf.md) - [TextMetaDisplay](docs/TextMetaDisplay.md) - [TextProjection](docs/TextProjection.md) - [TimelineSummary](docs/TimelineSummary.md) @@ -786,7 +799,6 @@ Class | Method | HTTP request | Description - [UserProfileSaveError](docs/UserProfileSaveError.md) - [ViewCheckState](docs/ViewCheckState.md) - [ViewSnapshotRequest](docs/ViewSnapshotRequest.md) - - [ViewTimeLink](docs/ViewTimeLink.md) - [WebhookChannelRefId](docs/WebhookChannelRefId.md) - [WebhookChannelWriteSchema](docs/WebhookChannelWriteSchema.md) - [WebhookNotificationChannel](docs/WebhookNotificationChannel.md) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index f9b293fd..3a62f572 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -6486,7 +6486,7 @@ paths: required: true schema: type: string - /component-presentations: + /presentations: get: operationId: getComponentPresentations responses: @@ -6545,7 +6545,7 @@ paths: summary: Upserts (creates/updates) a component presentation tags: - componentPresentation - /component-presentations/{identifier}: + /presentations/{identifier}: delete: operationId: deleteComponentPresentationByIdentifier parameters: @@ -6711,6 +6711,61 @@ paths: summary: Get overview data for components tags: - overview + /presentations/{presentationOrViewUrn}/filters: + get: + description: | + Returns the effective filter definitions after applying merge semantics + across matching ComponentPresentations. The result reflects which filters + the frontend should render for the given presentation. + operationId: getPresentationFilters + parameters: + - description: "A Component Presentation Identifier, legacy View (QueryView,\ + \ ViewType) URNs are supported for backward compatibility" + in: path + name: presentationOrViewUrn + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PresentationFiltersResponse' + description: Resolved filter definitions + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ComponentPresentationApiError' + description: Error when handling the request on the server side. + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ComponentPresentationApiError' + description: Component Presentation with given identifier not found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/ComponentPresentationApiError' + description: Error when handling the request on the server side. + summary: Get resolved filters for a presentation + tags: + - componentPresentation + parameters: + - description: "A Component Presentation Identifier, legacy View (QueryView, ViewType)\ + \ URNs are supported for backward compatibility" + in: path + name: presentationOrViewUrn + required: true + schema: + type: string /dummy/dummy: get: description: "" @@ -14101,10 +14156,6 @@ components: showConfiguration: true showStatus: true showLogs: true - about: - fields: - - fields - - fields metrics: - bindings: - bindings @@ -14118,19 +14169,6 @@ components: name: name description: description defaultExpanded: true - fields: - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId events: showEvents: true relatedResourcesTemplate: relatedResourcesTemplate @@ -14214,6 +14252,9 @@ components: scopeVersion: - scopeVersion - scopeVersion + fields: + - null + - null actions: - name: name description: description @@ -14285,10 +14326,14 @@ components: type: string icon: type: string + fields: + items: + $ref: '#/components/schemas/ComponentField' + type: array data: $ref: '#/components/schemas/ComponentData' highlights: - $ref: '#/components/schemas/ComponentTypeHighlights' + $ref: '#/components/schemas/LegacyComponentHighlights' actions: items: $ref: '#/components/schemas/ComponentAction' @@ -14303,7 +14348,75 @@ components: - actions - boundMetrics - data + - fields - typeName + ComponentField: + description: Display type and value for the field. + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/ErrorField' + - $ref: '#/components/schemas/MetricField' + - $ref: '#/components/schemas/LinkField' + - $ref: '#/components/schemas/ComponentLinkField' + - $ref: '#/components/schemas/HealthField' + - $ref: '#/components/schemas/TextField' + - $ref: '#/components/schemas/NumericField' + - $ref: '#/components/schemas/DurationField' + - $ref: '#/components/schemas/RatioField' + - $ref: '#/components/schemas/MapField' + ErrorField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/ErrorField_allOf' + BaseComponentField: + properties: + fieldId: + type: string + title: + type: string + description: + type: string + required: + - fieldId + - title + type: object + MetricField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/MetricField_allOf' + LinkField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/LinkField_allOf' + ComponentLinkField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/ComponentLinkField_allOf' + HealthField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/HealthField_allOf' + TextField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/TextField_allOf' + NumericField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/NumericField_allOf' + DurationField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/DurationField_allOf' + RatioField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/RatioField_allOf' + MapField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/MapField_allOf' ComponentData: example: lastUpdateTimestamp: 6 @@ -14426,6 +14539,69 @@ components: - identifiers - sourceProperties - syncName + LegacyComponentHighlights: + example: + showLastChange: true + namePlural: namePlural + externalComponent: + externalIdSelector: externalIdSelector + showConfiguration: true + showStatus: true + showLogs: true + metrics: + - bindings: + - bindings + - bindings + name: name + description: description + defaultExpanded: true + - bindings: + - bindings + - bindings + name: name + description: description + defaultExpanded: true + events: + showEvents: true + relatedResourcesTemplate: relatedResourcesTemplate + relatedResources: + - hint: hint + stql: stql + title: title + viewTypeIdentifier: viewTypeIdentifier + resourceType: resourceType + - hint: hint + stql: stql + title: title + viewTypeIdentifier: viewTypeIdentifier + resourceType: resourceType + properties: + namePlural: + type: string + events: + $ref: '#/components/schemas/ComponentTypeEvents' + showLogs: + type: boolean + showLastChange: + type: boolean + externalComponent: + $ref: '#/components/schemas/ComponentTypeExternalComponent' + relatedResources: + items: + $ref: '#/components/schemas/ComponentTypeRelatedResources' + type: array + metrics: + items: + $ref: '#/components/schemas/ComponentHighlightMetrics' + type: array + required: + - events + - externalComponent + - metrics + - namePlural + - relatedResources + - showLastChange + - showLogs ComponentAction: example: name: name @@ -14805,10 +14981,6 @@ components: showConfiguration: true showStatus: true showLogs: true - about: - fields: - - fields - - fields metrics: - bindings: - bindings @@ -14822,19 +14994,6 @@ components: name: name description: description defaultExpanded: true - fields: - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId events: showEvents: true relatedResourcesTemplate: relatedResourcesTemplate @@ -14918,6 +15077,9 @@ components: scopeVersion: - scopeVersion - scopeVersion + fields: + - null + - null actions: - name: name description: description @@ -14993,10 +15155,6 @@ components: showConfiguration: true showStatus: true showLogs: true - about: - fields: - - fields - - fields metrics: - bindings: - bindings @@ -15010,19 +15168,6 @@ components: name: name description: description defaultExpanded: true - fields: - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId events: showEvents: true relatedResourcesTemplate: relatedResourcesTemplate @@ -15106,6 +15251,9 @@ components: scopeVersion: - scopeVersion - scopeVersion + fields: + - null + - null actions: - name: name description: description @@ -16223,6 +16371,9 @@ components: condition: condition action: null action: null + log: + condition: condition + action: null action: null span: condition: condition @@ -16259,7 +16410,9 @@ components: \ `span.statusCode`, `span.attributes`\n\n • **METRICS**\n Provides access\ \ to:\n - `resource.attributes`\n - `scope.name`, `scope.version`, `scope.attributes`\n\ \ - `metric.name`, `metric.description`, `metric.unit`\n - `datapoint.attributes`\n\ - \n • **LOGS**\n Not yet supported.\n\nFor example, if the signal is `METRICS`,\ + \n • **LOGS**\n Provides access to:\n - `resource.attributes`\n -\ + \ `scope.name`, `scope.version`, `scope.attributes`\n - `log.eventName`,\ + \ `log.attributes`, `log.body`\n\nFor example, if the signal is `METRICS`,\ \ expressions may reference:\n`resource.attributes[\"service.name\"]`, `scope.attributes[\"\ env\"]`,\n`metric.name`, or `datapoint.attributes[\"status\"]`." enum: @@ -16280,6 +16433,9 @@ components: condition: condition action: null action: null + log: + condition: condition + action: null action: null span: condition: condition @@ -16313,6 +16469,9 @@ components: condition: condition action: null action: null + log: + condition: condition + action: null action: null span: condition: condition @@ -16327,6 +16486,8 @@ components: $ref: '#/components/schemas/OtelInputMetric' span: $ref: '#/components/schemas/OtelInputSpan' + log: + $ref: '#/components/schemas/OtelInputLog' type: object OtelInputMetric: description: "Defines conditional mapping at the resource -> scope -> metric\ @@ -16374,6 +16535,19 @@ components: action: $ref: '#/components/schemas/OtelInputConditionAction' type: object + OtelInputLog: + description: "Defines conditional mapping at the resource -> scope -> log level.\n\ + If omitted, `condition` defaults to `true` and `action` defaults to `CONTINUE`." + example: + condition: condition + action: null + properties: + condition: + description: A Cel expression that must return a boolean + type: string + action: + $ref: '#/components/schemas/OtelInputConditionAction' + type: object OtelComponentMappingOutput: example: identifier: identifier @@ -16384,6 +16558,7 @@ components: typeIdentifier: typeIdentifier layerIdentifier: layerIdentifier optional: + configuration: configuration additionalIdentifiers: - null - null @@ -16395,8 +16570,10 @@ components: - pattern: pattern source: source target: target + status: status layerName: layerName required: + configuration: configuration additionalIdentifiers: - null - null @@ -16408,6 +16585,7 @@ components: - pattern: pattern source: source target: target + status: status properties: identifier: description: "An expression that must produce a string. It must be one of\ @@ -16503,6 +16681,7 @@ components: type: string OtelComponentMappingFieldMapping: example: + configuration: configuration additionalIdentifiers: - null - null @@ -16514,6 +16693,7 @@ components: - pattern: pattern source: source target: target + status: status properties: additionalIdentifiers: items: @@ -16532,6 +16712,22 @@ components: items: $ref: '#/components/schemas/OtelTagMapping' type: array + configuration: + description: "An expression that can produce any type. It uses the CEL expression\ + \ within curly braces `${}` syntax.\nVariables use it to store any type\ + \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ + \ assign \nit the expression `\"${resource.attributes['service.namespace']\ + \ == 'test'}\"`. The variable can now be used directly in the conditions\ + \ like this: `vars.inTestNamespace`." + type: string + status: + description: "An expression that can produce any type. It uses the CEL expression\ + \ within curly braces `${}` syntax.\nVariables use it to store any type\ + \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ + \ assign \nit the expression `\"${resource.attributes['service.namespace']\ + \ == 'test'}\"`. The variable can now be used directly in the conditions\ + \ like this: `vars.inTestNamespace`." + type: string type: object OtelTagMapping: description: "Defines how a tag should be mapped from an input source to an\ @@ -16598,6 +16794,7 @@ components: typeIdentifier: typeIdentifier layerIdentifier: layerIdentifier optional: + configuration: configuration additionalIdentifiers: - null - null @@ -16609,8 +16806,10 @@ components: - pattern: pattern source: source target: target + status: status layerName: layerName required: + configuration: configuration additionalIdentifiers: - null - null @@ -16622,6 +16821,7 @@ components: - pattern: pattern source: source target: target + status: status identifier: identifier input: resource: @@ -16634,6 +16834,9 @@ components: condition: condition action: null action: null + log: + condition: condition + action: null action: null span: condition: condition @@ -16839,6 +17042,9 @@ components: condition: condition action: null action: null + log: + condition: condition + action: null action: null span: condition: condition @@ -16906,7 +17112,33 @@ components: plural: plural singular: singular title: title + highlight: + title: title + fields: + - description: description + projection: null + title: title + fieldId: fieldId + order: 5.962133916683182 + - description: description + projection: null + title: title + fieldId: fieldId + order: 5.962133916683182 icon: icon + filters: + - filterId: filterId + filter: null + menuSection: menuSection + displayName: + plural: plural + singular: singular + - filterId: filterId + filter: null + menuSection: menuSection + displayName: + plural: plural + singular: singular identifier: identifier name: name description: description @@ -17206,7 +17438,7 @@ components: discriminator: propertyName: _type oneOf: - - $ref: '#/components/schemas/MetricChartMetaDisplay' + - $ref: '#/components/schemas/MetricMetaDisplay' - $ref: '#/components/schemas/ComponentLinkMetaDisplay' - $ref: '#/components/schemas/HealthMetaDisplay' - $ref: '#/components/schemas/TextMetaDisplay' @@ -17214,11 +17446,11 @@ components: - $ref: '#/components/schemas/DurationMetaDisplay' - $ref: '#/components/schemas/ReadyStatusMetaDisplay' - $ref: '#/components/schemas/LinkMetaDisplay' - MetricChartMetaDisplay: + MetricMetaDisplay: properties: _type: enum: - - MetricChartMetaDisplay + - MetricMetaDisplay type: string unit: nullable: true @@ -17231,10 +17463,19 @@ components: type: boolean locked: type: boolean + metricId: + $ref: '#/components/schemas/MetricBindingId' required: - _type - locked type: object + MetricBindingId: + properties: + identifier: + type: string + required: + - identifier + type: object ComponentLinkMetaDisplay: properties: _type: @@ -17670,6 +17911,61 @@ components: PresentationOrViewIdentifier: pattern: ^urn.*$ type: string + PresentationFiltersResponse: + example: + menuSection: menuSection + filters: + - null + - null + properties: + filters: + description: "Presentation filters in display order. Earlier items are primary\ + \ (filter bar),\nlater items are secondary (\"More\" section).\n" + items: + $ref: '#/components/schemas/PresentationFilter' + type: array + menuSection: + description: Label for the section within "More" tab when secondary filters + are present. + type: string + required: + - filters + - menuSection + type: object + PresentationFilter: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/PresentationTagFilter' + PresentationTagFilter: + properties: + _type: + enum: + - PresentationTagFilter + type: string + filterId: + type: string + displayName: + $ref: '#/components/schemas/PresentationFilterName' + tagKey: + description: Tag key to use for filtering. + type: string + required: + - _type + - displayName + - filterId + - tagKey + type: object + PresentationFilterName: + properties: + singular: + type: string + plural: + type: string + required: + - plural + - singular + type: object Argument: discriminator: propertyName: _type @@ -18243,348 +18539,7 @@ components: - offsetNanos - timestamp type: object - ComponentTypeHighlights: - example: - showLastChange: true - namePlural: namePlural - externalComponent: - externalIdSelector: externalIdSelector - showConfiguration: true - showStatus: true - showLogs: true - about: - fields: - - fields - - fields - metrics: - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true - fields: - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - events: - showEvents: true - relatedResourcesTemplate: relatedResourcesTemplate - relatedResources: - - hint: hint - stql: stql - title: title - viewTypeIdentifier: viewTypeIdentifier - resourceType: resourceType - - hint: hint - stql: stql - title: title - viewTypeIdentifier: viewTypeIdentifier - resourceType: resourceType - properties: - namePlural: - type: string - fields: - items: - $ref: '#/components/schemas/ComponentTypeField' - type: array - about: - $ref: '#/components/schemas/ComponentTypeAbout' - events: - $ref: '#/components/schemas/ComponentTypeEvents' - showLogs: - type: boolean - showLastChange: - type: boolean - externalComponent: - $ref: '#/components/schemas/ComponentTypeExternalComponent' - relatedResources: - items: - $ref: '#/components/schemas/ComponentTypeRelatedResources' - type: array - metrics: - items: - $ref: '#/components/schemas/ComponentHighlightMetrics' - type: array - required: - - about - - events - - externalComponent - - fields - - metrics - - namePlural - - relatedResources - - showLastChange - - showLogs - ComponentTypeField: - example: - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - properties: - fieldId: - type: string - label: - $ref: '#/components/schemas/ComponentTypeLabel' - valueExtractor: - $ref: '#/components/schemas/ComponentTypeValueExtractor' - display: - $ref: '#/components/schemas/ComponentTypeFieldDisplay' - required: - - display - - fieldId - - label - - valueExtractor - ComponentTypeLabel: - example: - helpBubbleText: helpBubbleText - title: title - properties: - title: - type: string - helpBubbleText: - type: string - required: - - title - ComponentTypeValueExtractor: - discriminator: - propertyName: _type - oneOf: - - $ref: '#/components/schemas/ComponentTypeSource' - - $ref: '#/components/schemas/CompositeSource' - - $ref: '#/components/schemas/ConstantSource' - - $ref: '#/components/schemas/HealthSource' - - $ref: '#/components/schemas/IdentifiersSource' - - $ref: '#/components/schemas/LastUpdatedTimestampSource' - - $ref: '#/components/schemas/NameSource' - - $ref: '#/components/schemas/PropertySource' - - $ref: '#/components/schemas/TagSource' - - $ref: '#/components/schemas/TagsSource' - ComponentTypeSource: - properties: - _type: - enum: - - ComponentTypeSource - type: string - required: - - _type - CompositeSource: - properties: - _type: - enum: - - CompositeSource - type: string - sources: - additionalProperties: - $ref: '#/components/schemas/ComponentTypeValueExtractor' - type: object - required: - - _type - - sources - ConstantSource: - properties: - _type: - enum: - - ConstantSource - type: string - value: - type: string - required: - - _type - - value - HealthSource: - properties: - _type: - enum: - - HealthSource - type: string - required: - - _type - IdentifiersSource: - properties: - _type: - enum: - - IdentifiersSource - type: string - required: - - _type - LastUpdatedTimestampSource: - properties: - _type: - enum: - - LastUpdatedTimestampSource - type: string - required: - - _type - NameSource: - properties: - _type: - enum: - - NameSource - type: string - required: - - _type - PropertySource: - properties: - _type: - enum: - - PropertySource - type: string - key: - type: string - defaultValue: - type: string - required: - - _type - - key - TagSource: - properties: - _type: - enum: - - TagSource - type: string - tagName: - type: string - required: - - _type - - tagName - TagsSource: - properties: - _type: - enum: - - TagsSource - type: string - required: - - _type - ComponentTypeFieldDisplay: - discriminator: - propertyName: _type - oneOf: - - $ref: '#/components/schemas/ComponentLinkDisplay' - - $ref: '#/components/schemas/DurationDisplay' - - $ref: '#/components/schemas/HealthBadgeDisplay' - - $ref: '#/components/schemas/HealthCircleDisplay' - - $ref: '#/components/schemas/PromqlDisplay' - - $ref: '#/components/schemas/RatioDisplay' - - $ref: '#/components/schemas/ReadyStatusDisplay' - - $ref: '#/components/schemas/TagDisplay' - - $ref: '#/components/schemas/TextDisplay' - - $ref: '#/components/schemas/ViewTimeLink' - required: - - _type - ComponentLinkDisplay: - properties: - _type: - enum: - - ComponentLinkDisplay - type: string - required: - - _type - DurationDisplay: - properties: - _type: - enum: - - DurationDisplay - type: string - required: - - _type - HealthBadgeDisplay: - properties: - _type: - enum: - - HealthBadgeDisplay - type: string - required: - - _type - HealthCircleDisplay: - properties: - _type: - enum: - - HealthCircleDisplay - type: string - required: - - _type - PromqlDisplay: - properties: - _type: - enum: - - PromqlDisplay - type: string - required: - - _type - RatioDisplay: - properties: - _type: - enum: - - RatioDisplay - type: string - required: - - _type - ReadyStatusDisplay: - properties: - _type: - enum: - - RatioDisplay - type: string - required: - - _type - TagDisplay: - properties: - _type: - enum: - - TagDisplay - type: string - singular: - type: string - required: - - _type - TextDisplay: - properties: - _type: - enum: - - TextDisplay - type: string - required: - - _type - ViewTimeLink: - properties: - _type: - enum: - - ViewTimeLink - type: string - required: - - _type - ComponentTypeAbout: - example: - fields: - - fields - - fields - properties: - fields: - items: - type: string - type: array - required: - - fields - ComponentTypeEvents: + ComponentTypeEvents: example: showEvents: true relatedResourcesTemplate: relatedResourcesTemplate @@ -19362,6 +19317,10 @@ components: - specificity type: object PresentationDefinition: + description: "Component presentation definition.\nIf multiple ComponentPresentations\ + \ match, `filters` are merged by filter identity with the most specific presentation\ + \ winning.\nAbsence of the field keeps legacy behavior (for example, ViewType-based\ + \ filters) unchanged.\n" example: overview: fixedColumns: 1 @@ -19380,12 +19339,44 @@ components: plural: plural singular: singular title: title + highlight: + title: title + fields: + - description: description + projection: null + title: title + fieldId: fieldId + order: 5.962133916683182 + - description: description + projection: null + title: title + fieldId: fieldId + order: 5.962133916683182 icon: icon + filters: + - filterId: filterId + filter: null + menuSection: menuSection + displayName: + plural: plural + singular: singular + - filterId: filterId + filter: null + menuSection: menuSection + displayName: + plural: plural + singular: singular properties: icon: type: string overview: $ref: '#/components/schemas/PresentationOverview' + highlight: + $ref: '#/components/schemas/PresentationHighlight' + filters: + items: + $ref: '#/components/schemas/ComponentPresentationFilter' + type: array type: object PresentationOverview: description: "Overview presentation definition. The `columns` field defines\ @@ -19424,7 +19415,6 @@ components: required: - columns - name - - title type: object PresentationName: example: @@ -19475,28 +19465,42 @@ components: title: type: string projection: - $ref: '#/components/schemas/OverviewColumnProjection' + $ref: '#/components/schemas/ComponentOverviewProjection' required: - columnId type: object - OverviewColumnProjection: - description: Display type and value for the column. + ComponentOverviewProjection: + description: Display type and value for the field. discriminator: propertyName: _type oneOf: - - $ref: '#/components/schemas/MetricChartProjection' - - $ref: '#/components/schemas/ComponentLinkProjection' - $ref: '#/components/schemas/HealthProjection' + - $ref: '#/components/schemas/MetricProjection' + - $ref: '#/components/schemas/ComponentLinkProjection' - $ref: '#/components/schemas/TextProjection' - $ref: '#/components/schemas/NumericProjection' - $ref: '#/components/schemas/DurationProjection' - - $ref: '#/components/schemas/ReadyStatusProjection' + - $ref: '#/components/schemas/RatioProjection' - $ref: '#/components/schemas/ContainerImageProjection' - MetricChartProjection: + HealthProjection: properties: _type: enum: - - MetricChartProjection + - HealthProjection + type: string + value: + description: Cel expression that returns a string that represents a valid + HealthState + type: string + required: + - _type + - value + type: object + MetricProjection: + properties: + _type: + enum: + - MetricProjection type: string showChart: type: boolean @@ -19522,29 +19526,15 @@ components: description: Cel expression that returns a string that represents the name of the component to link to type: string - componentIdentifier: - description: Cel expression that returns a string that represents the componentIdentifier + identifier: + description: Cel expression that returns a string that represents the identifier in order to build the link type: string required: - _type - - componentIdentifier + - identifier - name type: object - HealthProjection: - properties: - _type: - enum: - - HealthProjection - type: string - value: - description: Cel expression that returns a string that represents a valid - HealthState - type: string - required: - - _type - - value - type: object TextProjection: properties: _type: @@ -19554,6 +19544,10 @@ components: value: description: Cel expression that returns a string type: string + asTag: + default: false + description: Should the value be rendered as a tag or as plain text + type: boolean required: - _type - value @@ -19582,38 +19576,37 @@ components: enum: - DurationProjection type: string - startDate: - description: Cel expression that returns a date + startTime: + description: Cel expression that returns an ISO8601 formatted timestamp type: string - endDate: - description: Cel expression that returns a date + endTime: + description: Cel expression that returns an ISO8601 formatted timestamp type: string required: - _type - - startDate + - startTime type: object - ReadyStatusProjection: - description: Helps rendering columns as Ready containers for K8s pods or Completions - for K8s jobs + RatioProjection: + description: Helps rendering columns that summarize success rates properties: _type: enum: - - ReadyStatusProjection + - RatioProjection type: string - readyNumber: + numerator: description: Cel expression that returns a number type: string - totalNumber: + denominator: description: Cel expression that returns a number type: string - readyStatus: + status: description: Cel expression that returns a string that represents a valid HealthState type: string required: - _type - - readyNumber - - totalNumber + - denominator + - numerator type: object ContainerImageProjection: description: Helps rendering links for docker images @@ -19633,6 +19626,158 @@ components: - imageId - imageName type: object + PresentationHighlight: + description: "Highlight presentation definition. The `fields` define the fields\ + \ to show in the ab. The `flags` field can be used to enable/disable functionalities.\n\ + If multiple ComponentPresentations match, columns are merged by `columnId`\ + \ according to binding rank. Absence of the field means no overview is shown.\n" + example: + title: title + fields: + - description: description + projection: null + title: title + fieldId: fieldId + order: 5.962133916683182 + - description: description + projection: null + title: title + fieldId: fieldId + order: 5.962133916683182 + properties: + title: + type: string + fields: + items: + $ref: '#/components/schemas/PresentationHighlightField' + type: array + required: + - fields + - title + type: object + PresentationHighlightField: + description: Definition of a field in the highlight presentation. The `fieldId` + field is used to identify the field and merge fields from different presentations. + example: + description: description + projection: null + title: title + fieldId: fieldId + order: 5.962133916683182 + properties: + fieldId: + type: string + title: + type: string + description: + type: string + order: + format: double + type: number + projection: + $ref: '#/components/schemas/ComponentHighlightProjection' + required: + - fieldId + - order + - title + type: object + ComponentHighlightProjection: + description: Display type and value for the field. + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/HealthProjection' + - $ref: '#/components/schemas/MetricProjection' + - $ref: '#/components/schemas/ComponentLinkProjection' + - $ref: '#/components/schemas/TextProjection' + - $ref: '#/components/schemas/NumericProjection' + - $ref: '#/components/schemas/DurationProjection' + - $ref: '#/components/schemas/RatioProjection' + - $ref: '#/components/schemas/ContainerImageProjection' + - $ref: '#/components/schemas/MapProjection' + MapProjection: + properties: + _type: + enum: + - MapProjection + type: string + value: + description: "Cel expression that returns a map" + type: string + asTags: + default: true + type: boolean + required: + - _type + - value + type: object + ComponentPresentationFilter: + description: "Filter definition for ComponentPresentation.\nWhen only `filterId`\ + \ is provided, the filter references a definition from a less specific presentation.\n\ + Merge semantics for matching ComponentPresentations:\n1) The most specific\ + \ matching ComponentPresentation's filter list determines which `filterId`s\ + \ are active.\n Only filters whose `filterId` appears in that list are rendered.\n\ + 2) For each active `filterId`, scalar fields (`displayName`, `menuSection`,\ + \ `filter`, etc.) are resolved by\n falling back through less specific presentations\ + \ that define the same `filterId`, most specific value wins.\n3) Array position\ + \ determines display order: earlier items are primary (filter bar),\n later\ + \ items are secondary (\"More\" section).\n" + example: + filterId: filterId + filter: null + menuSection: menuSection + displayName: + plural: plural + singular: singular + properties: + filterId: + description: | + Stable identity used for deduplication and cross-stackpack compatibility. + type: string + displayName: + $ref: '#/components/schemas/FilterName' + menuSection: + description: | + Label to group filters in the UI. + type: string + filter: + $ref: '#/components/schemas/ComponentPresentationFilterDefinition' + required: + - filterId + type: object + FilterName: + example: + plural: plural + singular: singular + properties: + singular: + type: string + plural: + type: string + required: + - plural + - singular + type: object + ComponentPresentationFilterDefinition: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/TagFilter' + TagFilter: + description: | + Tag-based filter. Uses indexed tags via `tagKey`. + properties: + _type: + enum: + - TagFilter + type: string + tagKey: + description: Tag key used for filtering and value lookup. + type: string + required: + - _type + - tagKey + type: object upsertOtelComponentMappings_request: properties: identifier: @@ -19869,6 +20014,163 @@ components: required: - _type type: object + ErrorField_allOf: + properties: + _type: + enum: + - ErrorField + type: string + message: + type: string + required: + - _type + - message + type: object + MetricField_allOf: + properties: + _type: + enum: + - MetricField + type: string + query: + description: The frontend can use the query to refresh the metrics (at interval). + Allows to keep the current behaviour of making individual calls for each + row. + type: string + unit: + type: string + decimalPlaces: + type: integer + required: + - _type + - query + type: object + LinkField_allOf: + properties: + _type: + enum: + - LinkField + type: string + name: + type: string + url: + type: string + required: + - _type + - name + - url + type: object + ComponentLinkField_allOf: + properties: + _type: + enum: + - ComponentLinkField + type: string + name: + type: string + identifier: + type: string + required: + - _type + - identifier + - name + type: object + HealthField_allOf: + properties: + _type: + enum: + - HealthField + type: string + state: + $ref: '#/components/schemas/HealthStateValue' + required: + - _type + - state + type: object + TextField_allOf: + properties: + _type: + enum: + - TextField + type: string + value: + type: string + asTag: + default: false + type: boolean + required: + - _type + - asTag + - value + type: object + NumericField_allOf: + properties: + _type: + enum: + - NumericField + type: string + value: + type: number + unit: + type: string + decimalPlaces: + type: integer + required: + - _type + - value + type: object + DurationField_allOf: + properties: + _type: + enum: + - DurationField + type: string + startTime: + format: instant + type: integer + endTime: + format: instant + nullable: true + type: integer + required: + - _type + - startTime + type: object + RatioField_allOf: + properties: + _type: + enum: + - RatioField + type: string + numerator: + type: number + denominator: + type: number + status: + $ref: '#/components/schemas/HealthStateValue' + required: + - _type + - denominator + - numerator + type: object + MapField_allOf: + properties: + _type: + enum: + - MapField + type: string + values: + additionalProperties: + type: string + type: object + asTag: + default: false + type: boolean + required: + - _type + - asTag + - values + type: object TimelineSummaryRequest_arguments: discriminator: propertyName: _type diff --git a/generated/stackstate_api/api_component_presentation.go b/generated/stackstate_api/api_component_presentation.go index 80cecd8f..317622a6 100644 --- a/generated/stackstate_api/api_component_presentation.go +++ b/generated/stackstate_api/api_component_presentation.go @@ -59,6 +59,24 @@ type ComponentPresentationApi interface { // @return []ComponentPresentation GetComponentPresentationsExecute(r ApiGetComponentPresentationsRequest) ([]ComponentPresentation, *http.Response, error) + /* + GetPresentationFilters Get resolved filters for a presentation + + Returns the effective filter definitions after applying merge semantics + across matching ComponentPresentations. The result reflects which filters + the frontend should render for the given presentation. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param presentationOrViewUrn A Component Presentation Identifier, legacy View (QueryView, ViewType) URNs are supported for backward compatibility + @return ApiGetPresentationFiltersRequest + */ + GetPresentationFilters(ctx context.Context, presentationOrViewUrn string) ApiGetPresentationFiltersRequest + + // GetPresentationFiltersExecute executes the request + // @return PresentationFiltersResponse + GetPresentationFiltersExecute(r ApiGetPresentationFiltersRequest) (*PresentationFiltersResponse, *http.Response, error) + /* UpsertComponentPresentations Upserts (creates/updates) a component presentation @@ -113,7 +131,7 @@ func (a *ComponentPresentationApiService) DeleteComponentPresentationByIdentifie return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/component-presentations/{identifier}" + localVarPath := localBasePath + "/presentations/{identifier}" localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterToString(r.identifier, "")), -1) localVarHeaderParams := make(map[string]string) @@ -267,7 +285,7 @@ func (a *ComponentPresentationApiService) GetComponentPresentationByIdentifierEx return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/component-presentations/{identifier}" + localVarPath := localBasePath + "/presentations/{identifier}" localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", url.PathEscape(parameterToString(r.identifier, "")), -1) localVarHeaderParams := make(map[string]string) @@ -427,7 +445,7 @@ func (a *ComponentPresentationApiService) GetComponentPresentationsExecute(r Api return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/component-presentations" + localVarPath := localBasePath + "/presentations" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -538,6 +556,183 @@ func (a *ComponentPresentationApiService) GetComponentPresentationsExecute(r Api return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetPresentationFiltersRequest struct { + ctx context.Context + ApiService ComponentPresentationApi + presentationOrViewUrn string +} + +func (r ApiGetPresentationFiltersRequest) Execute() (*PresentationFiltersResponse, *http.Response, error) { + return r.ApiService.GetPresentationFiltersExecute(r) +} + +/* +GetPresentationFilters Get resolved filters for a presentation + +Returns the effective filter definitions after applying merge semantics +across matching ComponentPresentations. The result reflects which filters +the frontend should render for the given presentation. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param presentationOrViewUrn A Component Presentation Identifier, legacy View (QueryView, ViewType) URNs are supported for backward compatibility + @return ApiGetPresentationFiltersRequest +*/ +func (a *ComponentPresentationApiService) GetPresentationFilters(ctx context.Context, presentationOrViewUrn string) ApiGetPresentationFiltersRequest { + return ApiGetPresentationFiltersRequest{ + ApiService: a, + ctx: ctx, + presentationOrViewUrn: presentationOrViewUrn, + } +} + +// Execute executes the request +// +// @return PresentationFiltersResponse +func (a *ComponentPresentationApiService) GetPresentationFiltersExecute(r ApiGetPresentationFiltersRequest) (*PresentationFiltersResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PresentationFiltersResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentPresentationApiService.GetPresentationFilters") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/presentations/{presentationOrViewUrn}/filters" + localVarPath = strings.Replace(localVarPath, "{"+"presentationOrViewUrn"+"}", url.PathEscape(parameterToString(r.presentationOrViewUrn, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ServiceBearer"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-ServiceBearer"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ServiceToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ComponentPresentationApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ComponentPresentationApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ComponentPresentationApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiUpsertComponentPresentationsRequest struct { ctx context.Context ApiService ComponentPresentationApi @@ -582,7 +777,7 @@ func (a *ComponentPresentationApiService) UpsertComponentPresentationsExecute(r return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/component-presentations" + localVarPath := localBasePath + "/presentations" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -719,6 +914,8 @@ type ComponentPresentationApiMock struct { GetComponentPresentationByIdentifierResponse GetComponentPresentationByIdentifierMockResponse GetComponentPresentationsCalls *[]GetComponentPresentationsCall GetComponentPresentationsResponse GetComponentPresentationsMockResponse + GetPresentationFiltersCalls *[]GetPresentationFiltersCall + GetPresentationFiltersResponse GetPresentationFiltersMockResponse UpsertComponentPresentationsCalls *[]UpsertComponentPresentationsCall UpsertComponentPresentationsResponse UpsertComponentPresentationsMockResponse } @@ -727,11 +924,13 @@ func NewComponentPresentationApiMock() ComponentPresentationApiMock { xDeleteComponentPresentationByIdentifierCalls := make([]DeleteComponentPresentationByIdentifierCall, 0) xGetComponentPresentationByIdentifierCalls := make([]GetComponentPresentationByIdentifierCall, 0) xGetComponentPresentationsCalls := make([]GetComponentPresentationsCall, 0) + xGetPresentationFiltersCalls := make([]GetPresentationFiltersCall, 0) xUpsertComponentPresentationsCalls := make([]UpsertComponentPresentationsCall, 0) return ComponentPresentationApiMock{ DeleteComponentPresentationByIdentifierCalls: &xDeleteComponentPresentationByIdentifierCalls, GetComponentPresentationByIdentifierCalls: &xGetComponentPresentationByIdentifierCalls, GetComponentPresentationsCalls: &xGetComponentPresentationsCalls, + GetPresentationFiltersCalls: &xGetPresentationFiltersCalls, UpsertComponentPresentationsCalls: &xUpsertComponentPresentationsCalls, } } @@ -809,6 +1008,32 @@ func (mock ComponentPresentationApiMock) GetComponentPresentationsExecute(r ApiG return mock.GetComponentPresentationsResponse.Result, mock.GetComponentPresentationsResponse.Response, mock.GetComponentPresentationsResponse.Error } +type GetPresentationFiltersMockResponse struct { + Result PresentationFiltersResponse + Response *http.Response + Error error +} + +type GetPresentationFiltersCall struct { + PpresentationOrViewUrn string +} + +func (mock ComponentPresentationApiMock) GetPresentationFilters(ctx context.Context, presentationOrViewUrn string) ApiGetPresentationFiltersRequest { + return ApiGetPresentationFiltersRequest{ + ApiService: mock, + ctx: ctx, + presentationOrViewUrn: presentationOrViewUrn, + } +} + +func (mock ComponentPresentationApiMock) GetPresentationFiltersExecute(r ApiGetPresentationFiltersRequest) (*PresentationFiltersResponse, *http.Response, error) { + p := GetPresentationFiltersCall{ + PpresentationOrViewUrn: r.presentationOrViewUrn, + } + *mock.GetPresentationFiltersCalls = append(*mock.GetPresentationFiltersCalls, p) + return &mock.GetPresentationFiltersResponse.Result, mock.GetPresentationFiltersResponse.Response, mock.GetPresentationFiltersResponse.Error +} + type UpsertComponentPresentationsMockResponse struct { Result ComponentPresentation Response *http.Response diff --git a/generated/stackstate_api/docs/BaseComponentField.md b/generated/stackstate_api/docs/BaseComponentField.md new file mode 100644 index 00000000..4e770213 --- /dev/null +++ b/generated/stackstate_api/docs/BaseComponentField.md @@ -0,0 +1,98 @@ +# BaseComponentField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBaseComponentField + +`func NewBaseComponentField(fieldId string, title string, ) *BaseComponentField` + +NewBaseComponentField instantiates a new BaseComponentField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBaseComponentFieldWithDefaults + +`func NewBaseComponentFieldWithDefaults() *BaseComponentField` + +NewBaseComponentFieldWithDefaults instantiates a new BaseComponentField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *BaseComponentField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *BaseComponentField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *BaseComponentField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *BaseComponentField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *BaseComponentField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *BaseComponentField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *BaseComponentField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BaseComponentField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BaseComponentField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BaseComponentField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentField.md b/generated/stackstate_api/docs/ComponentField.md new file mode 100644 index 00000000..cc9208ce --- /dev/null +++ b/generated/stackstate_api/docs/ComponentField.md @@ -0,0 +1,485 @@ +# ComponentField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Message** | **string** | | +**Query** | **string** | The frontend can use the query to refresh the metrics (at interval). Allows to keep the current behaviour of making individual calls for each row. | +**Unit** | Pointer to **string** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] +**Name** | **string** | | +**Url** | **string** | | +**Identifier** | **string** | | +**State** | [**HealthStateValue**](HealthStateValue.md) | | +**Value** | **float32** | | +**AsTag** | **bool** | | [default to false] +**StartTime** | **int32** | | +**EndTime** | Pointer to **NullableInt32** | | [optional] +**Numerator** | **float32** | | +**Denominator** | **float32** | | +**Status** | Pointer to [**HealthStateValue**](HealthStateValue.md) | | [optional] +**Values** | **map[string]string** | | + +## Methods + +### NewComponentField + +`func NewComponentField(fieldId string, title string, type_ string, message string, query string, name string, url string, identifier string, state HealthStateValue, value float32, asTag bool, startTime int32, numerator float32, denominator float32, values map[string]string, ) *ComponentField` + +NewComponentField instantiates a new ComponentField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentFieldWithDefaults + +`func NewComponentFieldWithDefaults() *ComponentField` + +NewComponentFieldWithDefaults instantiates a new ComponentField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *ComponentField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *ComponentField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *ComponentField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *ComponentField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ComponentField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ComponentField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *ComponentField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComponentField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComponentField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComponentField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *ComponentField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComponentField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetMessage + +`func (o *ComponentField) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ComponentField) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ComponentField) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetQuery + +`func (o *ComponentField) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *ComponentField) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *ComponentField) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetUnit + +`func (o *ComponentField) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *ComponentField) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *ComponentField) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *ComponentField) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *ComponentField) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *ComponentField) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *ComponentField) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *ComponentField) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + +### GetName + +`func (o *ComponentField) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentField) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComponentField) SetName(v string)` + +SetName sets Name field to given value. + + +### GetUrl + +`func (o *ComponentField) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ComponentField) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ComponentField) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetIdentifier + +`func (o *ComponentField) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *ComponentField) GetIdentifierOk() (*string, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *ComponentField) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + +### GetState + +`func (o *ComponentField) GetState() HealthStateValue` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ComponentField) GetStateOk() (*HealthStateValue, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ComponentField) SetState(v HealthStateValue)` + +SetState sets State field to given value. + + +### GetValue + +`func (o *ComponentField) GetValue() float32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ComponentField) GetValueOk() (*float32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ComponentField) SetValue(v float32)` + +SetValue sets Value field to given value. + + +### GetAsTag + +`func (o *ComponentField) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *ComponentField) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *ComponentField) SetAsTag(v bool)` + +SetAsTag sets AsTag field to given value. + + +### GetStartTime + +`func (o *ComponentField) GetStartTime() int32` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *ComponentField) GetStartTimeOk() (*int32, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *ComponentField) SetStartTime(v int32)` + +SetStartTime sets StartTime field to given value. + + +### GetEndTime + +`func (o *ComponentField) GetEndTime() int32` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *ComponentField) GetEndTimeOk() (*int32, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *ComponentField) SetEndTime(v int32)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *ComponentField) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### SetEndTimeNil + +`func (o *ComponentField) SetEndTimeNil(b bool)` + + SetEndTimeNil sets the value for EndTime to be an explicit nil + +### UnsetEndTime +`func (o *ComponentField) UnsetEndTime()` + +UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil +### GetNumerator + +`func (o *ComponentField) GetNumerator() float32` + +GetNumerator returns the Numerator field if non-nil, zero value otherwise. + +### GetNumeratorOk + +`func (o *ComponentField) GetNumeratorOk() (*float32, bool)` + +GetNumeratorOk returns a tuple with the Numerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumerator + +`func (o *ComponentField) SetNumerator(v float32)` + +SetNumerator sets Numerator field to given value. + + +### GetDenominator + +`func (o *ComponentField) GetDenominator() float32` + +GetDenominator returns the Denominator field if non-nil, zero value otherwise. + +### GetDenominatorOk + +`func (o *ComponentField) GetDenominatorOk() (*float32, bool)` + +GetDenominatorOk returns a tuple with the Denominator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenominator + +`func (o *ComponentField) SetDenominator(v float32)` + +SetDenominator sets Denominator field to given value. + + +### GetStatus + +`func (o *ComponentField) GetStatus() HealthStateValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComponentField) GetStatusOk() (*HealthStateValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComponentField) SetStatus(v HealthStateValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComponentField) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetValues + +`func (o *ComponentField) GetValues() map[string]string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *ComponentField) GetValuesOk() (*map[string]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *ComponentField) SetValues(v map[string]string)` + +SetValues sets Values field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentHighlightProjection.md b/generated/stackstate_api/docs/ComponentHighlightProjection.md new file mode 100644 index 00000000..149dd6e9 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentHighlightProjection.md @@ -0,0 +1,432 @@ +# ComponentHighlightProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **string** | Cel expression that returns a map<string,dyn> | +**ShowChart** | Pointer to **bool** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] +**Unit** | Pointer to **NullableString** | | [optional] +**Query** | **string** | Individual metric query that returns a timeseries for a specific cell. | +**Name** | **string** | Cel expression that returns a string that represents the name of the component to link to | +**Identifier** | **string** | Cel expression that returns a string that represents the identifier in order to build the link | +**AsTag** | Pointer to **bool** | Should the value be rendered as a tag or as plain text | [optional] [default to false] +**StartTime** | **string** | Cel expression that returns an ISO8601 formatted timestamp | +**EndTime** | Pointer to **string** | Cel expression that returns an ISO8601 formatted timestamp | [optional] +**Numerator** | **string** | Cel expression that returns a number | +**Denominator** | **string** | Cel expression that returns a number | +**Status** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] +**ImageId** | **string** | Cel expression that returns a string | +**ImageName** | **string** | Cel expression that returns a string | +**AsTags** | Pointer to **bool** | | [optional] [default to true] + +## Methods + +### NewComponentHighlightProjection + +`func NewComponentHighlightProjection(type_ string, value string, query string, name string, identifier string, startTime string, numerator string, denominator string, imageId string, imageName string, ) *ComponentHighlightProjection` + +NewComponentHighlightProjection instantiates a new ComponentHighlightProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentHighlightProjectionWithDefaults + +`func NewComponentHighlightProjectionWithDefaults() *ComponentHighlightProjection` + +NewComponentHighlightProjectionWithDefaults instantiates a new ComponentHighlightProjection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ComponentHighlightProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentHighlightProjection) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComponentHighlightProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *ComponentHighlightProjection) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ComponentHighlightProjection) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ComponentHighlightProjection) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetShowChart + +`func (o *ComponentHighlightProjection) GetShowChart() bool` + +GetShowChart returns the ShowChart field if non-nil, zero value otherwise. + +### GetShowChartOk + +`func (o *ComponentHighlightProjection) GetShowChartOk() (*bool, bool)` + +GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowChart + +`func (o *ComponentHighlightProjection) SetShowChart(v bool)` + +SetShowChart sets ShowChart field to given value. + +### HasShowChart + +`func (o *ComponentHighlightProjection) HasShowChart() bool` + +HasShowChart returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *ComponentHighlightProjection) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *ComponentHighlightProjection) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *ComponentHighlightProjection) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *ComponentHighlightProjection) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + +### GetUnit + +`func (o *ComponentHighlightProjection) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *ComponentHighlightProjection) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *ComponentHighlightProjection) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *ComponentHighlightProjection) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### SetUnitNil + +`func (o *ComponentHighlightProjection) SetUnitNil(b bool)` + + SetUnitNil sets the value for Unit to be an explicit nil + +### UnsetUnit +`func (o *ComponentHighlightProjection) UnsetUnit()` + +UnsetUnit ensures that no value is present for Unit, not even an explicit nil +### GetQuery + +`func (o *ComponentHighlightProjection) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *ComponentHighlightProjection) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *ComponentHighlightProjection) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetName + +`func (o *ComponentHighlightProjection) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentHighlightProjection) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComponentHighlightProjection) SetName(v string)` + +SetName sets Name field to given value. + + +### GetIdentifier + +`func (o *ComponentHighlightProjection) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *ComponentHighlightProjection) GetIdentifierOk() (*string, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *ComponentHighlightProjection) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + +### GetAsTag + +`func (o *ComponentHighlightProjection) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *ComponentHighlightProjection) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *ComponentHighlightProjection) SetAsTag(v bool)` + +SetAsTag sets AsTag field to given value. + +### HasAsTag + +`func (o *ComponentHighlightProjection) HasAsTag() bool` + +HasAsTag returns a boolean if a field has been set. + +### GetStartTime + +`func (o *ComponentHighlightProjection) GetStartTime() string` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *ComponentHighlightProjection) GetStartTimeOk() (*string, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *ComponentHighlightProjection) SetStartTime(v string)` + +SetStartTime sets StartTime field to given value. + + +### GetEndTime + +`func (o *ComponentHighlightProjection) GetEndTime() string` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *ComponentHighlightProjection) GetEndTimeOk() (*string, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *ComponentHighlightProjection) SetEndTime(v string)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *ComponentHighlightProjection) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### GetNumerator + +`func (o *ComponentHighlightProjection) GetNumerator() string` + +GetNumerator returns the Numerator field if non-nil, zero value otherwise. + +### GetNumeratorOk + +`func (o *ComponentHighlightProjection) GetNumeratorOk() (*string, bool)` + +GetNumeratorOk returns a tuple with the Numerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumerator + +`func (o *ComponentHighlightProjection) SetNumerator(v string)` + +SetNumerator sets Numerator field to given value. + + +### GetDenominator + +`func (o *ComponentHighlightProjection) GetDenominator() string` + +GetDenominator returns the Denominator field if non-nil, zero value otherwise. + +### GetDenominatorOk + +`func (o *ComponentHighlightProjection) GetDenominatorOk() (*string, bool)` + +GetDenominatorOk returns a tuple with the Denominator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenominator + +`func (o *ComponentHighlightProjection) SetDenominator(v string)` + +SetDenominator sets Denominator field to given value. + + +### GetStatus + +`func (o *ComponentHighlightProjection) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComponentHighlightProjection) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComponentHighlightProjection) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComponentHighlightProjection) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetImageId + +`func (o *ComponentHighlightProjection) GetImageId() string` + +GetImageId returns the ImageId field if non-nil, zero value otherwise. + +### GetImageIdOk + +`func (o *ComponentHighlightProjection) GetImageIdOk() (*string, bool)` + +GetImageIdOk returns a tuple with the ImageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageId + +`func (o *ComponentHighlightProjection) SetImageId(v string)` + +SetImageId sets ImageId field to given value. + + +### GetImageName + +`func (o *ComponentHighlightProjection) GetImageName() string` + +GetImageName returns the ImageName field if non-nil, zero value otherwise. + +### GetImageNameOk + +`func (o *ComponentHighlightProjection) GetImageNameOk() (*string, bool)` + +GetImageNameOk returns a tuple with the ImageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageName + +`func (o *ComponentHighlightProjection) SetImageName(v string)` + +SetImageName sets ImageName field to given value. + + +### GetAsTags + +`func (o *ComponentHighlightProjection) GetAsTags() bool` + +GetAsTags returns the AsTags field if non-nil, zero value otherwise. + +### GetAsTagsOk + +`func (o *ComponentHighlightProjection) GetAsTagsOk() (*bool, bool)` + +GetAsTagsOk returns a tuple with the AsTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTags + +`func (o *ComponentHighlightProjection) SetAsTags(v bool)` + +SetAsTags sets AsTags field to given value. + +### HasAsTags + +`func (o *ComponentHighlightProjection) HasAsTags() bool` + +HasAsTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentLinkDisplay.md b/generated/stackstate_api/docs/ComponentLinkDisplay.md deleted file mode 100644 index d608b105..00000000 --- a/generated/stackstate_api/docs/ComponentLinkDisplay.md +++ /dev/null @@ -1,51 +0,0 @@ -# ComponentLinkDisplay - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewComponentLinkDisplay - -`func NewComponentLinkDisplay(type_ string, ) *ComponentLinkDisplay` - -NewComponentLinkDisplay instantiates a new ComponentLinkDisplay object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComponentLinkDisplayWithDefaults - -`func NewComponentLinkDisplayWithDefaults() *ComponentLinkDisplay` - -NewComponentLinkDisplayWithDefaults instantiates a new ComponentLinkDisplay object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *ComponentLinkDisplay) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ComponentLinkDisplay) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ComponentLinkDisplay) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/ComponentLinkField.md b/generated/stackstate_api/docs/ComponentLinkField.md new file mode 100644 index 00000000..15113a7e --- /dev/null +++ b/generated/stackstate_api/docs/ComponentLinkField.md @@ -0,0 +1,161 @@ +# ComponentLinkField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Name** | **string** | | +**Identifier** | **string** | | + +## Methods + +### NewComponentLinkField + +`func NewComponentLinkField(fieldId string, title string, type_ string, name string, identifier string, ) *ComponentLinkField` + +NewComponentLinkField instantiates a new ComponentLinkField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentLinkFieldWithDefaults + +`func NewComponentLinkFieldWithDefaults() *ComponentLinkField` + +NewComponentLinkFieldWithDefaults instantiates a new ComponentLinkField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *ComponentLinkField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *ComponentLinkField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *ComponentLinkField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *ComponentLinkField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ComponentLinkField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ComponentLinkField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *ComponentLinkField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComponentLinkField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComponentLinkField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComponentLinkField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *ComponentLinkField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentLinkField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComponentLinkField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetName + +`func (o *ComponentLinkField) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentLinkField) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComponentLinkField) SetName(v string)` + +SetName sets Name field to given value. + + +### GetIdentifier + +`func (o *ComponentLinkField) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *ComponentLinkField) GetIdentifierOk() (*string, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *ComponentLinkField) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentLinkFieldAllOf.md b/generated/stackstate_api/docs/ComponentLinkFieldAllOf.md new file mode 100644 index 00000000..f05b4318 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentLinkFieldAllOf.md @@ -0,0 +1,93 @@ +# ComponentLinkFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Name** | **string** | | +**Identifier** | **string** | | + +## Methods + +### NewComponentLinkFieldAllOf + +`func NewComponentLinkFieldAllOf(type_ string, name string, identifier string, ) *ComponentLinkFieldAllOf` + +NewComponentLinkFieldAllOf instantiates a new ComponentLinkFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentLinkFieldAllOfWithDefaults + +`func NewComponentLinkFieldAllOfWithDefaults() *ComponentLinkFieldAllOf` + +NewComponentLinkFieldAllOfWithDefaults instantiates a new ComponentLinkFieldAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ComponentLinkFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentLinkFieldAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComponentLinkFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetName + +`func (o *ComponentLinkFieldAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentLinkFieldAllOf) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComponentLinkFieldAllOf) SetName(v string)` + +SetName sets Name field to given value. + + +### GetIdentifier + +`func (o *ComponentLinkFieldAllOf) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *ComponentLinkFieldAllOf) GetIdentifierOk() (*string, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *ComponentLinkFieldAllOf) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentLinkProjection.md b/generated/stackstate_api/docs/ComponentLinkProjection.md index b1f61d08..03c2b7c9 100644 --- a/generated/stackstate_api/docs/ComponentLinkProjection.md +++ b/generated/stackstate_api/docs/ComponentLinkProjection.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | **Name** | **string** | Cel expression that returns a string that represents the name of the component to link to | -**ComponentIdentifier** | **string** | Cel expression that returns a string that represents the componentIdentifier in order to build the link | +**Identifier** | **string** | Cel expression that returns a string that represents the identifier in order to build the link | ## Methods ### NewComponentLinkProjection -`func NewComponentLinkProjection(type_ string, name string, componentIdentifier string, ) *ComponentLinkProjection` +`func NewComponentLinkProjection(type_ string, name string, identifier string, ) *ComponentLinkProjection` NewComponentLinkProjection instantiates a new ComponentLinkProjection object This constructor will assign default values to properties that have it defined, @@ -67,24 +67,24 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetComponentIdentifier +### GetIdentifier -`func (o *ComponentLinkProjection) GetComponentIdentifier() string` +`func (o *ComponentLinkProjection) GetIdentifier() string` -GetComponentIdentifier returns the ComponentIdentifier field if non-nil, zero value otherwise. +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. -### GetComponentIdentifierOk +### GetIdentifierOk -`func (o *ComponentLinkProjection) GetComponentIdentifierOk() (*string, bool)` +`func (o *ComponentLinkProjection) GetIdentifierOk() (*string, bool)` -GetComponentIdentifierOk returns a tuple with the ComponentIdentifier field if it's non-nil, zero value otherwise +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetComponentIdentifier +### SetIdentifier -`func (o *ComponentLinkProjection) SetComponentIdentifier(v string)` +`func (o *ComponentLinkProjection) SetIdentifier(v string)` -SetComponentIdentifier sets ComponentIdentifier field to given value. +SetIdentifier sets Identifier field to given value. diff --git a/generated/stackstate_api/docs/ComponentOverviewProjection.md b/generated/stackstate_api/docs/ComponentOverviewProjection.md new file mode 100644 index 00000000..a49ae62b --- /dev/null +++ b/generated/stackstate_api/docs/ComponentOverviewProjection.md @@ -0,0 +1,406 @@ +# ComponentOverviewProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **string** | Cel expression that returns a number | +**ShowChart** | Pointer to **bool** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] +**Unit** | Pointer to **NullableString** | | [optional] +**Query** | **string** | Individual metric query that returns a timeseries for a specific cell. | +**Name** | **string** | Cel expression that returns a string that represents the name of the component to link to | +**Identifier** | **string** | Cel expression that returns a string that represents the identifier in order to build the link | +**AsTag** | Pointer to **bool** | Should the value be rendered as a tag or as plain text | [optional] [default to false] +**StartTime** | **string** | Cel expression that returns an ISO8601 formatted timestamp | +**EndTime** | Pointer to **string** | Cel expression that returns an ISO8601 formatted timestamp | [optional] +**Numerator** | **string** | Cel expression that returns a number | +**Denominator** | **string** | Cel expression that returns a number | +**Status** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] +**ImageId** | **string** | Cel expression that returns a string | +**ImageName** | **string** | Cel expression that returns a string | + +## Methods + +### NewComponentOverviewProjection + +`func NewComponentOverviewProjection(type_ string, value string, query string, name string, identifier string, startTime string, numerator string, denominator string, imageId string, imageName string, ) *ComponentOverviewProjection` + +NewComponentOverviewProjection instantiates a new ComponentOverviewProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentOverviewProjectionWithDefaults + +`func NewComponentOverviewProjectionWithDefaults() *ComponentOverviewProjection` + +NewComponentOverviewProjectionWithDefaults instantiates a new ComponentOverviewProjection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ComponentOverviewProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentOverviewProjection) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComponentOverviewProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *ComponentOverviewProjection) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ComponentOverviewProjection) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ComponentOverviewProjection) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetShowChart + +`func (o *ComponentOverviewProjection) GetShowChart() bool` + +GetShowChart returns the ShowChart field if non-nil, zero value otherwise. + +### GetShowChartOk + +`func (o *ComponentOverviewProjection) GetShowChartOk() (*bool, bool)` + +GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowChart + +`func (o *ComponentOverviewProjection) SetShowChart(v bool)` + +SetShowChart sets ShowChart field to given value. + +### HasShowChart + +`func (o *ComponentOverviewProjection) HasShowChart() bool` + +HasShowChart returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *ComponentOverviewProjection) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *ComponentOverviewProjection) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *ComponentOverviewProjection) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *ComponentOverviewProjection) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + +### GetUnit + +`func (o *ComponentOverviewProjection) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *ComponentOverviewProjection) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *ComponentOverviewProjection) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *ComponentOverviewProjection) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### SetUnitNil + +`func (o *ComponentOverviewProjection) SetUnitNil(b bool)` + + SetUnitNil sets the value for Unit to be an explicit nil + +### UnsetUnit +`func (o *ComponentOverviewProjection) UnsetUnit()` + +UnsetUnit ensures that no value is present for Unit, not even an explicit nil +### GetQuery + +`func (o *ComponentOverviewProjection) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *ComponentOverviewProjection) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *ComponentOverviewProjection) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetName + +`func (o *ComponentOverviewProjection) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentOverviewProjection) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComponentOverviewProjection) SetName(v string)` + +SetName sets Name field to given value. + + +### GetIdentifier + +`func (o *ComponentOverviewProjection) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *ComponentOverviewProjection) GetIdentifierOk() (*string, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *ComponentOverviewProjection) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + +### GetAsTag + +`func (o *ComponentOverviewProjection) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *ComponentOverviewProjection) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *ComponentOverviewProjection) SetAsTag(v bool)` + +SetAsTag sets AsTag field to given value. + +### HasAsTag + +`func (o *ComponentOverviewProjection) HasAsTag() bool` + +HasAsTag returns a boolean if a field has been set. + +### GetStartTime + +`func (o *ComponentOverviewProjection) GetStartTime() string` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *ComponentOverviewProjection) GetStartTimeOk() (*string, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *ComponentOverviewProjection) SetStartTime(v string)` + +SetStartTime sets StartTime field to given value. + + +### GetEndTime + +`func (o *ComponentOverviewProjection) GetEndTime() string` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *ComponentOverviewProjection) GetEndTimeOk() (*string, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *ComponentOverviewProjection) SetEndTime(v string)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *ComponentOverviewProjection) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### GetNumerator + +`func (o *ComponentOverviewProjection) GetNumerator() string` + +GetNumerator returns the Numerator field if non-nil, zero value otherwise. + +### GetNumeratorOk + +`func (o *ComponentOverviewProjection) GetNumeratorOk() (*string, bool)` + +GetNumeratorOk returns a tuple with the Numerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumerator + +`func (o *ComponentOverviewProjection) SetNumerator(v string)` + +SetNumerator sets Numerator field to given value. + + +### GetDenominator + +`func (o *ComponentOverviewProjection) GetDenominator() string` + +GetDenominator returns the Denominator field if non-nil, zero value otherwise. + +### GetDenominatorOk + +`func (o *ComponentOverviewProjection) GetDenominatorOk() (*string, bool)` + +GetDenominatorOk returns a tuple with the Denominator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenominator + +`func (o *ComponentOverviewProjection) SetDenominator(v string)` + +SetDenominator sets Denominator field to given value. + + +### GetStatus + +`func (o *ComponentOverviewProjection) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComponentOverviewProjection) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComponentOverviewProjection) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComponentOverviewProjection) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetImageId + +`func (o *ComponentOverviewProjection) GetImageId() string` + +GetImageId returns the ImageId field if non-nil, zero value otherwise. + +### GetImageIdOk + +`func (o *ComponentOverviewProjection) GetImageIdOk() (*string, bool)` + +GetImageIdOk returns a tuple with the ImageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageId + +`func (o *ComponentOverviewProjection) SetImageId(v string)` + +SetImageId sets ImageId field to given value. + + +### GetImageName + +`func (o *ComponentOverviewProjection) GetImageName() string` + +GetImageName returns the ImageName field if non-nil, zero value otherwise. + +### GetImageNameOk + +`func (o *ComponentOverviewProjection) GetImageNameOk() (*string, bool)` + +GetImageNameOk returns a tuple with the ImageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageName + +`func (o *ComponentOverviewProjection) SetImageName(v string)` + +SetImageName sets ImageName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentPresentationApi.md b/generated/stackstate_api/docs/ComponentPresentationApi.md index 560a17f7..08c46a54 100644 --- a/generated/stackstate_api/docs/ComponentPresentationApi.md +++ b/generated/stackstate_api/docs/ComponentPresentationApi.md @@ -4,10 +4,11 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DeleteComponentPresentationByIdentifier**](ComponentPresentationApi.md#DeleteComponentPresentationByIdentifier) | **Delete** /component-presentations/{identifier} | Delete a component presentation by Identifier -[**GetComponentPresentationByIdentifier**](ComponentPresentationApi.md#GetComponentPresentationByIdentifier) | **Get** /component-presentations/{identifier} | Get a component presentation by Identifier -[**GetComponentPresentations**](ComponentPresentationApi.md#GetComponentPresentations) | **Get** /component-presentations | List all component presentations -[**UpsertComponentPresentations**](ComponentPresentationApi.md#UpsertComponentPresentations) | **Put** /component-presentations | Upserts (creates/updates) a component presentation +[**DeleteComponentPresentationByIdentifier**](ComponentPresentationApi.md#DeleteComponentPresentationByIdentifier) | **Delete** /presentations/{identifier} | Delete a component presentation by Identifier +[**GetComponentPresentationByIdentifier**](ComponentPresentationApi.md#GetComponentPresentationByIdentifier) | **Get** /presentations/{identifier} | Get a component presentation by Identifier +[**GetComponentPresentations**](ComponentPresentationApi.md#GetComponentPresentations) | **Get** /presentations | List all component presentations +[**GetPresentationFilters**](ComponentPresentationApi.md#GetPresentationFilters) | **Get** /presentations/{presentationOrViewUrn}/filters | Get resolved filters for a presentation +[**UpsertComponentPresentations**](ComponentPresentationApi.md#UpsertComponentPresentations) | **Put** /presentations | Upserts (creates/updates) a component presentation @@ -204,6 +205,76 @@ Other parameters are passed through a pointer to a apiGetComponentPresentationsR [[Back to README]](../README.md) +## GetPresentationFilters + +> PresentationFiltersResponse GetPresentationFilters(ctx, presentationOrViewUrn).Execute() + +Get resolved filters for a presentation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + presentationOrViewUrn := "presentationOrViewUrn_example" // string | A Component Presentation Identifier, legacy View (QueryView, ViewType) URNs are supported for backward compatibility + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComponentPresentationApi.GetPresentationFilters(context.Background(), presentationOrViewUrn).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComponentPresentationApi.GetPresentationFilters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPresentationFilters`: PresentationFiltersResponse + fmt.Fprintf(os.Stdout, "Response from `ComponentPresentationApi.GetPresentationFilters`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**presentationOrViewUrn** | **string** | A Component Presentation Identifier, legacy View (QueryView, ViewType) URNs are supported for backward compatibility | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPresentationFiltersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**PresentationFiltersResponse**](PresentationFiltersResponse.md) + +### Authorization + +[ApiToken](../README.md#ApiToken), [ServiceBearer](../README.md#ServiceBearer), [ServiceToken](../README.md#ServiceToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## UpsertComponentPresentations > ComponentPresentation UpsertComponentPresentations(ctx).ComponentPresentation(componentPresentation).Execute() diff --git a/generated/stackstate_api/docs/ComponentPresentationFilter.md b/generated/stackstate_api/docs/ComponentPresentationFilter.md new file mode 100644 index 00000000..914fd02f --- /dev/null +++ b/generated/stackstate_api/docs/ComponentPresentationFilter.md @@ -0,0 +1,129 @@ +# ComponentPresentationFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FilterId** | **string** | Stable identity used for deduplication and cross-stackpack compatibility. | +**DisplayName** | Pointer to [**FilterName**](FilterName.md) | | [optional] +**MenuSection** | Pointer to **string** | Label to group filters in the UI. | [optional] +**Filter** | Pointer to [**ComponentPresentationFilterDefinition**](ComponentPresentationFilterDefinition.md) | | [optional] + +## Methods + +### NewComponentPresentationFilter + +`func NewComponentPresentationFilter(filterId string, ) *ComponentPresentationFilter` + +NewComponentPresentationFilter instantiates a new ComponentPresentationFilter object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentPresentationFilterWithDefaults + +`func NewComponentPresentationFilterWithDefaults() *ComponentPresentationFilter` + +NewComponentPresentationFilterWithDefaults instantiates a new ComponentPresentationFilter object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFilterId + +`func (o *ComponentPresentationFilter) GetFilterId() string` + +GetFilterId returns the FilterId field if non-nil, zero value otherwise. + +### GetFilterIdOk + +`func (o *ComponentPresentationFilter) GetFilterIdOk() (*string, bool)` + +GetFilterIdOk returns a tuple with the FilterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilterId + +`func (o *ComponentPresentationFilter) SetFilterId(v string)` + +SetFilterId sets FilterId field to given value. + + +### GetDisplayName + +`func (o *ComponentPresentationFilter) GetDisplayName() FilterName` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ComponentPresentationFilter) GetDisplayNameOk() (*FilterName, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ComponentPresentationFilter) SetDisplayName(v FilterName)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ComponentPresentationFilter) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetMenuSection + +`func (o *ComponentPresentationFilter) GetMenuSection() string` + +GetMenuSection returns the MenuSection field if non-nil, zero value otherwise. + +### GetMenuSectionOk + +`func (o *ComponentPresentationFilter) GetMenuSectionOk() (*string, bool)` + +GetMenuSectionOk returns a tuple with the MenuSection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMenuSection + +`func (o *ComponentPresentationFilter) SetMenuSection(v string)` + +SetMenuSection sets MenuSection field to given value. + +### HasMenuSection + +`func (o *ComponentPresentationFilter) HasMenuSection() bool` + +HasMenuSection returns a boolean if a field has been set. + +### GetFilter + +`func (o *ComponentPresentationFilter) GetFilter() ComponentPresentationFilterDefinition` + +GetFilter returns the Filter field if non-nil, zero value otherwise. + +### GetFilterOk + +`func (o *ComponentPresentationFilter) GetFilterOk() (*ComponentPresentationFilterDefinition, bool)` + +GetFilterOk returns a tuple with the Filter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilter + +`func (o *ComponentPresentationFilter) SetFilter(v ComponentPresentationFilterDefinition)` + +SetFilter sets Filter field to given value. + +### HasFilter + +`func (o *ComponentPresentationFilter) HasFilter() bool` + +HasFilter returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentPresentationFilterDefinition.md b/generated/stackstate_api/docs/ComponentPresentationFilterDefinition.md new file mode 100644 index 00000000..e0e9a785 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentPresentationFilterDefinition.md @@ -0,0 +1,72 @@ +# ComponentPresentationFilterDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**TagKey** | **string** | Tag key used for filtering and value lookup. | + +## Methods + +### NewComponentPresentationFilterDefinition + +`func NewComponentPresentationFilterDefinition(type_ string, tagKey string, ) *ComponentPresentationFilterDefinition` + +NewComponentPresentationFilterDefinition instantiates a new ComponentPresentationFilterDefinition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentPresentationFilterDefinitionWithDefaults + +`func NewComponentPresentationFilterDefinitionWithDefaults() *ComponentPresentationFilterDefinition` + +NewComponentPresentationFilterDefinitionWithDefaults instantiates a new ComponentPresentationFilterDefinition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ComponentPresentationFilterDefinition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentPresentationFilterDefinition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComponentPresentationFilterDefinition) SetType(v string)` + +SetType sets Type field to given value. + + +### GetTagKey + +`func (o *ComponentPresentationFilterDefinition) GetTagKey() string` + +GetTagKey returns the TagKey field if non-nil, zero value otherwise. + +### GetTagKeyOk + +`func (o *ComponentPresentationFilterDefinition) GetTagKeyOk() (*string, bool)` + +GetTagKeyOk returns a tuple with the TagKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagKey + +`func (o *ComponentPresentationFilterDefinition) SetTagKey(v string)` + +SetTagKey sets TagKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentTypeAbout.md b/generated/stackstate_api/docs/ComponentTypeAbout.md deleted file mode 100644 index e886620e..00000000 --- a/generated/stackstate_api/docs/ComponentTypeAbout.md +++ /dev/null @@ -1,51 +0,0 @@ -# ComponentTypeAbout - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Fields** | **[]string** | | - -## Methods - -### NewComponentTypeAbout - -`func NewComponentTypeAbout(fields []string, ) *ComponentTypeAbout` - -NewComponentTypeAbout instantiates a new ComponentTypeAbout object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComponentTypeAboutWithDefaults - -`func NewComponentTypeAboutWithDefaults() *ComponentTypeAbout` - -NewComponentTypeAboutWithDefaults instantiates a new ComponentTypeAbout object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFields - -`func (o *ComponentTypeAbout) GetFields() []string` - -GetFields returns the Fields field if non-nil, zero value otherwise. - -### GetFieldsOk - -`func (o *ComponentTypeAbout) GetFieldsOk() (*[]string, bool)` - -GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFields - -`func (o *ComponentTypeAbout) SetFields(v []string)` - -SetFields sets Fields field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/ComponentTypeField.md b/generated/stackstate_api/docs/ComponentTypeField.md deleted file mode 100644 index efcfe0e3..00000000 --- a/generated/stackstate_api/docs/ComponentTypeField.md +++ /dev/null @@ -1,114 +0,0 @@ -# ComponentTypeField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FieldId** | **string** | | -**Label** | [**ComponentTypeLabel**](ComponentTypeLabel.md) | | -**ValueExtractor** | [**ComponentTypeValueExtractor**](ComponentTypeValueExtractor.md) | | -**Display** | [**ComponentTypeFieldDisplay**](ComponentTypeFieldDisplay.md) | | - -## Methods - -### NewComponentTypeField - -`func NewComponentTypeField(fieldId string, label ComponentTypeLabel, valueExtractor ComponentTypeValueExtractor, display ComponentTypeFieldDisplay, ) *ComponentTypeField` - -NewComponentTypeField instantiates a new ComponentTypeField object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComponentTypeFieldWithDefaults - -`func NewComponentTypeFieldWithDefaults() *ComponentTypeField` - -NewComponentTypeFieldWithDefaults instantiates a new ComponentTypeField object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetFieldId - -`func (o *ComponentTypeField) GetFieldId() string` - -GetFieldId returns the FieldId field if non-nil, zero value otherwise. - -### GetFieldIdOk - -`func (o *ComponentTypeField) GetFieldIdOk() (*string, bool)` - -GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFieldId - -`func (o *ComponentTypeField) SetFieldId(v string)` - -SetFieldId sets FieldId field to given value. - - -### GetLabel - -`func (o *ComponentTypeField) GetLabel() ComponentTypeLabel` - -GetLabel returns the Label field if non-nil, zero value otherwise. - -### GetLabelOk - -`func (o *ComponentTypeField) GetLabelOk() (*ComponentTypeLabel, bool)` - -GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabel - -`func (o *ComponentTypeField) SetLabel(v ComponentTypeLabel)` - -SetLabel sets Label field to given value. - - -### GetValueExtractor - -`func (o *ComponentTypeField) GetValueExtractor() ComponentTypeValueExtractor` - -GetValueExtractor returns the ValueExtractor field if non-nil, zero value otherwise. - -### GetValueExtractorOk - -`func (o *ComponentTypeField) GetValueExtractorOk() (*ComponentTypeValueExtractor, bool)` - -GetValueExtractorOk returns a tuple with the ValueExtractor field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValueExtractor - -`func (o *ComponentTypeField) SetValueExtractor(v ComponentTypeValueExtractor)` - -SetValueExtractor sets ValueExtractor field to given value. - - -### GetDisplay - -`func (o *ComponentTypeField) GetDisplay() ComponentTypeFieldDisplay` - -GetDisplay returns the Display field if non-nil, zero value otherwise. - -### GetDisplayOk - -`func (o *ComponentTypeField) GetDisplayOk() (*ComponentTypeFieldDisplay, bool)` - -GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplay - -`func (o *ComponentTypeField) SetDisplay(v ComponentTypeFieldDisplay)` - -SetDisplay sets Display field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/ComponentTypeFieldDisplay.md b/generated/stackstate_api/docs/ComponentTypeFieldDisplay.md deleted file mode 100644 index d4db71b0..00000000 --- a/generated/stackstate_api/docs/ComponentTypeFieldDisplay.md +++ /dev/null @@ -1,77 +0,0 @@ -# ComponentTypeFieldDisplay - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | -**Singular** | Pointer to **string** | | [optional] - -## Methods - -### NewComponentTypeFieldDisplay - -`func NewComponentTypeFieldDisplay(type_ string, ) *ComponentTypeFieldDisplay` - -NewComponentTypeFieldDisplay instantiates a new ComponentTypeFieldDisplay object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComponentTypeFieldDisplayWithDefaults - -`func NewComponentTypeFieldDisplayWithDefaults() *ComponentTypeFieldDisplay` - -NewComponentTypeFieldDisplayWithDefaults instantiates a new ComponentTypeFieldDisplay object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *ComponentTypeFieldDisplay) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ComponentTypeFieldDisplay) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ComponentTypeFieldDisplay) SetType(v string)` - -SetType sets Type field to given value. - - -### GetSingular - -`func (o *ComponentTypeFieldDisplay) GetSingular() string` - -GetSingular returns the Singular field if non-nil, zero value otherwise. - -### GetSingularOk - -`func (o *ComponentTypeFieldDisplay) GetSingularOk() (*string, bool)` - -GetSingularOk returns a tuple with the Singular field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSingular - -`func (o *ComponentTypeFieldDisplay) SetSingular(v string)` - -SetSingular sets Singular field to given value. - -### HasSingular - -`func (o *ComponentTypeFieldDisplay) HasSingular() bool` - -HasSingular returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/ComponentTypeLabel.md b/generated/stackstate_api/docs/ComponentTypeLabel.md deleted file mode 100644 index ad5bb17b..00000000 --- a/generated/stackstate_api/docs/ComponentTypeLabel.md +++ /dev/null @@ -1,77 +0,0 @@ -# ComponentTypeLabel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Title** | **string** | | -**HelpBubbleText** | Pointer to **string** | | [optional] - -## Methods - -### NewComponentTypeLabel - -`func NewComponentTypeLabel(title string, ) *ComponentTypeLabel` - -NewComponentTypeLabel instantiates a new ComponentTypeLabel object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComponentTypeLabelWithDefaults - -`func NewComponentTypeLabelWithDefaults() *ComponentTypeLabel` - -NewComponentTypeLabelWithDefaults instantiates a new ComponentTypeLabel object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTitle - -`func (o *ComponentTypeLabel) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *ComponentTypeLabel) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *ComponentTypeLabel) SetTitle(v string)` - -SetTitle sets Title field to given value. - - -### GetHelpBubbleText - -`func (o *ComponentTypeLabel) GetHelpBubbleText() string` - -GetHelpBubbleText returns the HelpBubbleText field if non-nil, zero value otherwise. - -### GetHelpBubbleTextOk - -`func (o *ComponentTypeLabel) GetHelpBubbleTextOk() (*string, bool)` - -GetHelpBubbleTextOk returns a tuple with the HelpBubbleText field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHelpBubbleText - -`func (o *ComponentTypeLabel) SetHelpBubbleText(v string)` - -SetHelpBubbleText sets HelpBubbleText field to given value. - -### HasHelpBubbleText - -`func (o *ComponentTypeLabel) HasHelpBubbleText() bool` - -HasHelpBubbleText returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/ComponentTypeSource.md b/generated/stackstate_api/docs/ComponentTypeSource.md deleted file mode 100644 index 10e0c712..00000000 --- a/generated/stackstate_api/docs/ComponentTypeSource.md +++ /dev/null @@ -1,51 +0,0 @@ -# ComponentTypeSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewComponentTypeSource - -`func NewComponentTypeSource(type_ string, ) *ComponentTypeSource` - -NewComponentTypeSource instantiates a new ComponentTypeSource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComponentTypeSourceWithDefaults - -`func NewComponentTypeSourceWithDefaults() *ComponentTypeSource` - -NewComponentTypeSourceWithDefaults instantiates a new ComponentTypeSource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *ComponentTypeSource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ComponentTypeSource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ComponentTypeSource) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/ComponentTypeValueExtractor.md b/generated/stackstate_api/docs/ComponentTypeValueExtractor.md deleted file mode 100644 index 859a59d9..00000000 --- a/generated/stackstate_api/docs/ComponentTypeValueExtractor.md +++ /dev/null @@ -1,161 +0,0 @@ -# ComponentTypeValueExtractor - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | -**Sources** | [**map[string]ComponentTypeValueExtractor**](ComponentTypeValueExtractor.md) | | -**Value** | **string** | | -**Key** | **string** | | -**DefaultValue** | Pointer to **string** | | [optional] -**TagName** | **string** | | - -## Methods - -### NewComponentTypeValueExtractor - -`func NewComponentTypeValueExtractor(type_ string, sources map[string]ComponentTypeValueExtractor, value string, key string, tagName string, ) *ComponentTypeValueExtractor` - -NewComponentTypeValueExtractor instantiates a new ComponentTypeValueExtractor object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComponentTypeValueExtractorWithDefaults - -`func NewComponentTypeValueExtractorWithDefaults() *ComponentTypeValueExtractor` - -NewComponentTypeValueExtractorWithDefaults instantiates a new ComponentTypeValueExtractor object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *ComponentTypeValueExtractor) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ComponentTypeValueExtractor) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ComponentTypeValueExtractor) SetType(v string)` - -SetType sets Type field to given value. - - -### GetSources - -`func (o *ComponentTypeValueExtractor) GetSources() map[string]ComponentTypeValueExtractor` - -GetSources returns the Sources field if non-nil, zero value otherwise. - -### GetSourcesOk - -`func (o *ComponentTypeValueExtractor) GetSourcesOk() (*map[string]ComponentTypeValueExtractor, bool)` - -GetSourcesOk returns a tuple with the Sources field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSources - -`func (o *ComponentTypeValueExtractor) SetSources(v map[string]ComponentTypeValueExtractor)` - -SetSources sets Sources field to given value. - - -### GetValue - -`func (o *ComponentTypeValueExtractor) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *ComponentTypeValueExtractor) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *ComponentTypeValueExtractor) SetValue(v string)` - -SetValue sets Value field to given value. - - -### GetKey - -`func (o *ComponentTypeValueExtractor) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *ComponentTypeValueExtractor) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *ComponentTypeValueExtractor) SetKey(v string)` - -SetKey sets Key field to given value. - - -### GetDefaultValue - -`func (o *ComponentTypeValueExtractor) GetDefaultValue() string` - -GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. - -### GetDefaultValueOk - -`func (o *ComponentTypeValueExtractor) GetDefaultValueOk() (*string, bool)` - -GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultValue - -`func (o *ComponentTypeValueExtractor) SetDefaultValue(v string)` - -SetDefaultValue sets DefaultValue field to given value. - -### HasDefaultValue - -`func (o *ComponentTypeValueExtractor) HasDefaultValue() bool` - -HasDefaultValue returns a boolean if a field has been set. - -### GetTagName - -`func (o *ComponentTypeValueExtractor) GetTagName() string` - -GetTagName returns the TagName field if non-nil, zero value otherwise. - -### GetTagNameOk - -`func (o *ComponentTypeValueExtractor) GetTagNameOk() (*string, bool)` - -GetTagNameOk returns a tuple with the TagName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTagName - -`func (o *ComponentTypeValueExtractor) SetTagName(v string)` - -SetTagName sets TagName field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/CompositeSource.md b/generated/stackstate_api/docs/CompositeSource.md deleted file mode 100644 index bf06324a..00000000 --- a/generated/stackstate_api/docs/CompositeSource.md +++ /dev/null @@ -1,72 +0,0 @@ -# CompositeSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | -**Sources** | [**map[string]ComponentTypeValueExtractor**](ComponentTypeValueExtractor.md) | | - -## Methods - -### NewCompositeSource - -`func NewCompositeSource(type_ string, sources map[string]ComponentTypeValueExtractor, ) *CompositeSource` - -NewCompositeSource instantiates a new CompositeSource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCompositeSourceWithDefaults - -`func NewCompositeSourceWithDefaults() *CompositeSource` - -NewCompositeSourceWithDefaults instantiates a new CompositeSource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *CompositeSource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CompositeSource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CompositeSource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetSources - -`func (o *CompositeSource) GetSources() map[string]ComponentTypeValueExtractor` - -GetSources returns the Sources field if non-nil, zero value otherwise. - -### GetSourcesOk - -`func (o *CompositeSource) GetSourcesOk() (*map[string]ComponentTypeValueExtractor, bool)` - -GetSourcesOk returns a tuple with the Sources field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSources - -`func (o *CompositeSource) SetSources(v map[string]ComponentTypeValueExtractor)` - -SetSources sets Sources field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/DurationDisplay.md b/generated/stackstate_api/docs/DurationDisplay.md deleted file mode 100644 index 9600a823..00000000 --- a/generated/stackstate_api/docs/DurationDisplay.md +++ /dev/null @@ -1,51 +0,0 @@ -# DurationDisplay - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewDurationDisplay - -`func NewDurationDisplay(type_ string, ) *DurationDisplay` - -NewDurationDisplay instantiates a new DurationDisplay object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewDurationDisplayWithDefaults - -`func NewDurationDisplayWithDefaults() *DurationDisplay` - -NewDurationDisplayWithDefaults instantiates a new DurationDisplay object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *DurationDisplay) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *DurationDisplay) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *DurationDisplay) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/DurationField.md b/generated/stackstate_api/docs/DurationField.md new file mode 100644 index 00000000..a6ef54df --- /dev/null +++ b/generated/stackstate_api/docs/DurationField.md @@ -0,0 +1,176 @@ +# DurationField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**StartTime** | **int32** | | +**EndTime** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewDurationField + +`func NewDurationField(fieldId string, title string, type_ string, startTime int32, ) *DurationField` + +NewDurationField instantiates a new DurationField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDurationFieldWithDefaults + +`func NewDurationFieldWithDefaults() *DurationField` + +NewDurationFieldWithDefaults instantiates a new DurationField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *DurationField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *DurationField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *DurationField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *DurationField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *DurationField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *DurationField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *DurationField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *DurationField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *DurationField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *DurationField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *DurationField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DurationField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DurationField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetStartTime + +`func (o *DurationField) GetStartTime() int32` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *DurationField) GetStartTimeOk() (*int32, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *DurationField) SetStartTime(v int32)` + +SetStartTime sets StartTime field to given value. + + +### GetEndTime + +`func (o *DurationField) GetEndTime() int32` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *DurationField) GetEndTimeOk() (*int32, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *DurationField) SetEndTime(v int32)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *DurationField) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### SetEndTimeNil + +`func (o *DurationField) SetEndTimeNil(b bool)` + + SetEndTimeNil sets the value for EndTime to be an explicit nil + +### UnsetEndTime +`func (o *DurationField) UnsetEndTime()` + +UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/DurationFieldAllOf.md b/generated/stackstate_api/docs/DurationFieldAllOf.md new file mode 100644 index 00000000..ebd2e5dd --- /dev/null +++ b/generated/stackstate_api/docs/DurationFieldAllOf.md @@ -0,0 +1,108 @@ +# DurationFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**StartTime** | **int32** | | +**EndTime** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewDurationFieldAllOf + +`func NewDurationFieldAllOf(type_ string, startTime int32, ) *DurationFieldAllOf` + +NewDurationFieldAllOf instantiates a new DurationFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDurationFieldAllOfWithDefaults + +`func NewDurationFieldAllOfWithDefaults() *DurationFieldAllOf` + +NewDurationFieldAllOfWithDefaults instantiates a new DurationFieldAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *DurationFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DurationFieldAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DurationFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetStartTime + +`func (o *DurationFieldAllOf) GetStartTime() int32` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *DurationFieldAllOf) GetStartTimeOk() (*int32, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *DurationFieldAllOf) SetStartTime(v int32)` + +SetStartTime sets StartTime field to given value. + + +### GetEndTime + +`func (o *DurationFieldAllOf) GetEndTime() int32` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *DurationFieldAllOf) GetEndTimeOk() (*int32, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *DurationFieldAllOf) SetEndTime(v int32)` + +SetEndTime sets EndTime field to given value. + +### HasEndTime + +`func (o *DurationFieldAllOf) HasEndTime() bool` + +HasEndTime returns a boolean if a field has been set. + +### SetEndTimeNil + +`func (o *DurationFieldAllOf) SetEndTimeNil(b bool)` + + SetEndTimeNil sets the value for EndTime to be an explicit nil + +### UnsetEndTime +`func (o *DurationFieldAllOf) UnsetEndTime()` + +UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/DurationProjection.md b/generated/stackstate_api/docs/DurationProjection.md index c7448ac8..fab8d919 100644 --- a/generated/stackstate_api/docs/DurationProjection.md +++ b/generated/stackstate_api/docs/DurationProjection.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | -**StartDate** | **string** | Cel expression that returns a date | -**EndDate** | Pointer to **string** | Cel expression that returns a date | [optional] +**StartTime** | **string** | Cel expression that returns an ISO8601 formatted timestamp | +**EndTime** | Pointer to **string** | Cel expression that returns an ISO8601 formatted timestamp | [optional] ## Methods ### NewDurationProjection -`func NewDurationProjection(type_ string, startDate string, ) *DurationProjection` +`func NewDurationProjection(type_ string, startTime string, ) *DurationProjection` NewDurationProjection instantiates a new DurationProjection object This constructor will assign default values to properties that have it defined, @@ -47,50 +47,50 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### GetStartDate +### GetStartTime -`func (o *DurationProjection) GetStartDate() string` +`func (o *DurationProjection) GetStartTime() string` -GetStartDate returns the StartDate field if non-nil, zero value otherwise. +GetStartTime returns the StartTime field if non-nil, zero value otherwise. -### GetStartDateOk +### GetStartTimeOk -`func (o *DurationProjection) GetStartDateOk() (*string, bool)` +`func (o *DurationProjection) GetStartTimeOk() (*string, bool)` -GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetStartDate +### SetStartTime -`func (o *DurationProjection) SetStartDate(v string)` +`func (o *DurationProjection) SetStartTime(v string)` -SetStartDate sets StartDate field to given value. +SetStartTime sets StartTime field to given value. -### GetEndDate +### GetEndTime -`func (o *DurationProjection) GetEndDate() string` +`func (o *DurationProjection) GetEndTime() string` -GetEndDate returns the EndDate field if non-nil, zero value otherwise. +GetEndTime returns the EndTime field if non-nil, zero value otherwise. -### GetEndDateOk +### GetEndTimeOk -`func (o *DurationProjection) GetEndDateOk() (*string, bool)` +`func (o *DurationProjection) GetEndTimeOk() (*string, bool)` -GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEndDate +### SetEndTime -`func (o *DurationProjection) SetEndDate(v string)` +`func (o *DurationProjection) SetEndTime(v string)` -SetEndDate sets EndDate field to given value. +SetEndTime sets EndTime field to given value. -### HasEndDate +### HasEndTime -`func (o *DurationProjection) HasEndDate() bool` +`func (o *DurationProjection) HasEndTime() bool` -HasEndDate returns a boolean if a field has been set. +HasEndTime returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/ErrorField.md b/generated/stackstate_api/docs/ErrorField.md new file mode 100644 index 00000000..13e2749b --- /dev/null +++ b/generated/stackstate_api/docs/ErrorField.md @@ -0,0 +1,140 @@ +# ErrorField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Message** | **string** | | + +## Methods + +### NewErrorField + +`func NewErrorField(fieldId string, title string, type_ string, message string, ) *ErrorField` + +NewErrorField instantiates a new ErrorField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorFieldWithDefaults + +`func NewErrorFieldWithDefaults() *ErrorField` + +NewErrorFieldWithDefaults instantiates a new ErrorField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *ErrorField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *ErrorField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *ErrorField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *ErrorField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ErrorField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ErrorField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *ErrorField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ErrorField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ErrorField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ErrorField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *ErrorField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ErrorField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ErrorField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetMessage + +`func (o *ErrorField) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorField) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorField) SetMessage(v string)` + +SetMessage sets Message field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PromQLDisplay.md b/generated/stackstate_api/docs/ErrorFieldAllOf.md similarity index 50% rename from generated/stackstate_api/docs/PromQLDisplay.md rename to generated/stackstate_api/docs/ErrorFieldAllOf.md index e963864e..4134e717 100644 --- a/generated/stackstate_api/docs/PromQLDisplay.md +++ b/generated/stackstate_api/docs/ErrorFieldAllOf.md @@ -1,50 +1,71 @@ -# PromqlDisplay +# ErrorFieldAllOf ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | +**Message** | **string** | | ## Methods -### NewPromqlDisplay +### NewErrorFieldAllOf -`func NewPromqlDisplay(type_ string, ) *PromqlDisplay` +`func NewErrorFieldAllOf(type_ string, message string, ) *ErrorFieldAllOf` -NewPromqlDisplay instantiates a new PromqlDisplay object +NewErrorFieldAllOf instantiates a new ErrorFieldAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPromqlDisplayWithDefaults +### NewErrorFieldAllOfWithDefaults -`func NewPromqlDisplayWithDefaults() *PromqlDisplay` +`func NewErrorFieldAllOfWithDefaults() *ErrorFieldAllOf` -NewPromqlDisplayWithDefaults instantiates a new PromqlDisplay object +NewErrorFieldAllOfWithDefaults instantiates a new ErrorFieldAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *PromqlDisplay) GetType() string` +`func (o *ErrorFieldAllOf) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PromqlDisplay) GetTypeOk() (*string, bool)` +`func (o *ErrorFieldAllOf) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PromqlDisplay) SetType(v string)` +`func (o *ErrorFieldAllOf) SetType(v string)` SetType sets Type field to given value. +### GetMessage + +`func (o *ErrorFieldAllOf) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ErrorFieldAllOf) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ErrorFieldAllOf) SetMessage(v string)` + +SetMessage sets Message field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/TagDisplay.md b/generated/stackstate_api/docs/FilterName.md similarity index 51% rename from generated/stackstate_api/docs/TagDisplay.md rename to generated/stackstate_api/docs/FilterName.md index 4e78bc44..89b06412 100644 --- a/generated/stackstate_api/docs/TagDisplay.md +++ b/generated/stackstate_api/docs/FilterName.md @@ -1,75 +1,70 @@ -# TagDisplay +# FilterName ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | -**Singular** | Pointer to **string** | | [optional] +**Singular** | **string** | | +**Plural** | **string** | | ## Methods -### NewTagDisplay +### NewFilterName -`func NewTagDisplay(type_ string, ) *TagDisplay` +`func NewFilterName(singular string, plural string, ) *FilterName` -NewTagDisplay instantiates a new TagDisplay object +NewFilterName instantiates a new FilterName object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewTagDisplayWithDefaults +### NewFilterNameWithDefaults -`func NewTagDisplayWithDefaults() *TagDisplay` +`func NewFilterNameWithDefaults() *FilterName` -NewTagDisplayWithDefaults instantiates a new TagDisplay object +NewFilterNameWithDefaults instantiates a new FilterName object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetType +### GetSingular -`func (o *TagDisplay) GetType() string` +`func (o *FilterName) GetSingular() string` -GetType returns the Type field if non-nil, zero value otherwise. +GetSingular returns the Singular field if non-nil, zero value otherwise. -### GetTypeOk +### GetSingularOk -`func (o *TagDisplay) GetTypeOk() (*string, bool)` +`func (o *FilterName) GetSingularOk() (*string, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetSingularOk returns a tuple with the Singular field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetSingular -`func (o *TagDisplay) SetType(v string)` +`func (o *FilterName) SetSingular(v string)` -SetType sets Type field to given value. +SetSingular sets Singular field to given value. -### GetSingular +### GetPlural -`func (o *TagDisplay) GetSingular() string` +`func (o *FilterName) GetPlural() string` -GetSingular returns the Singular field if non-nil, zero value otherwise. +GetPlural returns the Plural field if non-nil, zero value otherwise. -### GetSingularOk +### GetPluralOk -`func (o *TagDisplay) GetSingularOk() (*string, bool)` +`func (o *FilterName) GetPluralOk() (*string, bool)` -GetSingularOk returns a tuple with the Singular field if it's non-nil, zero value otherwise +GetPluralOk returns a tuple with the Plural field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSingular - -`func (o *TagDisplay) SetSingular(v string)` - -SetSingular sets Singular field to given value. +### SetPlural -### HasSingular +`func (o *FilterName) SetPlural(v string)` -`func (o *TagDisplay) HasSingular() bool` +SetPlural sets Plural field to given value. -HasSingular returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/FullComponent.md b/generated/stackstate_api/docs/FullComponent.md index 8926a619..6ec98722 100644 --- a/generated/stackstate_api/docs/FullComponent.md +++ b/generated/stackstate_api/docs/FullComponent.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **TypeName** | **string** | | **Icon** | Pointer to **string** | | [optional] +**Fields** | [**[]ComponentField**](ComponentField.md) | | **Data** | [**ComponentData**](ComponentData.md) | | -**Highlights** | Pointer to [**ComponentTypeHighlights**](ComponentTypeHighlights.md) | | [optional] +**Highlights** | Pointer to [**LegacyComponentHighlights**](LegacyComponentHighlights.md) | | [optional] **Actions** | [**[]ComponentAction**](ComponentAction.md) | | **BoundMetrics** | [**[]BoundMetric**](BoundMetric.md) | | **BoundTraces** | Pointer to [**BoundTraces**](BoundTraces.md) | | [optional] @@ -16,7 +17,7 @@ Name | Type | Description | Notes ### NewFullComponent -`func NewFullComponent(typeName string, data ComponentData, actions []ComponentAction, boundMetrics []BoundMetric, ) *FullComponent` +`func NewFullComponent(typeName string, fields []ComponentField, data ComponentData, actions []ComponentAction, boundMetrics []BoundMetric, ) *FullComponent` NewFullComponent instantiates a new FullComponent object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ SetIcon sets Icon field to given value. HasIcon returns a boolean if a field has been set. +### GetFields + +`func (o *FullComponent) GetFields() []ComponentField` + +GetFields returns the Fields field if non-nil, zero value otherwise. + +### GetFieldsOk + +`func (o *FullComponent) GetFieldsOk() (*[]ComponentField, bool)` + +GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFields + +`func (o *FullComponent) SetFields(v []ComponentField)` + +SetFields sets Fields field to given value. + + ### GetData `func (o *FullComponent) GetData() ComponentData` @@ -98,20 +119,20 @@ SetData sets Data field to given value. ### GetHighlights -`func (o *FullComponent) GetHighlights() ComponentTypeHighlights` +`func (o *FullComponent) GetHighlights() LegacyComponentHighlights` GetHighlights returns the Highlights field if non-nil, zero value otherwise. ### GetHighlightsOk -`func (o *FullComponent) GetHighlightsOk() (*ComponentTypeHighlights, bool)` +`func (o *FullComponent) GetHighlightsOk() (*LegacyComponentHighlights, bool)` GetHighlightsOk returns a tuple with the Highlights field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetHighlights -`func (o *FullComponent) SetHighlights(v ComponentTypeHighlights)` +`func (o *FullComponent) SetHighlights(v LegacyComponentHighlights)` SetHighlights sets Highlights field to given value. diff --git a/generated/stackstate_api/docs/HealthBadgeDisplay.md b/generated/stackstate_api/docs/HealthBadgeDisplay.md deleted file mode 100644 index 92332942..00000000 --- a/generated/stackstate_api/docs/HealthBadgeDisplay.md +++ /dev/null @@ -1,51 +0,0 @@ -# HealthBadgeDisplay - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewHealthBadgeDisplay - -`func NewHealthBadgeDisplay(type_ string, ) *HealthBadgeDisplay` - -NewHealthBadgeDisplay instantiates a new HealthBadgeDisplay object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHealthBadgeDisplayWithDefaults - -`func NewHealthBadgeDisplayWithDefaults() *HealthBadgeDisplay` - -NewHealthBadgeDisplayWithDefaults instantiates a new HealthBadgeDisplay object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *HealthBadgeDisplay) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *HealthBadgeDisplay) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *HealthBadgeDisplay) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/HealthCircleDisplay.md b/generated/stackstate_api/docs/HealthCircleDisplay.md deleted file mode 100644 index 5433fec2..00000000 --- a/generated/stackstate_api/docs/HealthCircleDisplay.md +++ /dev/null @@ -1,51 +0,0 @@ -# HealthCircleDisplay - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewHealthCircleDisplay - -`func NewHealthCircleDisplay(type_ string, ) *HealthCircleDisplay` - -NewHealthCircleDisplay instantiates a new HealthCircleDisplay object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHealthCircleDisplayWithDefaults - -`func NewHealthCircleDisplayWithDefaults() *HealthCircleDisplay` - -NewHealthCircleDisplayWithDefaults instantiates a new HealthCircleDisplay object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *HealthCircleDisplay) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *HealthCircleDisplay) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *HealthCircleDisplay) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/HealthField.md b/generated/stackstate_api/docs/HealthField.md new file mode 100644 index 00000000..d4568745 --- /dev/null +++ b/generated/stackstate_api/docs/HealthField.md @@ -0,0 +1,140 @@ +# HealthField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**State** | [**HealthStateValue**](HealthStateValue.md) | | + +## Methods + +### NewHealthField + +`func NewHealthField(fieldId string, title string, type_ string, state HealthStateValue, ) *HealthField` + +NewHealthField instantiates a new HealthField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHealthFieldWithDefaults + +`func NewHealthFieldWithDefaults() *HealthField` + +NewHealthFieldWithDefaults instantiates a new HealthField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *HealthField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *HealthField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *HealthField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *HealthField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *HealthField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *HealthField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *HealthField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *HealthField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *HealthField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *HealthField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *HealthField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *HealthField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *HealthField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetState + +`func (o *HealthField) GetState() HealthStateValue` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *HealthField) GetStateOk() (*HealthStateValue, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *HealthField) SetState(v HealthStateValue)` + +SetState sets State field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/HealthFieldAllOf.md b/generated/stackstate_api/docs/HealthFieldAllOf.md new file mode 100644 index 00000000..9181d837 --- /dev/null +++ b/generated/stackstate_api/docs/HealthFieldAllOf.md @@ -0,0 +1,72 @@ +# HealthFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**State** | [**HealthStateValue**](HealthStateValue.md) | | + +## Methods + +### NewHealthFieldAllOf + +`func NewHealthFieldAllOf(type_ string, state HealthStateValue, ) *HealthFieldAllOf` + +NewHealthFieldAllOf instantiates a new HealthFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHealthFieldAllOfWithDefaults + +`func NewHealthFieldAllOfWithDefaults() *HealthFieldAllOf` + +NewHealthFieldAllOfWithDefaults instantiates a new HealthFieldAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *HealthFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *HealthFieldAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *HealthFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetState + +`func (o *HealthFieldAllOf) GetState() HealthStateValue` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *HealthFieldAllOf) GetStateOk() (*HealthStateValue, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *HealthFieldAllOf) SetState(v HealthStateValue)` + +SetState sets State field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/HealthSource.md b/generated/stackstate_api/docs/HealthSource.md deleted file mode 100644 index 8f4628df..00000000 --- a/generated/stackstate_api/docs/HealthSource.md +++ /dev/null @@ -1,51 +0,0 @@ -# HealthSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewHealthSource - -`func NewHealthSource(type_ string, ) *HealthSource` - -NewHealthSource instantiates a new HealthSource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHealthSourceWithDefaults - -`func NewHealthSourceWithDefaults() *HealthSource` - -NewHealthSourceWithDefaults instantiates a new HealthSource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *HealthSource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *HealthSource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *HealthSource) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/IdentifiersSource.md b/generated/stackstate_api/docs/IdentifiersSource.md deleted file mode 100644 index 4255f0c9..00000000 --- a/generated/stackstate_api/docs/IdentifiersSource.md +++ /dev/null @@ -1,51 +0,0 @@ -# IdentifiersSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewIdentifiersSource - -`func NewIdentifiersSource(type_ string, ) *IdentifiersSource` - -NewIdentifiersSource instantiates a new IdentifiersSource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewIdentifiersSourceWithDefaults - -`func NewIdentifiersSourceWithDefaults() *IdentifiersSource` - -NewIdentifiersSourceWithDefaults instantiates a new IdentifiersSource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *IdentifiersSource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *IdentifiersSource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *IdentifiersSource) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/LastUpdatedTimestampSource.md b/generated/stackstate_api/docs/LastUpdatedTimestampSource.md deleted file mode 100644 index d9cd1d12..00000000 --- a/generated/stackstate_api/docs/LastUpdatedTimestampSource.md +++ /dev/null @@ -1,51 +0,0 @@ -# LastUpdatedTimestampSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewLastUpdatedTimestampSource - -`func NewLastUpdatedTimestampSource(type_ string, ) *LastUpdatedTimestampSource` - -NewLastUpdatedTimestampSource instantiates a new LastUpdatedTimestampSource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewLastUpdatedTimestampSourceWithDefaults - -`func NewLastUpdatedTimestampSourceWithDefaults() *LastUpdatedTimestampSource` - -NewLastUpdatedTimestampSourceWithDefaults instantiates a new LastUpdatedTimestampSource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *LastUpdatedTimestampSource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *LastUpdatedTimestampSource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *LastUpdatedTimestampSource) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/ComponentTypeHighlights.md b/generated/stackstate_api/docs/LegacyComponentHighlights.md similarity index 51% rename from generated/stackstate_api/docs/ComponentTypeHighlights.md rename to generated/stackstate_api/docs/LegacyComponentHighlights.md index 55019166..589e6d8b 100644 --- a/generated/stackstate_api/docs/ComponentTypeHighlights.md +++ b/generated/stackstate_api/docs/LegacyComponentHighlights.md @@ -1,12 +1,10 @@ -# ComponentTypeHighlights +# LegacyComponentHighlights ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **NamePlural** | **string** | | -**Fields** | [**[]ComponentTypeField**](ComponentTypeField.md) | | -**About** | [**ComponentTypeAbout**](ComponentTypeAbout.md) | | **Events** | [**ComponentTypeEvents**](ComponentTypeEvents.md) | | **ShowLogs** | **bool** | | **ShowLastChange** | **bool** | | @@ -16,199 +14,159 @@ Name | Type | Description | Notes ## Methods -### NewComponentTypeHighlights +### NewLegacyComponentHighlights -`func NewComponentTypeHighlights(namePlural string, fields []ComponentTypeField, about ComponentTypeAbout, events ComponentTypeEvents, showLogs bool, showLastChange bool, externalComponent ComponentTypeExternalComponent, relatedResources []ComponentTypeRelatedResources, metrics []ComponentHighlightMetrics, ) *ComponentTypeHighlights` +`func NewLegacyComponentHighlights(namePlural string, events ComponentTypeEvents, showLogs bool, showLastChange bool, externalComponent ComponentTypeExternalComponent, relatedResources []ComponentTypeRelatedResources, metrics []ComponentHighlightMetrics, ) *LegacyComponentHighlights` -NewComponentTypeHighlights instantiates a new ComponentTypeHighlights object +NewLegacyComponentHighlights instantiates a new LegacyComponentHighlights object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewComponentTypeHighlightsWithDefaults +### NewLegacyComponentHighlightsWithDefaults -`func NewComponentTypeHighlightsWithDefaults() *ComponentTypeHighlights` +`func NewLegacyComponentHighlightsWithDefaults() *LegacyComponentHighlights` -NewComponentTypeHighlightsWithDefaults instantiates a new ComponentTypeHighlights object +NewLegacyComponentHighlightsWithDefaults instantiates a new LegacyComponentHighlights object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetNamePlural -`func (o *ComponentTypeHighlights) GetNamePlural() string` +`func (o *LegacyComponentHighlights) GetNamePlural() string` GetNamePlural returns the NamePlural field if non-nil, zero value otherwise. ### GetNamePluralOk -`func (o *ComponentTypeHighlights) GetNamePluralOk() (*string, bool)` +`func (o *LegacyComponentHighlights) GetNamePluralOk() (*string, bool)` GetNamePluralOk returns a tuple with the NamePlural field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetNamePlural -`func (o *ComponentTypeHighlights) SetNamePlural(v string)` +`func (o *LegacyComponentHighlights) SetNamePlural(v string)` SetNamePlural sets NamePlural field to given value. -### GetFields - -`func (o *ComponentTypeHighlights) GetFields() []ComponentTypeField` - -GetFields returns the Fields field if non-nil, zero value otherwise. - -### GetFieldsOk - -`func (o *ComponentTypeHighlights) GetFieldsOk() (*[]ComponentTypeField, bool)` - -GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFields - -`func (o *ComponentTypeHighlights) SetFields(v []ComponentTypeField)` - -SetFields sets Fields field to given value. - - -### GetAbout - -`func (o *ComponentTypeHighlights) GetAbout() ComponentTypeAbout` - -GetAbout returns the About field if non-nil, zero value otherwise. - -### GetAboutOk - -`func (o *ComponentTypeHighlights) GetAboutOk() (*ComponentTypeAbout, bool)` - -GetAboutOk returns a tuple with the About field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAbout - -`func (o *ComponentTypeHighlights) SetAbout(v ComponentTypeAbout)` - -SetAbout sets About field to given value. - - ### GetEvents -`func (o *ComponentTypeHighlights) GetEvents() ComponentTypeEvents` +`func (o *LegacyComponentHighlights) GetEvents() ComponentTypeEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *ComponentTypeHighlights) GetEventsOk() (*ComponentTypeEvents, bool)` +`func (o *LegacyComponentHighlights) GetEventsOk() (*ComponentTypeEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *ComponentTypeHighlights) SetEvents(v ComponentTypeEvents)` +`func (o *LegacyComponentHighlights) SetEvents(v ComponentTypeEvents)` SetEvents sets Events field to given value. ### GetShowLogs -`func (o *ComponentTypeHighlights) GetShowLogs() bool` +`func (o *LegacyComponentHighlights) GetShowLogs() bool` GetShowLogs returns the ShowLogs field if non-nil, zero value otherwise. ### GetShowLogsOk -`func (o *ComponentTypeHighlights) GetShowLogsOk() (*bool, bool)` +`func (o *LegacyComponentHighlights) GetShowLogsOk() (*bool, bool)` GetShowLogsOk returns a tuple with the ShowLogs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShowLogs -`func (o *ComponentTypeHighlights) SetShowLogs(v bool)` +`func (o *LegacyComponentHighlights) SetShowLogs(v bool)` SetShowLogs sets ShowLogs field to given value. ### GetShowLastChange -`func (o *ComponentTypeHighlights) GetShowLastChange() bool` +`func (o *LegacyComponentHighlights) GetShowLastChange() bool` GetShowLastChange returns the ShowLastChange field if non-nil, zero value otherwise. ### GetShowLastChangeOk -`func (o *ComponentTypeHighlights) GetShowLastChangeOk() (*bool, bool)` +`func (o *LegacyComponentHighlights) GetShowLastChangeOk() (*bool, bool)` GetShowLastChangeOk returns a tuple with the ShowLastChange field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShowLastChange -`func (o *ComponentTypeHighlights) SetShowLastChange(v bool)` +`func (o *LegacyComponentHighlights) SetShowLastChange(v bool)` SetShowLastChange sets ShowLastChange field to given value. ### GetExternalComponent -`func (o *ComponentTypeHighlights) GetExternalComponent() ComponentTypeExternalComponent` +`func (o *LegacyComponentHighlights) GetExternalComponent() ComponentTypeExternalComponent` GetExternalComponent returns the ExternalComponent field if non-nil, zero value otherwise. ### GetExternalComponentOk -`func (o *ComponentTypeHighlights) GetExternalComponentOk() (*ComponentTypeExternalComponent, bool)` +`func (o *LegacyComponentHighlights) GetExternalComponentOk() (*ComponentTypeExternalComponent, bool)` GetExternalComponentOk returns a tuple with the ExternalComponent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExternalComponent -`func (o *ComponentTypeHighlights) SetExternalComponent(v ComponentTypeExternalComponent)` +`func (o *LegacyComponentHighlights) SetExternalComponent(v ComponentTypeExternalComponent)` SetExternalComponent sets ExternalComponent field to given value. ### GetRelatedResources -`func (o *ComponentTypeHighlights) GetRelatedResources() []ComponentTypeRelatedResources` +`func (o *LegacyComponentHighlights) GetRelatedResources() []ComponentTypeRelatedResources` GetRelatedResources returns the RelatedResources field if non-nil, zero value otherwise. ### GetRelatedResourcesOk -`func (o *ComponentTypeHighlights) GetRelatedResourcesOk() (*[]ComponentTypeRelatedResources, bool)` +`func (o *LegacyComponentHighlights) GetRelatedResourcesOk() (*[]ComponentTypeRelatedResources, bool)` GetRelatedResourcesOk returns a tuple with the RelatedResources field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelatedResources -`func (o *ComponentTypeHighlights) SetRelatedResources(v []ComponentTypeRelatedResources)` +`func (o *LegacyComponentHighlights) SetRelatedResources(v []ComponentTypeRelatedResources)` SetRelatedResources sets RelatedResources field to given value. ### GetMetrics -`func (o *ComponentTypeHighlights) GetMetrics() []ComponentHighlightMetrics` +`func (o *LegacyComponentHighlights) GetMetrics() []ComponentHighlightMetrics` GetMetrics returns the Metrics field if non-nil, zero value otherwise. ### GetMetricsOk -`func (o *ComponentTypeHighlights) GetMetricsOk() (*[]ComponentHighlightMetrics, bool)` +`func (o *LegacyComponentHighlights) GetMetricsOk() (*[]ComponentHighlightMetrics, bool)` GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMetrics -`func (o *ComponentTypeHighlights) SetMetrics(v []ComponentHighlightMetrics)` +`func (o *LegacyComponentHighlights) SetMetrics(v []ComponentHighlightMetrics)` SetMetrics sets Metrics field to given value. diff --git a/generated/stackstate_api/docs/LinkField.md b/generated/stackstate_api/docs/LinkField.md new file mode 100644 index 00000000..8d422911 --- /dev/null +++ b/generated/stackstate_api/docs/LinkField.md @@ -0,0 +1,161 @@ +# LinkField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Name** | **string** | | +**Url** | **string** | | + +## Methods + +### NewLinkField + +`func NewLinkField(fieldId string, title string, type_ string, name string, url string, ) *LinkField` + +NewLinkField instantiates a new LinkField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkFieldWithDefaults + +`func NewLinkFieldWithDefaults() *LinkField` + +NewLinkFieldWithDefaults instantiates a new LinkField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *LinkField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *LinkField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *LinkField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *LinkField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *LinkField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *LinkField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *LinkField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *LinkField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *LinkField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *LinkField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *LinkField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LinkField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LinkField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetName + +`func (o *LinkField) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LinkField) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LinkField) SetName(v string)` + +SetName sets Name field to given value. + + +### GetUrl + +`func (o *LinkField) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *LinkField) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *LinkField) SetUrl(v string)` + +SetUrl sets Url field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/LinkFieldAllOf.md b/generated/stackstate_api/docs/LinkFieldAllOf.md new file mode 100644 index 00000000..60f88498 --- /dev/null +++ b/generated/stackstate_api/docs/LinkFieldAllOf.md @@ -0,0 +1,93 @@ +# LinkFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Name** | **string** | | +**Url** | **string** | | + +## Methods + +### NewLinkFieldAllOf + +`func NewLinkFieldAllOf(type_ string, name string, url string, ) *LinkFieldAllOf` + +NewLinkFieldAllOf instantiates a new LinkFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkFieldAllOfWithDefaults + +`func NewLinkFieldAllOfWithDefaults() *LinkFieldAllOf` + +NewLinkFieldAllOfWithDefaults instantiates a new LinkFieldAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LinkFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LinkFieldAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LinkFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetName + +`func (o *LinkFieldAllOf) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LinkFieldAllOf) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LinkFieldAllOf) SetName(v string)` + +SetName sets Name field to given value. + + +### GetUrl + +`func (o *LinkFieldAllOf) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *LinkFieldAllOf) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *LinkFieldAllOf) SetUrl(v string)` + +SetUrl sets Url field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/MapField.md b/generated/stackstate_api/docs/MapField.md new file mode 100644 index 00000000..cf367df7 --- /dev/null +++ b/generated/stackstate_api/docs/MapField.md @@ -0,0 +1,161 @@ +# MapField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Values** | **map[string]string** | | +**AsTag** | **bool** | | [default to false] + +## Methods + +### NewMapField + +`func NewMapField(fieldId string, title string, type_ string, values map[string]string, asTag bool, ) *MapField` + +NewMapField instantiates a new MapField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMapFieldWithDefaults + +`func NewMapFieldWithDefaults() *MapField` + +NewMapFieldWithDefaults instantiates a new MapField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *MapField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *MapField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *MapField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *MapField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *MapField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *MapField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *MapField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *MapField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *MapField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *MapField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *MapField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MapField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MapField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValues + +`func (o *MapField) GetValues() map[string]string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *MapField) GetValuesOk() (*map[string]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *MapField) SetValues(v map[string]string)` + +SetValues sets Values field to given value. + + +### GetAsTag + +`func (o *MapField) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *MapField) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *MapField) SetAsTag(v bool)` + +SetAsTag sets AsTag field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/MapFieldAllOf.md b/generated/stackstate_api/docs/MapFieldAllOf.md new file mode 100644 index 00000000..3560806a --- /dev/null +++ b/generated/stackstate_api/docs/MapFieldAllOf.md @@ -0,0 +1,93 @@ +# MapFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Values** | **map[string]string** | | +**AsTag** | **bool** | | [default to false] + +## Methods + +### NewMapFieldAllOf + +`func NewMapFieldAllOf(type_ string, values map[string]string, asTag bool, ) *MapFieldAllOf` + +NewMapFieldAllOf instantiates a new MapFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMapFieldAllOfWithDefaults + +`func NewMapFieldAllOfWithDefaults() *MapFieldAllOf` + +NewMapFieldAllOfWithDefaults instantiates a new MapFieldAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *MapFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MapFieldAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MapFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValues + +`func (o *MapFieldAllOf) GetValues() map[string]string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *MapFieldAllOf) GetValuesOk() (*map[string]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *MapFieldAllOf) SetValues(v map[string]string)` + +SetValues sets Values field to given value. + + +### GetAsTag + +`func (o *MapFieldAllOf) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *MapFieldAllOf) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *MapFieldAllOf) SetAsTag(v bool)` + +SetAsTag sets AsTag field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/MapProjection.md b/generated/stackstate_api/docs/MapProjection.md new file mode 100644 index 00000000..42d19dd5 --- /dev/null +++ b/generated/stackstate_api/docs/MapProjection.md @@ -0,0 +1,98 @@ +# MapProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **string** | Cel expression that returns a map<string,dyn> | +**AsTags** | Pointer to **bool** | | [optional] [default to true] + +## Methods + +### NewMapProjection + +`func NewMapProjection(type_ string, value string, ) *MapProjection` + +NewMapProjection instantiates a new MapProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMapProjectionWithDefaults + +`func NewMapProjectionWithDefaults() *MapProjection` + +NewMapProjectionWithDefaults instantiates a new MapProjection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *MapProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MapProjection) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MapProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *MapProjection) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *MapProjection) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *MapProjection) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetAsTags + +`func (o *MapProjection) GetAsTags() bool` + +GetAsTags returns the AsTags field if non-nil, zero value otherwise. + +### GetAsTagsOk + +`func (o *MapProjection) GetAsTagsOk() (*bool, bool)` + +GetAsTagsOk returns a tuple with the AsTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTags + +`func (o *MapProjection) SetAsTags(v bool)` + +SetAsTags sets AsTags field to given value. + +### HasAsTags + +`func (o *MapProjection) HasAsTags() bool` + +HasAsTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/MetricBindingId.md b/generated/stackstate_api/docs/MetricBindingId.md new file mode 100644 index 00000000..da20c7a1 --- /dev/null +++ b/generated/stackstate_api/docs/MetricBindingId.md @@ -0,0 +1,51 @@ +# MetricBindingId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | | + +## Methods + +### NewMetricBindingId + +`func NewMetricBindingId(identifier string, ) *MetricBindingId` + +NewMetricBindingId instantiates a new MetricBindingId object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetricBindingIdWithDefaults + +`func NewMetricBindingIdWithDefaults() *MetricBindingId` + +NewMetricBindingIdWithDefaults instantiates a new MetricBindingId object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIdentifier + +`func (o *MetricBindingId) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *MetricBindingId) GetIdentifierOk() (*string, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *MetricBindingId) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/MetricField.md b/generated/stackstate_api/docs/MetricField.md new file mode 100644 index 00000000..d67d06bc --- /dev/null +++ b/generated/stackstate_api/docs/MetricField.md @@ -0,0 +1,192 @@ +# MetricField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Query** | **string** | The frontend can use the query to refresh the metrics (at interval). Allows to keep the current behaviour of making individual calls for each row. | +**Unit** | Pointer to **string** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] + +## Methods + +### NewMetricField + +`func NewMetricField(fieldId string, title string, type_ string, query string, ) *MetricField` + +NewMetricField instantiates a new MetricField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetricFieldWithDefaults + +`func NewMetricFieldWithDefaults() *MetricField` + +NewMetricFieldWithDefaults instantiates a new MetricField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *MetricField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *MetricField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *MetricField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *MetricField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *MetricField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *MetricField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *MetricField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *MetricField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *MetricField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *MetricField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *MetricField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MetricField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MetricField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetQuery + +`func (o *MetricField) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *MetricField) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *MetricField) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetUnit + +`func (o *MetricField) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *MetricField) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *MetricField) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *MetricField) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *MetricField) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *MetricField) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *MetricField) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *MetricField) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/MetricFieldAllOf.md b/generated/stackstate_api/docs/MetricFieldAllOf.md new file mode 100644 index 00000000..261880c0 --- /dev/null +++ b/generated/stackstate_api/docs/MetricFieldAllOf.md @@ -0,0 +1,124 @@ +# MetricFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Query** | **string** | The frontend can use the query to refresh the metrics (at interval). Allows to keep the current behaviour of making individual calls for each row. | +**Unit** | Pointer to **string** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] + +## Methods + +### NewMetricFieldAllOf + +`func NewMetricFieldAllOf(type_ string, query string, ) *MetricFieldAllOf` + +NewMetricFieldAllOf instantiates a new MetricFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetricFieldAllOfWithDefaults + +`func NewMetricFieldAllOfWithDefaults() *MetricFieldAllOf` + +NewMetricFieldAllOfWithDefaults instantiates a new MetricFieldAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *MetricFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MetricFieldAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MetricFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetQuery + +`func (o *MetricFieldAllOf) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *MetricFieldAllOf) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *MetricFieldAllOf) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetUnit + +`func (o *MetricFieldAllOf) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *MetricFieldAllOf) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *MetricFieldAllOf) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *MetricFieldAllOf) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *MetricFieldAllOf) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *MetricFieldAllOf) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *MetricFieldAllOf) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *MetricFieldAllOf) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/MetricChartMetaDisplay.md b/generated/stackstate_api/docs/MetricMetaDisplay.md similarity index 58% rename from generated/stackstate_api/docs/MetricChartMetaDisplay.md rename to generated/stackstate_api/docs/MetricMetaDisplay.md index 8eef0fc5..77470512 100644 --- a/generated/stackstate_api/docs/MetricChartMetaDisplay.md +++ b/generated/stackstate_api/docs/MetricMetaDisplay.md @@ -1,4 +1,4 @@ -# MetricChartMetaDisplay +# MetricMetaDisplay ## Properties @@ -9,171 +9,197 @@ Name | Type | Description | Notes **DecimalPlaces** | Pointer to **NullableInt32** | | [optional] **ShowChart** | Pointer to **NullableBool** | | [optional] **Locked** | **bool** | | +**MetricId** | Pointer to [**MetricBindingId**](MetricBindingId.md) | | [optional] ## Methods -### NewMetricChartMetaDisplay +### NewMetricMetaDisplay -`func NewMetricChartMetaDisplay(type_ string, locked bool, ) *MetricChartMetaDisplay` +`func NewMetricMetaDisplay(type_ string, locked bool, ) *MetricMetaDisplay` -NewMetricChartMetaDisplay instantiates a new MetricChartMetaDisplay object +NewMetricMetaDisplay instantiates a new MetricMetaDisplay object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewMetricChartMetaDisplayWithDefaults +### NewMetricMetaDisplayWithDefaults -`func NewMetricChartMetaDisplayWithDefaults() *MetricChartMetaDisplay` +`func NewMetricMetaDisplayWithDefaults() *MetricMetaDisplay` -NewMetricChartMetaDisplayWithDefaults instantiates a new MetricChartMetaDisplay object +NewMetricMetaDisplayWithDefaults instantiates a new MetricMetaDisplay object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *MetricChartMetaDisplay) GetType() string` +`func (o *MetricMetaDisplay) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *MetricChartMetaDisplay) GetTypeOk() (*string, bool)` +`func (o *MetricMetaDisplay) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *MetricChartMetaDisplay) SetType(v string)` +`func (o *MetricMetaDisplay) SetType(v string)` SetType sets Type field to given value. ### GetUnit -`func (o *MetricChartMetaDisplay) GetUnit() string` +`func (o *MetricMetaDisplay) GetUnit() string` GetUnit returns the Unit field if non-nil, zero value otherwise. ### GetUnitOk -`func (o *MetricChartMetaDisplay) GetUnitOk() (*string, bool)` +`func (o *MetricMetaDisplay) GetUnitOk() (*string, bool)` GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUnit -`func (o *MetricChartMetaDisplay) SetUnit(v string)` +`func (o *MetricMetaDisplay) SetUnit(v string)` SetUnit sets Unit field to given value. ### HasUnit -`func (o *MetricChartMetaDisplay) HasUnit() bool` +`func (o *MetricMetaDisplay) HasUnit() bool` HasUnit returns a boolean if a field has been set. ### SetUnitNil -`func (o *MetricChartMetaDisplay) SetUnitNil(b bool)` +`func (o *MetricMetaDisplay) SetUnitNil(b bool)` SetUnitNil sets the value for Unit to be an explicit nil ### UnsetUnit -`func (o *MetricChartMetaDisplay) UnsetUnit()` +`func (o *MetricMetaDisplay) UnsetUnit()` UnsetUnit ensures that no value is present for Unit, not even an explicit nil ### GetDecimalPlaces -`func (o *MetricChartMetaDisplay) GetDecimalPlaces() int32` +`func (o *MetricMetaDisplay) GetDecimalPlaces() int32` GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. ### GetDecimalPlacesOk -`func (o *MetricChartMetaDisplay) GetDecimalPlacesOk() (*int32, bool)` +`func (o *MetricMetaDisplay) GetDecimalPlacesOk() (*int32, bool)` GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDecimalPlaces -`func (o *MetricChartMetaDisplay) SetDecimalPlaces(v int32)` +`func (o *MetricMetaDisplay) SetDecimalPlaces(v int32)` SetDecimalPlaces sets DecimalPlaces field to given value. ### HasDecimalPlaces -`func (o *MetricChartMetaDisplay) HasDecimalPlaces() bool` +`func (o *MetricMetaDisplay) HasDecimalPlaces() bool` HasDecimalPlaces returns a boolean if a field has been set. ### SetDecimalPlacesNil -`func (o *MetricChartMetaDisplay) SetDecimalPlacesNil(b bool)` +`func (o *MetricMetaDisplay) SetDecimalPlacesNil(b bool)` SetDecimalPlacesNil sets the value for DecimalPlaces to be an explicit nil ### UnsetDecimalPlaces -`func (o *MetricChartMetaDisplay) UnsetDecimalPlaces()` +`func (o *MetricMetaDisplay) UnsetDecimalPlaces()` UnsetDecimalPlaces ensures that no value is present for DecimalPlaces, not even an explicit nil ### GetShowChart -`func (o *MetricChartMetaDisplay) GetShowChart() bool` +`func (o *MetricMetaDisplay) GetShowChart() bool` GetShowChart returns the ShowChart field if non-nil, zero value otherwise. ### GetShowChartOk -`func (o *MetricChartMetaDisplay) GetShowChartOk() (*bool, bool)` +`func (o *MetricMetaDisplay) GetShowChartOk() (*bool, bool)` GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShowChart -`func (o *MetricChartMetaDisplay) SetShowChart(v bool)` +`func (o *MetricMetaDisplay) SetShowChart(v bool)` SetShowChart sets ShowChart field to given value. ### HasShowChart -`func (o *MetricChartMetaDisplay) HasShowChart() bool` +`func (o *MetricMetaDisplay) HasShowChart() bool` HasShowChart returns a boolean if a field has been set. ### SetShowChartNil -`func (o *MetricChartMetaDisplay) SetShowChartNil(b bool)` +`func (o *MetricMetaDisplay) SetShowChartNil(b bool)` SetShowChartNil sets the value for ShowChart to be an explicit nil ### UnsetShowChart -`func (o *MetricChartMetaDisplay) UnsetShowChart()` +`func (o *MetricMetaDisplay) UnsetShowChart()` UnsetShowChart ensures that no value is present for ShowChart, not even an explicit nil ### GetLocked -`func (o *MetricChartMetaDisplay) GetLocked() bool` +`func (o *MetricMetaDisplay) GetLocked() bool` GetLocked returns the Locked field if non-nil, zero value otherwise. ### GetLockedOk -`func (o *MetricChartMetaDisplay) GetLockedOk() (*bool, bool)` +`func (o *MetricMetaDisplay) GetLockedOk() (*bool, bool)` GetLockedOk returns a tuple with the Locked field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocked -`func (o *MetricChartMetaDisplay) SetLocked(v bool)` +`func (o *MetricMetaDisplay) SetLocked(v bool)` SetLocked sets Locked field to given value. +### GetMetricId + +`func (o *MetricMetaDisplay) GetMetricId() MetricBindingId` + +GetMetricId returns the MetricId field if non-nil, zero value otherwise. + +### GetMetricIdOk + +`func (o *MetricMetaDisplay) GetMetricIdOk() (*MetricBindingId, bool)` + +GetMetricIdOk returns a tuple with the MetricId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricId + +`func (o *MetricMetaDisplay) SetMetricId(v MetricBindingId)` + +SetMetricId sets MetricId field to given value. + +### HasMetricId + +`func (o *MetricMetaDisplay) HasMetricId() bool` + +HasMetricId returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/MetricChartProjection.md b/generated/stackstate_api/docs/MetricProjection.md similarity index 65% rename from generated/stackstate_api/docs/MetricChartProjection.md rename to generated/stackstate_api/docs/MetricProjection.md index 06b68b12..cd1499b1 100644 --- a/generated/stackstate_api/docs/MetricChartProjection.md +++ b/generated/stackstate_api/docs/MetricProjection.md @@ -1,4 +1,4 @@ -# MetricChartProjection +# MetricProjection ## Properties @@ -12,134 +12,134 @@ Name | Type | Description | Notes ## Methods -### NewMetricChartProjection +### NewMetricProjection -`func NewMetricChartProjection(type_ string, query string, ) *MetricChartProjection` +`func NewMetricProjection(type_ string, query string, ) *MetricProjection` -NewMetricChartProjection instantiates a new MetricChartProjection object +NewMetricProjection instantiates a new MetricProjection object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewMetricChartProjectionWithDefaults +### NewMetricProjectionWithDefaults -`func NewMetricChartProjectionWithDefaults() *MetricChartProjection` +`func NewMetricProjectionWithDefaults() *MetricProjection` -NewMetricChartProjectionWithDefaults instantiates a new MetricChartProjection object +NewMetricProjectionWithDefaults instantiates a new MetricProjection object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *MetricChartProjection) GetType() string` +`func (o *MetricProjection) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *MetricChartProjection) GetTypeOk() (*string, bool)` +`func (o *MetricProjection) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *MetricChartProjection) SetType(v string)` +`func (o *MetricProjection) SetType(v string)` SetType sets Type field to given value. ### GetShowChart -`func (o *MetricChartProjection) GetShowChart() bool` +`func (o *MetricProjection) GetShowChart() bool` GetShowChart returns the ShowChart field if non-nil, zero value otherwise. ### GetShowChartOk -`func (o *MetricChartProjection) GetShowChartOk() (*bool, bool)` +`func (o *MetricProjection) GetShowChartOk() (*bool, bool)` GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShowChart -`func (o *MetricChartProjection) SetShowChart(v bool)` +`func (o *MetricProjection) SetShowChart(v bool)` SetShowChart sets ShowChart field to given value. ### HasShowChart -`func (o *MetricChartProjection) HasShowChart() bool` +`func (o *MetricProjection) HasShowChart() bool` HasShowChart returns a boolean if a field has been set. ### GetDecimalPlaces -`func (o *MetricChartProjection) GetDecimalPlaces() int32` +`func (o *MetricProjection) GetDecimalPlaces() int32` GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. ### GetDecimalPlacesOk -`func (o *MetricChartProjection) GetDecimalPlacesOk() (*int32, bool)` +`func (o *MetricProjection) GetDecimalPlacesOk() (*int32, bool)` GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDecimalPlaces -`func (o *MetricChartProjection) SetDecimalPlaces(v int32)` +`func (o *MetricProjection) SetDecimalPlaces(v int32)` SetDecimalPlaces sets DecimalPlaces field to given value. ### HasDecimalPlaces -`func (o *MetricChartProjection) HasDecimalPlaces() bool` +`func (o *MetricProjection) HasDecimalPlaces() bool` HasDecimalPlaces returns a boolean if a field has been set. ### GetUnit -`func (o *MetricChartProjection) GetUnit() string` +`func (o *MetricProjection) GetUnit() string` GetUnit returns the Unit field if non-nil, zero value otherwise. ### GetUnitOk -`func (o *MetricChartProjection) GetUnitOk() (*string, bool)` +`func (o *MetricProjection) GetUnitOk() (*string, bool)` GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUnit -`func (o *MetricChartProjection) SetUnit(v string)` +`func (o *MetricProjection) SetUnit(v string)` SetUnit sets Unit field to given value. ### HasUnit -`func (o *MetricChartProjection) HasUnit() bool` +`func (o *MetricProjection) HasUnit() bool` HasUnit returns a boolean if a field has been set. ### GetQuery -`func (o *MetricChartProjection) GetQuery() string` +`func (o *MetricProjection) GetQuery() string` GetQuery returns the Query field if non-nil, zero value otherwise. ### GetQueryOk -`func (o *MetricChartProjection) GetQueryOk() (*string, bool)` +`func (o *MetricProjection) GetQueryOk() (*string, bool)` GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetQuery -`func (o *MetricChartProjection) SetQuery(v string)` +`func (o *MetricProjection) SetQuery(v string)` SetQuery sets Query field to given value. diff --git a/generated/stackstate_api/docs/NameSource.md b/generated/stackstate_api/docs/NameSource.md deleted file mode 100644 index 70192996..00000000 --- a/generated/stackstate_api/docs/NameSource.md +++ /dev/null @@ -1,51 +0,0 @@ -# NameSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewNameSource - -`func NewNameSource(type_ string, ) *NameSource` - -NewNameSource instantiates a new NameSource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewNameSourceWithDefaults - -`func NewNameSourceWithDefaults() *NameSource` - -NewNameSourceWithDefaults instantiates a new NameSource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *NameSource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *NameSource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *NameSource) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/NumericField.md b/generated/stackstate_api/docs/NumericField.md new file mode 100644 index 00000000..ad319f2d --- /dev/null +++ b/generated/stackstate_api/docs/NumericField.md @@ -0,0 +1,192 @@ +# NumericField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Value** | **float32** | | +**Unit** | Pointer to **string** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] + +## Methods + +### NewNumericField + +`func NewNumericField(fieldId string, title string, type_ string, value float32, ) *NumericField` + +NewNumericField instantiates a new NumericField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNumericFieldWithDefaults + +`func NewNumericFieldWithDefaults() *NumericField` + +NewNumericFieldWithDefaults instantiates a new NumericField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *NumericField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *NumericField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *NumericField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *NumericField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *NumericField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *NumericField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *NumericField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NumericField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *NumericField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NumericField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *NumericField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *NumericField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *NumericField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *NumericField) GetValue() float32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *NumericField) GetValueOk() (*float32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *NumericField) SetValue(v float32)` + +SetValue sets Value field to given value. + + +### GetUnit + +`func (o *NumericField) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *NumericField) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *NumericField) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *NumericField) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *NumericField) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *NumericField) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *NumericField) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *NumericField) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/NumericFieldAllOf.md b/generated/stackstate_api/docs/NumericFieldAllOf.md new file mode 100644 index 00000000..6ae59f03 --- /dev/null +++ b/generated/stackstate_api/docs/NumericFieldAllOf.md @@ -0,0 +1,124 @@ +# NumericFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **float32** | | +**Unit** | Pointer to **string** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] + +## Methods + +### NewNumericFieldAllOf + +`func NewNumericFieldAllOf(type_ string, value float32, ) *NumericFieldAllOf` + +NewNumericFieldAllOf instantiates a new NumericFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNumericFieldAllOfWithDefaults + +`func NewNumericFieldAllOfWithDefaults() *NumericFieldAllOf` + +NewNumericFieldAllOfWithDefaults instantiates a new NumericFieldAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *NumericFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *NumericFieldAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *NumericFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *NumericFieldAllOf) GetValue() float32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *NumericFieldAllOf) GetValueOk() (*float32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *NumericFieldAllOf) SetValue(v float32)` + +SetValue sets Value field to given value. + + +### GetUnit + +`func (o *NumericFieldAllOf) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *NumericFieldAllOf) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *NumericFieldAllOf) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *NumericFieldAllOf) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *NumericFieldAllOf) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *NumericFieldAllOf) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *NumericFieldAllOf) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *NumericFieldAllOf) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/OtelComponentMappingFieldMapping.md b/generated/stackstate_api/docs/OtelComponentMappingFieldMapping.md index 4eaf0a88..96d7d4a6 100644 --- a/generated/stackstate_api/docs/OtelComponentMappingFieldMapping.md +++ b/generated/stackstate_api/docs/OtelComponentMappingFieldMapping.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **AdditionalIdentifiers** | Pointer to **[]string** | | [optional] **Version** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | [optional] **Tags** | Pointer to [**[]OtelTagMapping**](OtelTagMapping.md) | | [optional] +**Configuration** | Pointer to **string** | An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | [optional] +**Status** | Pointer to **string** | An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | [optional] ## Methods @@ -102,6 +104,56 @@ SetTags sets Tags field to given value. HasTags returns a boolean if a field has been set. +### GetConfiguration + +`func (o *OtelComponentMappingFieldMapping) GetConfiguration() string` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *OtelComponentMappingFieldMapping) GetConfigurationOk() (*string, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *OtelComponentMappingFieldMapping) SetConfiguration(v string)` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *OtelComponentMappingFieldMapping) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + +### GetStatus + +`func (o *OtelComponentMappingFieldMapping) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *OtelComponentMappingFieldMapping) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *OtelComponentMappingFieldMapping) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *OtelComponentMappingFieldMapping) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/OtelInputLog.md b/generated/stackstate_api/docs/OtelInputLog.md new file mode 100644 index 00000000..87e4606a --- /dev/null +++ b/generated/stackstate_api/docs/OtelInputLog.md @@ -0,0 +1,82 @@ +# OtelInputLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Condition** | Pointer to **string** | A Cel expression that must return a boolean | [optional] +**Action** | Pointer to [**OtelInputConditionAction**](OtelInputConditionAction.md) | | [optional] + +## Methods + +### NewOtelInputLog + +`func NewOtelInputLog() *OtelInputLog` + +NewOtelInputLog instantiates a new OtelInputLog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOtelInputLogWithDefaults + +`func NewOtelInputLogWithDefaults() *OtelInputLog` + +NewOtelInputLogWithDefaults instantiates a new OtelInputLog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCondition + +`func (o *OtelInputLog) GetCondition() string` + +GetCondition returns the Condition field if non-nil, zero value otherwise. + +### GetConditionOk + +`func (o *OtelInputLog) GetConditionOk() (*string, bool)` + +GetConditionOk returns a tuple with the Condition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCondition + +`func (o *OtelInputLog) SetCondition(v string)` + +SetCondition sets Condition field to given value. + +### HasCondition + +`func (o *OtelInputLog) HasCondition() bool` + +HasCondition returns a boolean if a field has been set. + +### GetAction + +`func (o *OtelInputLog) GetAction() OtelInputConditionAction` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *OtelInputLog) GetActionOk() (*OtelInputConditionAction, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *OtelInputLog) SetAction(v OtelInputConditionAction)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *OtelInputLog) HasAction() bool` + +HasAction returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/OtelInputScope.md b/generated/stackstate_api/docs/OtelInputScope.md index eee41a9f..464b9630 100644 --- a/generated/stackstate_api/docs/OtelInputScope.md +++ b/generated/stackstate_api/docs/OtelInputScope.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Action** | Pointer to [**OtelInputConditionAction**](OtelInputConditionAction.md) | | [optional] **Metric** | Pointer to [**OtelInputMetric**](OtelInputMetric.md) | | [optional] **Span** | Pointer to [**OtelInputSpan**](OtelInputSpan.md) | | [optional] +**Log** | Pointer to [**OtelInputLog**](OtelInputLog.md) | | [optional] ## Methods @@ -128,6 +129,31 @@ SetSpan sets Span field to given value. HasSpan returns a boolean if a field has been set. +### GetLog + +`func (o *OtelInputScope) GetLog() OtelInputLog` + +GetLog returns the Log field if non-nil, zero value otherwise. + +### GetLogOk + +`func (o *OtelInputScope) GetLogOk() (*OtelInputLog, bool)` + +GetLogOk returns a tuple with the Log field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLog + +`func (o *OtelInputScope) SetLog(v OtelInputLog)` + +SetLog sets Log field to given value. + +### HasLog + +`func (o *OtelInputScope) HasLog() bool` + +HasLog returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/OverviewColumnDefinition.md b/generated/stackstate_api/docs/OverviewColumnDefinition.md index 8e496fb0..775e8d41 100644 --- a/generated/stackstate_api/docs/OverviewColumnDefinition.md +++ b/generated/stackstate_api/docs/OverviewColumnDefinition.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ColumnId** | **string** | | **Title** | Pointer to **string** | | [optional] -**Projection** | Pointer to [**OverviewColumnProjection**](OverviewColumnProjection.md) | | [optional] +**Projection** | Pointer to [**ComponentOverviewProjection**](ComponentOverviewProjection.md) | | [optional] ## Methods @@ -74,20 +74,20 @@ HasTitle returns a boolean if a field has been set. ### GetProjection -`func (o *OverviewColumnDefinition) GetProjection() OverviewColumnProjection` +`func (o *OverviewColumnDefinition) GetProjection() ComponentOverviewProjection` GetProjection returns the Projection field if non-nil, zero value otherwise. ### GetProjectionOk -`func (o *OverviewColumnDefinition) GetProjectionOk() (*OverviewColumnProjection, bool)` +`func (o *OverviewColumnDefinition) GetProjectionOk() (*ComponentOverviewProjection, bool)` GetProjectionOk returns a tuple with the Projection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProjection -`func (o *OverviewColumnDefinition) SetProjection(v OverviewColumnProjection)` +`func (o *OverviewColumnDefinition) SetProjection(v ComponentOverviewProjection)` SetProjection sets Projection field to given value. diff --git a/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md b/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md index 47bb337b..abea9d2a 100644 --- a/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md +++ b/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **DecimalPlaces** | Pointer to **NullableInt32** | | [optional] **ShowChart** | Pointer to **NullableBool** | | [optional] **Locked** | **bool** | | +**MetricId** | Pointer to [**MetricBindingId**](MetricBindingId.md) | | [optional] **External** | **bool** | | ## Methods @@ -175,6 +176,31 @@ and a boolean to check if the value has been set. SetLocked sets Locked field to given value. +### GetMetricId + +`func (o *OverviewColumnMetaDisplay) GetMetricId() MetricBindingId` + +GetMetricId returns the MetricId field if non-nil, zero value otherwise. + +### GetMetricIdOk + +`func (o *OverviewColumnMetaDisplay) GetMetricIdOk() (*MetricBindingId, bool)` + +GetMetricIdOk returns a tuple with the MetricId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricId + +`func (o *OverviewColumnMetaDisplay) SetMetricId(v MetricBindingId)` + +SetMetricId sets MetricId field to given value. + +### HasMetricId + +`func (o *OverviewColumnMetaDisplay) HasMetricId() bool` + +HasMetricId returns a boolean if a field has been set. + ### GetExternal `func (o *OverviewColumnMetaDisplay) GetExternal() bool` diff --git a/generated/stackstate_api/docs/OverviewColumnProjection.md b/generated/stackstate_api/docs/OverviewColumnProjection.md deleted file mode 100644 index f95b224f..00000000 --- a/generated/stackstate_api/docs/OverviewColumnProjection.md +++ /dev/null @@ -1,380 +0,0 @@ -# OverviewColumnProjection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | -**ShowChart** | Pointer to **bool** | | [optional] -**DecimalPlaces** | Pointer to **int32** | | [optional] -**Unit** | Pointer to **NullableString** | | [optional] -**Query** | **string** | Individual metric query that returns a timeseries for a specific cell. | -**Name** | **string** | Cel expression that returns a string that represents the name of the component to link to | -**ComponentIdentifier** | **string** | Cel expression that returns a string that represents the componentIdentifier in order to build the link | -**Value** | **string** | Cel expression that returns a number | -**StartDate** | **string** | Cel expression that returns a date | -**EndDate** | Pointer to **string** | Cel expression that returns a date | [optional] -**ReadyNumber** | **string** | Cel expression that returns a number | -**TotalNumber** | **string** | Cel expression that returns a number | -**ReadyStatus** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] -**ImageId** | **string** | Cel expression that returns a string | -**ImageName** | **string** | Cel expression that returns a string | - -## Methods - -### NewOverviewColumnProjection - -`func NewOverviewColumnProjection(type_ string, query string, name string, componentIdentifier string, value string, startDate string, readyNumber string, totalNumber string, imageId string, imageName string, ) *OverviewColumnProjection` - -NewOverviewColumnProjection instantiates a new OverviewColumnProjection object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOverviewColumnProjectionWithDefaults - -`func NewOverviewColumnProjectionWithDefaults() *OverviewColumnProjection` - -NewOverviewColumnProjectionWithDefaults instantiates a new OverviewColumnProjection object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *OverviewColumnProjection) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *OverviewColumnProjection) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *OverviewColumnProjection) SetType(v string)` - -SetType sets Type field to given value. - - -### GetShowChart - -`func (o *OverviewColumnProjection) GetShowChart() bool` - -GetShowChart returns the ShowChart field if non-nil, zero value otherwise. - -### GetShowChartOk - -`func (o *OverviewColumnProjection) GetShowChartOk() (*bool, bool)` - -GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShowChart - -`func (o *OverviewColumnProjection) SetShowChart(v bool)` - -SetShowChart sets ShowChart field to given value. - -### HasShowChart - -`func (o *OverviewColumnProjection) HasShowChart() bool` - -HasShowChart returns a boolean if a field has been set. - -### GetDecimalPlaces - -`func (o *OverviewColumnProjection) GetDecimalPlaces() int32` - -GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. - -### GetDecimalPlacesOk - -`func (o *OverviewColumnProjection) GetDecimalPlacesOk() (*int32, bool)` - -GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDecimalPlaces - -`func (o *OverviewColumnProjection) SetDecimalPlaces(v int32)` - -SetDecimalPlaces sets DecimalPlaces field to given value. - -### HasDecimalPlaces - -`func (o *OverviewColumnProjection) HasDecimalPlaces() bool` - -HasDecimalPlaces returns a boolean if a field has been set. - -### GetUnit - -`func (o *OverviewColumnProjection) GetUnit() string` - -GetUnit returns the Unit field if non-nil, zero value otherwise. - -### GetUnitOk - -`func (o *OverviewColumnProjection) GetUnitOk() (*string, bool)` - -GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUnit - -`func (o *OverviewColumnProjection) SetUnit(v string)` - -SetUnit sets Unit field to given value. - -### HasUnit - -`func (o *OverviewColumnProjection) HasUnit() bool` - -HasUnit returns a boolean if a field has been set. - -### SetUnitNil - -`func (o *OverviewColumnProjection) SetUnitNil(b bool)` - - SetUnitNil sets the value for Unit to be an explicit nil - -### UnsetUnit -`func (o *OverviewColumnProjection) UnsetUnit()` - -UnsetUnit ensures that no value is present for Unit, not even an explicit nil -### GetQuery - -`func (o *OverviewColumnProjection) GetQuery() string` - -GetQuery returns the Query field if non-nil, zero value otherwise. - -### GetQueryOk - -`func (o *OverviewColumnProjection) GetQueryOk() (*string, bool)` - -GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuery - -`func (o *OverviewColumnProjection) SetQuery(v string)` - -SetQuery sets Query field to given value. - - -### GetName - -`func (o *OverviewColumnProjection) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *OverviewColumnProjection) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *OverviewColumnProjection) SetName(v string)` - -SetName sets Name field to given value. - - -### GetComponentIdentifier - -`func (o *OverviewColumnProjection) GetComponentIdentifier() string` - -GetComponentIdentifier returns the ComponentIdentifier field if non-nil, zero value otherwise. - -### GetComponentIdentifierOk - -`func (o *OverviewColumnProjection) GetComponentIdentifierOk() (*string, bool)` - -GetComponentIdentifierOk returns a tuple with the ComponentIdentifier field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComponentIdentifier - -`func (o *OverviewColumnProjection) SetComponentIdentifier(v string)` - -SetComponentIdentifier sets ComponentIdentifier field to given value. - - -### GetValue - -`func (o *OverviewColumnProjection) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *OverviewColumnProjection) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *OverviewColumnProjection) SetValue(v string)` - -SetValue sets Value field to given value. - - -### GetStartDate - -`func (o *OverviewColumnProjection) GetStartDate() string` - -GetStartDate returns the StartDate field if non-nil, zero value otherwise. - -### GetStartDateOk - -`func (o *OverviewColumnProjection) GetStartDateOk() (*string, bool)` - -GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStartDate - -`func (o *OverviewColumnProjection) SetStartDate(v string)` - -SetStartDate sets StartDate field to given value. - - -### GetEndDate - -`func (o *OverviewColumnProjection) GetEndDate() string` - -GetEndDate returns the EndDate field if non-nil, zero value otherwise. - -### GetEndDateOk - -`func (o *OverviewColumnProjection) GetEndDateOk() (*string, bool)` - -GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEndDate - -`func (o *OverviewColumnProjection) SetEndDate(v string)` - -SetEndDate sets EndDate field to given value. - -### HasEndDate - -`func (o *OverviewColumnProjection) HasEndDate() bool` - -HasEndDate returns a boolean if a field has been set. - -### GetReadyNumber - -`func (o *OverviewColumnProjection) GetReadyNumber() string` - -GetReadyNumber returns the ReadyNumber field if non-nil, zero value otherwise. - -### GetReadyNumberOk - -`func (o *OverviewColumnProjection) GetReadyNumberOk() (*string, bool)` - -GetReadyNumberOk returns a tuple with the ReadyNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReadyNumber - -`func (o *OverviewColumnProjection) SetReadyNumber(v string)` - -SetReadyNumber sets ReadyNumber field to given value. - - -### GetTotalNumber - -`func (o *OverviewColumnProjection) GetTotalNumber() string` - -GetTotalNumber returns the TotalNumber field if non-nil, zero value otherwise. - -### GetTotalNumberOk - -`func (o *OverviewColumnProjection) GetTotalNumberOk() (*string, bool)` - -GetTotalNumberOk returns a tuple with the TotalNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalNumber - -`func (o *OverviewColumnProjection) SetTotalNumber(v string)` - -SetTotalNumber sets TotalNumber field to given value. - - -### GetReadyStatus - -`func (o *OverviewColumnProjection) GetReadyStatus() string` - -GetReadyStatus returns the ReadyStatus field if non-nil, zero value otherwise. - -### GetReadyStatusOk - -`func (o *OverviewColumnProjection) GetReadyStatusOk() (*string, bool)` - -GetReadyStatusOk returns a tuple with the ReadyStatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReadyStatus - -`func (o *OverviewColumnProjection) SetReadyStatus(v string)` - -SetReadyStatus sets ReadyStatus field to given value. - -### HasReadyStatus - -`func (o *OverviewColumnProjection) HasReadyStatus() bool` - -HasReadyStatus returns a boolean if a field has been set. - -### GetImageId - -`func (o *OverviewColumnProjection) GetImageId() string` - -GetImageId returns the ImageId field if non-nil, zero value otherwise. - -### GetImageIdOk - -`func (o *OverviewColumnProjection) GetImageIdOk() (*string, bool)` - -GetImageIdOk returns a tuple with the ImageId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageId - -`func (o *OverviewColumnProjection) SetImageId(v string)` - -SetImageId sets ImageId field to given value. - - -### GetImageName - -`func (o *OverviewColumnProjection) GetImageName() string` - -GetImageName returns the ImageName field if non-nil, zero value otherwise. - -### GetImageNameOk - -`func (o *OverviewColumnProjection) GetImageNameOk() (*string, bool)` - -GetImageNameOk returns a tuple with the ImageName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageName - -`func (o *OverviewColumnProjection) SetImageName(v string)` - -SetImageName sets ImageName field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/PresentationDefinition.md b/generated/stackstate_api/docs/PresentationDefinition.md index ac211057..35297e99 100644 --- a/generated/stackstate_api/docs/PresentationDefinition.md +++ b/generated/stackstate_api/docs/PresentationDefinition.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Icon** | Pointer to **string** | | [optional] **Overview** | Pointer to [**PresentationOverview**](PresentationOverview.md) | | [optional] +**Highlight** | Pointer to [**PresentationHighlight**](PresentationHighlight.md) | | [optional] +**Filters** | Pointer to [**[]ComponentPresentationFilter**](ComponentPresentationFilter.md) | | [optional] ## Methods @@ -76,6 +78,56 @@ SetOverview sets Overview field to given value. HasOverview returns a boolean if a field has been set. +### GetHighlight + +`func (o *PresentationDefinition) GetHighlight() PresentationHighlight` + +GetHighlight returns the Highlight field if non-nil, zero value otherwise. + +### GetHighlightOk + +`func (o *PresentationDefinition) GetHighlightOk() (*PresentationHighlight, bool)` + +GetHighlightOk returns a tuple with the Highlight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHighlight + +`func (o *PresentationDefinition) SetHighlight(v PresentationHighlight)` + +SetHighlight sets Highlight field to given value. + +### HasHighlight + +`func (o *PresentationDefinition) HasHighlight() bool` + +HasHighlight returns a boolean if a field has been set. + +### GetFilters + +`func (o *PresentationDefinition) GetFilters() []ComponentPresentationFilter` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *PresentationDefinition) GetFiltersOk() (*[]ComponentPresentationFilter, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *PresentationDefinition) SetFilters(v []ComponentPresentationFilter)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *PresentationDefinition) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/PresentationFilter.md b/generated/stackstate_api/docs/PresentationFilter.md new file mode 100644 index 00000000..f5b8debe --- /dev/null +++ b/generated/stackstate_api/docs/PresentationFilter.md @@ -0,0 +1,114 @@ +# PresentationFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**FilterId** | **string** | | +**DisplayName** | [**PresentationFilterName**](PresentationFilterName.md) | | +**TagKey** | **string** | Tag key to use for filtering. | + +## Methods + +### NewPresentationFilter + +`func NewPresentationFilter(type_ string, filterId string, displayName PresentationFilterName, tagKey string, ) *PresentationFilter` + +NewPresentationFilter instantiates a new PresentationFilter object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPresentationFilterWithDefaults + +`func NewPresentationFilterWithDefaults() *PresentationFilter` + +NewPresentationFilterWithDefaults instantiates a new PresentationFilter object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PresentationFilter) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PresentationFilter) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PresentationFilter) SetType(v string)` + +SetType sets Type field to given value. + + +### GetFilterId + +`func (o *PresentationFilter) GetFilterId() string` + +GetFilterId returns the FilterId field if non-nil, zero value otherwise. + +### GetFilterIdOk + +`func (o *PresentationFilter) GetFilterIdOk() (*string, bool)` + +GetFilterIdOk returns a tuple with the FilterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilterId + +`func (o *PresentationFilter) SetFilterId(v string)` + +SetFilterId sets FilterId field to given value. + + +### GetDisplayName + +`func (o *PresentationFilter) GetDisplayName() PresentationFilterName` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PresentationFilter) GetDisplayNameOk() (*PresentationFilterName, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PresentationFilter) SetDisplayName(v PresentationFilterName)` + +SetDisplayName sets DisplayName field to given value. + + +### GetTagKey + +`func (o *PresentationFilter) GetTagKey() string` + +GetTagKey returns the TagKey field if non-nil, zero value otherwise. + +### GetTagKeyOk + +`func (o *PresentationFilter) GetTagKeyOk() (*string, bool)` + +GetTagKeyOk returns a tuple with the TagKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagKey + +`func (o *PresentationFilter) SetTagKey(v string)` + +SetTagKey sets TagKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PresentationFilterName.md b/generated/stackstate_api/docs/PresentationFilterName.md new file mode 100644 index 00000000..6c42fbe9 --- /dev/null +++ b/generated/stackstate_api/docs/PresentationFilterName.md @@ -0,0 +1,72 @@ +# PresentationFilterName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Singular** | **string** | | +**Plural** | **string** | | + +## Methods + +### NewPresentationFilterName + +`func NewPresentationFilterName(singular string, plural string, ) *PresentationFilterName` + +NewPresentationFilterName instantiates a new PresentationFilterName object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPresentationFilterNameWithDefaults + +`func NewPresentationFilterNameWithDefaults() *PresentationFilterName` + +NewPresentationFilterNameWithDefaults instantiates a new PresentationFilterName object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSingular + +`func (o *PresentationFilterName) GetSingular() string` + +GetSingular returns the Singular field if non-nil, zero value otherwise. + +### GetSingularOk + +`func (o *PresentationFilterName) GetSingularOk() (*string, bool)` + +GetSingularOk returns a tuple with the Singular field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSingular + +`func (o *PresentationFilterName) SetSingular(v string)` + +SetSingular sets Singular field to given value. + + +### GetPlural + +`func (o *PresentationFilterName) GetPlural() string` + +GetPlural returns the Plural field if non-nil, zero value otherwise. + +### GetPluralOk + +`func (o *PresentationFilterName) GetPluralOk() (*string, bool)` + +GetPluralOk returns a tuple with the Plural field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlural + +`func (o *PresentationFilterName) SetPlural(v string)` + +SetPlural sets Plural field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PresentationFiltersResponse.md b/generated/stackstate_api/docs/PresentationFiltersResponse.md new file mode 100644 index 00000000..aba4334d --- /dev/null +++ b/generated/stackstate_api/docs/PresentationFiltersResponse.md @@ -0,0 +1,72 @@ +# PresentationFiltersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filters** | [**[]PresentationFilter**](PresentationFilter.md) | Presentation filters in display order. Earlier items are primary (filter bar), later items are secondary (\"More\" section). | +**MenuSection** | **string** | Label for the section within \"More\" tab when secondary filters are present. | + +## Methods + +### NewPresentationFiltersResponse + +`func NewPresentationFiltersResponse(filters []PresentationFilter, menuSection string, ) *PresentationFiltersResponse` + +NewPresentationFiltersResponse instantiates a new PresentationFiltersResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPresentationFiltersResponseWithDefaults + +`func NewPresentationFiltersResponseWithDefaults() *PresentationFiltersResponse` + +NewPresentationFiltersResponseWithDefaults instantiates a new PresentationFiltersResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFilters + +`func (o *PresentationFiltersResponse) GetFilters() []PresentationFilter` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *PresentationFiltersResponse) GetFiltersOk() (*[]PresentationFilter, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *PresentationFiltersResponse) SetFilters(v []PresentationFilter)` + +SetFilters sets Filters field to given value. + + +### GetMenuSection + +`func (o *PresentationFiltersResponse) GetMenuSection() string` + +GetMenuSection returns the MenuSection field if non-nil, zero value otherwise. + +### GetMenuSectionOk + +`func (o *PresentationFiltersResponse) GetMenuSectionOk() (*string, bool)` + +GetMenuSectionOk returns a tuple with the MenuSection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMenuSection + +`func (o *PresentationFiltersResponse) SetMenuSection(v string)` + +SetMenuSection sets MenuSection field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PresentationHighlight.md b/generated/stackstate_api/docs/PresentationHighlight.md new file mode 100644 index 00000000..c2a7b236 --- /dev/null +++ b/generated/stackstate_api/docs/PresentationHighlight.md @@ -0,0 +1,72 @@ +# PresentationHighlight + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | | +**Fields** | [**[]PresentationHighlightField**](PresentationHighlightField.md) | | + +## Methods + +### NewPresentationHighlight + +`func NewPresentationHighlight(title string, fields []PresentationHighlightField, ) *PresentationHighlight` + +NewPresentationHighlight instantiates a new PresentationHighlight object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPresentationHighlightWithDefaults + +`func NewPresentationHighlightWithDefaults() *PresentationHighlight` + +NewPresentationHighlightWithDefaults instantiates a new PresentationHighlight object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTitle + +`func (o *PresentationHighlight) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PresentationHighlight) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *PresentationHighlight) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetFields + +`func (o *PresentationHighlight) GetFields() []PresentationHighlightField` + +GetFields returns the Fields field if non-nil, zero value otherwise. + +### GetFieldsOk + +`func (o *PresentationHighlight) GetFieldsOk() (*[]PresentationHighlightField, bool)` + +GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFields + +`func (o *PresentationHighlight) SetFields(v []PresentationHighlightField)` + +SetFields sets Fields field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PresentationHighlightField.md b/generated/stackstate_api/docs/PresentationHighlightField.md new file mode 100644 index 00000000..bea0a63d --- /dev/null +++ b/generated/stackstate_api/docs/PresentationHighlightField.md @@ -0,0 +1,145 @@ +# PresentationHighlightField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Order** | **float64** | | +**Projection** | Pointer to [**ComponentHighlightProjection**](ComponentHighlightProjection.md) | | [optional] + +## Methods + +### NewPresentationHighlightField + +`func NewPresentationHighlightField(fieldId string, title string, order float64, ) *PresentationHighlightField` + +NewPresentationHighlightField instantiates a new PresentationHighlightField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPresentationHighlightFieldWithDefaults + +`func NewPresentationHighlightFieldWithDefaults() *PresentationHighlightField` + +NewPresentationHighlightFieldWithDefaults instantiates a new PresentationHighlightField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *PresentationHighlightField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *PresentationHighlightField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *PresentationHighlightField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *PresentationHighlightField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PresentationHighlightField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *PresentationHighlightField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *PresentationHighlightField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PresentationHighlightField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PresentationHighlightField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PresentationHighlightField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetOrder + +`func (o *PresentationHighlightField) GetOrder() float64` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *PresentationHighlightField) GetOrderOk() (*float64, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *PresentationHighlightField) SetOrder(v float64)` + +SetOrder sets Order field to given value. + + +### GetProjection + +`func (o *PresentationHighlightField) GetProjection() ComponentHighlightProjection` + +GetProjection returns the Projection field if non-nil, zero value otherwise. + +### GetProjectionOk + +`func (o *PresentationHighlightField) GetProjectionOk() (*ComponentHighlightProjection, bool)` + +GetProjectionOk returns a tuple with the Projection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjection + +`func (o *PresentationHighlightField) SetProjection(v ComponentHighlightProjection)` + +SetProjection sets Projection field to given value. + +### HasProjection + +`func (o *PresentationHighlightField) HasProjection() bool` + +HasProjection returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PresentationTagFilter.md b/generated/stackstate_api/docs/PresentationTagFilter.md new file mode 100644 index 00000000..520481b8 --- /dev/null +++ b/generated/stackstate_api/docs/PresentationTagFilter.md @@ -0,0 +1,114 @@ +# PresentationTagFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**FilterId** | **string** | | +**DisplayName** | [**PresentationFilterName**](PresentationFilterName.md) | | +**TagKey** | **string** | Tag key to use for filtering. | + +## Methods + +### NewPresentationTagFilter + +`func NewPresentationTagFilter(type_ string, filterId string, displayName PresentationFilterName, tagKey string, ) *PresentationTagFilter` + +NewPresentationTagFilter instantiates a new PresentationTagFilter object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPresentationTagFilterWithDefaults + +`func NewPresentationTagFilterWithDefaults() *PresentationTagFilter` + +NewPresentationTagFilterWithDefaults instantiates a new PresentationTagFilter object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PresentationTagFilter) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PresentationTagFilter) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PresentationTagFilter) SetType(v string)` + +SetType sets Type field to given value. + + +### GetFilterId + +`func (o *PresentationTagFilter) GetFilterId() string` + +GetFilterId returns the FilterId field if non-nil, zero value otherwise. + +### GetFilterIdOk + +`func (o *PresentationTagFilter) GetFilterIdOk() (*string, bool)` + +GetFilterIdOk returns a tuple with the FilterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilterId + +`func (o *PresentationTagFilter) SetFilterId(v string)` + +SetFilterId sets FilterId field to given value. + + +### GetDisplayName + +`func (o *PresentationTagFilter) GetDisplayName() PresentationFilterName` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PresentationTagFilter) GetDisplayNameOk() (*PresentationFilterName, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PresentationTagFilter) SetDisplayName(v PresentationFilterName)` + +SetDisplayName sets DisplayName field to given value. + + +### GetTagKey + +`func (o *PresentationTagFilter) GetTagKey() string` + +GetTagKey returns the TagKey field if non-nil, zero value otherwise. + +### GetTagKeyOk + +`func (o *PresentationTagFilter) GetTagKeyOk() (*string, bool)` + +GetTagKeyOk returns a tuple with the TagKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagKey + +`func (o *PresentationTagFilter) SetTagKey(v string)` + +SetTagKey sets TagKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PropertySource.md b/generated/stackstate_api/docs/PropertySource.md deleted file mode 100644 index 8eec6c1e..00000000 --- a/generated/stackstate_api/docs/PropertySource.md +++ /dev/null @@ -1,98 +0,0 @@ -# PropertySource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | -**Key** | **string** | | -**DefaultValue** | Pointer to **string** | | [optional] - -## Methods - -### NewPropertySource - -`func NewPropertySource(type_ string, key string, ) *PropertySource` - -NewPropertySource instantiates a new PropertySource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPropertySourceWithDefaults - -`func NewPropertySourceWithDefaults() *PropertySource` - -NewPropertySourceWithDefaults instantiates a new PropertySource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *PropertySource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *PropertySource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *PropertySource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetKey - -`func (o *PropertySource) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *PropertySource) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *PropertySource) SetKey(v string)` - -SetKey sets Key field to given value. - - -### GetDefaultValue - -`func (o *PropertySource) GetDefaultValue() string` - -GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. - -### GetDefaultValueOk - -`func (o *PropertySource) GetDefaultValueOk() (*string, bool)` - -GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultValue - -`func (o *PropertySource) SetDefaultValue(v string)` - -SetDefaultValue sets DefaultValue field to given value. - -### HasDefaultValue - -`func (o *PropertySource) HasDefaultValue() bool` - -HasDefaultValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/RatioDisplay.md b/generated/stackstate_api/docs/RatioDisplay.md deleted file mode 100644 index 2f29551e..00000000 --- a/generated/stackstate_api/docs/RatioDisplay.md +++ /dev/null @@ -1,51 +0,0 @@ -# RatioDisplay - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewRatioDisplay - -`func NewRatioDisplay(type_ string, ) *RatioDisplay` - -NewRatioDisplay instantiates a new RatioDisplay object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRatioDisplayWithDefaults - -`func NewRatioDisplayWithDefaults() *RatioDisplay` - -NewRatioDisplayWithDefaults instantiates a new RatioDisplay object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *RatioDisplay) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *RatioDisplay) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *RatioDisplay) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/RatioField.md b/generated/stackstate_api/docs/RatioField.md new file mode 100644 index 00000000..1fcceb0b --- /dev/null +++ b/generated/stackstate_api/docs/RatioField.md @@ -0,0 +1,187 @@ +# RatioField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Numerator** | **float32** | | +**Denominator** | **float32** | | +**Status** | Pointer to [**HealthStateValue**](HealthStateValue.md) | | [optional] + +## Methods + +### NewRatioField + +`func NewRatioField(fieldId string, title string, type_ string, numerator float32, denominator float32, ) *RatioField` + +NewRatioField instantiates a new RatioField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRatioFieldWithDefaults + +`func NewRatioFieldWithDefaults() *RatioField` + +NewRatioFieldWithDefaults instantiates a new RatioField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *RatioField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *RatioField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *RatioField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *RatioField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *RatioField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *RatioField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *RatioField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RatioField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RatioField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RatioField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *RatioField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RatioField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RatioField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetNumerator + +`func (o *RatioField) GetNumerator() float32` + +GetNumerator returns the Numerator field if non-nil, zero value otherwise. + +### GetNumeratorOk + +`func (o *RatioField) GetNumeratorOk() (*float32, bool)` + +GetNumeratorOk returns a tuple with the Numerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumerator + +`func (o *RatioField) SetNumerator(v float32)` + +SetNumerator sets Numerator field to given value. + + +### GetDenominator + +`func (o *RatioField) GetDenominator() float32` + +GetDenominator returns the Denominator field if non-nil, zero value otherwise. + +### GetDenominatorOk + +`func (o *RatioField) GetDenominatorOk() (*float32, bool)` + +GetDenominatorOk returns a tuple with the Denominator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenominator + +`func (o *RatioField) SetDenominator(v float32)` + +SetDenominator sets Denominator field to given value. + + +### GetStatus + +`func (o *RatioField) GetStatus() HealthStateValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RatioField) GetStatusOk() (*HealthStateValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RatioField) SetStatus(v HealthStateValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RatioField) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/RatioFieldAllOf.md b/generated/stackstate_api/docs/RatioFieldAllOf.md new file mode 100644 index 00000000..6ff23f67 --- /dev/null +++ b/generated/stackstate_api/docs/RatioFieldAllOf.md @@ -0,0 +1,119 @@ +# RatioFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Numerator** | **float32** | | +**Denominator** | **float32** | | +**Status** | Pointer to [**HealthStateValue**](HealthStateValue.md) | | [optional] + +## Methods + +### NewRatioFieldAllOf + +`func NewRatioFieldAllOf(type_ string, numerator float32, denominator float32, ) *RatioFieldAllOf` + +NewRatioFieldAllOf instantiates a new RatioFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRatioFieldAllOfWithDefaults + +`func NewRatioFieldAllOfWithDefaults() *RatioFieldAllOf` + +NewRatioFieldAllOfWithDefaults instantiates a new RatioFieldAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *RatioFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RatioFieldAllOf) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RatioFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetNumerator + +`func (o *RatioFieldAllOf) GetNumerator() float32` + +GetNumerator returns the Numerator field if non-nil, zero value otherwise. + +### GetNumeratorOk + +`func (o *RatioFieldAllOf) GetNumeratorOk() (*float32, bool)` + +GetNumeratorOk returns a tuple with the Numerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumerator + +`func (o *RatioFieldAllOf) SetNumerator(v float32)` + +SetNumerator sets Numerator field to given value. + + +### GetDenominator + +`func (o *RatioFieldAllOf) GetDenominator() float32` + +GetDenominator returns the Denominator field if non-nil, zero value otherwise. + +### GetDenominatorOk + +`func (o *RatioFieldAllOf) GetDenominatorOk() (*float32, bool)` + +GetDenominatorOk returns a tuple with the Denominator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenominator + +`func (o *RatioFieldAllOf) SetDenominator(v float32)` + +SetDenominator sets Denominator field to given value. + + +### GetStatus + +`func (o *RatioFieldAllOf) GetStatus() HealthStateValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RatioFieldAllOf) GetStatusOk() (*HealthStateValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RatioFieldAllOf) SetStatus(v HealthStateValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RatioFieldAllOf) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/RatioProjection.md b/generated/stackstate_api/docs/RatioProjection.md new file mode 100644 index 00000000..9c18f5bd --- /dev/null +++ b/generated/stackstate_api/docs/RatioProjection.md @@ -0,0 +1,119 @@ +# RatioProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Numerator** | **string** | Cel expression that returns a number | +**Denominator** | **string** | Cel expression that returns a number | +**Status** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] + +## Methods + +### NewRatioProjection + +`func NewRatioProjection(type_ string, numerator string, denominator string, ) *RatioProjection` + +NewRatioProjection instantiates a new RatioProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRatioProjectionWithDefaults + +`func NewRatioProjectionWithDefaults() *RatioProjection` + +NewRatioProjectionWithDefaults instantiates a new RatioProjection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *RatioProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RatioProjection) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RatioProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetNumerator + +`func (o *RatioProjection) GetNumerator() string` + +GetNumerator returns the Numerator field if non-nil, zero value otherwise. + +### GetNumeratorOk + +`func (o *RatioProjection) GetNumeratorOk() (*string, bool)` + +GetNumeratorOk returns a tuple with the Numerator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumerator + +`func (o *RatioProjection) SetNumerator(v string)` + +SetNumerator sets Numerator field to given value. + + +### GetDenominator + +`func (o *RatioProjection) GetDenominator() string` + +GetDenominator returns the Denominator field if non-nil, zero value otherwise. + +### GetDenominatorOk + +`func (o *RatioProjection) GetDenominatorOk() (*string, bool)` + +GetDenominatorOk returns a tuple with the Denominator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDenominator + +`func (o *RatioProjection) SetDenominator(v string)` + +SetDenominator sets Denominator field to given value. + + +### GetStatus + +`func (o *RatioProjection) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RatioProjection) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RatioProjection) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RatioProjection) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ReadyStatusDisplay.md b/generated/stackstate_api/docs/ReadyStatusDisplay.md deleted file mode 100644 index 72f747f3..00000000 --- a/generated/stackstate_api/docs/ReadyStatusDisplay.md +++ /dev/null @@ -1,51 +0,0 @@ -# ReadyStatusDisplay - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewReadyStatusDisplay - -`func NewReadyStatusDisplay(type_ string, ) *ReadyStatusDisplay` - -NewReadyStatusDisplay instantiates a new ReadyStatusDisplay object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewReadyStatusDisplayWithDefaults - -`func NewReadyStatusDisplayWithDefaults() *ReadyStatusDisplay` - -NewReadyStatusDisplayWithDefaults instantiates a new ReadyStatusDisplay object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *ReadyStatusDisplay) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ReadyStatusDisplay) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ReadyStatusDisplay) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/ReadyStatusProjection.md b/generated/stackstate_api/docs/ReadyStatusProjection.md deleted file mode 100644 index 172e38f7..00000000 --- a/generated/stackstate_api/docs/ReadyStatusProjection.md +++ /dev/null @@ -1,119 +0,0 @@ -# ReadyStatusProjection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | -**ReadyNumber** | **string** | Cel expression that returns a number | -**TotalNumber** | **string** | Cel expression that returns a number | -**ReadyStatus** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] - -## Methods - -### NewReadyStatusProjection - -`func NewReadyStatusProjection(type_ string, readyNumber string, totalNumber string, ) *ReadyStatusProjection` - -NewReadyStatusProjection instantiates a new ReadyStatusProjection object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewReadyStatusProjectionWithDefaults - -`func NewReadyStatusProjectionWithDefaults() *ReadyStatusProjection` - -NewReadyStatusProjectionWithDefaults instantiates a new ReadyStatusProjection object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *ReadyStatusProjection) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ReadyStatusProjection) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ReadyStatusProjection) SetType(v string)` - -SetType sets Type field to given value. - - -### GetReadyNumber - -`func (o *ReadyStatusProjection) GetReadyNumber() string` - -GetReadyNumber returns the ReadyNumber field if non-nil, zero value otherwise. - -### GetReadyNumberOk - -`func (o *ReadyStatusProjection) GetReadyNumberOk() (*string, bool)` - -GetReadyNumberOk returns a tuple with the ReadyNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReadyNumber - -`func (o *ReadyStatusProjection) SetReadyNumber(v string)` - -SetReadyNumber sets ReadyNumber field to given value. - - -### GetTotalNumber - -`func (o *ReadyStatusProjection) GetTotalNumber() string` - -GetTotalNumber returns the TotalNumber field if non-nil, zero value otherwise. - -### GetTotalNumberOk - -`func (o *ReadyStatusProjection) GetTotalNumberOk() (*string, bool)` - -GetTotalNumberOk returns a tuple with the TotalNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTotalNumber - -`func (o *ReadyStatusProjection) SetTotalNumber(v string)` - -SetTotalNumber sets TotalNumber field to given value. - - -### GetReadyStatus - -`func (o *ReadyStatusProjection) GetReadyStatus() string` - -GetReadyStatus returns the ReadyStatus field if non-nil, zero value otherwise. - -### GetReadyStatusOk - -`func (o *ReadyStatusProjection) GetReadyStatusOk() (*string, bool)` - -GetReadyStatusOk returns a tuple with the ReadyStatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReadyStatus - -`func (o *ReadyStatusProjection) SetReadyStatus(v string)` - -SetReadyStatus sets ReadyStatus field to given value. - -### HasReadyStatus - -`func (o *ReadyStatusProjection) HasReadyStatus() bool` - -HasReadyStatus returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/TagSource.md b/generated/stackstate_api/docs/TagFilter.md similarity index 54% rename from generated/stackstate_api/docs/TagSource.md rename to generated/stackstate_api/docs/TagFilter.md index c32317fd..85e9f9c9 100644 --- a/generated/stackstate_api/docs/TagSource.md +++ b/generated/stackstate_api/docs/TagFilter.md @@ -1,69 +1,69 @@ -# TagSource +# TagFilter ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | -**TagName** | **string** | | +**TagKey** | **string** | Tag key used for filtering and value lookup. | ## Methods -### NewTagSource +### NewTagFilter -`func NewTagSource(type_ string, tagName string, ) *TagSource` +`func NewTagFilter(type_ string, tagKey string, ) *TagFilter` -NewTagSource instantiates a new TagSource object +NewTagFilter instantiates a new TagFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewTagSourceWithDefaults +### NewTagFilterWithDefaults -`func NewTagSourceWithDefaults() *TagSource` +`func NewTagFilterWithDefaults() *TagFilter` -NewTagSourceWithDefaults instantiates a new TagSource object +NewTagFilterWithDefaults instantiates a new TagFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *TagSource) GetType() string` +`func (o *TagFilter) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *TagSource) GetTypeOk() (*string, bool)` +`func (o *TagFilter) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *TagSource) SetType(v string)` +`func (o *TagFilter) SetType(v string)` SetType sets Type field to given value. -### GetTagName +### GetTagKey -`func (o *TagSource) GetTagName() string` +`func (o *TagFilter) GetTagKey() string` -GetTagName returns the TagName field if non-nil, zero value otherwise. +GetTagKey returns the TagKey field if non-nil, zero value otherwise. -### GetTagNameOk +### GetTagKeyOk -`func (o *TagSource) GetTagNameOk() (*string, bool)` +`func (o *TagFilter) GetTagKeyOk() (*string, bool)` -GetTagNameOk returns a tuple with the TagName field if it's non-nil, zero value otherwise +GetTagKeyOk returns a tuple with the TagKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetTagName +### SetTagKey -`func (o *TagSource) SetTagName(v string)` +`func (o *TagFilter) SetTagKey(v string)` -SetTagName sets TagName field to given value. +SetTagKey sets TagKey field to given value. diff --git a/generated/stackstate_api/docs/TagsSource.md b/generated/stackstate_api/docs/TagsSource.md deleted file mode 100644 index b84d146d..00000000 --- a/generated/stackstate_api/docs/TagsSource.md +++ /dev/null @@ -1,51 +0,0 @@ -# TagsSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewTagsSource - -`func NewTagsSource(type_ string, ) *TagsSource` - -NewTagsSource instantiates a new TagsSource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTagsSourceWithDefaults - -`func NewTagsSourceWithDefaults() *TagsSource` - -NewTagsSourceWithDefaults instantiates a new TagsSource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TagsSource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TagsSource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TagsSource) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/TextDisplay.md b/generated/stackstate_api/docs/TextDisplay.md deleted file mode 100644 index 9a4229ef..00000000 --- a/generated/stackstate_api/docs/TextDisplay.md +++ /dev/null @@ -1,51 +0,0 @@ -# TextDisplay - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewTextDisplay - -`func NewTextDisplay(type_ string, ) *TextDisplay` - -NewTextDisplay instantiates a new TextDisplay object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTextDisplayWithDefaults - -`func NewTextDisplayWithDefaults() *TextDisplay` - -NewTextDisplayWithDefaults instantiates a new TextDisplay object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TextDisplay) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TextDisplay) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TextDisplay) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/docs/TextField.md b/generated/stackstate_api/docs/TextField.md new file mode 100644 index 00000000..35ce4d00 --- /dev/null +++ b/generated/stackstate_api/docs/TextField.md @@ -0,0 +1,161 @@ +# TextField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Value** | **string** | | +**AsTag** | **bool** | | [default to false] + +## Methods + +### NewTextField + +`func NewTextField(fieldId string, title string, type_ string, value string, asTag bool, ) *TextField` + +NewTextField instantiates a new TextField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTextFieldWithDefaults + +`func NewTextFieldWithDefaults() *TextField` + +NewTextFieldWithDefaults instantiates a new TextField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *TextField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *TextField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *TextField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *TextField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *TextField) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *TextField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *TextField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TextField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *TextField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *TextField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *TextField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TextField) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TextField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *TextField) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TextField) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TextField) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetAsTag + +`func (o *TextField) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *TextField) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *TextField) SetAsTag(v bool)` + +SetAsTag sets AsTag field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ConstantSource.md b/generated/stackstate_api/docs/TextFieldAllOf.md similarity index 54% rename from generated/stackstate_api/docs/ConstantSource.md rename to generated/stackstate_api/docs/TextFieldAllOf.md index c913cfe2..0de1bafe 100644 --- a/generated/stackstate_api/docs/ConstantSource.md +++ b/generated/stackstate_api/docs/TextFieldAllOf.md @@ -1,4 +1,4 @@ -# ConstantSource +# TextFieldAllOf ## Properties @@ -6,66 +6,87 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | **Value** | **string** | | +**AsTag** | **bool** | | [default to false] ## Methods -### NewConstantSource +### NewTextFieldAllOf -`func NewConstantSource(type_ string, value string, ) *ConstantSource` +`func NewTextFieldAllOf(type_ string, value string, asTag bool, ) *TextFieldAllOf` -NewConstantSource instantiates a new ConstantSource object +NewTextFieldAllOf instantiates a new TextFieldAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewConstantSourceWithDefaults +### NewTextFieldAllOfWithDefaults -`func NewConstantSourceWithDefaults() *ConstantSource` +`func NewTextFieldAllOfWithDefaults() *TextFieldAllOf` -NewConstantSourceWithDefaults instantiates a new ConstantSource object +NewTextFieldAllOfWithDefaults instantiates a new TextFieldAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *ConstantSource) GetType() string` +`func (o *TextFieldAllOf) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *ConstantSource) GetTypeOk() (*string, bool)` +`func (o *TextFieldAllOf) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *ConstantSource) SetType(v string)` +`func (o *TextFieldAllOf) SetType(v string)` SetType sets Type field to given value. ### GetValue -`func (o *ConstantSource) GetValue() string` +`func (o *TextFieldAllOf) GetValue() string` GetValue returns the Value field if non-nil, zero value otherwise. ### GetValueOk -`func (o *ConstantSource) GetValueOk() (*string, bool)` +`func (o *TextFieldAllOf) GetValueOk() (*string, bool)` GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetValue -`func (o *ConstantSource) SetValue(v string)` +`func (o *TextFieldAllOf) SetValue(v string)` SetValue sets Value field to given value. +### GetAsTag + +`func (o *TextFieldAllOf) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *TextFieldAllOf) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *TextFieldAllOf) SetAsTag(v bool)` + +SetAsTag sets AsTag field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/TextProjection.md b/generated/stackstate_api/docs/TextProjection.md index f6a97a20..c50e98ba 100644 --- a/generated/stackstate_api/docs/TextProjection.md +++ b/generated/stackstate_api/docs/TextProjection.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | **Value** | **string** | Cel expression that returns a string | +**AsTag** | Pointer to **bool** | Should the value be rendered as a tag or as plain text | [optional] [default to false] ## Methods @@ -66,6 +67,31 @@ and a boolean to check if the value has been set. SetValue sets Value field to given value. +### GetAsTag + +`func (o *TextProjection) GetAsTag() bool` + +GetAsTag returns the AsTag field if non-nil, zero value otherwise. + +### GetAsTagOk + +`func (o *TextProjection) GetAsTagOk() (*bool, bool)` + +GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsTag + +`func (o *TextProjection) SetAsTag(v bool)` + +SetAsTag sets AsTag field to given value. + +### HasAsTag + +`func (o *TextProjection) HasAsTag() bool` + +HasAsTag returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/ViewTimeLink.md b/generated/stackstate_api/docs/ViewTimeLink.md deleted file mode 100644 index 50d8eaa8..00000000 --- a/generated/stackstate_api/docs/ViewTimeLink.md +++ /dev/null @@ -1,51 +0,0 @@ -# ViewTimeLink - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewViewTimeLink - -`func NewViewTimeLink(type_ string, ) *ViewTimeLink` - -NewViewTimeLink instantiates a new ViewTimeLink object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewViewTimeLinkWithDefaults - -`func NewViewTimeLinkWithDefaults() *ViewTimeLink` - -NewViewTimeLinkWithDefaults instantiates a new ViewTimeLink object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *ViewTimeLink) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ViewTimeLink) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ViewTimeLink) SetType(v string)` - -SetType sets Type field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generated/stackstate_api/model_base_component_field.go b/generated/stackstate_api/model_base_component_field.go new file mode 100644 index 00000000..b17af9d4 --- /dev/null +++ b/generated/stackstate_api/model_base_component_field.go @@ -0,0 +1,172 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// BaseComponentField struct for BaseComponentField +type BaseComponentField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` +} + +// NewBaseComponentField instantiates a new BaseComponentField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBaseComponentField(fieldId string, title string) *BaseComponentField { + this := BaseComponentField{} + this.FieldId = fieldId + this.Title = title + return &this +} + +// NewBaseComponentFieldWithDefaults instantiates a new BaseComponentField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBaseComponentFieldWithDefaults() *BaseComponentField { + this := BaseComponentField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *BaseComponentField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *BaseComponentField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *BaseComponentField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *BaseComponentField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *BaseComponentField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *BaseComponentField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BaseComponentField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BaseComponentField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BaseComponentField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BaseComponentField) SetDescription(v string) { + o.Description = &v +} + +func (o BaseComponentField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + return json.Marshal(toSerialize) +} + +type NullableBaseComponentField struct { + value *BaseComponentField + isSet bool +} + +func (v NullableBaseComponentField) Get() *BaseComponentField { + return v.value +} + +func (v *NullableBaseComponentField) Set(val *BaseComponentField) { + v.value = val + v.isSet = true +} + +func (v NullableBaseComponentField) IsSet() bool { + return v.isSet +} + +func (v *NullableBaseComponentField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBaseComponentField(val *BaseComponentField) *NullableBaseComponentField { + return &NullableBaseComponentField{value: val, isSet: true} +} + +func (v NullableBaseComponentField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBaseComponentField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_field.go b/generated/stackstate_api/model_component_field.go new file mode 100644 index 00000000..d250f927 --- /dev/null +++ b/generated/stackstate_api/model_component_field.go @@ -0,0 +1,364 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" + "fmt" +) + +// ComponentField - Display type and value for the field. +type ComponentField struct { + ComponentLinkField *ComponentLinkField + DurationField *DurationField + ErrorField *ErrorField + HealthField *HealthField + LinkField *LinkField + MapField *MapField + MetricField *MetricField + NumericField *NumericField + RatioField *RatioField + TextField *TextField +} + +// ComponentLinkFieldAsComponentField is a convenience function that returns ComponentLinkField wrapped in ComponentField +func ComponentLinkFieldAsComponentField(v *ComponentLinkField) ComponentField { + return ComponentField{ + ComponentLinkField: v, + } +} + +// DurationFieldAsComponentField is a convenience function that returns DurationField wrapped in ComponentField +func DurationFieldAsComponentField(v *DurationField) ComponentField { + return ComponentField{ + DurationField: v, + } +} + +// ErrorFieldAsComponentField is a convenience function that returns ErrorField wrapped in ComponentField +func ErrorFieldAsComponentField(v *ErrorField) ComponentField { + return ComponentField{ + ErrorField: v, + } +} + +// HealthFieldAsComponentField is a convenience function that returns HealthField wrapped in ComponentField +func HealthFieldAsComponentField(v *HealthField) ComponentField { + return ComponentField{ + HealthField: v, + } +} + +// LinkFieldAsComponentField is a convenience function that returns LinkField wrapped in ComponentField +func LinkFieldAsComponentField(v *LinkField) ComponentField { + return ComponentField{ + LinkField: v, + } +} + +// MapFieldAsComponentField is a convenience function that returns MapField wrapped in ComponentField +func MapFieldAsComponentField(v *MapField) ComponentField { + return ComponentField{ + MapField: v, + } +} + +// MetricFieldAsComponentField is a convenience function that returns MetricField wrapped in ComponentField +func MetricFieldAsComponentField(v *MetricField) ComponentField { + return ComponentField{ + MetricField: v, + } +} + +// NumericFieldAsComponentField is a convenience function that returns NumericField wrapped in ComponentField +func NumericFieldAsComponentField(v *NumericField) ComponentField { + return ComponentField{ + NumericField: v, + } +} + +// RatioFieldAsComponentField is a convenience function that returns RatioField wrapped in ComponentField +func RatioFieldAsComponentField(v *RatioField) ComponentField { + return ComponentField{ + RatioField: v, + } +} + +// TextFieldAsComponentField is a convenience function that returns TextField wrapped in ComponentField +func TextFieldAsComponentField(v *TextField) ComponentField { + return ComponentField{ + TextField: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ComponentField) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = newStrictDecoder(data).Decode(&jsonDict) + if err != nil { + return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") + } + + // check if the discriminator value is 'ComponentLinkField' + if jsonDict["_type"] == "ComponentLinkField" { + // try to unmarshal JSON data into ComponentLinkField + err = json.Unmarshal(data, &dst.ComponentLinkField) + if err == nil { + return nil // data stored in dst.ComponentLinkField, return on the first match + } else { + dst.ComponentLinkField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as ComponentLinkField: %s", err.Error()) + } + } + + // check if the discriminator value is 'DurationField' + if jsonDict["_type"] == "DurationField" { + // try to unmarshal JSON data into DurationField + err = json.Unmarshal(data, &dst.DurationField) + if err == nil { + return nil // data stored in dst.DurationField, return on the first match + } else { + dst.DurationField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as DurationField: %s", err.Error()) + } + } + + // check if the discriminator value is 'ErrorField' + if jsonDict["_type"] == "ErrorField" { + // try to unmarshal JSON data into ErrorField + err = json.Unmarshal(data, &dst.ErrorField) + if err == nil { + return nil // data stored in dst.ErrorField, return on the first match + } else { + dst.ErrorField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as ErrorField: %s", err.Error()) + } + } + + // check if the discriminator value is 'HealthField' + if jsonDict["_type"] == "HealthField" { + // try to unmarshal JSON data into HealthField + err = json.Unmarshal(data, &dst.HealthField) + if err == nil { + return nil // data stored in dst.HealthField, return on the first match + } else { + dst.HealthField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as HealthField: %s", err.Error()) + } + } + + // check if the discriminator value is 'LinkField' + if jsonDict["_type"] == "LinkField" { + // try to unmarshal JSON data into LinkField + err = json.Unmarshal(data, &dst.LinkField) + if err == nil { + return nil // data stored in dst.LinkField, return on the first match + } else { + dst.LinkField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as LinkField: %s", err.Error()) + } + } + + // check if the discriminator value is 'MapField' + if jsonDict["_type"] == "MapField" { + // try to unmarshal JSON data into MapField + err = json.Unmarshal(data, &dst.MapField) + if err == nil { + return nil // data stored in dst.MapField, return on the first match + } else { + dst.MapField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as MapField: %s", err.Error()) + } + } + + // check if the discriminator value is 'MetricField' + if jsonDict["_type"] == "MetricField" { + // try to unmarshal JSON data into MetricField + err = json.Unmarshal(data, &dst.MetricField) + if err == nil { + return nil // data stored in dst.MetricField, return on the first match + } else { + dst.MetricField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as MetricField: %s", err.Error()) + } + } + + // check if the discriminator value is 'NumericField' + if jsonDict["_type"] == "NumericField" { + // try to unmarshal JSON data into NumericField + err = json.Unmarshal(data, &dst.NumericField) + if err == nil { + return nil // data stored in dst.NumericField, return on the first match + } else { + dst.NumericField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as NumericField: %s", err.Error()) + } + } + + // check if the discriminator value is 'RatioField' + if jsonDict["_type"] == "RatioField" { + // try to unmarshal JSON data into RatioField + err = json.Unmarshal(data, &dst.RatioField) + if err == nil { + return nil // data stored in dst.RatioField, return on the first match + } else { + dst.RatioField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as RatioField: %s", err.Error()) + } + } + + // check if the discriminator value is 'TextField' + if jsonDict["_type"] == "TextField" { + // try to unmarshal JSON data into TextField + err = json.Unmarshal(data, &dst.TextField) + if err == nil { + return nil // data stored in dst.TextField, return on the first match + } else { + dst.TextField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as TextField: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ComponentField) MarshalJSON() ([]byte, error) { + if src.ComponentLinkField != nil { + return json.Marshal(&src.ComponentLinkField) + } + + if src.DurationField != nil { + return json.Marshal(&src.DurationField) + } + + if src.ErrorField != nil { + return json.Marshal(&src.ErrorField) + } + + if src.HealthField != nil { + return json.Marshal(&src.HealthField) + } + + if src.LinkField != nil { + return json.Marshal(&src.LinkField) + } + + if src.MapField != nil { + return json.Marshal(&src.MapField) + } + + if src.MetricField != nil { + return json.Marshal(&src.MetricField) + } + + if src.NumericField != nil { + return json.Marshal(&src.NumericField) + } + + if src.RatioField != nil { + return json.Marshal(&src.RatioField) + } + + if src.TextField != nil { + return json.Marshal(&src.TextField) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ComponentField) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ComponentLinkField != nil { + return obj.ComponentLinkField + } + + if obj.DurationField != nil { + return obj.DurationField + } + + if obj.ErrorField != nil { + return obj.ErrorField + } + + if obj.HealthField != nil { + return obj.HealthField + } + + if obj.LinkField != nil { + return obj.LinkField + } + + if obj.MapField != nil { + return obj.MapField + } + + if obj.MetricField != nil { + return obj.MetricField + } + + if obj.NumericField != nil { + return obj.NumericField + } + + if obj.RatioField != nil { + return obj.RatioField + } + + if obj.TextField != nil { + return obj.TextField + } + + // all schemas are nil + return nil +} + +type NullableComponentField struct { + value *ComponentField + isSet bool +} + +func (v NullableComponentField) Get() *ComponentField { + return v.value +} + +func (v *NullableComponentField) Set(val *ComponentField) { + v.value = val + v.isSet = true +} + +func (v NullableComponentField) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentField(val *ComponentField) *NullableComponentField { + return &NullableComponentField{value: val, isSet: true} +} + +func (v NullableComponentField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_highlight_projection.go b/generated/stackstate_api/model_component_highlight_projection.go new file mode 100644 index 00000000..11fdba1f --- /dev/null +++ b/generated/stackstate_api/model_component_highlight_projection.go @@ -0,0 +1,336 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" + "fmt" +) + +// ComponentHighlightProjection - Display type and value for the field. +type ComponentHighlightProjection struct { + ComponentLinkProjection *ComponentLinkProjection + ContainerImageProjection *ContainerImageProjection + DurationProjection *DurationProjection + HealthProjection *HealthProjection + MapProjection *MapProjection + MetricProjection *MetricProjection + NumericProjection *NumericProjection + RatioProjection *RatioProjection + TextProjection *TextProjection +} + +// ComponentLinkProjectionAsComponentHighlightProjection is a convenience function that returns ComponentLinkProjection wrapped in ComponentHighlightProjection +func ComponentLinkProjectionAsComponentHighlightProjection(v *ComponentLinkProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + ComponentLinkProjection: v, + } +} + +// ContainerImageProjectionAsComponentHighlightProjection is a convenience function that returns ContainerImageProjection wrapped in ComponentHighlightProjection +func ContainerImageProjectionAsComponentHighlightProjection(v *ContainerImageProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + ContainerImageProjection: v, + } +} + +// DurationProjectionAsComponentHighlightProjection is a convenience function that returns DurationProjection wrapped in ComponentHighlightProjection +func DurationProjectionAsComponentHighlightProjection(v *DurationProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + DurationProjection: v, + } +} + +// HealthProjectionAsComponentHighlightProjection is a convenience function that returns HealthProjection wrapped in ComponentHighlightProjection +func HealthProjectionAsComponentHighlightProjection(v *HealthProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + HealthProjection: v, + } +} + +// MapProjectionAsComponentHighlightProjection is a convenience function that returns MapProjection wrapped in ComponentHighlightProjection +func MapProjectionAsComponentHighlightProjection(v *MapProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + MapProjection: v, + } +} + +// MetricProjectionAsComponentHighlightProjection is a convenience function that returns MetricProjection wrapped in ComponentHighlightProjection +func MetricProjectionAsComponentHighlightProjection(v *MetricProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + MetricProjection: v, + } +} + +// NumericProjectionAsComponentHighlightProjection is a convenience function that returns NumericProjection wrapped in ComponentHighlightProjection +func NumericProjectionAsComponentHighlightProjection(v *NumericProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + NumericProjection: v, + } +} + +// RatioProjectionAsComponentHighlightProjection is a convenience function that returns RatioProjection wrapped in ComponentHighlightProjection +func RatioProjectionAsComponentHighlightProjection(v *RatioProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + RatioProjection: v, + } +} + +// TextProjectionAsComponentHighlightProjection is a convenience function that returns TextProjection wrapped in ComponentHighlightProjection +func TextProjectionAsComponentHighlightProjection(v *TextProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + TextProjection: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ComponentHighlightProjection) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = newStrictDecoder(data).Decode(&jsonDict) + if err != nil { + return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") + } + + // check if the discriminator value is 'ComponentLinkProjection' + if jsonDict["_type"] == "ComponentLinkProjection" { + // try to unmarshal JSON data into ComponentLinkProjection + err = json.Unmarshal(data, &dst.ComponentLinkProjection) + if err == nil { + return nil // data stored in dst.ComponentLinkProjection, return on the first match + } else { + dst.ComponentLinkProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as ComponentLinkProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'ContainerImageProjection' + if jsonDict["_type"] == "ContainerImageProjection" { + // try to unmarshal JSON data into ContainerImageProjection + err = json.Unmarshal(data, &dst.ContainerImageProjection) + if err == nil { + return nil // data stored in dst.ContainerImageProjection, return on the first match + } else { + dst.ContainerImageProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as ContainerImageProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'DurationProjection' + if jsonDict["_type"] == "DurationProjection" { + // try to unmarshal JSON data into DurationProjection + err = json.Unmarshal(data, &dst.DurationProjection) + if err == nil { + return nil // data stored in dst.DurationProjection, return on the first match + } else { + dst.DurationProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as DurationProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'HealthProjection' + if jsonDict["_type"] == "HealthProjection" { + // try to unmarshal JSON data into HealthProjection + err = json.Unmarshal(data, &dst.HealthProjection) + if err == nil { + return nil // data stored in dst.HealthProjection, return on the first match + } else { + dst.HealthProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as HealthProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'MapProjection' + if jsonDict["_type"] == "MapProjection" { + // try to unmarshal JSON data into MapProjection + err = json.Unmarshal(data, &dst.MapProjection) + if err == nil { + return nil // data stored in dst.MapProjection, return on the first match + } else { + dst.MapProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as MapProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'MetricProjection' + if jsonDict["_type"] == "MetricProjection" { + // try to unmarshal JSON data into MetricProjection + err = json.Unmarshal(data, &dst.MetricProjection) + if err == nil { + return nil // data stored in dst.MetricProjection, return on the first match + } else { + dst.MetricProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as MetricProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'NumericProjection' + if jsonDict["_type"] == "NumericProjection" { + // try to unmarshal JSON data into NumericProjection + err = json.Unmarshal(data, &dst.NumericProjection) + if err == nil { + return nil // data stored in dst.NumericProjection, return on the first match + } else { + dst.NumericProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as NumericProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'RatioProjection' + if jsonDict["_type"] == "RatioProjection" { + // try to unmarshal JSON data into RatioProjection + err = json.Unmarshal(data, &dst.RatioProjection) + if err == nil { + return nil // data stored in dst.RatioProjection, return on the first match + } else { + dst.RatioProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as RatioProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'TextProjection' + if jsonDict["_type"] == "TextProjection" { + // try to unmarshal JSON data into TextProjection + err = json.Unmarshal(data, &dst.TextProjection) + if err == nil { + return nil // data stored in dst.TextProjection, return on the first match + } else { + dst.TextProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as TextProjection: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ComponentHighlightProjection) MarshalJSON() ([]byte, error) { + if src.ComponentLinkProjection != nil { + return json.Marshal(&src.ComponentLinkProjection) + } + + if src.ContainerImageProjection != nil { + return json.Marshal(&src.ContainerImageProjection) + } + + if src.DurationProjection != nil { + return json.Marshal(&src.DurationProjection) + } + + if src.HealthProjection != nil { + return json.Marshal(&src.HealthProjection) + } + + if src.MapProjection != nil { + return json.Marshal(&src.MapProjection) + } + + if src.MetricProjection != nil { + return json.Marshal(&src.MetricProjection) + } + + if src.NumericProjection != nil { + return json.Marshal(&src.NumericProjection) + } + + if src.RatioProjection != nil { + return json.Marshal(&src.RatioProjection) + } + + if src.TextProjection != nil { + return json.Marshal(&src.TextProjection) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ComponentHighlightProjection) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ComponentLinkProjection != nil { + return obj.ComponentLinkProjection + } + + if obj.ContainerImageProjection != nil { + return obj.ContainerImageProjection + } + + if obj.DurationProjection != nil { + return obj.DurationProjection + } + + if obj.HealthProjection != nil { + return obj.HealthProjection + } + + if obj.MapProjection != nil { + return obj.MapProjection + } + + if obj.MetricProjection != nil { + return obj.MetricProjection + } + + if obj.NumericProjection != nil { + return obj.NumericProjection + } + + if obj.RatioProjection != nil { + return obj.RatioProjection + } + + if obj.TextProjection != nil { + return obj.TextProjection + } + + // all schemas are nil + return nil +} + +type NullableComponentHighlightProjection struct { + value *ComponentHighlightProjection + isSet bool +} + +func (v NullableComponentHighlightProjection) Get() *ComponentHighlightProjection { + return v.value +} + +func (v *NullableComponentHighlightProjection) Set(val *ComponentHighlightProjection) { + v.value = val + v.isSet = true +} + +func (v NullableComponentHighlightProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentHighlightProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentHighlightProjection(val *ComponentHighlightProjection) *NullableComponentHighlightProjection { + return &NullableComponentHighlightProjection{value: val, isSet: true} +} + +func (v NullableComponentHighlightProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentHighlightProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_link_display.go b/generated/stackstate_api/model_component_link_display.go deleted file mode 100644 index d91d90b6..00000000 --- a/generated/stackstate_api/model_component_link_display.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// ComponentLinkDisplay struct for ComponentLinkDisplay -type ComponentLinkDisplay struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewComponentLinkDisplay instantiates a new ComponentLinkDisplay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComponentLinkDisplay(type_ string) *ComponentLinkDisplay { - this := ComponentLinkDisplay{} - this.Type = type_ - return &this -} - -// NewComponentLinkDisplayWithDefaults instantiates a new ComponentLinkDisplay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComponentLinkDisplayWithDefaults() *ComponentLinkDisplay { - this := ComponentLinkDisplay{} - return &this -} - -// GetType returns the Type field value -func (o *ComponentLinkDisplay) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ComponentLinkDisplay) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ComponentLinkDisplay) SetType(v string) { - o.Type = v -} - -func (o ComponentLinkDisplay) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableComponentLinkDisplay struct { - value *ComponentLinkDisplay - isSet bool -} - -func (v NullableComponentLinkDisplay) Get() *ComponentLinkDisplay { - return v.value -} - -func (v *NullableComponentLinkDisplay) Set(val *ComponentLinkDisplay) { - v.value = val - v.isSet = true -} - -func (v NullableComponentLinkDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentLinkDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentLinkDisplay(val *ComponentLinkDisplay) *NullableComponentLinkDisplay { - return &NullableComponentLinkDisplay{value: val, isSet: true} -} - -func (v NullableComponentLinkDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentLinkDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_link_field.go b/generated/stackstate_api/model_component_link_field.go new file mode 100644 index 00000000..fc529d9e --- /dev/null +++ b/generated/stackstate_api/model_component_link_field.go @@ -0,0 +1,259 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ComponentLinkField struct for ComponentLinkField +type ComponentLinkField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Name string `json:"name" yaml:"name"` + Identifier string `json:"identifier" yaml:"identifier"` +} + +// NewComponentLinkField instantiates a new ComponentLinkField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComponentLinkField(fieldId string, title string, type_ string, name string, identifier string) *ComponentLinkField { + this := ComponentLinkField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Name = name + this.Identifier = identifier + return &this +} + +// NewComponentLinkFieldWithDefaults instantiates a new ComponentLinkField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComponentLinkFieldWithDefaults() *ComponentLinkField { + this := ComponentLinkField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *ComponentLinkField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *ComponentLinkField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *ComponentLinkField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ComponentLinkField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ComponentLinkField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentLinkField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ComponentLinkField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ComponentLinkField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *ComponentLinkField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComponentLinkField) SetType(v string) { + o.Type = v +} + +// GetName returns the Name field value +func (o *ComponentLinkField) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkField) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComponentLinkField) SetName(v string) { + o.Name = v +} + +// GetIdentifier returns the Identifier field value +func (o *ComponentLinkField) GetIdentifier() string { + if o == nil { + var ret string + return ret + } + + return o.Identifier +} + +// GetIdentifierOk returns a tuple with the Identifier field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkField) GetIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Identifier, true +} + +// SetIdentifier sets field value +func (o *ComponentLinkField) SetIdentifier(v string) { + o.Identifier = v +} + +func (o ComponentLinkField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["identifier"] = o.Identifier + } + return json.Marshal(toSerialize) +} + +type NullableComponentLinkField struct { + value *ComponentLinkField + isSet bool +} + +func (v NullableComponentLinkField) Get() *ComponentLinkField { + return v.value +} + +func (v *NullableComponentLinkField) Set(val *ComponentLinkField) { + v.value = val + v.isSet = true +} + +func (v NullableComponentLinkField) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentLinkField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentLinkField(val *ComponentLinkField) *NullableComponentLinkField { + return &NullableComponentLinkField{value: val, isSet: true} +} + +func (v NullableComponentLinkField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentLinkField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_link_field_all_of.go b/generated/stackstate_api/model_component_link_field_all_of.go new file mode 100644 index 00000000..913423ac --- /dev/null +++ b/generated/stackstate_api/model_component_link_field_all_of.go @@ -0,0 +1,165 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ComponentLinkFieldAllOf struct for ComponentLinkFieldAllOf +type ComponentLinkFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Name string `json:"name" yaml:"name"` + Identifier string `json:"identifier" yaml:"identifier"` +} + +// NewComponentLinkFieldAllOf instantiates a new ComponentLinkFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComponentLinkFieldAllOf(type_ string, name string, identifier string) *ComponentLinkFieldAllOf { + this := ComponentLinkFieldAllOf{} + this.Type = type_ + this.Name = name + this.Identifier = identifier + return &this +} + +// NewComponentLinkFieldAllOfWithDefaults instantiates a new ComponentLinkFieldAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComponentLinkFieldAllOfWithDefaults() *ComponentLinkFieldAllOf { + this := ComponentLinkFieldAllOf{} + return &this +} + +// GetType returns the Type field value +func (o *ComponentLinkFieldAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComponentLinkFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetName returns the Name field value +func (o *ComponentLinkFieldAllOf) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkFieldAllOf) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComponentLinkFieldAllOf) SetName(v string) { + o.Name = v +} + +// GetIdentifier returns the Identifier field value +func (o *ComponentLinkFieldAllOf) GetIdentifier() string { + if o == nil { + var ret string + return ret + } + + return o.Identifier +} + +// GetIdentifierOk returns a tuple with the Identifier field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkFieldAllOf) GetIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Identifier, true +} + +// SetIdentifier sets field value +func (o *ComponentLinkFieldAllOf) SetIdentifier(v string) { + o.Identifier = v +} + +func (o ComponentLinkFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["identifier"] = o.Identifier + } + return json.Marshal(toSerialize) +} + +type NullableComponentLinkFieldAllOf struct { + value *ComponentLinkFieldAllOf + isSet bool +} + +func (v NullableComponentLinkFieldAllOf) Get() *ComponentLinkFieldAllOf { + return v.value +} + +func (v *NullableComponentLinkFieldAllOf) Set(val *ComponentLinkFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableComponentLinkFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentLinkFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentLinkFieldAllOf(val *ComponentLinkFieldAllOf) *NullableComponentLinkFieldAllOf { + return &NullableComponentLinkFieldAllOf{value: val, isSet: true} +} + +func (v NullableComponentLinkFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentLinkFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_link_projection.go b/generated/stackstate_api/model_component_link_projection.go index 464410cb..e90e0f1f 100644 --- a/generated/stackstate_api/model_component_link_projection.go +++ b/generated/stackstate_api/model_component_link_projection.go @@ -20,19 +20,19 @@ type ComponentLinkProjection struct { Type string `json:"_type" yaml:"_type"` // Cel expression that returns a string that represents the name of the component to link to Name string `json:"name" yaml:"name"` - // Cel expression that returns a string that represents the componentIdentifier in order to build the link - ComponentIdentifier string `json:"componentIdentifier" yaml:"componentIdentifier"` + // Cel expression that returns a string that represents the identifier in order to build the link + Identifier string `json:"identifier" yaml:"identifier"` } // NewComponentLinkProjection instantiates a new ComponentLinkProjection object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewComponentLinkProjection(type_ string, name string, componentIdentifier string) *ComponentLinkProjection { +func NewComponentLinkProjection(type_ string, name string, identifier string) *ComponentLinkProjection { this := ComponentLinkProjection{} this.Type = type_ this.Name = name - this.ComponentIdentifier = componentIdentifier + this.Identifier = identifier return &this } @@ -92,28 +92,28 @@ func (o *ComponentLinkProjection) SetName(v string) { o.Name = v } -// GetComponentIdentifier returns the ComponentIdentifier field value -func (o *ComponentLinkProjection) GetComponentIdentifier() string { +// GetIdentifier returns the Identifier field value +func (o *ComponentLinkProjection) GetIdentifier() string { if o == nil { var ret string return ret } - return o.ComponentIdentifier + return o.Identifier } -// GetComponentIdentifierOk returns a tuple with the ComponentIdentifier field value +// GetIdentifierOk returns a tuple with the Identifier field value // and a boolean to check if the value has been set. -func (o *ComponentLinkProjection) GetComponentIdentifierOk() (*string, bool) { +func (o *ComponentLinkProjection) GetIdentifierOk() (*string, bool) { if o == nil { return nil, false } - return &o.ComponentIdentifier, true + return &o.Identifier, true } -// SetComponentIdentifier sets field value -func (o *ComponentLinkProjection) SetComponentIdentifier(v string) { - o.ComponentIdentifier = v +// SetIdentifier sets field value +func (o *ComponentLinkProjection) SetIdentifier(v string) { + o.Identifier = v } func (o ComponentLinkProjection) MarshalJSON() ([]byte, error) { @@ -125,7 +125,7 @@ func (o ComponentLinkProjection) MarshalJSON() ([]byte, error) { toSerialize["name"] = o.Name } if true { - toSerialize["componentIdentifier"] = o.ComponentIdentifier + toSerialize["identifier"] = o.Identifier } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_overview_column_projection.go b/generated/stackstate_api/model_component_overview_projection.go similarity index 50% rename from generated/stackstate_api/model_overview_column_projection.go rename to generated/stackstate_api/model_component_overview_projection.go index ec8bc019..ef97a83c 100644 --- a/generated/stackstate_api/model_overview_column_projection.go +++ b/generated/stackstate_api/model_component_overview_projection.go @@ -16,76 +16,76 @@ import ( "fmt" ) -// OverviewColumnProjection - Display type and value for the column. -type OverviewColumnProjection struct { +// ComponentOverviewProjection - Display type and value for the field. +type ComponentOverviewProjection struct { ComponentLinkProjection *ComponentLinkProjection ContainerImageProjection *ContainerImageProjection DurationProjection *DurationProjection HealthProjection *HealthProjection - MetricChartProjection *MetricChartProjection + MetricProjection *MetricProjection NumericProjection *NumericProjection - ReadyStatusProjection *ReadyStatusProjection + RatioProjection *RatioProjection TextProjection *TextProjection } -// ComponentLinkProjectionAsOverviewColumnProjection is a convenience function that returns ComponentLinkProjection wrapped in OverviewColumnProjection -func ComponentLinkProjectionAsOverviewColumnProjection(v *ComponentLinkProjection) OverviewColumnProjection { - return OverviewColumnProjection{ +// ComponentLinkProjectionAsComponentOverviewProjection is a convenience function that returns ComponentLinkProjection wrapped in ComponentOverviewProjection +func ComponentLinkProjectionAsComponentOverviewProjection(v *ComponentLinkProjection) ComponentOverviewProjection { + return ComponentOverviewProjection{ ComponentLinkProjection: v, } } -// ContainerImageProjectionAsOverviewColumnProjection is a convenience function that returns ContainerImageProjection wrapped in OverviewColumnProjection -func ContainerImageProjectionAsOverviewColumnProjection(v *ContainerImageProjection) OverviewColumnProjection { - return OverviewColumnProjection{ +// ContainerImageProjectionAsComponentOverviewProjection is a convenience function that returns ContainerImageProjection wrapped in ComponentOverviewProjection +func ContainerImageProjectionAsComponentOverviewProjection(v *ContainerImageProjection) ComponentOverviewProjection { + return ComponentOverviewProjection{ ContainerImageProjection: v, } } -// DurationProjectionAsOverviewColumnProjection is a convenience function that returns DurationProjection wrapped in OverviewColumnProjection -func DurationProjectionAsOverviewColumnProjection(v *DurationProjection) OverviewColumnProjection { - return OverviewColumnProjection{ +// DurationProjectionAsComponentOverviewProjection is a convenience function that returns DurationProjection wrapped in ComponentOverviewProjection +func DurationProjectionAsComponentOverviewProjection(v *DurationProjection) ComponentOverviewProjection { + return ComponentOverviewProjection{ DurationProjection: v, } } -// HealthProjectionAsOverviewColumnProjection is a convenience function that returns HealthProjection wrapped in OverviewColumnProjection -func HealthProjectionAsOverviewColumnProjection(v *HealthProjection) OverviewColumnProjection { - return OverviewColumnProjection{ +// HealthProjectionAsComponentOverviewProjection is a convenience function that returns HealthProjection wrapped in ComponentOverviewProjection +func HealthProjectionAsComponentOverviewProjection(v *HealthProjection) ComponentOverviewProjection { + return ComponentOverviewProjection{ HealthProjection: v, } } -// MetricChartProjectionAsOverviewColumnProjection is a convenience function that returns MetricChartProjection wrapped in OverviewColumnProjection -func MetricChartProjectionAsOverviewColumnProjection(v *MetricChartProjection) OverviewColumnProjection { - return OverviewColumnProjection{ - MetricChartProjection: v, +// MetricProjectionAsComponentOverviewProjection is a convenience function that returns MetricProjection wrapped in ComponentOverviewProjection +func MetricProjectionAsComponentOverviewProjection(v *MetricProjection) ComponentOverviewProjection { + return ComponentOverviewProjection{ + MetricProjection: v, } } -// NumericProjectionAsOverviewColumnProjection is a convenience function that returns NumericProjection wrapped in OverviewColumnProjection -func NumericProjectionAsOverviewColumnProjection(v *NumericProjection) OverviewColumnProjection { - return OverviewColumnProjection{ +// NumericProjectionAsComponentOverviewProjection is a convenience function that returns NumericProjection wrapped in ComponentOverviewProjection +func NumericProjectionAsComponentOverviewProjection(v *NumericProjection) ComponentOverviewProjection { + return ComponentOverviewProjection{ NumericProjection: v, } } -// ReadyStatusProjectionAsOverviewColumnProjection is a convenience function that returns ReadyStatusProjection wrapped in OverviewColumnProjection -func ReadyStatusProjectionAsOverviewColumnProjection(v *ReadyStatusProjection) OverviewColumnProjection { - return OverviewColumnProjection{ - ReadyStatusProjection: v, +// RatioProjectionAsComponentOverviewProjection is a convenience function that returns RatioProjection wrapped in ComponentOverviewProjection +func RatioProjectionAsComponentOverviewProjection(v *RatioProjection) ComponentOverviewProjection { + return ComponentOverviewProjection{ + RatioProjection: v, } } -// TextProjectionAsOverviewColumnProjection is a convenience function that returns TextProjection wrapped in OverviewColumnProjection -func TextProjectionAsOverviewColumnProjection(v *TextProjection) OverviewColumnProjection { - return OverviewColumnProjection{ +// TextProjectionAsComponentOverviewProjection is a convenience function that returns TextProjection wrapped in ComponentOverviewProjection +func TextProjectionAsComponentOverviewProjection(v *TextProjection) ComponentOverviewProjection { + return ComponentOverviewProjection{ TextProjection: v, } } // Unmarshal JSON data into one of the pointers in the struct -func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { +func (dst *ComponentOverviewProjection) UnmarshalJSON(data []byte) error { var err error // use discriminator value to speed up the lookup var jsonDict map[string]interface{} @@ -102,7 +102,7 @@ func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { return nil // data stored in dst.ComponentLinkProjection, return on the first match } else { dst.ComponentLinkProjection = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as ComponentLinkProjection: %s", err.Error()) + return fmt.Errorf("Failed to unmarshal ComponentOverviewProjection as ComponentLinkProjection: %s", err.Error()) } } @@ -114,7 +114,7 @@ func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { return nil // data stored in dst.ContainerImageProjection, return on the first match } else { dst.ContainerImageProjection = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as ContainerImageProjection: %s", err.Error()) + return fmt.Errorf("Failed to unmarshal ComponentOverviewProjection as ContainerImageProjection: %s", err.Error()) } } @@ -126,7 +126,7 @@ func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { return nil // data stored in dst.DurationProjection, return on the first match } else { dst.DurationProjection = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as DurationProjection: %s", err.Error()) + return fmt.Errorf("Failed to unmarshal ComponentOverviewProjection as DurationProjection: %s", err.Error()) } } @@ -138,19 +138,19 @@ func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { return nil // data stored in dst.HealthProjection, return on the first match } else { dst.HealthProjection = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as HealthProjection: %s", err.Error()) + return fmt.Errorf("Failed to unmarshal ComponentOverviewProjection as HealthProjection: %s", err.Error()) } } - // check if the discriminator value is 'MetricChartProjection' - if jsonDict["_type"] == "MetricChartProjection" { - // try to unmarshal JSON data into MetricChartProjection - err = json.Unmarshal(data, &dst.MetricChartProjection) + // check if the discriminator value is 'MetricProjection' + if jsonDict["_type"] == "MetricProjection" { + // try to unmarshal JSON data into MetricProjection + err = json.Unmarshal(data, &dst.MetricProjection) if err == nil { - return nil // data stored in dst.MetricChartProjection, return on the first match + return nil // data stored in dst.MetricProjection, return on the first match } else { - dst.MetricChartProjection = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as MetricChartProjection: %s", err.Error()) + dst.MetricProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentOverviewProjection as MetricProjection: %s", err.Error()) } } @@ -162,19 +162,19 @@ func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { return nil // data stored in dst.NumericProjection, return on the first match } else { dst.NumericProjection = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as NumericProjection: %s", err.Error()) + return fmt.Errorf("Failed to unmarshal ComponentOverviewProjection as NumericProjection: %s", err.Error()) } } - // check if the discriminator value is 'ReadyStatusProjection' - if jsonDict["_type"] == "ReadyStatusProjection" { - // try to unmarshal JSON data into ReadyStatusProjection - err = json.Unmarshal(data, &dst.ReadyStatusProjection) + // check if the discriminator value is 'RatioProjection' + if jsonDict["_type"] == "RatioProjection" { + // try to unmarshal JSON data into RatioProjection + err = json.Unmarshal(data, &dst.RatioProjection) if err == nil { - return nil // data stored in dst.ReadyStatusProjection, return on the first match + return nil // data stored in dst.RatioProjection, return on the first match } else { - dst.ReadyStatusProjection = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as ReadyStatusProjection: %s", err.Error()) + dst.RatioProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentOverviewProjection as RatioProjection: %s", err.Error()) } } @@ -186,7 +186,7 @@ func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { return nil // data stored in dst.TextProjection, return on the first match } else { dst.TextProjection = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as TextProjection: %s", err.Error()) + return fmt.Errorf("Failed to unmarshal ComponentOverviewProjection as TextProjection: %s", err.Error()) } } @@ -194,7 +194,7 @@ func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { } // Marshal data from the first non-nil pointers in the struct to JSON -func (src OverviewColumnProjection) MarshalJSON() ([]byte, error) { +func (src ComponentOverviewProjection) MarshalJSON() ([]byte, error) { if src.ComponentLinkProjection != nil { return json.Marshal(&src.ComponentLinkProjection) } @@ -211,16 +211,16 @@ func (src OverviewColumnProjection) MarshalJSON() ([]byte, error) { return json.Marshal(&src.HealthProjection) } - if src.MetricChartProjection != nil { - return json.Marshal(&src.MetricChartProjection) + if src.MetricProjection != nil { + return json.Marshal(&src.MetricProjection) } if src.NumericProjection != nil { return json.Marshal(&src.NumericProjection) } - if src.ReadyStatusProjection != nil { - return json.Marshal(&src.ReadyStatusProjection) + if src.RatioProjection != nil { + return json.Marshal(&src.RatioProjection) } if src.TextProjection != nil { @@ -231,7 +231,7 @@ func (src OverviewColumnProjection) MarshalJSON() ([]byte, error) { } // Get the actual instance -func (obj *OverviewColumnProjection) GetActualInstance() interface{} { +func (obj *ComponentOverviewProjection) GetActualInstance() interface{} { if obj == nil { return nil } @@ -251,16 +251,16 @@ func (obj *OverviewColumnProjection) GetActualInstance() interface{} { return obj.HealthProjection } - if obj.MetricChartProjection != nil { - return obj.MetricChartProjection + if obj.MetricProjection != nil { + return obj.MetricProjection } if obj.NumericProjection != nil { return obj.NumericProjection } - if obj.ReadyStatusProjection != nil { - return obj.ReadyStatusProjection + if obj.RatioProjection != nil { + return obj.RatioProjection } if obj.TextProjection != nil { @@ -271,38 +271,38 @@ func (obj *OverviewColumnProjection) GetActualInstance() interface{} { return nil } -type NullableOverviewColumnProjection struct { - value *OverviewColumnProjection +type NullableComponentOverviewProjection struct { + value *ComponentOverviewProjection isSet bool } -func (v NullableOverviewColumnProjection) Get() *OverviewColumnProjection { +func (v NullableComponentOverviewProjection) Get() *ComponentOverviewProjection { return v.value } -func (v *NullableOverviewColumnProjection) Set(val *OverviewColumnProjection) { +func (v *NullableComponentOverviewProjection) Set(val *ComponentOverviewProjection) { v.value = val v.isSet = true } -func (v NullableOverviewColumnProjection) IsSet() bool { +func (v NullableComponentOverviewProjection) IsSet() bool { return v.isSet } -func (v *NullableOverviewColumnProjection) Unset() { +func (v *NullableComponentOverviewProjection) Unset() { v.value = nil v.isSet = false } -func NewNullableOverviewColumnProjection(val *OverviewColumnProjection) *NullableOverviewColumnProjection { - return &NullableOverviewColumnProjection{value: val, isSet: true} +func NewNullableComponentOverviewProjection(val *ComponentOverviewProjection) *NullableComponentOverviewProjection { + return &NullableComponentOverviewProjection{value: val, isSet: true} } -func (v NullableOverviewColumnProjection) MarshalJSON() ([]byte, error) { +func (v NullableComponentOverviewProjection) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableOverviewColumnProjection) UnmarshalJSON(src []byte) error { +func (v *NullableComponentOverviewProjection) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_component_presentation_filter.go b/generated/stackstate_api/model_component_presentation_filter.go new file mode 100644 index 00000000..f98a8f89 --- /dev/null +++ b/generated/stackstate_api/model_component_presentation_filter.go @@ -0,0 +1,217 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ComponentPresentationFilter Filter definition for ComponentPresentation. When only `filterId` is provided, the filter references a definition from a less specific presentation. Merge semantics for matching ComponentPresentations: 1) The most specific matching ComponentPresentation's filter list determines which `filterId`s are active. Only filters whose `filterId` appears in that list are rendered. 2) For each active `filterId`, scalar fields (`displayName`, `menuSection`, `filter`, etc.) are resolved by falling back through less specific presentations that define the same `filterId`, most specific value wins. 3) Array position determines display order: earlier items are primary (filter bar), later items are secondary (\"More\" section). +type ComponentPresentationFilter struct { + // Stable identity used for deduplication and cross-stackpack compatibility. + FilterId string `json:"filterId" yaml:"filterId"` + DisplayName *FilterName `json:"displayName,omitempty" yaml:"displayName,omitempty"` + // Label to group filters in the UI. + MenuSection *string `json:"menuSection,omitempty" yaml:"menuSection,omitempty"` + Filter *ComponentPresentationFilterDefinition `json:"filter,omitempty" yaml:"filter,omitempty"` +} + +// NewComponentPresentationFilter instantiates a new ComponentPresentationFilter object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComponentPresentationFilter(filterId string) *ComponentPresentationFilter { + this := ComponentPresentationFilter{} + this.FilterId = filterId + return &this +} + +// NewComponentPresentationFilterWithDefaults instantiates a new ComponentPresentationFilter object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComponentPresentationFilterWithDefaults() *ComponentPresentationFilter { + this := ComponentPresentationFilter{} + return &this +} + +// GetFilterId returns the FilterId field value +func (o *ComponentPresentationFilter) GetFilterId() string { + if o == nil { + var ret string + return ret + } + + return o.FilterId +} + +// GetFilterIdOk returns a tuple with the FilterId field value +// and a boolean to check if the value has been set. +func (o *ComponentPresentationFilter) GetFilterIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FilterId, true +} + +// SetFilterId sets field value +func (o *ComponentPresentationFilter) SetFilterId(v string) { + o.FilterId = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ComponentPresentationFilter) GetDisplayName() FilterName { + if o == nil || o.DisplayName == nil { + var ret FilterName + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentPresentationFilter) GetDisplayNameOk() (*FilterName, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ComponentPresentationFilter) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given FilterName and assigns it to the DisplayName field. +func (o *ComponentPresentationFilter) SetDisplayName(v FilterName) { + o.DisplayName = &v +} + +// GetMenuSection returns the MenuSection field value if set, zero value otherwise. +func (o *ComponentPresentationFilter) GetMenuSection() string { + if o == nil || o.MenuSection == nil { + var ret string + return ret + } + return *o.MenuSection +} + +// GetMenuSectionOk returns a tuple with the MenuSection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentPresentationFilter) GetMenuSectionOk() (*string, bool) { + if o == nil || o.MenuSection == nil { + return nil, false + } + return o.MenuSection, true +} + +// HasMenuSection returns a boolean if a field has been set. +func (o *ComponentPresentationFilter) HasMenuSection() bool { + if o != nil && o.MenuSection != nil { + return true + } + + return false +} + +// SetMenuSection gets a reference to the given string and assigns it to the MenuSection field. +func (o *ComponentPresentationFilter) SetMenuSection(v string) { + o.MenuSection = &v +} + +// GetFilter returns the Filter field value if set, zero value otherwise. +func (o *ComponentPresentationFilter) GetFilter() ComponentPresentationFilterDefinition { + if o == nil || o.Filter == nil { + var ret ComponentPresentationFilterDefinition + return ret + } + return *o.Filter +} + +// GetFilterOk returns a tuple with the Filter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentPresentationFilter) GetFilterOk() (*ComponentPresentationFilterDefinition, bool) { + if o == nil || o.Filter == nil { + return nil, false + } + return o.Filter, true +} + +// HasFilter returns a boolean if a field has been set. +func (o *ComponentPresentationFilter) HasFilter() bool { + if o != nil && o.Filter != nil { + return true + } + + return false +} + +// SetFilter gets a reference to the given ComponentPresentationFilterDefinition and assigns it to the Filter field. +func (o *ComponentPresentationFilter) SetFilter(v ComponentPresentationFilterDefinition) { + o.Filter = &v +} + +func (o ComponentPresentationFilter) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["filterId"] = o.FilterId + } + if o.DisplayName != nil { + toSerialize["displayName"] = o.DisplayName + } + if o.MenuSection != nil { + toSerialize["menuSection"] = o.MenuSection + } + if o.Filter != nil { + toSerialize["filter"] = o.Filter + } + return json.Marshal(toSerialize) +} + +type NullableComponentPresentationFilter struct { + value *ComponentPresentationFilter + isSet bool +} + +func (v NullableComponentPresentationFilter) Get() *ComponentPresentationFilter { + return v.value +} + +func (v *NullableComponentPresentationFilter) Set(val *ComponentPresentationFilter) { + v.value = val + v.isSet = true +} + +func (v NullableComponentPresentationFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentPresentationFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentPresentationFilter(val *ComponentPresentationFilter) *NullableComponentPresentationFilter { + return &NullableComponentPresentationFilter{value: val, isSet: true} +} + +func (v NullableComponentPresentationFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentPresentationFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_presentation_filter_definition.go b/generated/stackstate_api/model_component_presentation_filter_definition.go new file mode 100644 index 00000000..3c58131f --- /dev/null +++ b/generated/stackstate_api/model_component_presentation_filter_definition.go @@ -0,0 +1,112 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" + "fmt" +) + +// ComponentPresentationFilterDefinition - struct for ComponentPresentationFilterDefinition +type ComponentPresentationFilterDefinition struct { + TagFilter *TagFilter +} + +// TagFilterAsComponentPresentationFilterDefinition is a convenience function that returns TagFilter wrapped in ComponentPresentationFilterDefinition +func TagFilterAsComponentPresentationFilterDefinition(v *TagFilter) ComponentPresentationFilterDefinition { + return ComponentPresentationFilterDefinition{ + TagFilter: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *ComponentPresentationFilterDefinition) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = newStrictDecoder(data).Decode(&jsonDict) + if err != nil { + return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") + } + + // check if the discriminator value is 'TagFilter' + if jsonDict["_type"] == "TagFilter" { + // try to unmarshal JSON data into TagFilter + err = json.Unmarshal(data, &dst.TagFilter) + if err == nil { + return nil // data stored in dst.TagFilter, return on the first match + } else { + dst.TagFilter = nil + return fmt.Errorf("Failed to unmarshal ComponentPresentationFilterDefinition as TagFilter: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src ComponentPresentationFilterDefinition) MarshalJSON() ([]byte, error) { + if src.TagFilter != nil { + return json.Marshal(&src.TagFilter) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *ComponentPresentationFilterDefinition) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.TagFilter != nil { + return obj.TagFilter + } + + // all schemas are nil + return nil +} + +type NullableComponentPresentationFilterDefinition struct { + value *ComponentPresentationFilterDefinition + isSet bool +} + +func (v NullableComponentPresentationFilterDefinition) Get() *ComponentPresentationFilterDefinition { + return v.value +} + +func (v *NullableComponentPresentationFilterDefinition) Set(val *ComponentPresentationFilterDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableComponentPresentationFilterDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentPresentationFilterDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentPresentationFilterDefinition(val *ComponentPresentationFilterDefinition) *NullableComponentPresentationFilterDefinition { + return &NullableComponentPresentationFilterDefinition{value: val, isSet: true} +} + +func (v NullableComponentPresentationFilterDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentPresentationFilterDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_type_about.go b/generated/stackstate_api/model_component_type_about.go deleted file mode 100644 index bdec2b3a..00000000 --- a/generated/stackstate_api/model_component_type_about.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// ComponentTypeAbout struct for ComponentTypeAbout -type ComponentTypeAbout struct { - Fields []string `json:"fields" yaml:"fields"` -} - -// NewComponentTypeAbout instantiates a new ComponentTypeAbout object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComponentTypeAbout(fields []string) *ComponentTypeAbout { - this := ComponentTypeAbout{} - this.Fields = fields - return &this -} - -// NewComponentTypeAboutWithDefaults instantiates a new ComponentTypeAbout object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComponentTypeAboutWithDefaults() *ComponentTypeAbout { - this := ComponentTypeAbout{} - return &this -} - -// GetFields returns the Fields field value -func (o *ComponentTypeAbout) GetFields() []string { - if o == nil { - var ret []string - return ret - } - - return o.Fields -} - -// GetFieldsOk returns a tuple with the Fields field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeAbout) GetFieldsOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.Fields, true -} - -// SetFields sets field value -func (o *ComponentTypeAbout) SetFields(v []string) { - o.Fields = v -} - -func (o ComponentTypeAbout) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["fields"] = o.Fields - } - return json.Marshal(toSerialize) -} - -type NullableComponentTypeAbout struct { - value *ComponentTypeAbout - isSet bool -} - -func (v NullableComponentTypeAbout) Get() *ComponentTypeAbout { - return v.value -} - -func (v *NullableComponentTypeAbout) Set(val *ComponentTypeAbout) { - v.value = val - v.isSet = true -} - -func (v NullableComponentTypeAbout) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentTypeAbout) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentTypeAbout(val *ComponentTypeAbout) *NullableComponentTypeAbout { - return &NullableComponentTypeAbout{value: val, isSet: true} -} - -func (v NullableComponentTypeAbout) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentTypeAbout) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_type_field.go b/generated/stackstate_api/model_component_type_field.go deleted file mode 100644 index 62151290..00000000 --- a/generated/stackstate_api/model_component_type_field.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// ComponentTypeField struct for ComponentTypeField -type ComponentTypeField struct { - FieldId string `json:"fieldId" yaml:"fieldId"` - Label ComponentTypeLabel `json:"label" yaml:"label"` - ValueExtractor ComponentTypeValueExtractor `json:"valueExtractor" yaml:"valueExtractor"` - Display ComponentTypeFieldDisplay `json:"display" yaml:"display"` -} - -// NewComponentTypeField instantiates a new ComponentTypeField object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComponentTypeField(fieldId string, label ComponentTypeLabel, valueExtractor ComponentTypeValueExtractor, display ComponentTypeFieldDisplay) *ComponentTypeField { - this := ComponentTypeField{} - this.FieldId = fieldId - this.Label = label - this.ValueExtractor = valueExtractor - this.Display = display - return &this -} - -// NewComponentTypeFieldWithDefaults instantiates a new ComponentTypeField object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComponentTypeFieldWithDefaults() *ComponentTypeField { - this := ComponentTypeField{} - return &this -} - -// GetFieldId returns the FieldId field value -func (o *ComponentTypeField) GetFieldId() string { - if o == nil { - var ret string - return ret - } - - return o.FieldId -} - -// GetFieldIdOk returns a tuple with the FieldId field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeField) GetFieldIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.FieldId, true -} - -// SetFieldId sets field value -func (o *ComponentTypeField) SetFieldId(v string) { - o.FieldId = v -} - -// GetLabel returns the Label field value -func (o *ComponentTypeField) GetLabel() ComponentTypeLabel { - if o == nil { - var ret ComponentTypeLabel - return ret - } - - return o.Label -} - -// GetLabelOk returns a tuple with the Label field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeField) GetLabelOk() (*ComponentTypeLabel, bool) { - if o == nil { - return nil, false - } - return &o.Label, true -} - -// SetLabel sets field value -func (o *ComponentTypeField) SetLabel(v ComponentTypeLabel) { - o.Label = v -} - -// GetValueExtractor returns the ValueExtractor field value -func (o *ComponentTypeField) GetValueExtractor() ComponentTypeValueExtractor { - if o == nil { - var ret ComponentTypeValueExtractor - return ret - } - - return o.ValueExtractor -} - -// GetValueExtractorOk returns a tuple with the ValueExtractor field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeField) GetValueExtractorOk() (*ComponentTypeValueExtractor, bool) { - if o == nil { - return nil, false - } - return &o.ValueExtractor, true -} - -// SetValueExtractor sets field value -func (o *ComponentTypeField) SetValueExtractor(v ComponentTypeValueExtractor) { - o.ValueExtractor = v -} - -// GetDisplay returns the Display field value -func (o *ComponentTypeField) GetDisplay() ComponentTypeFieldDisplay { - if o == nil { - var ret ComponentTypeFieldDisplay - return ret - } - - return o.Display -} - -// GetDisplayOk returns a tuple with the Display field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeField) GetDisplayOk() (*ComponentTypeFieldDisplay, bool) { - if o == nil { - return nil, false - } - return &o.Display, true -} - -// SetDisplay sets field value -func (o *ComponentTypeField) SetDisplay(v ComponentTypeFieldDisplay) { - o.Display = v -} - -func (o ComponentTypeField) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["fieldId"] = o.FieldId - } - if true { - toSerialize["label"] = o.Label - } - if true { - toSerialize["valueExtractor"] = o.ValueExtractor - } - if true { - toSerialize["display"] = o.Display - } - return json.Marshal(toSerialize) -} - -type NullableComponentTypeField struct { - value *ComponentTypeField - isSet bool -} - -func (v NullableComponentTypeField) Get() *ComponentTypeField { - return v.value -} - -func (v *NullableComponentTypeField) Set(val *ComponentTypeField) { - v.value = val - v.isSet = true -} - -func (v NullableComponentTypeField) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentTypeField) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentTypeField(val *ComponentTypeField) *NullableComponentTypeField { - return &NullableComponentTypeField{value: val, isSet: true} -} - -func (v NullableComponentTypeField) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentTypeField) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_type_field_display.go b/generated/stackstate_api/model_component_type_field_display.go deleted file mode 100644 index b37956b5..00000000 --- a/generated/stackstate_api/model_component_type_field_display.go +++ /dev/null @@ -1,364 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" - "fmt" -) - -// ComponentTypeFieldDisplay - struct for ComponentTypeFieldDisplay -type ComponentTypeFieldDisplay struct { - ComponentLinkDisplay *ComponentLinkDisplay - DurationDisplay *DurationDisplay - HealthBadgeDisplay *HealthBadgeDisplay - HealthCircleDisplay *HealthCircleDisplay - PromqlDisplay *PromqlDisplay - RatioDisplay *RatioDisplay - ReadyStatusDisplay *ReadyStatusDisplay - TagDisplay *TagDisplay - TextDisplay *TextDisplay - ViewTimeLink *ViewTimeLink -} - -// ComponentLinkDisplayAsComponentTypeFieldDisplay is a convenience function that returns ComponentLinkDisplay wrapped in ComponentTypeFieldDisplay -func ComponentLinkDisplayAsComponentTypeFieldDisplay(v *ComponentLinkDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - ComponentLinkDisplay: v, - } -} - -// DurationDisplayAsComponentTypeFieldDisplay is a convenience function that returns DurationDisplay wrapped in ComponentTypeFieldDisplay -func DurationDisplayAsComponentTypeFieldDisplay(v *DurationDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - DurationDisplay: v, - } -} - -// HealthBadgeDisplayAsComponentTypeFieldDisplay is a convenience function that returns HealthBadgeDisplay wrapped in ComponentTypeFieldDisplay -func HealthBadgeDisplayAsComponentTypeFieldDisplay(v *HealthBadgeDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - HealthBadgeDisplay: v, - } -} - -// HealthCircleDisplayAsComponentTypeFieldDisplay is a convenience function that returns HealthCircleDisplay wrapped in ComponentTypeFieldDisplay -func HealthCircleDisplayAsComponentTypeFieldDisplay(v *HealthCircleDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - HealthCircleDisplay: v, - } -} - -// PromqlDisplayAsComponentTypeFieldDisplay is a convenience function that returns PromqlDisplay wrapped in ComponentTypeFieldDisplay -func PromqlDisplayAsComponentTypeFieldDisplay(v *PromqlDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - PromqlDisplay: v, - } -} - -// RatioDisplayAsComponentTypeFieldDisplay is a convenience function that returns RatioDisplay wrapped in ComponentTypeFieldDisplay -func RatioDisplayAsComponentTypeFieldDisplay(v *RatioDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - RatioDisplay: v, - } -} - -// ReadyStatusDisplayAsComponentTypeFieldDisplay is a convenience function that returns ReadyStatusDisplay wrapped in ComponentTypeFieldDisplay -func ReadyStatusDisplayAsComponentTypeFieldDisplay(v *ReadyStatusDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - ReadyStatusDisplay: v, - } -} - -// TagDisplayAsComponentTypeFieldDisplay is a convenience function that returns TagDisplay wrapped in ComponentTypeFieldDisplay -func TagDisplayAsComponentTypeFieldDisplay(v *TagDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - TagDisplay: v, - } -} - -// TextDisplayAsComponentTypeFieldDisplay is a convenience function that returns TextDisplay wrapped in ComponentTypeFieldDisplay -func TextDisplayAsComponentTypeFieldDisplay(v *TextDisplay) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - TextDisplay: v, - } -} - -// ViewTimeLinkAsComponentTypeFieldDisplay is a convenience function that returns ViewTimeLink wrapped in ComponentTypeFieldDisplay -func ViewTimeLinkAsComponentTypeFieldDisplay(v *ViewTimeLink) ComponentTypeFieldDisplay { - return ComponentTypeFieldDisplay{ - ViewTimeLink: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ComponentTypeFieldDisplay) UnmarshalJSON(data []byte) error { - var err error - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = newStrictDecoder(data).Decode(&jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'ComponentLinkDisplay' - if jsonDict["_type"] == "ComponentLinkDisplay" { - // try to unmarshal JSON data into ComponentLinkDisplay - err = json.Unmarshal(data, &dst.ComponentLinkDisplay) - if err == nil { - return nil // data stored in dst.ComponentLinkDisplay, return on the first match - } else { - dst.ComponentLinkDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as ComponentLinkDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'DurationDisplay' - if jsonDict["_type"] == "DurationDisplay" { - // try to unmarshal JSON data into DurationDisplay - err = json.Unmarshal(data, &dst.DurationDisplay) - if err == nil { - return nil // data stored in dst.DurationDisplay, return on the first match - } else { - dst.DurationDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as DurationDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'HealthBadgeDisplay' - if jsonDict["_type"] == "HealthBadgeDisplay" { - // try to unmarshal JSON data into HealthBadgeDisplay - err = json.Unmarshal(data, &dst.HealthBadgeDisplay) - if err == nil { - return nil // data stored in dst.HealthBadgeDisplay, return on the first match - } else { - dst.HealthBadgeDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as HealthBadgeDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'HealthCircleDisplay' - if jsonDict["_type"] == "HealthCircleDisplay" { - // try to unmarshal JSON data into HealthCircleDisplay - err = json.Unmarshal(data, &dst.HealthCircleDisplay) - if err == nil { - return nil // data stored in dst.HealthCircleDisplay, return on the first match - } else { - dst.HealthCircleDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as HealthCircleDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'PromqlDisplay' - if jsonDict["_type"] == "PromqlDisplay" { - // try to unmarshal JSON data into PromqlDisplay - err = json.Unmarshal(data, &dst.PromqlDisplay) - if err == nil { - return nil // data stored in dst.PromqlDisplay, return on the first match - } else { - dst.PromqlDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as PromqlDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'RatioDisplay' - if jsonDict["_type"] == "RatioDisplay" { - // try to unmarshal JSON data into RatioDisplay - err = json.Unmarshal(data, &dst.RatioDisplay) - if err == nil { - return nil // data stored in dst.RatioDisplay, return on the first match - } else { - dst.RatioDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as RatioDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'ReadyStatusDisplay' - if jsonDict["_type"] == "ReadyStatusDisplay" { - // try to unmarshal JSON data into ReadyStatusDisplay - err = json.Unmarshal(data, &dst.ReadyStatusDisplay) - if err == nil { - return nil // data stored in dst.ReadyStatusDisplay, return on the first match - } else { - dst.ReadyStatusDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as ReadyStatusDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'TagDisplay' - if jsonDict["_type"] == "TagDisplay" { - // try to unmarshal JSON data into TagDisplay - err = json.Unmarshal(data, &dst.TagDisplay) - if err == nil { - return nil // data stored in dst.TagDisplay, return on the first match - } else { - dst.TagDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as TagDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'TextDisplay' - if jsonDict["_type"] == "TextDisplay" { - // try to unmarshal JSON data into TextDisplay - err = json.Unmarshal(data, &dst.TextDisplay) - if err == nil { - return nil // data stored in dst.TextDisplay, return on the first match - } else { - dst.TextDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as TextDisplay: %s", err.Error()) - } - } - - // check if the discriminator value is 'ViewTimeLink' - if jsonDict["_type"] == "ViewTimeLink" { - // try to unmarshal JSON data into ViewTimeLink - err = json.Unmarshal(data, &dst.ViewTimeLink) - if err == nil { - return nil // data stored in dst.ViewTimeLink, return on the first match - } else { - dst.ViewTimeLink = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as ViewTimeLink: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ComponentTypeFieldDisplay) MarshalJSON() ([]byte, error) { - if src.ComponentLinkDisplay != nil { - return json.Marshal(&src.ComponentLinkDisplay) - } - - if src.DurationDisplay != nil { - return json.Marshal(&src.DurationDisplay) - } - - if src.HealthBadgeDisplay != nil { - return json.Marshal(&src.HealthBadgeDisplay) - } - - if src.HealthCircleDisplay != nil { - return json.Marshal(&src.HealthCircleDisplay) - } - - if src.PromqlDisplay != nil { - return json.Marshal(&src.PromqlDisplay) - } - - if src.RatioDisplay != nil { - return json.Marshal(&src.RatioDisplay) - } - - if src.ReadyStatusDisplay != nil { - return json.Marshal(&src.ReadyStatusDisplay) - } - - if src.TagDisplay != nil { - return json.Marshal(&src.TagDisplay) - } - - if src.TextDisplay != nil { - return json.Marshal(&src.TextDisplay) - } - - if src.ViewTimeLink != nil { - return json.Marshal(&src.ViewTimeLink) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ComponentTypeFieldDisplay) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ComponentLinkDisplay != nil { - return obj.ComponentLinkDisplay - } - - if obj.DurationDisplay != nil { - return obj.DurationDisplay - } - - if obj.HealthBadgeDisplay != nil { - return obj.HealthBadgeDisplay - } - - if obj.HealthCircleDisplay != nil { - return obj.HealthCircleDisplay - } - - if obj.PromqlDisplay != nil { - return obj.PromqlDisplay - } - - if obj.RatioDisplay != nil { - return obj.RatioDisplay - } - - if obj.ReadyStatusDisplay != nil { - return obj.ReadyStatusDisplay - } - - if obj.TagDisplay != nil { - return obj.TagDisplay - } - - if obj.TextDisplay != nil { - return obj.TextDisplay - } - - if obj.ViewTimeLink != nil { - return obj.ViewTimeLink - } - - // all schemas are nil - return nil -} - -type NullableComponentTypeFieldDisplay struct { - value *ComponentTypeFieldDisplay - isSet bool -} - -func (v NullableComponentTypeFieldDisplay) Get() *ComponentTypeFieldDisplay { - return v.value -} - -func (v *NullableComponentTypeFieldDisplay) Set(val *ComponentTypeFieldDisplay) { - v.value = val - v.isSet = true -} - -func (v NullableComponentTypeFieldDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentTypeFieldDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentTypeFieldDisplay(val *ComponentTypeFieldDisplay) *NullableComponentTypeFieldDisplay { - return &NullableComponentTypeFieldDisplay{value: val, isSet: true} -} - -func (v NullableComponentTypeFieldDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentTypeFieldDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_type_label.go b/generated/stackstate_api/model_component_type_label.go deleted file mode 100644 index 2a5f4e55..00000000 --- a/generated/stackstate_api/model_component_type_label.go +++ /dev/null @@ -1,143 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// ComponentTypeLabel struct for ComponentTypeLabel -type ComponentTypeLabel struct { - Title string `json:"title" yaml:"title"` - HelpBubbleText *string `json:"helpBubbleText,omitempty" yaml:"helpBubbleText,omitempty"` -} - -// NewComponentTypeLabel instantiates a new ComponentTypeLabel object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComponentTypeLabel(title string) *ComponentTypeLabel { - this := ComponentTypeLabel{} - this.Title = title - return &this -} - -// NewComponentTypeLabelWithDefaults instantiates a new ComponentTypeLabel object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComponentTypeLabelWithDefaults() *ComponentTypeLabel { - this := ComponentTypeLabel{} - return &this -} - -// GetTitle returns the Title field value -func (o *ComponentTypeLabel) GetTitle() string { - if o == nil { - var ret string - return ret - } - - return o.Title -} - -// GetTitleOk returns a tuple with the Title field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeLabel) GetTitleOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Title, true -} - -// SetTitle sets field value -func (o *ComponentTypeLabel) SetTitle(v string) { - o.Title = v -} - -// GetHelpBubbleText returns the HelpBubbleText field value if set, zero value otherwise. -func (o *ComponentTypeLabel) GetHelpBubbleText() string { - if o == nil || o.HelpBubbleText == nil { - var ret string - return ret - } - return *o.HelpBubbleText -} - -// GetHelpBubbleTextOk returns a tuple with the HelpBubbleText field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComponentTypeLabel) GetHelpBubbleTextOk() (*string, bool) { - if o == nil || o.HelpBubbleText == nil { - return nil, false - } - return o.HelpBubbleText, true -} - -// HasHelpBubbleText returns a boolean if a field has been set. -func (o *ComponentTypeLabel) HasHelpBubbleText() bool { - if o != nil && o.HelpBubbleText != nil { - return true - } - - return false -} - -// SetHelpBubbleText gets a reference to the given string and assigns it to the HelpBubbleText field. -func (o *ComponentTypeLabel) SetHelpBubbleText(v string) { - o.HelpBubbleText = &v -} - -func (o ComponentTypeLabel) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["title"] = o.Title - } - if o.HelpBubbleText != nil { - toSerialize["helpBubbleText"] = o.HelpBubbleText - } - return json.Marshal(toSerialize) -} - -type NullableComponentTypeLabel struct { - value *ComponentTypeLabel - isSet bool -} - -func (v NullableComponentTypeLabel) Get() *ComponentTypeLabel { - return v.value -} - -func (v *NullableComponentTypeLabel) Set(val *ComponentTypeLabel) { - v.value = val - v.isSet = true -} - -func (v NullableComponentTypeLabel) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentTypeLabel) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentTypeLabel(val *ComponentTypeLabel) *NullableComponentTypeLabel { - return &NullableComponentTypeLabel{value: val, isSet: true} -} - -func (v NullableComponentTypeLabel) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentTypeLabel) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_type_source.go b/generated/stackstate_api/model_component_type_source.go deleted file mode 100644 index 526163c2..00000000 --- a/generated/stackstate_api/model_component_type_source.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// ComponentTypeSource struct for ComponentTypeSource -type ComponentTypeSource struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewComponentTypeSource instantiates a new ComponentTypeSource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComponentTypeSource(type_ string) *ComponentTypeSource { - this := ComponentTypeSource{} - this.Type = type_ - return &this -} - -// NewComponentTypeSourceWithDefaults instantiates a new ComponentTypeSource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComponentTypeSourceWithDefaults() *ComponentTypeSource { - this := ComponentTypeSource{} - return &this -} - -// GetType returns the Type field value -func (o *ComponentTypeSource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeSource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ComponentTypeSource) SetType(v string) { - o.Type = v -} - -func (o ComponentTypeSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableComponentTypeSource struct { - value *ComponentTypeSource - isSet bool -} - -func (v NullableComponentTypeSource) Get() *ComponentTypeSource { - return v.value -} - -func (v *NullableComponentTypeSource) Set(val *ComponentTypeSource) { - v.value = val - v.isSet = true -} - -func (v NullableComponentTypeSource) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentTypeSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentTypeSource(val *ComponentTypeSource) *NullableComponentTypeSource { - return &NullableComponentTypeSource{value: val, isSet: true} -} - -func (v NullableComponentTypeSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentTypeSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_type_value_extractor.go b/generated/stackstate_api/model_component_type_value_extractor.go deleted file mode 100644 index 8fd1325f..00000000 --- a/generated/stackstate_api/model_component_type_value_extractor.go +++ /dev/null @@ -1,364 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" - "fmt" -) - -// ComponentTypeValueExtractor - struct for ComponentTypeValueExtractor -type ComponentTypeValueExtractor struct { - ComponentTypeSource *ComponentTypeSource - CompositeSource *CompositeSource - ConstantSource *ConstantSource - HealthSource *HealthSource - IdentifiersSource *IdentifiersSource - LastUpdatedTimestampSource *LastUpdatedTimestampSource - NameSource *NameSource - PropertySource *PropertySource - TagSource *TagSource - TagsSource *TagsSource -} - -// ComponentTypeSourceAsComponentTypeValueExtractor is a convenience function that returns ComponentTypeSource wrapped in ComponentTypeValueExtractor -func ComponentTypeSourceAsComponentTypeValueExtractor(v *ComponentTypeSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - ComponentTypeSource: v, - } -} - -// CompositeSourceAsComponentTypeValueExtractor is a convenience function that returns CompositeSource wrapped in ComponentTypeValueExtractor -func CompositeSourceAsComponentTypeValueExtractor(v *CompositeSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - CompositeSource: v, - } -} - -// ConstantSourceAsComponentTypeValueExtractor is a convenience function that returns ConstantSource wrapped in ComponentTypeValueExtractor -func ConstantSourceAsComponentTypeValueExtractor(v *ConstantSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - ConstantSource: v, - } -} - -// HealthSourceAsComponentTypeValueExtractor is a convenience function that returns HealthSource wrapped in ComponentTypeValueExtractor -func HealthSourceAsComponentTypeValueExtractor(v *HealthSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - HealthSource: v, - } -} - -// IdentifiersSourceAsComponentTypeValueExtractor is a convenience function that returns IdentifiersSource wrapped in ComponentTypeValueExtractor -func IdentifiersSourceAsComponentTypeValueExtractor(v *IdentifiersSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - IdentifiersSource: v, - } -} - -// LastUpdatedTimestampSourceAsComponentTypeValueExtractor is a convenience function that returns LastUpdatedTimestampSource wrapped in ComponentTypeValueExtractor -func LastUpdatedTimestampSourceAsComponentTypeValueExtractor(v *LastUpdatedTimestampSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - LastUpdatedTimestampSource: v, - } -} - -// NameSourceAsComponentTypeValueExtractor is a convenience function that returns NameSource wrapped in ComponentTypeValueExtractor -func NameSourceAsComponentTypeValueExtractor(v *NameSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - NameSource: v, - } -} - -// PropertySourceAsComponentTypeValueExtractor is a convenience function that returns PropertySource wrapped in ComponentTypeValueExtractor -func PropertySourceAsComponentTypeValueExtractor(v *PropertySource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - PropertySource: v, - } -} - -// TagSourceAsComponentTypeValueExtractor is a convenience function that returns TagSource wrapped in ComponentTypeValueExtractor -func TagSourceAsComponentTypeValueExtractor(v *TagSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - TagSource: v, - } -} - -// TagsSourceAsComponentTypeValueExtractor is a convenience function that returns TagsSource wrapped in ComponentTypeValueExtractor -func TagsSourceAsComponentTypeValueExtractor(v *TagsSource) ComponentTypeValueExtractor { - return ComponentTypeValueExtractor{ - TagsSource: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ComponentTypeValueExtractor) UnmarshalJSON(data []byte) error { - var err error - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = newStrictDecoder(data).Decode(&jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'ComponentTypeSource' - if jsonDict["_type"] == "ComponentTypeSource" { - // try to unmarshal JSON data into ComponentTypeSource - err = json.Unmarshal(data, &dst.ComponentTypeSource) - if err == nil { - return nil // data stored in dst.ComponentTypeSource, return on the first match - } else { - dst.ComponentTypeSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as ComponentTypeSource: %s", err.Error()) - } - } - - // check if the discriminator value is 'CompositeSource' - if jsonDict["_type"] == "CompositeSource" { - // try to unmarshal JSON data into CompositeSource - err = json.Unmarshal(data, &dst.CompositeSource) - if err == nil { - return nil // data stored in dst.CompositeSource, return on the first match - } else { - dst.CompositeSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as CompositeSource: %s", err.Error()) - } - } - - // check if the discriminator value is 'ConstantSource' - if jsonDict["_type"] == "ConstantSource" { - // try to unmarshal JSON data into ConstantSource - err = json.Unmarshal(data, &dst.ConstantSource) - if err == nil { - return nil // data stored in dst.ConstantSource, return on the first match - } else { - dst.ConstantSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as ConstantSource: %s", err.Error()) - } - } - - // check if the discriminator value is 'HealthSource' - if jsonDict["_type"] == "HealthSource" { - // try to unmarshal JSON data into HealthSource - err = json.Unmarshal(data, &dst.HealthSource) - if err == nil { - return nil // data stored in dst.HealthSource, return on the first match - } else { - dst.HealthSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as HealthSource: %s", err.Error()) - } - } - - // check if the discriminator value is 'IdentifiersSource' - if jsonDict["_type"] == "IdentifiersSource" { - // try to unmarshal JSON data into IdentifiersSource - err = json.Unmarshal(data, &dst.IdentifiersSource) - if err == nil { - return nil // data stored in dst.IdentifiersSource, return on the first match - } else { - dst.IdentifiersSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as IdentifiersSource: %s", err.Error()) - } - } - - // check if the discriminator value is 'LastUpdatedTimestampSource' - if jsonDict["_type"] == "LastUpdatedTimestampSource" { - // try to unmarshal JSON data into LastUpdatedTimestampSource - err = json.Unmarshal(data, &dst.LastUpdatedTimestampSource) - if err == nil { - return nil // data stored in dst.LastUpdatedTimestampSource, return on the first match - } else { - dst.LastUpdatedTimestampSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as LastUpdatedTimestampSource: %s", err.Error()) - } - } - - // check if the discriminator value is 'NameSource' - if jsonDict["_type"] == "NameSource" { - // try to unmarshal JSON data into NameSource - err = json.Unmarshal(data, &dst.NameSource) - if err == nil { - return nil // data stored in dst.NameSource, return on the first match - } else { - dst.NameSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as NameSource: %s", err.Error()) - } - } - - // check if the discriminator value is 'PropertySource' - if jsonDict["_type"] == "PropertySource" { - // try to unmarshal JSON data into PropertySource - err = json.Unmarshal(data, &dst.PropertySource) - if err == nil { - return nil // data stored in dst.PropertySource, return on the first match - } else { - dst.PropertySource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as PropertySource: %s", err.Error()) - } - } - - // check if the discriminator value is 'TagSource' - if jsonDict["_type"] == "TagSource" { - // try to unmarshal JSON data into TagSource - err = json.Unmarshal(data, &dst.TagSource) - if err == nil { - return nil // data stored in dst.TagSource, return on the first match - } else { - dst.TagSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as TagSource: %s", err.Error()) - } - } - - // check if the discriminator value is 'TagsSource' - if jsonDict["_type"] == "TagsSource" { - // try to unmarshal JSON data into TagsSource - err = json.Unmarshal(data, &dst.TagsSource) - if err == nil { - return nil // data stored in dst.TagsSource, return on the first match - } else { - dst.TagsSource = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeValueExtractor as TagsSource: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ComponentTypeValueExtractor) MarshalJSON() ([]byte, error) { - if src.ComponentTypeSource != nil { - return json.Marshal(&src.ComponentTypeSource) - } - - if src.CompositeSource != nil { - return json.Marshal(&src.CompositeSource) - } - - if src.ConstantSource != nil { - return json.Marshal(&src.ConstantSource) - } - - if src.HealthSource != nil { - return json.Marshal(&src.HealthSource) - } - - if src.IdentifiersSource != nil { - return json.Marshal(&src.IdentifiersSource) - } - - if src.LastUpdatedTimestampSource != nil { - return json.Marshal(&src.LastUpdatedTimestampSource) - } - - if src.NameSource != nil { - return json.Marshal(&src.NameSource) - } - - if src.PropertySource != nil { - return json.Marshal(&src.PropertySource) - } - - if src.TagSource != nil { - return json.Marshal(&src.TagSource) - } - - if src.TagsSource != nil { - return json.Marshal(&src.TagsSource) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ComponentTypeValueExtractor) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ComponentTypeSource != nil { - return obj.ComponentTypeSource - } - - if obj.CompositeSource != nil { - return obj.CompositeSource - } - - if obj.ConstantSource != nil { - return obj.ConstantSource - } - - if obj.HealthSource != nil { - return obj.HealthSource - } - - if obj.IdentifiersSource != nil { - return obj.IdentifiersSource - } - - if obj.LastUpdatedTimestampSource != nil { - return obj.LastUpdatedTimestampSource - } - - if obj.NameSource != nil { - return obj.NameSource - } - - if obj.PropertySource != nil { - return obj.PropertySource - } - - if obj.TagSource != nil { - return obj.TagSource - } - - if obj.TagsSource != nil { - return obj.TagsSource - } - - // all schemas are nil - return nil -} - -type NullableComponentTypeValueExtractor struct { - value *ComponentTypeValueExtractor - isSet bool -} - -func (v NullableComponentTypeValueExtractor) Get() *ComponentTypeValueExtractor { - return v.value -} - -func (v *NullableComponentTypeValueExtractor) Set(val *ComponentTypeValueExtractor) { - v.value = val - v.isSet = true -} - -func (v NullableComponentTypeValueExtractor) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentTypeValueExtractor) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentTypeValueExtractor(val *ComponentTypeValueExtractor) *NullableComponentTypeValueExtractor { - return &NullableComponentTypeValueExtractor{value: val, isSet: true} -} - -func (v NullableComponentTypeValueExtractor) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentTypeValueExtractor) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_duration_field.go b/generated/stackstate_api/model_duration_field.go new file mode 100644 index 00000000..70a97fd9 --- /dev/null +++ b/generated/stackstate_api/model_duration_field.go @@ -0,0 +1,277 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// DurationField struct for DurationField +type DurationField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + StartTime int32 `json:"startTime" yaml:"startTime"` + EndTime NullableInt32 `json:"endTime,omitempty" yaml:"endTime,omitempty"` +} + +// NewDurationField instantiates a new DurationField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDurationField(fieldId string, title string, type_ string, startTime int32) *DurationField { + this := DurationField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.StartTime = startTime + return &this +} + +// NewDurationFieldWithDefaults instantiates a new DurationField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDurationFieldWithDefaults() *DurationField { + this := DurationField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *DurationField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *DurationField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *DurationField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *DurationField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *DurationField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *DurationField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *DurationField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DurationField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *DurationField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *DurationField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *DurationField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *DurationField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DurationField) SetType(v string) { + o.Type = v +} + +// GetStartTime returns the StartTime field value +func (o *DurationField) GetStartTime() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value +// and a boolean to check if the value has been set. +func (o *DurationField) GetStartTimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.StartTime, true +} + +// SetStartTime sets field value +func (o *DurationField) SetStartTime(v int32) { + o.StartTime = v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DurationField) GetEndTime() int32 { + if o == nil || o.EndTime.Get() == nil { + var ret int32 + return ret + } + return *o.EndTime.Get() +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DurationField) GetEndTimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.EndTime.Get(), o.EndTime.IsSet() +} + +// HasEndTime returns a boolean if a field has been set. +func (o *DurationField) HasEndTime() bool { + if o != nil && o.EndTime.IsSet() { + return true + } + + return false +} + +// SetEndTime gets a reference to the given NullableInt32 and assigns it to the EndTime field. +func (o *DurationField) SetEndTime(v int32) { + o.EndTime.Set(&v) +} + +// SetEndTimeNil sets the value for EndTime to be an explicit nil +func (o *DurationField) SetEndTimeNil() { + o.EndTime.Set(nil) +} + +// UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil +func (o *DurationField) UnsetEndTime() { + o.EndTime.Unset() +} + +func (o DurationField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["startTime"] = o.StartTime + } + if o.EndTime.IsSet() { + toSerialize["endTime"] = o.EndTime.Get() + } + return json.Marshal(toSerialize) +} + +type NullableDurationField struct { + value *DurationField + isSet bool +} + +func (v NullableDurationField) Get() *DurationField { + return v.value +} + +func (v *NullableDurationField) Set(val *DurationField) { + v.value = val + v.isSet = true +} + +func (v NullableDurationField) IsSet() bool { + return v.isSet +} + +func (v *NullableDurationField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDurationField(val *DurationField) *NullableDurationField { + return &NullableDurationField{value: val, isSet: true} +} + +func (v NullableDurationField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDurationField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_duration_field_all_of.go b/generated/stackstate_api/model_duration_field_all_of.go new file mode 100644 index 00000000..48ff42f6 --- /dev/null +++ b/generated/stackstate_api/model_duration_field_all_of.go @@ -0,0 +1,183 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// DurationFieldAllOf struct for DurationFieldAllOf +type DurationFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + StartTime int32 `json:"startTime" yaml:"startTime"` + EndTime NullableInt32 `json:"endTime,omitempty" yaml:"endTime,omitempty"` +} + +// NewDurationFieldAllOf instantiates a new DurationFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDurationFieldAllOf(type_ string, startTime int32) *DurationFieldAllOf { + this := DurationFieldAllOf{} + this.Type = type_ + this.StartTime = startTime + return &this +} + +// NewDurationFieldAllOfWithDefaults instantiates a new DurationFieldAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDurationFieldAllOfWithDefaults() *DurationFieldAllOf { + this := DurationFieldAllOf{} + return &this +} + +// GetType returns the Type field value +func (o *DurationFieldAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *DurationFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DurationFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetStartTime returns the StartTime field value +func (o *DurationFieldAllOf) GetStartTime() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value +// and a boolean to check if the value has been set. +func (o *DurationFieldAllOf) GetStartTimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.StartTime, true +} + +// SetStartTime sets field value +func (o *DurationFieldAllOf) SetStartTime(v int32) { + o.StartTime = v +} + +// GetEndTime returns the EndTime field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DurationFieldAllOf) GetEndTime() int32 { + if o == nil || o.EndTime.Get() == nil { + var ret int32 + return ret + } + return *o.EndTime.Get() +} + +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DurationFieldAllOf) GetEndTimeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.EndTime.Get(), o.EndTime.IsSet() +} + +// HasEndTime returns a boolean if a field has been set. +func (o *DurationFieldAllOf) HasEndTime() bool { + if o != nil && o.EndTime.IsSet() { + return true + } + + return false +} + +// SetEndTime gets a reference to the given NullableInt32 and assigns it to the EndTime field. +func (o *DurationFieldAllOf) SetEndTime(v int32) { + o.EndTime.Set(&v) +} + +// SetEndTimeNil sets the value for EndTime to be an explicit nil +func (o *DurationFieldAllOf) SetEndTimeNil() { + o.EndTime.Set(nil) +} + +// UnsetEndTime ensures that no value is present for EndTime, not even an explicit nil +func (o *DurationFieldAllOf) UnsetEndTime() { + o.EndTime.Unset() +} + +func (o DurationFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["startTime"] = o.StartTime + } + if o.EndTime.IsSet() { + toSerialize["endTime"] = o.EndTime.Get() + } + return json.Marshal(toSerialize) +} + +type NullableDurationFieldAllOf struct { + value *DurationFieldAllOf + isSet bool +} + +func (v NullableDurationFieldAllOf) Get() *DurationFieldAllOf { + return v.value +} + +func (v *NullableDurationFieldAllOf) Set(val *DurationFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableDurationFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableDurationFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDurationFieldAllOf(val *DurationFieldAllOf) *NullableDurationFieldAllOf { + return &NullableDurationFieldAllOf{value: val, isSet: true} +} + +func (v NullableDurationFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDurationFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_duration_projection.go b/generated/stackstate_api/model_duration_projection.go index 6b349ff3..2469a433 100644 --- a/generated/stackstate_api/model_duration_projection.go +++ b/generated/stackstate_api/model_duration_projection.go @@ -18,20 +18,20 @@ import ( // DurationProjection struct for DurationProjection type DurationProjection struct { Type string `json:"_type" yaml:"_type"` - // Cel expression that returns a date - StartDate string `json:"startDate" yaml:"startDate"` - // Cel expression that returns a date - EndDate *string `json:"endDate,omitempty" yaml:"endDate,omitempty"` + // Cel expression that returns an ISO8601 formatted timestamp + StartTime string `json:"startTime" yaml:"startTime"` + // Cel expression that returns an ISO8601 formatted timestamp + EndTime *string `json:"endTime,omitempty" yaml:"endTime,omitempty"` } // NewDurationProjection instantiates a new DurationProjection object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDurationProjection(type_ string, startDate string) *DurationProjection { +func NewDurationProjection(type_ string, startTime string) *DurationProjection { this := DurationProjection{} this.Type = type_ - this.StartDate = startDate + this.StartTime = startTime return &this } @@ -67,60 +67,60 @@ func (o *DurationProjection) SetType(v string) { o.Type = v } -// GetStartDate returns the StartDate field value -func (o *DurationProjection) GetStartDate() string { +// GetStartTime returns the StartTime field value +func (o *DurationProjection) GetStartTime() string { if o == nil { var ret string return ret } - return o.StartDate + return o.StartTime } -// GetStartDateOk returns a tuple with the StartDate field value +// GetStartTimeOk returns a tuple with the StartTime field value // and a boolean to check if the value has been set. -func (o *DurationProjection) GetStartDateOk() (*string, bool) { +func (o *DurationProjection) GetStartTimeOk() (*string, bool) { if o == nil { return nil, false } - return &o.StartDate, true + return &o.StartTime, true } -// SetStartDate sets field value -func (o *DurationProjection) SetStartDate(v string) { - o.StartDate = v +// SetStartTime sets field value +func (o *DurationProjection) SetStartTime(v string) { + o.StartTime = v } -// GetEndDate returns the EndDate field value if set, zero value otherwise. -func (o *DurationProjection) GetEndDate() string { - if o == nil || o.EndDate == nil { +// GetEndTime returns the EndTime field value if set, zero value otherwise. +func (o *DurationProjection) GetEndTime() string { + if o == nil || o.EndTime == nil { var ret string return ret } - return *o.EndDate + return *o.EndTime } -// GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise +// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DurationProjection) GetEndDateOk() (*string, bool) { - if o == nil || o.EndDate == nil { +func (o *DurationProjection) GetEndTimeOk() (*string, bool) { + if o == nil || o.EndTime == nil { return nil, false } - return o.EndDate, true + return o.EndTime, true } -// HasEndDate returns a boolean if a field has been set. -func (o *DurationProjection) HasEndDate() bool { - if o != nil && o.EndDate != nil { +// HasEndTime returns a boolean if a field has been set. +func (o *DurationProjection) HasEndTime() bool { + if o != nil && o.EndTime != nil { return true } return false } -// SetEndDate gets a reference to the given string and assigns it to the EndDate field. -func (o *DurationProjection) SetEndDate(v string) { - o.EndDate = &v +// SetEndTime gets a reference to the given string and assigns it to the EndTime field. +func (o *DurationProjection) SetEndTime(v string) { + o.EndTime = &v } func (o DurationProjection) MarshalJSON() ([]byte, error) { @@ -129,10 +129,10 @@ func (o DurationProjection) MarshalJSON() ([]byte, error) { toSerialize["_type"] = o.Type } if true { - toSerialize["startDate"] = o.StartDate + toSerialize["startTime"] = o.StartTime } - if o.EndDate != nil { - toSerialize["endDate"] = o.EndDate + if o.EndTime != nil { + toSerialize["endTime"] = o.EndTime } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_error_field.go b/generated/stackstate_api/model_error_field.go new file mode 100644 index 00000000..41a573e4 --- /dev/null +++ b/generated/stackstate_api/model_error_field.go @@ -0,0 +1,230 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ErrorField struct for ErrorField +type ErrorField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Message string `json:"message" yaml:"message"` +} + +// NewErrorField instantiates a new ErrorField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorField(fieldId string, title string, type_ string, message string) *ErrorField { + this := ErrorField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Message = message + return &this +} + +// NewErrorFieldWithDefaults instantiates a new ErrorField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorFieldWithDefaults() *ErrorField { + this := ErrorField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *ErrorField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *ErrorField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *ErrorField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *ErrorField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *ErrorField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ErrorField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ErrorField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ErrorField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ErrorField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *ErrorField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ErrorField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ErrorField) SetType(v string) { + o.Type = v +} + +// GetMessage returns the Message field value +func (o *ErrorField) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ErrorField) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ErrorField) SetMessage(v string) { + o.Message = v +} + +func (o ErrorField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["message"] = o.Message + } + return json.Marshal(toSerialize) +} + +type NullableErrorField struct { + value *ErrorField + isSet bool +} + +func (v NullableErrorField) Get() *ErrorField { + return v.value +} + +func (v *NullableErrorField) Set(val *ErrorField) { + v.value = val + v.isSet = true +} + +func (v NullableErrorField) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorField(val *ErrorField) *NullableErrorField { + return &NullableErrorField{value: val, isSet: true} +} + +func (v NullableErrorField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_constant_source.go b/generated/stackstate_api/model_error_field_all_of.go similarity index 57% rename from generated/stackstate_api/model_constant_source.go rename to generated/stackstate_api/model_error_field_all_of.go index 6901d104..36f1a068 100644 --- a/generated/stackstate_api/model_constant_source.go +++ b/generated/stackstate_api/model_error_field_all_of.go @@ -15,33 +15,33 @@ import ( "encoding/json" ) -// ConstantSource struct for ConstantSource -type ConstantSource struct { - Type string `json:"_type" yaml:"_type"` - Value string `json:"value" yaml:"value"` +// ErrorFieldAllOf struct for ErrorFieldAllOf +type ErrorFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Message string `json:"message" yaml:"message"` } -// NewConstantSource instantiates a new ConstantSource object +// NewErrorFieldAllOf instantiates a new ErrorFieldAllOf object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewConstantSource(type_ string, value string) *ConstantSource { - this := ConstantSource{} +func NewErrorFieldAllOf(type_ string, message string) *ErrorFieldAllOf { + this := ErrorFieldAllOf{} this.Type = type_ - this.Value = value + this.Message = message return &this } -// NewConstantSourceWithDefaults instantiates a new ConstantSource object +// NewErrorFieldAllOfWithDefaults instantiates a new ErrorFieldAllOf object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewConstantSourceWithDefaults() *ConstantSource { - this := ConstantSource{} +func NewErrorFieldAllOfWithDefaults() *ErrorFieldAllOf { + this := ErrorFieldAllOf{} return &this } // GetType returns the Type field value -func (o *ConstantSource) GetType() string { +func (o *ErrorFieldAllOf) GetType() string { if o == nil { var ret string return ret @@ -52,7 +52,7 @@ func (o *ConstantSource) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *ConstantSource) GetTypeOk() (*string, bool) { +func (o *ErrorFieldAllOf) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -60,77 +60,77 @@ func (o *ConstantSource) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *ConstantSource) SetType(v string) { +func (o *ErrorFieldAllOf) SetType(v string) { o.Type = v } -// GetValue returns the Value field value -func (o *ConstantSource) GetValue() string { +// GetMessage returns the Message field value +func (o *ErrorFieldAllOf) GetMessage() string { if o == nil { var ret string return ret } - return o.Value + return o.Message } -// GetValueOk returns a tuple with the Value field value +// GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. -func (o *ConstantSource) GetValueOk() (*string, bool) { +func (o *ErrorFieldAllOf) GetMessageOk() (*string, bool) { if o == nil { return nil, false } - return &o.Value, true + return &o.Message, true } -// SetValue sets field value -func (o *ConstantSource) SetValue(v string) { - o.Value = v +// SetMessage sets field value +func (o *ErrorFieldAllOf) SetMessage(v string) { + o.Message = v } -func (o ConstantSource) MarshalJSON() ([]byte, error) { +func (o ErrorFieldAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["_type"] = o.Type } if true { - toSerialize["value"] = o.Value + toSerialize["message"] = o.Message } return json.Marshal(toSerialize) } -type NullableConstantSource struct { - value *ConstantSource +type NullableErrorFieldAllOf struct { + value *ErrorFieldAllOf isSet bool } -func (v NullableConstantSource) Get() *ConstantSource { +func (v NullableErrorFieldAllOf) Get() *ErrorFieldAllOf { return v.value } -func (v *NullableConstantSource) Set(val *ConstantSource) { +func (v *NullableErrorFieldAllOf) Set(val *ErrorFieldAllOf) { v.value = val v.isSet = true } -func (v NullableConstantSource) IsSet() bool { +func (v NullableErrorFieldAllOf) IsSet() bool { return v.isSet } -func (v *NullableConstantSource) Unset() { +func (v *NullableErrorFieldAllOf) Unset() { v.value = nil v.isSet = false } -func NewNullableConstantSource(val *ConstantSource) *NullableConstantSource { - return &NullableConstantSource{value: val, isSet: true} +func NewNullableErrorFieldAllOf(val *ErrorFieldAllOf) *NullableErrorFieldAllOf { + return &NullableErrorFieldAllOf{value: val, isSet: true} } -func (v NullableConstantSource) MarshalJSON() ([]byte, error) { +func (v NullableErrorFieldAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableConstantSource) UnmarshalJSON(src []byte) error { +func (v *NullableErrorFieldAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_filter_name.go b/generated/stackstate_api/model_filter_name.go new file mode 100644 index 00000000..fb03baf3 --- /dev/null +++ b/generated/stackstate_api/model_filter_name.go @@ -0,0 +1,136 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// FilterName struct for FilterName +type FilterName struct { + Singular string `json:"singular" yaml:"singular"` + Plural string `json:"plural" yaml:"plural"` +} + +// NewFilterName instantiates a new FilterName object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFilterName(singular string, plural string) *FilterName { + this := FilterName{} + this.Singular = singular + this.Plural = plural + return &this +} + +// NewFilterNameWithDefaults instantiates a new FilterName object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFilterNameWithDefaults() *FilterName { + this := FilterName{} + return &this +} + +// GetSingular returns the Singular field value +func (o *FilterName) GetSingular() string { + if o == nil { + var ret string + return ret + } + + return o.Singular +} + +// GetSingularOk returns a tuple with the Singular field value +// and a boolean to check if the value has been set. +func (o *FilterName) GetSingularOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Singular, true +} + +// SetSingular sets field value +func (o *FilterName) SetSingular(v string) { + o.Singular = v +} + +// GetPlural returns the Plural field value +func (o *FilterName) GetPlural() string { + if o == nil { + var ret string + return ret + } + + return o.Plural +} + +// GetPluralOk returns a tuple with the Plural field value +// and a boolean to check if the value has been set. +func (o *FilterName) GetPluralOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Plural, true +} + +// SetPlural sets field value +func (o *FilterName) SetPlural(v string) { + o.Plural = v +} + +func (o FilterName) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["singular"] = o.Singular + } + if true { + toSerialize["plural"] = o.Plural + } + return json.Marshal(toSerialize) +} + +type NullableFilterName struct { + value *FilterName + isSet bool +} + +func (v NullableFilterName) Get() *FilterName { + return v.value +} + +func (v *NullableFilterName) Set(val *FilterName) { + v.value = val + v.isSet = true +} + +func (v NullableFilterName) IsSet() bool { + return v.isSet +} + +func (v *NullableFilterName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFilterName(val *FilterName) *NullableFilterName { + return &NullableFilterName{value: val, isSet: true} +} + +func (v NullableFilterName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFilterName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_full_component.go b/generated/stackstate_api/model_full_component.go index 1019577c..867277d3 100644 --- a/generated/stackstate_api/model_full_component.go +++ b/generated/stackstate_api/model_full_component.go @@ -17,22 +17,24 @@ import ( // FullComponent struct for FullComponent type FullComponent struct { - TypeName string `json:"typeName" yaml:"typeName"` - Icon *string `json:"icon,omitempty" yaml:"icon,omitempty"` - Data ComponentData `json:"data" yaml:"data"` - Highlights *ComponentTypeHighlights `json:"highlights,omitempty" yaml:"highlights,omitempty"` - Actions []ComponentAction `json:"actions" yaml:"actions"` - BoundMetrics []BoundMetric `json:"boundMetrics" yaml:"boundMetrics"` - BoundTraces *BoundTraces `json:"boundTraces,omitempty" yaml:"boundTraces,omitempty"` + TypeName string `json:"typeName" yaml:"typeName"` + Icon *string `json:"icon,omitempty" yaml:"icon,omitempty"` + Fields []ComponentField `json:"fields" yaml:"fields"` + Data ComponentData `json:"data" yaml:"data"` + Highlights *LegacyComponentHighlights `json:"highlights,omitempty" yaml:"highlights,omitempty"` + Actions []ComponentAction `json:"actions" yaml:"actions"` + BoundMetrics []BoundMetric `json:"boundMetrics" yaml:"boundMetrics"` + BoundTraces *BoundTraces `json:"boundTraces,omitempty" yaml:"boundTraces,omitempty"` } // NewFullComponent instantiates a new FullComponent object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFullComponent(typeName string, data ComponentData, actions []ComponentAction, boundMetrics []BoundMetric) *FullComponent { +func NewFullComponent(typeName string, fields []ComponentField, data ComponentData, actions []ComponentAction, boundMetrics []BoundMetric) *FullComponent { this := FullComponent{} this.TypeName = typeName + this.Fields = fields this.Data = data this.Actions = actions this.BoundMetrics = boundMetrics @@ -103,6 +105,30 @@ func (o *FullComponent) SetIcon(v string) { o.Icon = &v } +// GetFields returns the Fields field value +func (o *FullComponent) GetFields() []ComponentField { + if o == nil { + var ret []ComponentField + return ret + } + + return o.Fields +} + +// GetFieldsOk returns a tuple with the Fields field value +// and a boolean to check if the value has been set. +func (o *FullComponent) GetFieldsOk() ([]ComponentField, bool) { + if o == nil { + return nil, false + } + return o.Fields, true +} + +// SetFields sets field value +func (o *FullComponent) SetFields(v []ComponentField) { + o.Fields = v +} + // GetData returns the Data field value func (o *FullComponent) GetData() ComponentData { if o == nil { @@ -128,9 +154,9 @@ func (o *FullComponent) SetData(v ComponentData) { } // GetHighlights returns the Highlights field value if set, zero value otherwise. -func (o *FullComponent) GetHighlights() ComponentTypeHighlights { +func (o *FullComponent) GetHighlights() LegacyComponentHighlights { if o == nil || o.Highlights == nil { - var ret ComponentTypeHighlights + var ret LegacyComponentHighlights return ret } return *o.Highlights @@ -138,7 +164,7 @@ func (o *FullComponent) GetHighlights() ComponentTypeHighlights { // GetHighlightsOk returns a tuple with the Highlights field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FullComponent) GetHighlightsOk() (*ComponentTypeHighlights, bool) { +func (o *FullComponent) GetHighlightsOk() (*LegacyComponentHighlights, bool) { if o == nil || o.Highlights == nil { return nil, false } @@ -154,8 +180,8 @@ func (o *FullComponent) HasHighlights() bool { return false } -// SetHighlights gets a reference to the given ComponentTypeHighlights and assigns it to the Highlights field. -func (o *FullComponent) SetHighlights(v ComponentTypeHighlights) { +// SetHighlights gets a reference to the given LegacyComponentHighlights and assigns it to the Highlights field. +func (o *FullComponent) SetHighlights(v LegacyComponentHighlights) { o.Highlights = &v } @@ -247,6 +273,9 @@ func (o FullComponent) MarshalJSON() ([]byte, error) { if o.Icon != nil { toSerialize["icon"] = o.Icon } + if true { + toSerialize["fields"] = o.Fields + } if true { toSerialize["data"] = o.Data } diff --git a/generated/stackstate_api/model_health_badge_display.go b/generated/stackstate_api/model_health_badge_display.go deleted file mode 100644 index d00e9d07..00000000 --- a/generated/stackstate_api/model_health_badge_display.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// HealthBadgeDisplay struct for HealthBadgeDisplay -type HealthBadgeDisplay struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewHealthBadgeDisplay instantiates a new HealthBadgeDisplay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHealthBadgeDisplay(type_ string) *HealthBadgeDisplay { - this := HealthBadgeDisplay{} - this.Type = type_ - return &this -} - -// NewHealthBadgeDisplayWithDefaults instantiates a new HealthBadgeDisplay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHealthBadgeDisplayWithDefaults() *HealthBadgeDisplay { - this := HealthBadgeDisplay{} - return &this -} - -// GetType returns the Type field value -func (o *HealthBadgeDisplay) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *HealthBadgeDisplay) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *HealthBadgeDisplay) SetType(v string) { - o.Type = v -} - -func (o HealthBadgeDisplay) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableHealthBadgeDisplay struct { - value *HealthBadgeDisplay - isSet bool -} - -func (v NullableHealthBadgeDisplay) Get() *HealthBadgeDisplay { - return v.value -} - -func (v *NullableHealthBadgeDisplay) Set(val *HealthBadgeDisplay) { - v.value = val - v.isSet = true -} - -func (v NullableHealthBadgeDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullableHealthBadgeDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHealthBadgeDisplay(val *HealthBadgeDisplay) *NullableHealthBadgeDisplay { - return &NullableHealthBadgeDisplay{value: val, isSet: true} -} - -func (v NullableHealthBadgeDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHealthBadgeDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_health_circle_display.go b/generated/stackstate_api/model_health_circle_display.go deleted file mode 100644 index 5895f0be..00000000 --- a/generated/stackstate_api/model_health_circle_display.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// HealthCircleDisplay struct for HealthCircleDisplay -type HealthCircleDisplay struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewHealthCircleDisplay instantiates a new HealthCircleDisplay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHealthCircleDisplay(type_ string) *HealthCircleDisplay { - this := HealthCircleDisplay{} - this.Type = type_ - return &this -} - -// NewHealthCircleDisplayWithDefaults instantiates a new HealthCircleDisplay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHealthCircleDisplayWithDefaults() *HealthCircleDisplay { - this := HealthCircleDisplay{} - return &this -} - -// GetType returns the Type field value -func (o *HealthCircleDisplay) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *HealthCircleDisplay) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *HealthCircleDisplay) SetType(v string) { - o.Type = v -} - -func (o HealthCircleDisplay) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableHealthCircleDisplay struct { - value *HealthCircleDisplay - isSet bool -} - -func (v NullableHealthCircleDisplay) Get() *HealthCircleDisplay { - return v.value -} - -func (v *NullableHealthCircleDisplay) Set(val *HealthCircleDisplay) { - v.value = val - v.isSet = true -} - -func (v NullableHealthCircleDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullableHealthCircleDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHealthCircleDisplay(val *HealthCircleDisplay) *NullableHealthCircleDisplay { - return &NullableHealthCircleDisplay{value: val, isSet: true} -} - -func (v NullableHealthCircleDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHealthCircleDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_health_field.go b/generated/stackstate_api/model_health_field.go new file mode 100644 index 00000000..1eb2d62e --- /dev/null +++ b/generated/stackstate_api/model_health_field.go @@ -0,0 +1,230 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// HealthField struct for HealthField +type HealthField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + State HealthStateValue `json:"state" yaml:"state"` +} + +// NewHealthField instantiates a new HealthField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHealthField(fieldId string, title string, type_ string, state HealthStateValue) *HealthField { + this := HealthField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.State = state + return &this +} + +// NewHealthFieldWithDefaults instantiates a new HealthField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHealthFieldWithDefaults() *HealthField { + this := HealthField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *HealthField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *HealthField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *HealthField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *HealthField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *HealthField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *HealthField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *HealthField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HealthField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *HealthField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *HealthField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *HealthField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *HealthField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *HealthField) SetType(v string) { + o.Type = v +} + +// GetState returns the State field value +func (o *HealthField) GetState() HealthStateValue { + if o == nil { + var ret HealthStateValue + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *HealthField) GetStateOk() (*HealthStateValue, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *HealthField) SetState(v HealthStateValue) { + o.State = v +} + +func (o HealthField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["state"] = o.State + } + return json.Marshal(toSerialize) +} + +type NullableHealthField struct { + value *HealthField + isSet bool +} + +func (v NullableHealthField) Get() *HealthField { + return v.value +} + +func (v *NullableHealthField) Set(val *HealthField) { + v.value = val + v.isSet = true +} + +func (v NullableHealthField) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthField(val *HealthField) *NullableHealthField { + return &NullableHealthField{value: val, isSet: true} +} + +func (v NullableHealthField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_composite_source.go b/generated/stackstate_api/model_health_field_all_of.go similarity index 52% rename from generated/stackstate_api/model_composite_source.go rename to generated/stackstate_api/model_health_field_all_of.go index 10acf63c..450a9a86 100644 --- a/generated/stackstate_api/model_composite_source.go +++ b/generated/stackstate_api/model_health_field_all_of.go @@ -15,33 +15,33 @@ import ( "encoding/json" ) -// CompositeSource struct for CompositeSource -type CompositeSource struct { - Type string `json:"_type" yaml:"_type"` - Sources map[string]ComponentTypeValueExtractor `json:"sources" yaml:"sources"` +// HealthFieldAllOf struct for HealthFieldAllOf +type HealthFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + State HealthStateValue `json:"state" yaml:"state"` } -// NewCompositeSource instantiates a new CompositeSource object +// NewHealthFieldAllOf instantiates a new HealthFieldAllOf object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCompositeSource(type_ string, sources map[string]ComponentTypeValueExtractor) *CompositeSource { - this := CompositeSource{} +func NewHealthFieldAllOf(type_ string, state HealthStateValue) *HealthFieldAllOf { + this := HealthFieldAllOf{} this.Type = type_ - this.Sources = sources + this.State = state return &this } -// NewCompositeSourceWithDefaults instantiates a new CompositeSource object +// NewHealthFieldAllOfWithDefaults instantiates a new HealthFieldAllOf object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewCompositeSourceWithDefaults() *CompositeSource { - this := CompositeSource{} +func NewHealthFieldAllOfWithDefaults() *HealthFieldAllOf { + this := HealthFieldAllOf{} return &this } // GetType returns the Type field value -func (o *CompositeSource) GetType() string { +func (o *HealthFieldAllOf) GetType() string { if o == nil { var ret string return ret @@ -52,7 +52,7 @@ func (o *CompositeSource) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *CompositeSource) GetTypeOk() (*string, bool) { +func (o *HealthFieldAllOf) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -60,77 +60,77 @@ func (o *CompositeSource) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *CompositeSource) SetType(v string) { +func (o *HealthFieldAllOf) SetType(v string) { o.Type = v } -// GetSources returns the Sources field value -func (o *CompositeSource) GetSources() map[string]ComponentTypeValueExtractor { +// GetState returns the State field value +func (o *HealthFieldAllOf) GetState() HealthStateValue { if o == nil { - var ret map[string]ComponentTypeValueExtractor + var ret HealthStateValue return ret } - return o.Sources + return o.State } -// GetSourcesOk returns a tuple with the Sources field value +// GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. -func (o *CompositeSource) GetSourcesOk() (*map[string]ComponentTypeValueExtractor, bool) { +func (o *HealthFieldAllOf) GetStateOk() (*HealthStateValue, bool) { if o == nil { return nil, false } - return &o.Sources, true + return &o.State, true } -// SetSources sets field value -func (o *CompositeSource) SetSources(v map[string]ComponentTypeValueExtractor) { - o.Sources = v +// SetState sets field value +func (o *HealthFieldAllOf) SetState(v HealthStateValue) { + o.State = v } -func (o CompositeSource) MarshalJSON() ([]byte, error) { +func (o HealthFieldAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["_type"] = o.Type } if true { - toSerialize["sources"] = o.Sources + toSerialize["state"] = o.State } return json.Marshal(toSerialize) } -type NullableCompositeSource struct { - value *CompositeSource +type NullableHealthFieldAllOf struct { + value *HealthFieldAllOf isSet bool } -func (v NullableCompositeSource) Get() *CompositeSource { +func (v NullableHealthFieldAllOf) Get() *HealthFieldAllOf { return v.value } -func (v *NullableCompositeSource) Set(val *CompositeSource) { +func (v *NullableHealthFieldAllOf) Set(val *HealthFieldAllOf) { v.value = val v.isSet = true } -func (v NullableCompositeSource) IsSet() bool { +func (v NullableHealthFieldAllOf) IsSet() bool { return v.isSet } -func (v *NullableCompositeSource) Unset() { +func (v *NullableHealthFieldAllOf) Unset() { v.value = nil v.isSet = false } -func NewNullableCompositeSource(val *CompositeSource) *NullableCompositeSource { - return &NullableCompositeSource{value: val, isSet: true} +func NewNullableHealthFieldAllOf(val *HealthFieldAllOf) *NullableHealthFieldAllOf { + return &NullableHealthFieldAllOf{value: val, isSet: true} } -func (v NullableCompositeSource) MarshalJSON() ([]byte, error) { +func (v NullableHealthFieldAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCompositeSource) UnmarshalJSON(src []byte) error { +func (v *NullableHealthFieldAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_health_source.go b/generated/stackstate_api/model_health_source.go deleted file mode 100644 index 8f2c131c..00000000 --- a/generated/stackstate_api/model_health_source.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// HealthSource struct for HealthSource -type HealthSource struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewHealthSource instantiates a new HealthSource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHealthSource(type_ string) *HealthSource { - this := HealthSource{} - this.Type = type_ - return &this -} - -// NewHealthSourceWithDefaults instantiates a new HealthSource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHealthSourceWithDefaults() *HealthSource { - this := HealthSource{} - return &this -} - -// GetType returns the Type field value -func (o *HealthSource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *HealthSource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *HealthSource) SetType(v string) { - o.Type = v -} - -func (o HealthSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableHealthSource struct { - value *HealthSource - isSet bool -} - -func (v NullableHealthSource) Get() *HealthSource { - return v.value -} - -func (v *NullableHealthSource) Set(val *HealthSource) { - v.value = val - v.isSet = true -} - -func (v NullableHealthSource) IsSet() bool { - return v.isSet -} - -func (v *NullableHealthSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHealthSource(val *HealthSource) *NullableHealthSource { - return &NullableHealthSource{value: val, isSet: true} -} - -func (v NullableHealthSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHealthSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_identifiers_source.go b/generated/stackstate_api/model_identifiers_source.go deleted file mode 100644 index 9cfa449a..00000000 --- a/generated/stackstate_api/model_identifiers_source.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// IdentifiersSource struct for IdentifiersSource -type IdentifiersSource struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewIdentifiersSource instantiates a new IdentifiersSource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewIdentifiersSource(type_ string) *IdentifiersSource { - this := IdentifiersSource{} - this.Type = type_ - return &this -} - -// NewIdentifiersSourceWithDefaults instantiates a new IdentifiersSource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewIdentifiersSourceWithDefaults() *IdentifiersSource { - this := IdentifiersSource{} - return &this -} - -// GetType returns the Type field value -func (o *IdentifiersSource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *IdentifiersSource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *IdentifiersSource) SetType(v string) { - o.Type = v -} - -func (o IdentifiersSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableIdentifiersSource struct { - value *IdentifiersSource - isSet bool -} - -func (v NullableIdentifiersSource) Get() *IdentifiersSource { - return v.value -} - -func (v *NullableIdentifiersSource) Set(val *IdentifiersSource) { - v.value = val - v.isSet = true -} - -func (v NullableIdentifiersSource) IsSet() bool { - return v.isSet -} - -func (v *NullableIdentifiersSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIdentifiersSource(val *IdentifiersSource) *NullableIdentifiersSource { - return &NullableIdentifiersSource{value: val, isSet: true} -} - -func (v NullableIdentifiersSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableIdentifiersSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_last_updated_timestamp_source.go b/generated/stackstate_api/model_last_updated_timestamp_source.go deleted file mode 100644 index 82b4addd..00000000 --- a/generated/stackstate_api/model_last_updated_timestamp_source.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// LastUpdatedTimestampSource struct for LastUpdatedTimestampSource -type LastUpdatedTimestampSource struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewLastUpdatedTimestampSource instantiates a new LastUpdatedTimestampSource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLastUpdatedTimestampSource(type_ string) *LastUpdatedTimestampSource { - this := LastUpdatedTimestampSource{} - this.Type = type_ - return &this -} - -// NewLastUpdatedTimestampSourceWithDefaults instantiates a new LastUpdatedTimestampSource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLastUpdatedTimestampSourceWithDefaults() *LastUpdatedTimestampSource { - this := LastUpdatedTimestampSource{} - return &this -} - -// GetType returns the Type field value -func (o *LastUpdatedTimestampSource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *LastUpdatedTimestampSource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *LastUpdatedTimestampSource) SetType(v string) { - o.Type = v -} - -func (o LastUpdatedTimestampSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableLastUpdatedTimestampSource struct { - value *LastUpdatedTimestampSource - isSet bool -} - -func (v NullableLastUpdatedTimestampSource) Get() *LastUpdatedTimestampSource { - return v.value -} - -func (v *NullableLastUpdatedTimestampSource) Set(val *LastUpdatedTimestampSource) { - v.value = val - v.isSet = true -} - -func (v NullableLastUpdatedTimestampSource) IsSet() bool { - return v.isSet -} - -func (v *NullableLastUpdatedTimestampSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLastUpdatedTimestampSource(val *LastUpdatedTimestampSource) *NullableLastUpdatedTimestampSource { - return &NullableLastUpdatedTimestampSource{value: val, isSet: true} -} - -func (v NullableLastUpdatedTimestampSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLastUpdatedTimestampSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_type_highlights.go b/generated/stackstate_api/model_legacy_component_highlights.go similarity index 55% rename from generated/stackstate_api/model_component_type_highlights.go rename to generated/stackstate_api/model_legacy_component_highlights.go index 9443f23a..b378896e 100644 --- a/generated/stackstate_api/model_component_type_highlights.go +++ b/generated/stackstate_api/model_legacy_component_highlights.go @@ -15,11 +15,9 @@ import ( "encoding/json" ) -// ComponentTypeHighlights struct for ComponentTypeHighlights -type ComponentTypeHighlights struct { +// LegacyComponentHighlights struct for LegacyComponentHighlights +type LegacyComponentHighlights struct { NamePlural string `json:"namePlural" yaml:"namePlural"` - Fields []ComponentTypeField `json:"fields" yaml:"fields"` - About ComponentTypeAbout `json:"about" yaml:"about"` Events ComponentTypeEvents `json:"events" yaml:"events"` ShowLogs bool `json:"showLogs" yaml:"showLogs"` ShowLastChange bool `json:"showLastChange" yaml:"showLastChange"` @@ -28,15 +26,13 @@ type ComponentTypeHighlights struct { Metrics []ComponentHighlightMetrics `json:"metrics" yaml:"metrics"` } -// NewComponentTypeHighlights instantiates a new ComponentTypeHighlights object +// NewLegacyComponentHighlights instantiates a new LegacyComponentHighlights object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewComponentTypeHighlights(namePlural string, fields []ComponentTypeField, about ComponentTypeAbout, events ComponentTypeEvents, showLogs bool, showLastChange bool, externalComponent ComponentTypeExternalComponent, relatedResources []ComponentTypeRelatedResources, metrics []ComponentHighlightMetrics) *ComponentTypeHighlights { - this := ComponentTypeHighlights{} +func NewLegacyComponentHighlights(namePlural string, events ComponentTypeEvents, showLogs bool, showLastChange bool, externalComponent ComponentTypeExternalComponent, relatedResources []ComponentTypeRelatedResources, metrics []ComponentHighlightMetrics) *LegacyComponentHighlights { + this := LegacyComponentHighlights{} this.NamePlural = namePlural - this.Fields = fields - this.About = about this.Events = events this.ShowLogs = showLogs this.ShowLastChange = showLastChange @@ -46,16 +42,16 @@ func NewComponentTypeHighlights(namePlural string, fields []ComponentTypeField, return &this } -// NewComponentTypeHighlightsWithDefaults instantiates a new ComponentTypeHighlights object +// NewLegacyComponentHighlightsWithDefaults instantiates a new LegacyComponentHighlights object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewComponentTypeHighlightsWithDefaults() *ComponentTypeHighlights { - this := ComponentTypeHighlights{} +func NewLegacyComponentHighlightsWithDefaults() *LegacyComponentHighlights { + this := LegacyComponentHighlights{} return &this } // GetNamePlural returns the NamePlural field value -func (o *ComponentTypeHighlights) GetNamePlural() string { +func (o *LegacyComponentHighlights) GetNamePlural() string { if o == nil { var ret string return ret @@ -66,7 +62,7 @@ func (o *ComponentTypeHighlights) GetNamePlural() string { // GetNamePluralOk returns a tuple with the NamePlural field value // and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetNamePluralOk() (*string, bool) { +func (o *LegacyComponentHighlights) GetNamePluralOk() (*string, bool) { if o == nil { return nil, false } @@ -74,60 +70,12 @@ func (o *ComponentTypeHighlights) GetNamePluralOk() (*string, bool) { } // SetNamePlural sets field value -func (o *ComponentTypeHighlights) SetNamePlural(v string) { +func (o *LegacyComponentHighlights) SetNamePlural(v string) { o.NamePlural = v } -// GetFields returns the Fields field value -func (o *ComponentTypeHighlights) GetFields() []ComponentTypeField { - if o == nil { - var ret []ComponentTypeField - return ret - } - - return o.Fields -} - -// GetFieldsOk returns a tuple with the Fields field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetFieldsOk() ([]ComponentTypeField, bool) { - if o == nil { - return nil, false - } - return o.Fields, true -} - -// SetFields sets field value -func (o *ComponentTypeHighlights) SetFields(v []ComponentTypeField) { - o.Fields = v -} - -// GetAbout returns the About field value -func (o *ComponentTypeHighlights) GetAbout() ComponentTypeAbout { - if o == nil { - var ret ComponentTypeAbout - return ret - } - - return o.About -} - -// GetAboutOk returns a tuple with the About field value -// and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetAboutOk() (*ComponentTypeAbout, bool) { - if o == nil { - return nil, false - } - return &o.About, true -} - -// SetAbout sets field value -func (o *ComponentTypeHighlights) SetAbout(v ComponentTypeAbout) { - o.About = v -} - // GetEvents returns the Events field value -func (o *ComponentTypeHighlights) GetEvents() ComponentTypeEvents { +func (o *LegacyComponentHighlights) GetEvents() ComponentTypeEvents { if o == nil { var ret ComponentTypeEvents return ret @@ -138,7 +86,7 @@ func (o *ComponentTypeHighlights) GetEvents() ComponentTypeEvents { // GetEventsOk returns a tuple with the Events field value // and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetEventsOk() (*ComponentTypeEvents, bool) { +func (o *LegacyComponentHighlights) GetEventsOk() (*ComponentTypeEvents, bool) { if o == nil { return nil, false } @@ -146,12 +94,12 @@ func (o *ComponentTypeHighlights) GetEventsOk() (*ComponentTypeEvents, bool) { } // SetEvents sets field value -func (o *ComponentTypeHighlights) SetEvents(v ComponentTypeEvents) { +func (o *LegacyComponentHighlights) SetEvents(v ComponentTypeEvents) { o.Events = v } // GetShowLogs returns the ShowLogs field value -func (o *ComponentTypeHighlights) GetShowLogs() bool { +func (o *LegacyComponentHighlights) GetShowLogs() bool { if o == nil { var ret bool return ret @@ -162,7 +110,7 @@ func (o *ComponentTypeHighlights) GetShowLogs() bool { // GetShowLogsOk returns a tuple with the ShowLogs field value // and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetShowLogsOk() (*bool, bool) { +func (o *LegacyComponentHighlights) GetShowLogsOk() (*bool, bool) { if o == nil { return nil, false } @@ -170,12 +118,12 @@ func (o *ComponentTypeHighlights) GetShowLogsOk() (*bool, bool) { } // SetShowLogs sets field value -func (o *ComponentTypeHighlights) SetShowLogs(v bool) { +func (o *LegacyComponentHighlights) SetShowLogs(v bool) { o.ShowLogs = v } // GetShowLastChange returns the ShowLastChange field value -func (o *ComponentTypeHighlights) GetShowLastChange() bool { +func (o *LegacyComponentHighlights) GetShowLastChange() bool { if o == nil { var ret bool return ret @@ -186,7 +134,7 @@ func (o *ComponentTypeHighlights) GetShowLastChange() bool { // GetShowLastChangeOk returns a tuple with the ShowLastChange field value // and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetShowLastChangeOk() (*bool, bool) { +func (o *LegacyComponentHighlights) GetShowLastChangeOk() (*bool, bool) { if o == nil { return nil, false } @@ -194,12 +142,12 @@ func (o *ComponentTypeHighlights) GetShowLastChangeOk() (*bool, bool) { } // SetShowLastChange sets field value -func (o *ComponentTypeHighlights) SetShowLastChange(v bool) { +func (o *LegacyComponentHighlights) SetShowLastChange(v bool) { o.ShowLastChange = v } // GetExternalComponent returns the ExternalComponent field value -func (o *ComponentTypeHighlights) GetExternalComponent() ComponentTypeExternalComponent { +func (o *LegacyComponentHighlights) GetExternalComponent() ComponentTypeExternalComponent { if o == nil { var ret ComponentTypeExternalComponent return ret @@ -210,7 +158,7 @@ func (o *ComponentTypeHighlights) GetExternalComponent() ComponentTypeExternalCo // GetExternalComponentOk returns a tuple with the ExternalComponent field value // and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetExternalComponentOk() (*ComponentTypeExternalComponent, bool) { +func (o *LegacyComponentHighlights) GetExternalComponentOk() (*ComponentTypeExternalComponent, bool) { if o == nil { return nil, false } @@ -218,12 +166,12 @@ func (o *ComponentTypeHighlights) GetExternalComponentOk() (*ComponentTypeExtern } // SetExternalComponent sets field value -func (o *ComponentTypeHighlights) SetExternalComponent(v ComponentTypeExternalComponent) { +func (o *LegacyComponentHighlights) SetExternalComponent(v ComponentTypeExternalComponent) { o.ExternalComponent = v } // GetRelatedResources returns the RelatedResources field value -func (o *ComponentTypeHighlights) GetRelatedResources() []ComponentTypeRelatedResources { +func (o *LegacyComponentHighlights) GetRelatedResources() []ComponentTypeRelatedResources { if o == nil { var ret []ComponentTypeRelatedResources return ret @@ -234,7 +182,7 @@ func (o *ComponentTypeHighlights) GetRelatedResources() []ComponentTypeRelatedRe // GetRelatedResourcesOk returns a tuple with the RelatedResources field value // and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetRelatedResourcesOk() ([]ComponentTypeRelatedResources, bool) { +func (o *LegacyComponentHighlights) GetRelatedResourcesOk() ([]ComponentTypeRelatedResources, bool) { if o == nil { return nil, false } @@ -242,12 +190,12 @@ func (o *ComponentTypeHighlights) GetRelatedResourcesOk() ([]ComponentTypeRelate } // SetRelatedResources sets field value -func (o *ComponentTypeHighlights) SetRelatedResources(v []ComponentTypeRelatedResources) { +func (o *LegacyComponentHighlights) SetRelatedResources(v []ComponentTypeRelatedResources) { o.RelatedResources = v } // GetMetrics returns the Metrics field value -func (o *ComponentTypeHighlights) GetMetrics() []ComponentHighlightMetrics { +func (o *LegacyComponentHighlights) GetMetrics() []ComponentHighlightMetrics { if o == nil { var ret []ComponentHighlightMetrics return ret @@ -258,7 +206,7 @@ func (o *ComponentTypeHighlights) GetMetrics() []ComponentHighlightMetrics { // GetMetricsOk returns a tuple with the Metrics field value // and a boolean to check if the value has been set. -func (o *ComponentTypeHighlights) GetMetricsOk() ([]ComponentHighlightMetrics, bool) { +func (o *LegacyComponentHighlights) GetMetricsOk() ([]ComponentHighlightMetrics, bool) { if o == nil { return nil, false } @@ -266,21 +214,15 @@ func (o *ComponentTypeHighlights) GetMetricsOk() ([]ComponentHighlightMetrics, b } // SetMetrics sets field value -func (o *ComponentTypeHighlights) SetMetrics(v []ComponentHighlightMetrics) { +func (o *LegacyComponentHighlights) SetMetrics(v []ComponentHighlightMetrics) { o.Metrics = v } -func (o ComponentTypeHighlights) MarshalJSON() ([]byte, error) { +func (o LegacyComponentHighlights) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["namePlural"] = o.NamePlural } - if true { - toSerialize["fields"] = o.Fields - } - if true { - toSerialize["about"] = o.About - } if true { toSerialize["events"] = o.Events } @@ -302,38 +244,38 @@ func (o ComponentTypeHighlights) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableComponentTypeHighlights struct { - value *ComponentTypeHighlights +type NullableLegacyComponentHighlights struct { + value *LegacyComponentHighlights isSet bool } -func (v NullableComponentTypeHighlights) Get() *ComponentTypeHighlights { +func (v NullableLegacyComponentHighlights) Get() *LegacyComponentHighlights { return v.value } -func (v *NullableComponentTypeHighlights) Set(val *ComponentTypeHighlights) { +func (v *NullableLegacyComponentHighlights) Set(val *LegacyComponentHighlights) { v.value = val v.isSet = true } -func (v NullableComponentTypeHighlights) IsSet() bool { +func (v NullableLegacyComponentHighlights) IsSet() bool { return v.isSet } -func (v *NullableComponentTypeHighlights) Unset() { +func (v *NullableLegacyComponentHighlights) Unset() { v.value = nil v.isSet = false } -func NewNullableComponentTypeHighlights(val *ComponentTypeHighlights) *NullableComponentTypeHighlights { - return &NullableComponentTypeHighlights{value: val, isSet: true} +func NewNullableLegacyComponentHighlights(val *LegacyComponentHighlights) *NullableLegacyComponentHighlights { + return &NullableLegacyComponentHighlights{value: val, isSet: true} } -func (v NullableComponentTypeHighlights) MarshalJSON() ([]byte, error) { +func (v NullableLegacyComponentHighlights) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableComponentTypeHighlights) UnmarshalJSON(src []byte) error { +func (v *NullableLegacyComponentHighlights) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_link_field.go b/generated/stackstate_api/model_link_field.go new file mode 100644 index 00000000..31a6545c --- /dev/null +++ b/generated/stackstate_api/model_link_field.go @@ -0,0 +1,259 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// LinkField struct for LinkField +type LinkField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Name string `json:"name" yaml:"name"` + Url string `json:"url" yaml:"url"` +} + +// NewLinkField instantiates a new LinkField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkField(fieldId string, title string, type_ string, name string, url string) *LinkField { + this := LinkField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Name = name + this.Url = url + return &this +} + +// NewLinkFieldWithDefaults instantiates a new LinkField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkFieldWithDefaults() *LinkField { + this := LinkField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *LinkField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *LinkField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *LinkField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *LinkField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *LinkField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *LinkField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *LinkField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *LinkField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *LinkField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *LinkField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *LinkField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LinkField) SetType(v string) { + o.Type = v +} + +// GetName returns the Name field value +func (o *LinkField) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *LinkField) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *LinkField) SetName(v string) { + o.Name = v +} + +// GetUrl returns the Url field value +func (o *LinkField) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *LinkField) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *LinkField) SetUrl(v string) { + o.Url = v +} + +func (o LinkField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableLinkField struct { + value *LinkField + isSet bool +} + +func (v NullableLinkField) Get() *LinkField { + return v.value +} + +func (v *NullableLinkField) Set(val *LinkField) { + v.value = val + v.isSet = true +} + +func (v NullableLinkField) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkField(val *LinkField) *NullableLinkField { + return &NullableLinkField{value: val, isSet: true} +} + +func (v NullableLinkField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_link_field_all_of.go b/generated/stackstate_api/model_link_field_all_of.go new file mode 100644 index 00000000..ae851b80 --- /dev/null +++ b/generated/stackstate_api/model_link_field_all_of.go @@ -0,0 +1,165 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// LinkFieldAllOf struct for LinkFieldAllOf +type LinkFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Name string `json:"name" yaml:"name"` + Url string `json:"url" yaml:"url"` +} + +// NewLinkFieldAllOf instantiates a new LinkFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkFieldAllOf(type_ string, name string, url string) *LinkFieldAllOf { + this := LinkFieldAllOf{} + this.Type = type_ + this.Name = name + this.Url = url + return &this +} + +// NewLinkFieldAllOfWithDefaults instantiates a new LinkFieldAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkFieldAllOfWithDefaults() *LinkFieldAllOf { + this := LinkFieldAllOf{} + return &this +} + +// GetType returns the Type field value +func (o *LinkFieldAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *LinkFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LinkFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetName returns the Name field value +func (o *LinkFieldAllOf) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *LinkFieldAllOf) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *LinkFieldAllOf) SetName(v string) { + o.Name = v +} + +// GetUrl returns the Url field value +func (o *LinkFieldAllOf) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *LinkFieldAllOf) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *LinkFieldAllOf) SetUrl(v string) { + o.Url = v +} + +func (o LinkFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableLinkFieldAllOf struct { + value *LinkFieldAllOf + isSet bool +} + +func (v NullableLinkFieldAllOf) Get() *LinkFieldAllOf { + return v.value +} + +func (v *NullableLinkFieldAllOf) Set(val *LinkFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableLinkFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkFieldAllOf(val *LinkFieldAllOf) *NullableLinkFieldAllOf { + return &NullableLinkFieldAllOf{value: val, isSet: true} +} + +func (v NullableLinkFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_map_field.go b/generated/stackstate_api/model_map_field.go new file mode 100644 index 00000000..931e8387 --- /dev/null +++ b/generated/stackstate_api/model_map_field.go @@ -0,0 +1,261 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// MapField struct for MapField +type MapField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Values map[string]string `json:"values" yaml:"values"` + AsTag bool `json:"asTag" yaml:"asTag"` +} + +// NewMapField instantiates a new MapField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMapField(fieldId string, title string, type_ string, values map[string]string, asTag bool) *MapField { + this := MapField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Values = values + this.AsTag = asTag + return &this +} + +// NewMapFieldWithDefaults instantiates a new MapField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMapFieldWithDefaults() *MapField { + this := MapField{} + var asTag bool = false + this.AsTag = asTag + return &this +} + +// GetFieldId returns the FieldId field value +func (o *MapField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *MapField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *MapField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *MapField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *MapField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *MapField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *MapField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MapField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *MapField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *MapField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *MapField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MapField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MapField) SetType(v string) { + o.Type = v +} + +// GetValues returns the Values field value +func (o *MapField) GetValues() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *MapField) GetValuesOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.Values, true +} + +// SetValues sets field value +func (o *MapField) SetValues(v map[string]string) { + o.Values = v +} + +// GetAsTag returns the AsTag field value +func (o *MapField) GetAsTag() bool { + if o == nil { + var ret bool + return ret + } + + return o.AsTag +} + +// GetAsTagOk returns a tuple with the AsTag field value +// and a boolean to check if the value has been set. +func (o *MapField) GetAsTagOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AsTag, true +} + +// SetAsTag sets field value +func (o *MapField) SetAsTag(v bool) { + o.AsTag = v +} + +func (o MapField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["values"] = o.Values + } + if true { + toSerialize["asTag"] = o.AsTag + } + return json.Marshal(toSerialize) +} + +type NullableMapField struct { + value *MapField + isSet bool +} + +func (v NullableMapField) Get() *MapField { + return v.value +} + +func (v *NullableMapField) Set(val *MapField) { + v.value = val + v.isSet = true +} + +func (v NullableMapField) IsSet() bool { + return v.isSet +} + +func (v *NullableMapField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMapField(val *MapField) *NullableMapField { + return &NullableMapField{value: val, isSet: true} +} + +func (v NullableMapField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMapField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_map_field_all_of.go b/generated/stackstate_api/model_map_field_all_of.go new file mode 100644 index 00000000..78281d1c --- /dev/null +++ b/generated/stackstate_api/model_map_field_all_of.go @@ -0,0 +1,167 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// MapFieldAllOf struct for MapFieldAllOf +type MapFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Values map[string]string `json:"values" yaml:"values"` + AsTag bool `json:"asTag" yaml:"asTag"` +} + +// NewMapFieldAllOf instantiates a new MapFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMapFieldAllOf(type_ string, values map[string]string, asTag bool) *MapFieldAllOf { + this := MapFieldAllOf{} + this.Type = type_ + this.Values = values + this.AsTag = asTag + return &this +} + +// NewMapFieldAllOfWithDefaults instantiates a new MapFieldAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMapFieldAllOfWithDefaults() *MapFieldAllOf { + this := MapFieldAllOf{} + var asTag bool = false + this.AsTag = asTag + return &this +} + +// GetType returns the Type field value +func (o *MapFieldAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MapFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MapFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetValues returns the Values field value +func (o *MapFieldAllOf) GetValues() map[string]string { + if o == nil { + var ret map[string]string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *MapFieldAllOf) GetValuesOk() (*map[string]string, bool) { + if o == nil { + return nil, false + } + return &o.Values, true +} + +// SetValues sets field value +func (o *MapFieldAllOf) SetValues(v map[string]string) { + o.Values = v +} + +// GetAsTag returns the AsTag field value +func (o *MapFieldAllOf) GetAsTag() bool { + if o == nil { + var ret bool + return ret + } + + return o.AsTag +} + +// GetAsTagOk returns a tuple with the AsTag field value +// and a boolean to check if the value has been set. +func (o *MapFieldAllOf) GetAsTagOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AsTag, true +} + +// SetAsTag sets field value +func (o *MapFieldAllOf) SetAsTag(v bool) { + o.AsTag = v +} + +func (o MapFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["values"] = o.Values + } + if true { + toSerialize["asTag"] = o.AsTag + } + return json.Marshal(toSerialize) +} + +type NullableMapFieldAllOf struct { + value *MapFieldAllOf + isSet bool +} + +func (v NullableMapFieldAllOf) Get() *MapFieldAllOf { + return v.value +} + +func (v *NullableMapFieldAllOf) Set(val *MapFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMapFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMapFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMapFieldAllOf(val *MapFieldAllOf) *NullableMapFieldAllOf { + return &NullableMapFieldAllOf{value: val, isSet: true} +} + +func (v NullableMapFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMapFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_map_projection.go b/generated/stackstate_api/model_map_projection.go new file mode 100644 index 00000000..94f50244 --- /dev/null +++ b/generated/stackstate_api/model_map_projection.go @@ -0,0 +1,177 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// MapProjection struct for MapProjection +type MapProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a map + Value string `json:"value" yaml:"value"` + AsTags *bool `json:"asTags,omitempty" yaml:"asTags,omitempty"` +} + +// NewMapProjection instantiates a new MapProjection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMapProjection(type_ string, value string) *MapProjection { + this := MapProjection{} + this.Type = type_ + this.Value = value + var asTags bool = true + this.AsTags = &asTags + return &this +} + +// NewMapProjectionWithDefaults instantiates a new MapProjection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMapProjectionWithDefaults() *MapProjection { + this := MapProjection{} + var asTags bool = true + this.AsTags = &asTags + return &this +} + +// GetType returns the Type field value +func (o *MapProjection) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MapProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MapProjection) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *MapProjection) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *MapProjection) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *MapProjection) SetValue(v string) { + o.Value = v +} + +// GetAsTags returns the AsTags field value if set, zero value otherwise. +func (o *MapProjection) GetAsTags() bool { + if o == nil || o.AsTags == nil { + var ret bool + return ret + } + return *o.AsTags +} + +// GetAsTagsOk returns a tuple with the AsTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MapProjection) GetAsTagsOk() (*bool, bool) { + if o == nil || o.AsTags == nil { + return nil, false + } + return o.AsTags, true +} + +// HasAsTags returns a boolean if a field has been set. +func (o *MapProjection) HasAsTags() bool { + if o != nil && o.AsTags != nil { + return true + } + + return false +} + +// SetAsTags gets a reference to the given bool and assigns it to the AsTags field. +func (o *MapProjection) SetAsTags(v bool) { + o.AsTags = &v +} + +func (o MapProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + if o.AsTags != nil { + toSerialize["asTags"] = o.AsTags + } + return json.Marshal(toSerialize) +} + +type NullableMapProjection struct { + value *MapProjection + isSet bool +} + +func (v NullableMapProjection) Get() *MapProjection { + return v.value +} + +func (v *NullableMapProjection) Set(val *MapProjection) { + v.value = val + v.isSet = true +} + +func (v NullableMapProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableMapProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMapProjection(val *MapProjection) *NullableMapProjection { + return &NullableMapProjection{value: val, isSet: true} +} + +func (v NullableMapProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMapProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_duration_display.go b/generated/stackstate_api/model_metric_binding_id.go similarity index 53% rename from generated/stackstate_api/model_duration_display.go rename to generated/stackstate_api/model_metric_binding_id.go index e31bd338..7b974714 100644 --- a/generated/stackstate_api/model_duration_display.go +++ b/generated/stackstate_api/model_metric_binding_id.go @@ -15,93 +15,93 @@ import ( "encoding/json" ) -// DurationDisplay struct for DurationDisplay -type DurationDisplay struct { - Type string `json:"_type" yaml:"_type"` +// MetricBindingId struct for MetricBindingId +type MetricBindingId struct { + Identifier string `json:"identifier" yaml:"identifier"` } -// NewDurationDisplay instantiates a new DurationDisplay object +// NewMetricBindingId instantiates a new MetricBindingId object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDurationDisplay(type_ string) *DurationDisplay { - this := DurationDisplay{} - this.Type = type_ +func NewMetricBindingId(identifier string) *MetricBindingId { + this := MetricBindingId{} + this.Identifier = identifier return &this } -// NewDurationDisplayWithDefaults instantiates a new DurationDisplay object +// NewMetricBindingIdWithDefaults instantiates a new MetricBindingId object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewDurationDisplayWithDefaults() *DurationDisplay { - this := DurationDisplay{} +func NewMetricBindingIdWithDefaults() *MetricBindingId { + this := MetricBindingId{} return &this } -// GetType returns the Type field value -func (o *DurationDisplay) GetType() string { +// GetIdentifier returns the Identifier field value +func (o *MetricBindingId) GetIdentifier() string { if o == nil { var ret string return ret } - return o.Type + return o.Identifier } -// GetTypeOk returns a tuple with the Type field value +// GetIdentifierOk returns a tuple with the Identifier field value // and a boolean to check if the value has been set. -func (o *DurationDisplay) GetTypeOk() (*string, bool) { +func (o *MetricBindingId) GetIdentifierOk() (*string, bool) { if o == nil { return nil, false } - return &o.Type, true + return &o.Identifier, true } -// SetType sets field value -func (o *DurationDisplay) SetType(v string) { - o.Type = v +// SetIdentifier sets field value +func (o *MetricBindingId) SetIdentifier(v string) { + o.Identifier = v } -func (o DurationDisplay) MarshalJSON() ([]byte, error) { +func (o MetricBindingId) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { - toSerialize["_type"] = o.Type + toSerialize["identifier"] = o.Identifier } return json.Marshal(toSerialize) } -type NullableDurationDisplay struct { - value *DurationDisplay +type NullableMetricBindingId struct { + value *MetricBindingId isSet bool } -func (v NullableDurationDisplay) Get() *DurationDisplay { +func (v NullableMetricBindingId) Get() *MetricBindingId { return v.value } -func (v *NullableDurationDisplay) Set(val *DurationDisplay) { +func (v *NullableMetricBindingId) Set(val *MetricBindingId) { v.value = val v.isSet = true } -func (v NullableDurationDisplay) IsSet() bool { +func (v NullableMetricBindingId) IsSet() bool { return v.isSet } -func (v *NullableDurationDisplay) Unset() { +func (v *NullableMetricBindingId) Unset() { v.value = nil v.isSet = false } -func NewNullableDurationDisplay(val *DurationDisplay) *NullableDurationDisplay { - return &NullableDurationDisplay{value: val, isSet: true} +func NewNullableMetricBindingId(val *MetricBindingId) *NullableMetricBindingId { + return &NullableMetricBindingId{value: val, isSet: true} } -func (v NullableDurationDisplay) MarshalJSON() ([]byte, error) { +func (v NullableMetricBindingId) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableDurationDisplay) UnmarshalJSON(src []byte) error { +func (v *NullableMetricBindingId) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_metric_field.go b/generated/stackstate_api/model_metric_field.go new file mode 100644 index 00000000..e01e7299 --- /dev/null +++ b/generated/stackstate_api/model_metric_field.go @@ -0,0 +1,303 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// MetricField struct for MetricField +type MetricField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + // The frontend can use the query to refresh the metrics (at interval). Allows to keep the current behaviour of making individual calls for each row. + Query string `json:"query" yaml:"query"` + Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` + DecimalPlaces *int32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` +} + +// NewMetricField instantiates a new MetricField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetricField(fieldId string, title string, type_ string, query string) *MetricField { + this := MetricField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Query = query + return &this +} + +// NewMetricFieldWithDefaults instantiates a new MetricField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetricFieldWithDefaults() *MetricField { + this := MetricField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *MetricField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *MetricField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *MetricField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *MetricField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *MetricField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *MetricField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *MetricField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *MetricField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *MetricField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *MetricField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MetricField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MetricField) SetType(v string) { + o.Type = v +} + +// GetQuery returns the Query field value +func (o *MetricField) GetQuery() string { + if o == nil { + var ret string + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *MetricField) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *MetricField) SetQuery(v string) { + o.Query = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *MetricField) GetUnit() string { + if o == nil || o.Unit == nil { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricField) GetUnitOk() (*string, bool) { + if o == nil || o.Unit == nil { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *MetricField) HasUnit() bool { + if o != nil && o.Unit != nil { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *MetricField) SetUnit(v string) { + o.Unit = &v +} + +// GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise. +func (o *MetricField) GetDecimalPlaces() int32 { + if o == nil || o.DecimalPlaces == nil { + var ret int32 + return ret + } + return *o.DecimalPlaces +} + +// GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricField) GetDecimalPlacesOk() (*int32, bool) { + if o == nil || o.DecimalPlaces == nil { + return nil, false + } + return o.DecimalPlaces, true +} + +// HasDecimalPlaces returns a boolean if a field has been set. +func (o *MetricField) HasDecimalPlaces() bool { + if o != nil && o.DecimalPlaces != nil { + return true + } + + return false +} + +// SetDecimalPlaces gets a reference to the given int32 and assigns it to the DecimalPlaces field. +func (o *MetricField) SetDecimalPlaces(v int32) { + o.DecimalPlaces = &v +} + +func (o MetricField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["query"] = o.Query + } + if o.Unit != nil { + toSerialize["unit"] = o.Unit + } + if o.DecimalPlaces != nil { + toSerialize["decimalPlaces"] = o.DecimalPlaces + } + return json.Marshal(toSerialize) +} + +type NullableMetricField struct { + value *MetricField + isSet bool +} + +func (v NullableMetricField) Get() *MetricField { + return v.value +} + +func (v *NullableMetricField) Set(val *MetricField) { + v.value = val + v.isSet = true +} + +func (v NullableMetricField) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricField(val *MetricField) *NullableMetricField { + return &NullableMetricField{value: val, isSet: true} +} + +func (v NullableMetricField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_metric_field_all_of.go b/generated/stackstate_api/model_metric_field_all_of.go new file mode 100644 index 00000000..aeaaf150 --- /dev/null +++ b/generated/stackstate_api/model_metric_field_all_of.go @@ -0,0 +1,209 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// MetricFieldAllOf struct for MetricFieldAllOf +type MetricFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + // The frontend can use the query to refresh the metrics (at interval). Allows to keep the current behaviour of making individual calls for each row. + Query string `json:"query" yaml:"query"` + Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` + DecimalPlaces *int32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` +} + +// NewMetricFieldAllOf instantiates a new MetricFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetricFieldAllOf(type_ string, query string) *MetricFieldAllOf { + this := MetricFieldAllOf{} + this.Type = type_ + this.Query = query + return &this +} + +// NewMetricFieldAllOfWithDefaults instantiates a new MetricFieldAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetricFieldAllOfWithDefaults() *MetricFieldAllOf { + this := MetricFieldAllOf{} + return &this +} + +// GetType returns the Type field value +func (o *MetricFieldAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MetricFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MetricFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetQuery returns the Query field value +func (o *MetricFieldAllOf) GetQuery() string { + if o == nil { + var ret string + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *MetricFieldAllOf) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *MetricFieldAllOf) SetQuery(v string) { + o.Query = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *MetricFieldAllOf) GetUnit() string { + if o == nil || o.Unit == nil { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricFieldAllOf) GetUnitOk() (*string, bool) { + if o == nil || o.Unit == nil { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *MetricFieldAllOf) HasUnit() bool { + if o != nil && o.Unit != nil { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *MetricFieldAllOf) SetUnit(v string) { + o.Unit = &v +} + +// GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise. +func (o *MetricFieldAllOf) GetDecimalPlaces() int32 { + if o == nil || o.DecimalPlaces == nil { + var ret int32 + return ret + } + return *o.DecimalPlaces +} + +// GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricFieldAllOf) GetDecimalPlacesOk() (*int32, bool) { + if o == nil || o.DecimalPlaces == nil { + return nil, false + } + return o.DecimalPlaces, true +} + +// HasDecimalPlaces returns a boolean if a field has been set. +func (o *MetricFieldAllOf) HasDecimalPlaces() bool { + if o != nil && o.DecimalPlaces != nil { + return true + } + + return false +} + +// SetDecimalPlaces gets a reference to the given int32 and assigns it to the DecimalPlaces field. +func (o *MetricFieldAllOf) SetDecimalPlaces(v int32) { + o.DecimalPlaces = &v +} + +func (o MetricFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["query"] = o.Query + } + if o.Unit != nil { + toSerialize["unit"] = o.Unit + } + if o.DecimalPlaces != nil { + toSerialize["decimalPlaces"] = o.DecimalPlaces + } + return json.Marshal(toSerialize) +} + +type NullableMetricFieldAllOf struct { + value *MetricFieldAllOf + isSet bool +} + +func (v NullableMetricFieldAllOf) Get() *MetricFieldAllOf { + return v.value +} + +func (v *NullableMetricFieldAllOf) Set(val *MetricFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableMetricFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricFieldAllOf(val *MetricFieldAllOf) *NullableMetricFieldAllOf { + return &NullableMetricFieldAllOf{value: val, isSet: true} +} + +func (v NullableMetricFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_metric_chart_meta_display.go b/generated/stackstate_api/model_metric_meta_display.go similarity index 59% rename from generated/stackstate_api/model_metric_chart_meta_display.go rename to generated/stackstate_api/model_metric_meta_display.go index a5baa95c..f0e97176 100644 --- a/generated/stackstate_api/model_metric_chart_meta_display.go +++ b/generated/stackstate_api/model_metric_meta_display.go @@ -15,36 +15,37 @@ import ( "encoding/json" ) -// MetricChartMetaDisplay struct for MetricChartMetaDisplay -type MetricChartMetaDisplay struct { - Type string `json:"_type" yaml:"_type"` - Unit NullableString `json:"unit,omitempty" yaml:"unit,omitempty"` - DecimalPlaces NullableInt32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` - ShowChart NullableBool `json:"showChart,omitempty" yaml:"showChart,omitempty"` - Locked bool `json:"locked" yaml:"locked"` +// MetricMetaDisplay struct for MetricMetaDisplay +type MetricMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` + Unit NullableString `json:"unit,omitempty" yaml:"unit,omitempty"` + DecimalPlaces NullableInt32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` + ShowChart NullableBool `json:"showChart,omitempty" yaml:"showChart,omitempty"` + Locked bool `json:"locked" yaml:"locked"` + MetricId *MetricBindingId `json:"metricId,omitempty" yaml:"metricId,omitempty"` } -// NewMetricChartMetaDisplay instantiates a new MetricChartMetaDisplay object +// NewMetricMetaDisplay instantiates a new MetricMetaDisplay object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewMetricChartMetaDisplay(type_ string, locked bool) *MetricChartMetaDisplay { - this := MetricChartMetaDisplay{} +func NewMetricMetaDisplay(type_ string, locked bool) *MetricMetaDisplay { + this := MetricMetaDisplay{} this.Type = type_ this.Locked = locked return &this } -// NewMetricChartMetaDisplayWithDefaults instantiates a new MetricChartMetaDisplay object +// NewMetricMetaDisplayWithDefaults instantiates a new MetricMetaDisplay object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewMetricChartMetaDisplayWithDefaults() *MetricChartMetaDisplay { - this := MetricChartMetaDisplay{} +func NewMetricMetaDisplayWithDefaults() *MetricMetaDisplay { + this := MetricMetaDisplay{} return &this } // GetType returns the Type field value -func (o *MetricChartMetaDisplay) GetType() string { +func (o *MetricMetaDisplay) GetType() string { if o == nil { var ret string return ret @@ -55,7 +56,7 @@ func (o *MetricChartMetaDisplay) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *MetricChartMetaDisplay) GetTypeOk() (*string, bool) { +func (o *MetricMetaDisplay) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -63,12 +64,12 @@ func (o *MetricChartMetaDisplay) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *MetricChartMetaDisplay) SetType(v string) { +func (o *MetricMetaDisplay) SetType(v string) { o.Type = v } // GetUnit returns the Unit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MetricChartMetaDisplay) GetUnit() string { +func (o *MetricMetaDisplay) GetUnit() string { if o == nil || o.Unit.Get() == nil { var ret string return ret @@ -79,7 +80,7 @@ func (o *MetricChartMetaDisplay) GetUnit() string { // GetUnitOk returns a tuple with the Unit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MetricChartMetaDisplay) GetUnitOk() (*string, bool) { +func (o *MetricMetaDisplay) GetUnitOk() (*string, bool) { if o == nil { return nil, false } @@ -87,7 +88,7 @@ func (o *MetricChartMetaDisplay) GetUnitOk() (*string, bool) { } // HasUnit returns a boolean if a field has been set. -func (o *MetricChartMetaDisplay) HasUnit() bool { +func (o *MetricMetaDisplay) HasUnit() bool { if o != nil && o.Unit.IsSet() { return true } @@ -96,22 +97,22 @@ func (o *MetricChartMetaDisplay) HasUnit() bool { } // SetUnit gets a reference to the given NullableString and assigns it to the Unit field. -func (o *MetricChartMetaDisplay) SetUnit(v string) { +func (o *MetricMetaDisplay) SetUnit(v string) { o.Unit.Set(&v) } // SetUnitNil sets the value for Unit to be an explicit nil -func (o *MetricChartMetaDisplay) SetUnitNil() { +func (o *MetricMetaDisplay) SetUnitNil() { o.Unit.Set(nil) } // UnsetUnit ensures that no value is present for Unit, not even an explicit nil -func (o *MetricChartMetaDisplay) UnsetUnit() { +func (o *MetricMetaDisplay) UnsetUnit() { o.Unit.Unset() } // GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MetricChartMetaDisplay) GetDecimalPlaces() int32 { +func (o *MetricMetaDisplay) GetDecimalPlaces() int32 { if o == nil || o.DecimalPlaces.Get() == nil { var ret int32 return ret @@ -122,7 +123,7 @@ func (o *MetricChartMetaDisplay) GetDecimalPlaces() int32 { // GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MetricChartMetaDisplay) GetDecimalPlacesOk() (*int32, bool) { +func (o *MetricMetaDisplay) GetDecimalPlacesOk() (*int32, bool) { if o == nil { return nil, false } @@ -130,7 +131,7 @@ func (o *MetricChartMetaDisplay) GetDecimalPlacesOk() (*int32, bool) { } // HasDecimalPlaces returns a boolean if a field has been set. -func (o *MetricChartMetaDisplay) HasDecimalPlaces() bool { +func (o *MetricMetaDisplay) HasDecimalPlaces() bool { if o != nil && o.DecimalPlaces.IsSet() { return true } @@ -139,22 +140,22 @@ func (o *MetricChartMetaDisplay) HasDecimalPlaces() bool { } // SetDecimalPlaces gets a reference to the given NullableInt32 and assigns it to the DecimalPlaces field. -func (o *MetricChartMetaDisplay) SetDecimalPlaces(v int32) { +func (o *MetricMetaDisplay) SetDecimalPlaces(v int32) { o.DecimalPlaces.Set(&v) } // SetDecimalPlacesNil sets the value for DecimalPlaces to be an explicit nil -func (o *MetricChartMetaDisplay) SetDecimalPlacesNil() { +func (o *MetricMetaDisplay) SetDecimalPlacesNil() { o.DecimalPlaces.Set(nil) } // UnsetDecimalPlaces ensures that no value is present for DecimalPlaces, not even an explicit nil -func (o *MetricChartMetaDisplay) UnsetDecimalPlaces() { +func (o *MetricMetaDisplay) UnsetDecimalPlaces() { o.DecimalPlaces.Unset() } // GetShowChart returns the ShowChart field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *MetricChartMetaDisplay) GetShowChart() bool { +func (o *MetricMetaDisplay) GetShowChart() bool { if o == nil || o.ShowChart.Get() == nil { var ret bool return ret @@ -165,7 +166,7 @@ func (o *MetricChartMetaDisplay) GetShowChart() bool { // GetShowChartOk returns a tuple with the ShowChart field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *MetricChartMetaDisplay) GetShowChartOk() (*bool, bool) { +func (o *MetricMetaDisplay) GetShowChartOk() (*bool, bool) { if o == nil { return nil, false } @@ -173,7 +174,7 @@ func (o *MetricChartMetaDisplay) GetShowChartOk() (*bool, bool) { } // HasShowChart returns a boolean if a field has been set. -func (o *MetricChartMetaDisplay) HasShowChart() bool { +func (o *MetricMetaDisplay) HasShowChart() bool { if o != nil && o.ShowChart.IsSet() { return true } @@ -182,22 +183,22 @@ func (o *MetricChartMetaDisplay) HasShowChart() bool { } // SetShowChart gets a reference to the given NullableBool and assigns it to the ShowChart field. -func (o *MetricChartMetaDisplay) SetShowChart(v bool) { +func (o *MetricMetaDisplay) SetShowChart(v bool) { o.ShowChart.Set(&v) } // SetShowChartNil sets the value for ShowChart to be an explicit nil -func (o *MetricChartMetaDisplay) SetShowChartNil() { +func (o *MetricMetaDisplay) SetShowChartNil() { o.ShowChart.Set(nil) } // UnsetShowChart ensures that no value is present for ShowChart, not even an explicit nil -func (o *MetricChartMetaDisplay) UnsetShowChart() { +func (o *MetricMetaDisplay) UnsetShowChart() { o.ShowChart.Unset() } // GetLocked returns the Locked field value -func (o *MetricChartMetaDisplay) GetLocked() bool { +func (o *MetricMetaDisplay) GetLocked() bool { if o == nil { var ret bool return ret @@ -208,7 +209,7 @@ func (o *MetricChartMetaDisplay) GetLocked() bool { // GetLockedOk returns a tuple with the Locked field value // and a boolean to check if the value has been set. -func (o *MetricChartMetaDisplay) GetLockedOk() (*bool, bool) { +func (o *MetricMetaDisplay) GetLockedOk() (*bool, bool) { if o == nil { return nil, false } @@ -216,11 +217,43 @@ func (o *MetricChartMetaDisplay) GetLockedOk() (*bool, bool) { } // SetLocked sets field value -func (o *MetricChartMetaDisplay) SetLocked(v bool) { +func (o *MetricMetaDisplay) SetLocked(v bool) { o.Locked = v } -func (o MetricChartMetaDisplay) MarshalJSON() ([]byte, error) { +// GetMetricId returns the MetricId field value if set, zero value otherwise. +func (o *MetricMetaDisplay) GetMetricId() MetricBindingId { + if o == nil || o.MetricId == nil { + var ret MetricBindingId + return ret + } + return *o.MetricId +} + +// GetMetricIdOk returns a tuple with the MetricId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricMetaDisplay) GetMetricIdOk() (*MetricBindingId, bool) { + if o == nil || o.MetricId == nil { + return nil, false + } + return o.MetricId, true +} + +// HasMetricId returns a boolean if a field has been set. +func (o *MetricMetaDisplay) HasMetricId() bool { + if o != nil && o.MetricId != nil { + return true + } + + return false +} + +// SetMetricId gets a reference to the given MetricBindingId and assigns it to the MetricId field. +func (o *MetricMetaDisplay) SetMetricId(v MetricBindingId) { + o.MetricId = &v +} + +func (o MetricMetaDisplay) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["_type"] = o.Type @@ -237,41 +270,44 @@ func (o MetricChartMetaDisplay) MarshalJSON() ([]byte, error) { if true { toSerialize["locked"] = o.Locked } + if o.MetricId != nil { + toSerialize["metricId"] = o.MetricId + } return json.Marshal(toSerialize) } -type NullableMetricChartMetaDisplay struct { - value *MetricChartMetaDisplay +type NullableMetricMetaDisplay struct { + value *MetricMetaDisplay isSet bool } -func (v NullableMetricChartMetaDisplay) Get() *MetricChartMetaDisplay { +func (v NullableMetricMetaDisplay) Get() *MetricMetaDisplay { return v.value } -func (v *NullableMetricChartMetaDisplay) Set(val *MetricChartMetaDisplay) { +func (v *NullableMetricMetaDisplay) Set(val *MetricMetaDisplay) { v.value = val v.isSet = true } -func (v NullableMetricChartMetaDisplay) IsSet() bool { +func (v NullableMetricMetaDisplay) IsSet() bool { return v.isSet } -func (v *NullableMetricChartMetaDisplay) Unset() { +func (v *NullableMetricMetaDisplay) Unset() { v.value = nil v.isSet = false } -func NewNullableMetricChartMetaDisplay(val *MetricChartMetaDisplay) *NullableMetricChartMetaDisplay { - return &NullableMetricChartMetaDisplay{value: val, isSet: true} +func NewNullableMetricMetaDisplay(val *MetricMetaDisplay) *NullableMetricMetaDisplay { + return &NullableMetricMetaDisplay{value: val, isSet: true} } -func (v NullableMetricChartMetaDisplay) MarshalJSON() ([]byte, error) { +func (v NullableMetricMetaDisplay) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableMetricChartMetaDisplay) UnmarshalJSON(src []byte) error { +func (v *NullableMetricMetaDisplay) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_metric_chart_projection.go b/generated/stackstate_api/model_metric_projection.go similarity index 68% rename from generated/stackstate_api/model_metric_chart_projection.go rename to generated/stackstate_api/model_metric_projection.go index adf3ca5c..d4d38ccf 100644 --- a/generated/stackstate_api/model_metric_chart_projection.go +++ b/generated/stackstate_api/model_metric_projection.go @@ -15,8 +15,8 @@ import ( "encoding/json" ) -// MetricChartProjection struct for MetricChartProjection -type MetricChartProjection struct { +// MetricProjection struct for MetricProjection +type MetricProjection struct { Type string `json:"_type" yaml:"_type"` ShowChart *bool `json:"showChart,omitempty" yaml:"showChart,omitempty"` DecimalPlaces *int32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` @@ -25,27 +25,27 @@ type MetricChartProjection struct { Query string `json:"query" yaml:"query"` } -// NewMetricChartProjection instantiates a new MetricChartProjection object +// NewMetricProjection instantiates a new MetricProjection object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewMetricChartProjection(type_ string, query string) *MetricChartProjection { - this := MetricChartProjection{} +func NewMetricProjection(type_ string, query string) *MetricProjection { + this := MetricProjection{} this.Type = type_ this.Query = query return &this } -// NewMetricChartProjectionWithDefaults instantiates a new MetricChartProjection object +// NewMetricProjectionWithDefaults instantiates a new MetricProjection object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewMetricChartProjectionWithDefaults() *MetricChartProjection { - this := MetricChartProjection{} +func NewMetricProjectionWithDefaults() *MetricProjection { + this := MetricProjection{} return &this } // GetType returns the Type field value -func (o *MetricChartProjection) GetType() string { +func (o *MetricProjection) GetType() string { if o == nil { var ret string return ret @@ -56,7 +56,7 @@ func (o *MetricChartProjection) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *MetricChartProjection) GetTypeOk() (*string, bool) { +func (o *MetricProjection) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -64,12 +64,12 @@ func (o *MetricChartProjection) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *MetricChartProjection) SetType(v string) { +func (o *MetricProjection) SetType(v string) { o.Type = v } // GetShowChart returns the ShowChart field value if set, zero value otherwise. -func (o *MetricChartProjection) GetShowChart() bool { +func (o *MetricProjection) GetShowChart() bool { if o == nil || o.ShowChart == nil { var ret bool return ret @@ -79,7 +79,7 @@ func (o *MetricChartProjection) GetShowChart() bool { // GetShowChartOk returns a tuple with the ShowChart field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MetricChartProjection) GetShowChartOk() (*bool, bool) { +func (o *MetricProjection) GetShowChartOk() (*bool, bool) { if o == nil || o.ShowChart == nil { return nil, false } @@ -87,7 +87,7 @@ func (o *MetricChartProjection) GetShowChartOk() (*bool, bool) { } // HasShowChart returns a boolean if a field has been set. -func (o *MetricChartProjection) HasShowChart() bool { +func (o *MetricProjection) HasShowChart() bool { if o != nil && o.ShowChart != nil { return true } @@ -96,12 +96,12 @@ func (o *MetricChartProjection) HasShowChart() bool { } // SetShowChart gets a reference to the given bool and assigns it to the ShowChart field. -func (o *MetricChartProjection) SetShowChart(v bool) { +func (o *MetricProjection) SetShowChart(v bool) { o.ShowChart = &v } // GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise. -func (o *MetricChartProjection) GetDecimalPlaces() int32 { +func (o *MetricProjection) GetDecimalPlaces() int32 { if o == nil || o.DecimalPlaces == nil { var ret int32 return ret @@ -111,7 +111,7 @@ func (o *MetricChartProjection) GetDecimalPlaces() int32 { // GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MetricChartProjection) GetDecimalPlacesOk() (*int32, bool) { +func (o *MetricProjection) GetDecimalPlacesOk() (*int32, bool) { if o == nil || o.DecimalPlaces == nil { return nil, false } @@ -119,7 +119,7 @@ func (o *MetricChartProjection) GetDecimalPlacesOk() (*int32, bool) { } // HasDecimalPlaces returns a boolean if a field has been set. -func (o *MetricChartProjection) HasDecimalPlaces() bool { +func (o *MetricProjection) HasDecimalPlaces() bool { if o != nil && o.DecimalPlaces != nil { return true } @@ -128,12 +128,12 @@ func (o *MetricChartProjection) HasDecimalPlaces() bool { } // SetDecimalPlaces gets a reference to the given int32 and assigns it to the DecimalPlaces field. -func (o *MetricChartProjection) SetDecimalPlaces(v int32) { +func (o *MetricProjection) SetDecimalPlaces(v int32) { o.DecimalPlaces = &v } // GetUnit returns the Unit field value if set, zero value otherwise. -func (o *MetricChartProjection) GetUnit() string { +func (o *MetricProjection) GetUnit() string { if o == nil || o.Unit == nil { var ret string return ret @@ -143,7 +143,7 @@ func (o *MetricChartProjection) GetUnit() string { // GetUnitOk returns a tuple with the Unit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MetricChartProjection) GetUnitOk() (*string, bool) { +func (o *MetricProjection) GetUnitOk() (*string, bool) { if o == nil || o.Unit == nil { return nil, false } @@ -151,7 +151,7 @@ func (o *MetricChartProjection) GetUnitOk() (*string, bool) { } // HasUnit returns a boolean if a field has been set. -func (o *MetricChartProjection) HasUnit() bool { +func (o *MetricProjection) HasUnit() bool { if o != nil && o.Unit != nil { return true } @@ -160,12 +160,12 @@ func (o *MetricChartProjection) HasUnit() bool { } // SetUnit gets a reference to the given string and assigns it to the Unit field. -func (o *MetricChartProjection) SetUnit(v string) { +func (o *MetricProjection) SetUnit(v string) { o.Unit = &v } // GetQuery returns the Query field value -func (o *MetricChartProjection) GetQuery() string { +func (o *MetricProjection) GetQuery() string { if o == nil { var ret string return ret @@ -176,7 +176,7 @@ func (o *MetricChartProjection) GetQuery() string { // GetQueryOk returns a tuple with the Query field value // and a boolean to check if the value has been set. -func (o *MetricChartProjection) GetQueryOk() (*string, bool) { +func (o *MetricProjection) GetQueryOk() (*string, bool) { if o == nil { return nil, false } @@ -184,11 +184,11 @@ func (o *MetricChartProjection) GetQueryOk() (*string, bool) { } // SetQuery sets field value -func (o *MetricChartProjection) SetQuery(v string) { +func (o *MetricProjection) SetQuery(v string) { o.Query = v } -func (o MetricChartProjection) MarshalJSON() ([]byte, error) { +func (o MetricProjection) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["_type"] = o.Type @@ -208,38 +208,38 @@ func (o MetricChartProjection) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableMetricChartProjection struct { - value *MetricChartProjection +type NullableMetricProjection struct { + value *MetricProjection isSet bool } -func (v NullableMetricChartProjection) Get() *MetricChartProjection { +func (v NullableMetricProjection) Get() *MetricProjection { return v.value } -func (v *NullableMetricChartProjection) Set(val *MetricChartProjection) { +func (v *NullableMetricProjection) Set(val *MetricProjection) { v.value = val v.isSet = true } -func (v NullableMetricChartProjection) IsSet() bool { +func (v NullableMetricProjection) IsSet() bool { return v.isSet } -func (v *NullableMetricChartProjection) Unset() { +func (v *NullableMetricProjection) Unset() { v.value = nil v.isSet = false } -func NewNullableMetricChartProjection(val *MetricChartProjection) *NullableMetricChartProjection { - return &NullableMetricChartProjection{value: val, isSet: true} +func NewNullableMetricProjection(val *MetricProjection) *NullableMetricProjection { + return &NullableMetricProjection{value: val, isSet: true} } -func (v NullableMetricChartProjection) MarshalJSON() ([]byte, error) { +func (v NullableMetricProjection) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableMetricChartProjection) UnmarshalJSON(src []byte) error { +func (v *NullableMetricProjection) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_name_source.go b/generated/stackstate_api/model_name_source.go deleted file mode 100644 index 7e737519..00000000 --- a/generated/stackstate_api/model_name_source.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// NameSource struct for NameSource -type NameSource struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewNameSource instantiates a new NameSource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewNameSource(type_ string) *NameSource { - this := NameSource{} - this.Type = type_ - return &this -} - -// NewNameSourceWithDefaults instantiates a new NameSource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewNameSourceWithDefaults() *NameSource { - this := NameSource{} - return &this -} - -// GetType returns the Type field value -func (o *NameSource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *NameSource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *NameSource) SetType(v string) { - o.Type = v -} - -func (o NameSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableNameSource struct { - value *NameSource - isSet bool -} - -func (v NullableNameSource) Get() *NameSource { - return v.value -} - -func (v *NullableNameSource) Set(val *NameSource) { - v.value = val - v.isSet = true -} - -func (v NullableNameSource) IsSet() bool { - return v.isSet -} - -func (v *NullableNameSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableNameSource(val *NameSource) *NullableNameSource { - return &NullableNameSource{value: val, isSet: true} -} - -func (v NullableNameSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableNameSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_numeric_field.go b/generated/stackstate_api/model_numeric_field.go new file mode 100644 index 00000000..faf61d90 --- /dev/null +++ b/generated/stackstate_api/model_numeric_field.go @@ -0,0 +1,302 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// NumericField struct for NumericField +type NumericField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Value float32 `json:"value" yaml:"value"` + Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` + DecimalPlaces *int32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` +} + +// NewNumericField instantiates a new NumericField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNumericField(fieldId string, title string, type_ string, value float32) *NumericField { + this := NumericField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Value = value + return &this +} + +// NewNumericFieldWithDefaults instantiates a new NumericField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNumericFieldWithDefaults() *NumericField { + this := NumericField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *NumericField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *NumericField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *NumericField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *NumericField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *NumericField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *NumericField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NumericField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NumericField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *NumericField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *NumericField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *NumericField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *NumericField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NumericField) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *NumericField) GetValue() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *NumericField) GetValueOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *NumericField) SetValue(v float32) { + o.Value = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *NumericField) GetUnit() string { + if o == nil || o.Unit == nil { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NumericField) GetUnitOk() (*string, bool) { + if o == nil || o.Unit == nil { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *NumericField) HasUnit() bool { + if o != nil && o.Unit != nil { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *NumericField) SetUnit(v string) { + o.Unit = &v +} + +// GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise. +func (o *NumericField) GetDecimalPlaces() int32 { + if o == nil || o.DecimalPlaces == nil { + var ret int32 + return ret + } + return *o.DecimalPlaces +} + +// GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NumericField) GetDecimalPlacesOk() (*int32, bool) { + if o == nil || o.DecimalPlaces == nil { + return nil, false + } + return o.DecimalPlaces, true +} + +// HasDecimalPlaces returns a boolean if a field has been set. +func (o *NumericField) HasDecimalPlaces() bool { + if o != nil && o.DecimalPlaces != nil { + return true + } + + return false +} + +// SetDecimalPlaces gets a reference to the given int32 and assigns it to the DecimalPlaces field. +func (o *NumericField) SetDecimalPlaces(v int32) { + o.DecimalPlaces = &v +} + +func (o NumericField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + if o.Unit != nil { + toSerialize["unit"] = o.Unit + } + if o.DecimalPlaces != nil { + toSerialize["decimalPlaces"] = o.DecimalPlaces + } + return json.Marshal(toSerialize) +} + +type NullableNumericField struct { + value *NumericField + isSet bool +} + +func (v NullableNumericField) Get() *NumericField { + return v.value +} + +func (v *NullableNumericField) Set(val *NumericField) { + v.value = val + v.isSet = true +} + +func (v NullableNumericField) IsSet() bool { + return v.isSet +} + +func (v *NullableNumericField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNumericField(val *NumericField) *NullableNumericField { + return &NullableNumericField{value: val, isSet: true} +} + +func (v NullableNumericField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNumericField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_numeric_field_all_of.go b/generated/stackstate_api/model_numeric_field_all_of.go new file mode 100644 index 00000000..e1d8ea60 --- /dev/null +++ b/generated/stackstate_api/model_numeric_field_all_of.go @@ -0,0 +1,208 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// NumericFieldAllOf struct for NumericFieldAllOf +type NumericFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Value float32 `json:"value" yaml:"value"` + Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` + DecimalPlaces *int32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` +} + +// NewNumericFieldAllOf instantiates a new NumericFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNumericFieldAllOf(type_ string, value float32) *NumericFieldAllOf { + this := NumericFieldAllOf{} + this.Type = type_ + this.Value = value + return &this +} + +// NewNumericFieldAllOfWithDefaults instantiates a new NumericFieldAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNumericFieldAllOfWithDefaults() *NumericFieldAllOf { + this := NumericFieldAllOf{} + return &this +} + +// GetType returns the Type field value +func (o *NumericFieldAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *NumericFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NumericFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *NumericFieldAllOf) GetValue() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *NumericFieldAllOf) GetValueOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *NumericFieldAllOf) SetValue(v float32) { + o.Value = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *NumericFieldAllOf) GetUnit() string { + if o == nil || o.Unit == nil { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NumericFieldAllOf) GetUnitOk() (*string, bool) { + if o == nil || o.Unit == nil { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *NumericFieldAllOf) HasUnit() bool { + if o != nil && o.Unit != nil { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *NumericFieldAllOf) SetUnit(v string) { + o.Unit = &v +} + +// GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise. +func (o *NumericFieldAllOf) GetDecimalPlaces() int32 { + if o == nil || o.DecimalPlaces == nil { + var ret int32 + return ret + } + return *o.DecimalPlaces +} + +// GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NumericFieldAllOf) GetDecimalPlacesOk() (*int32, bool) { + if o == nil || o.DecimalPlaces == nil { + return nil, false + } + return o.DecimalPlaces, true +} + +// HasDecimalPlaces returns a boolean if a field has been set. +func (o *NumericFieldAllOf) HasDecimalPlaces() bool { + if o != nil && o.DecimalPlaces != nil { + return true + } + + return false +} + +// SetDecimalPlaces gets a reference to the given int32 and assigns it to the DecimalPlaces field. +func (o *NumericFieldAllOf) SetDecimalPlaces(v int32) { + o.DecimalPlaces = &v +} + +func (o NumericFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + if o.Unit != nil { + toSerialize["unit"] = o.Unit + } + if o.DecimalPlaces != nil { + toSerialize["decimalPlaces"] = o.DecimalPlaces + } + return json.Marshal(toSerialize) +} + +type NullableNumericFieldAllOf struct { + value *NumericFieldAllOf + isSet bool +} + +func (v NullableNumericFieldAllOf) Get() *NumericFieldAllOf { + return v.value +} + +func (v *NullableNumericFieldAllOf) Set(val *NumericFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableNumericFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableNumericFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNumericFieldAllOf(val *NumericFieldAllOf) *NullableNumericFieldAllOf { + return &NullableNumericFieldAllOf{value: val, isSet: true} +} + +func (v NullableNumericFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNumericFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_otel_component_mapping_field_mapping.go b/generated/stackstate_api/model_otel_component_mapping_field_mapping.go index d3821809..7580f9d8 100644 --- a/generated/stackstate_api/model_otel_component_mapping_field_mapping.go +++ b/generated/stackstate_api/model_otel_component_mapping_field_mapping.go @@ -21,6 +21,10 @@ type OtelComponentMappingFieldMapping struct { // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. Version *string `json:"version,omitempty" yaml:"version,omitempty"` Tags []OtelTagMapping `json:"tags,omitempty" yaml:"tags,omitempty"` + // An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. + Configuration *string `json:"configuration,omitempty" yaml:"configuration,omitempty"` + // An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. + Status *string `json:"status,omitempty" yaml:"status,omitempty"` } // NewOtelComponentMappingFieldMapping instantiates a new OtelComponentMappingFieldMapping object @@ -136,6 +140,70 @@ func (o *OtelComponentMappingFieldMapping) SetTags(v []OtelTagMapping) { o.Tags = v } +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *OtelComponentMappingFieldMapping) GetConfiguration() string { + if o == nil || o.Configuration == nil { + var ret string + return ret + } + return *o.Configuration +} + +// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OtelComponentMappingFieldMapping) GetConfigurationOk() (*string, bool) { + if o == nil || o.Configuration == nil { + return nil, false + } + return o.Configuration, true +} + +// HasConfiguration returns a boolean if a field has been set. +func (o *OtelComponentMappingFieldMapping) HasConfiguration() bool { + if o != nil && o.Configuration != nil { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given string and assigns it to the Configuration field. +func (o *OtelComponentMappingFieldMapping) SetConfiguration(v string) { + o.Configuration = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *OtelComponentMappingFieldMapping) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OtelComponentMappingFieldMapping) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *OtelComponentMappingFieldMapping) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *OtelComponentMappingFieldMapping) SetStatus(v string) { + o.Status = &v +} + func (o OtelComponentMappingFieldMapping) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.AdditionalIdentifiers != nil { @@ -147,6 +215,12 @@ func (o OtelComponentMappingFieldMapping) MarshalJSON() ([]byte, error) { if o.Tags != nil { toSerialize["tags"] = o.Tags } + if o.Configuration != nil { + toSerialize["configuration"] = o.Configuration + } + if o.Status != nil { + toSerialize["status"] = o.Status + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_otel_input_log.go b/generated/stackstate_api/model_otel_input_log.go new file mode 100644 index 00000000..a856e848 --- /dev/null +++ b/generated/stackstate_api/model_otel_input_log.go @@ -0,0 +1,151 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// OtelInputLog Defines conditional mapping at the resource -> scope -> log level. If omitted, `condition` defaults to `true` and `action` defaults to `CONTINUE`. +type OtelInputLog struct { + // A Cel expression that must return a boolean + Condition *string `json:"condition,omitempty" yaml:"condition,omitempty"` + Action *OtelInputConditionAction `json:"action,omitempty" yaml:"action,omitempty"` +} + +// NewOtelInputLog instantiates a new OtelInputLog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOtelInputLog() *OtelInputLog { + this := OtelInputLog{} + return &this +} + +// NewOtelInputLogWithDefaults instantiates a new OtelInputLog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOtelInputLogWithDefaults() *OtelInputLog { + this := OtelInputLog{} + return &this +} + +// GetCondition returns the Condition field value if set, zero value otherwise. +func (o *OtelInputLog) GetCondition() string { + if o == nil || o.Condition == nil { + var ret string + return ret + } + return *o.Condition +} + +// GetConditionOk returns a tuple with the Condition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OtelInputLog) GetConditionOk() (*string, bool) { + if o == nil || o.Condition == nil { + return nil, false + } + return o.Condition, true +} + +// HasCondition returns a boolean if a field has been set. +func (o *OtelInputLog) HasCondition() bool { + if o != nil && o.Condition != nil { + return true + } + + return false +} + +// SetCondition gets a reference to the given string and assigns it to the Condition field. +func (o *OtelInputLog) SetCondition(v string) { + o.Condition = &v +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *OtelInputLog) GetAction() OtelInputConditionAction { + if o == nil || o.Action == nil { + var ret OtelInputConditionAction + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OtelInputLog) GetActionOk() (*OtelInputConditionAction, bool) { + if o == nil || o.Action == nil { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *OtelInputLog) HasAction() bool { + if o != nil && o.Action != nil { + return true + } + + return false +} + +// SetAction gets a reference to the given OtelInputConditionAction and assigns it to the Action field. +func (o *OtelInputLog) SetAction(v OtelInputConditionAction) { + o.Action = &v +} + +func (o OtelInputLog) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Condition != nil { + toSerialize["condition"] = o.Condition + } + if o.Action != nil { + toSerialize["action"] = o.Action + } + return json.Marshal(toSerialize) +} + +type NullableOtelInputLog struct { + value *OtelInputLog + isSet bool +} + +func (v NullableOtelInputLog) Get() *OtelInputLog { + return v.value +} + +func (v *NullableOtelInputLog) Set(val *OtelInputLog) { + v.value = val + v.isSet = true +} + +func (v NullableOtelInputLog) IsSet() bool { + return v.isSet +} + +func (v *NullableOtelInputLog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOtelInputLog(val *OtelInputLog) *NullableOtelInputLog { + return &NullableOtelInputLog{value: val, isSet: true} +} + +func (v NullableOtelInputLog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOtelInputLog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_otel_input_scope.go b/generated/stackstate_api/model_otel_input_scope.go index 751a8f77..ba9e4951 100644 --- a/generated/stackstate_api/model_otel_input_scope.go +++ b/generated/stackstate_api/model_otel_input_scope.go @@ -22,6 +22,7 @@ type OtelInputScope struct { Action *OtelInputConditionAction `json:"action,omitempty" yaml:"action,omitempty"` Metric *OtelInputMetric `json:"metric,omitempty" yaml:"metric,omitempty"` Span *OtelInputSpan `json:"span,omitempty" yaml:"span,omitempty"` + Log *OtelInputLog `json:"log,omitempty" yaml:"log,omitempty"` } // NewOtelInputScope instantiates a new OtelInputScope object @@ -169,6 +170,38 @@ func (o *OtelInputScope) SetSpan(v OtelInputSpan) { o.Span = &v } +// GetLog returns the Log field value if set, zero value otherwise. +func (o *OtelInputScope) GetLog() OtelInputLog { + if o == nil || o.Log == nil { + var ret OtelInputLog + return ret + } + return *o.Log +} + +// GetLogOk returns a tuple with the Log field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OtelInputScope) GetLogOk() (*OtelInputLog, bool) { + if o == nil || o.Log == nil { + return nil, false + } + return o.Log, true +} + +// HasLog returns a boolean if a field has been set. +func (o *OtelInputScope) HasLog() bool { + if o != nil && o.Log != nil { + return true + } + + return false +} + +// SetLog gets a reference to the given OtelInputLog and assigns it to the Log field. +func (o *OtelInputScope) SetLog(v OtelInputLog) { + o.Log = &v +} + func (o OtelInputScope) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Condition != nil { @@ -183,6 +216,9 @@ func (o OtelInputScope) MarshalJSON() ([]byte, error) { if o.Span != nil { toSerialize["span"] = o.Span } + if o.Log != nil { + toSerialize["log"] = o.Log + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_otel_input_signal.go b/generated/stackstate_api/model_otel_input_signal.go index 1a7fdafa..cb53eb47 100644 --- a/generated/stackstate_api/model_otel_input_signal.go +++ b/generated/stackstate_api/model_otel_input_signal.go @@ -16,7 +16,7 @@ import ( "fmt" ) -// OtelInputSignal Signals exported by OpenTelemetry, which determine which data models and attribute maps are available for expression evaluation in an OTel topology mapping. Each signal enables access to a specific set of fields and attribute maps coming from the corresponding OTel data pipeline level. Fields/attributes available per signal: • **TRACES** Provides access to: - `resource.attributes` - `scope.name`, `scope.version`, `scope.attributes` - `span.name`, `span.kind`, `span.statusMessage`, `span.statusCode`, `span.attributes` • **METRICS** Provides access to: - `resource.attributes` - `scope.name`, `scope.version`, `scope.attributes` - `metric.name`, `metric.description`, `metric.unit` - `datapoint.attributes` • **LOGS** Not yet supported. For example, if the signal is `METRICS`, expressions may reference: `resource.attributes[\"service.name\"]`, `scope.attributes[\"env\"]`, `metric.name`, or `datapoint.attributes[\"status\"]`. +// OtelInputSignal Signals exported by OpenTelemetry, which determine which data models and attribute maps are available for expression evaluation in an OTel topology mapping. Each signal enables access to a specific set of fields and attribute maps coming from the corresponding OTel data pipeline level. Fields/attributes available per signal: • **TRACES** Provides access to: - `resource.attributes` - `scope.name`, `scope.version`, `scope.attributes` - `span.name`, `span.kind`, `span.statusMessage`, `span.statusCode`, `span.attributes` • **METRICS** Provides access to: - `resource.attributes` - `scope.name`, `scope.version`, `scope.attributes` - `metric.name`, `metric.description`, `metric.unit` - `datapoint.attributes` • **LOGS** Provides access to: - `resource.attributes` - `scope.name`, `scope.version`, `scope.attributes` - `log.eventName`, `log.attributes`, `log.body` For example, if the signal is `METRICS`, expressions may reference: `resource.attributes[\"service.name\"]`, `scope.attributes[\"env\"]`, `metric.name`, or `datapoint.attributes[\"status\"]`. type OtelInputSignal string // List of OtelInputSignal diff --git a/generated/stackstate_api/model_overview_column_definition.go b/generated/stackstate_api/model_overview_column_definition.go index eeea3178..f63dce90 100644 --- a/generated/stackstate_api/model_overview_column_definition.go +++ b/generated/stackstate_api/model_overview_column_definition.go @@ -17,9 +17,9 @@ import ( // OverviewColumnDefinition Definition of a column in the overview presentation. The `columnId` field is used to identify the column and merge columns from different presentations. If only the `columnId` is provided, the column will be rendered from the next more specific presentation definition. type OverviewColumnDefinition struct { - ColumnId string `json:"columnId" yaml:"columnId"` - Title *string `json:"title,omitempty" yaml:"title,omitempty"` - Projection *OverviewColumnProjection `json:"projection,omitempty" yaml:"projection,omitempty"` + ColumnId string `json:"columnId" yaml:"columnId"` + Title *string `json:"title,omitempty" yaml:"title,omitempty"` + Projection *ComponentOverviewProjection `json:"projection,omitempty" yaml:"projection,omitempty"` } // NewOverviewColumnDefinition instantiates a new OverviewColumnDefinition object @@ -97,9 +97,9 @@ func (o *OverviewColumnDefinition) SetTitle(v string) { } // GetProjection returns the Projection field value if set, zero value otherwise. -func (o *OverviewColumnDefinition) GetProjection() OverviewColumnProjection { +func (o *OverviewColumnDefinition) GetProjection() ComponentOverviewProjection { if o == nil || o.Projection == nil { - var ret OverviewColumnProjection + var ret ComponentOverviewProjection return ret } return *o.Projection @@ -107,7 +107,7 @@ func (o *OverviewColumnDefinition) GetProjection() OverviewColumnProjection { // GetProjectionOk returns a tuple with the Projection field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OverviewColumnDefinition) GetProjectionOk() (*OverviewColumnProjection, bool) { +func (o *OverviewColumnDefinition) GetProjectionOk() (*ComponentOverviewProjection, bool) { if o == nil || o.Projection == nil { return nil, false } @@ -123,8 +123,8 @@ func (o *OverviewColumnDefinition) HasProjection() bool { return false } -// SetProjection gets a reference to the given OverviewColumnProjection and assigns it to the Projection field. -func (o *OverviewColumnDefinition) SetProjection(v OverviewColumnProjection) { +// SetProjection gets a reference to the given ComponentOverviewProjection and assigns it to the Projection field. +func (o *OverviewColumnDefinition) SetProjection(v ComponentOverviewProjection) { o.Projection = &v } diff --git a/generated/stackstate_api/model_overview_column_meta_display.go b/generated/stackstate_api/model_overview_column_meta_display.go index 0ab16e19..2f1e0112 100644 --- a/generated/stackstate_api/model_overview_column_meta_display.go +++ b/generated/stackstate_api/model_overview_column_meta_display.go @@ -22,7 +22,7 @@ type OverviewColumnMetaDisplay struct { DurationMetaDisplay *DurationMetaDisplay HealthMetaDisplay *HealthMetaDisplay LinkMetaDisplay *LinkMetaDisplay - MetricChartMetaDisplay *MetricChartMetaDisplay + MetricMetaDisplay *MetricMetaDisplay NumericMetaDisplay *NumericMetaDisplay ReadyStatusMetaDisplay *ReadyStatusMetaDisplay TextMetaDisplay *TextMetaDisplay @@ -56,10 +56,10 @@ func LinkMetaDisplayAsOverviewColumnMetaDisplay(v *LinkMetaDisplay) OverviewColu } } -// MetricChartMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns MetricChartMetaDisplay wrapped in OverviewColumnMetaDisplay -func MetricChartMetaDisplayAsOverviewColumnMetaDisplay(v *MetricChartMetaDisplay) OverviewColumnMetaDisplay { +// MetricMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns MetricMetaDisplay wrapped in OverviewColumnMetaDisplay +func MetricMetaDisplayAsOverviewColumnMetaDisplay(v *MetricMetaDisplay) OverviewColumnMetaDisplay { return OverviewColumnMetaDisplay{ - MetricChartMetaDisplay: v, + MetricMetaDisplay: v, } } @@ -142,15 +142,15 @@ func (dst *OverviewColumnMetaDisplay) UnmarshalJSON(data []byte) error { } } - // check if the discriminator value is 'MetricChartMetaDisplay' - if jsonDict["_type"] == "MetricChartMetaDisplay" { - // try to unmarshal JSON data into MetricChartMetaDisplay - err = json.Unmarshal(data, &dst.MetricChartMetaDisplay) + // check if the discriminator value is 'MetricMetaDisplay' + if jsonDict["_type"] == "MetricMetaDisplay" { + // try to unmarshal JSON data into MetricMetaDisplay + err = json.Unmarshal(data, &dst.MetricMetaDisplay) if err == nil { - return nil // data stored in dst.MetricChartMetaDisplay, return on the first match + return nil // data stored in dst.MetricMetaDisplay, return on the first match } else { - dst.MetricChartMetaDisplay = nil - return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as MetricChartMetaDisplay: %s", err.Error()) + dst.MetricMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as MetricMetaDisplay: %s", err.Error()) } } @@ -211,8 +211,8 @@ func (src OverviewColumnMetaDisplay) MarshalJSON() ([]byte, error) { return json.Marshal(&src.LinkMetaDisplay) } - if src.MetricChartMetaDisplay != nil { - return json.Marshal(&src.MetricChartMetaDisplay) + if src.MetricMetaDisplay != nil { + return json.Marshal(&src.MetricMetaDisplay) } if src.NumericMetaDisplay != nil { @@ -251,8 +251,8 @@ func (obj *OverviewColumnMetaDisplay) GetActualInstance() interface{} { return obj.LinkMetaDisplay } - if obj.MetricChartMetaDisplay != nil { - return obj.MetricChartMetaDisplay + if obj.MetricMetaDisplay != nil { + return obj.MetricMetaDisplay } if obj.NumericMetaDisplay != nil { diff --git a/generated/stackstate_api/model_presentation_definition.go b/generated/stackstate_api/model_presentation_definition.go index 10acf62a..51c4e87d 100644 --- a/generated/stackstate_api/model_presentation_definition.go +++ b/generated/stackstate_api/model_presentation_definition.go @@ -15,10 +15,12 @@ import ( "encoding/json" ) -// PresentationDefinition struct for PresentationDefinition +// PresentationDefinition Component presentation definition. If multiple ComponentPresentations match, `filters` are merged by filter identity with the most specific presentation winning. Absence of the field keeps legacy behavior (for example, ViewType-based filters) unchanged. type PresentationDefinition struct { - Icon *string `json:"icon,omitempty" yaml:"icon,omitempty"` - Overview *PresentationOverview `json:"overview,omitempty" yaml:"overview,omitempty"` + Icon *string `json:"icon,omitempty" yaml:"icon,omitempty"` + Overview *PresentationOverview `json:"overview,omitempty" yaml:"overview,omitempty"` + Highlight *PresentationHighlight `json:"highlight,omitempty" yaml:"highlight,omitempty"` + Filters []ComponentPresentationFilter `json:"filters,omitempty" yaml:"filters,omitempty"` } // NewPresentationDefinition instantiates a new PresentationDefinition object @@ -102,6 +104,70 @@ func (o *PresentationDefinition) SetOverview(v PresentationOverview) { o.Overview = &v } +// GetHighlight returns the Highlight field value if set, zero value otherwise. +func (o *PresentationDefinition) GetHighlight() PresentationHighlight { + if o == nil || o.Highlight == nil { + var ret PresentationHighlight + return ret + } + return *o.Highlight +} + +// GetHighlightOk returns a tuple with the Highlight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationDefinition) GetHighlightOk() (*PresentationHighlight, bool) { + if o == nil || o.Highlight == nil { + return nil, false + } + return o.Highlight, true +} + +// HasHighlight returns a boolean if a field has been set. +func (o *PresentationDefinition) HasHighlight() bool { + if o != nil && o.Highlight != nil { + return true + } + + return false +} + +// SetHighlight gets a reference to the given PresentationHighlight and assigns it to the Highlight field. +func (o *PresentationDefinition) SetHighlight(v PresentationHighlight) { + o.Highlight = &v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *PresentationDefinition) GetFilters() []ComponentPresentationFilter { + if o == nil || o.Filters == nil { + var ret []ComponentPresentationFilter + return ret + } + return o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationDefinition) GetFiltersOk() ([]ComponentPresentationFilter, bool) { + if o == nil || o.Filters == nil { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *PresentationDefinition) HasFilters() bool { + if o != nil && o.Filters != nil { + return true + } + + return false +} + +// SetFilters gets a reference to the given []ComponentPresentationFilter and assigns it to the Filters field. +func (o *PresentationDefinition) SetFilters(v []ComponentPresentationFilter) { + o.Filters = v +} + func (o PresentationDefinition) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Icon != nil { @@ -110,6 +176,12 @@ func (o PresentationDefinition) MarshalJSON() ([]byte, error) { if o.Overview != nil { toSerialize["overview"] = o.Overview } + if o.Highlight != nil { + toSerialize["highlight"] = o.Highlight + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_presentation_filter.go b/generated/stackstate_api/model_presentation_filter.go new file mode 100644 index 00000000..85608a4a --- /dev/null +++ b/generated/stackstate_api/model_presentation_filter.go @@ -0,0 +1,112 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" + "fmt" +) + +// PresentationFilter - struct for PresentationFilter +type PresentationFilter struct { + PresentationTagFilter *PresentationTagFilter +} + +// PresentationTagFilterAsPresentationFilter is a convenience function that returns PresentationTagFilter wrapped in PresentationFilter +func PresentationTagFilterAsPresentationFilter(v *PresentationTagFilter) PresentationFilter { + return PresentationFilter{ + PresentationTagFilter: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *PresentationFilter) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = newStrictDecoder(data).Decode(&jsonDict) + if err != nil { + return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") + } + + // check if the discriminator value is 'PresentationTagFilter' + if jsonDict["_type"] == "PresentationTagFilter" { + // try to unmarshal JSON data into PresentationTagFilter + err = json.Unmarshal(data, &dst.PresentationTagFilter) + if err == nil { + return nil // data stored in dst.PresentationTagFilter, return on the first match + } else { + dst.PresentationTagFilter = nil + return fmt.Errorf("Failed to unmarshal PresentationFilter as PresentationTagFilter: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src PresentationFilter) MarshalJSON() ([]byte, error) { + if src.PresentationTagFilter != nil { + return json.Marshal(&src.PresentationTagFilter) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *PresentationFilter) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.PresentationTagFilter != nil { + return obj.PresentationTagFilter + } + + // all schemas are nil + return nil +} + +type NullablePresentationFilter struct { + value *PresentationFilter + isSet bool +} + +func (v NullablePresentationFilter) Get() *PresentationFilter { + return v.value +} + +func (v *NullablePresentationFilter) Set(val *PresentationFilter) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationFilter) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationFilter(val *PresentationFilter) *NullablePresentationFilter { + return &NullablePresentationFilter{value: val, isSet: true} +} + +func (v NullablePresentationFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_filter_name.go b/generated/stackstate_api/model_presentation_filter_name.go new file mode 100644 index 00000000..611a4790 --- /dev/null +++ b/generated/stackstate_api/model_presentation_filter_name.go @@ -0,0 +1,136 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// PresentationFilterName struct for PresentationFilterName +type PresentationFilterName struct { + Singular string `json:"singular" yaml:"singular"` + Plural string `json:"plural" yaml:"plural"` +} + +// NewPresentationFilterName instantiates a new PresentationFilterName object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPresentationFilterName(singular string, plural string) *PresentationFilterName { + this := PresentationFilterName{} + this.Singular = singular + this.Plural = plural + return &this +} + +// NewPresentationFilterNameWithDefaults instantiates a new PresentationFilterName object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPresentationFilterNameWithDefaults() *PresentationFilterName { + this := PresentationFilterName{} + return &this +} + +// GetSingular returns the Singular field value +func (o *PresentationFilterName) GetSingular() string { + if o == nil { + var ret string + return ret + } + + return o.Singular +} + +// GetSingularOk returns a tuple with the Singular field value +// and a boolean to check if the value has been set. +func (o *PresentationFilterName) GetSingularOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Singular, true +} + +// SetSingular sets field value +func (o *PresentationFilterName) SetSingular(v string) { + o.Singular = v +} + +// GetPlural returns the Plural field value +func (o *PresentationFilterName) GetPlural() string { + if o == nil { + var ret string + return ret + } + + return o.Plural +} + +// GetPluralOk returns a tuple with the Plural field value +// and a boolean to check if the value has been set. +func (o *PresentationFilterName) GetPluralOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Plural, true +} + +// SetPlural sets field value +func (o *PresentationFilterName) SetPlural(v string) { + o.Plural = v +} + +func (o PresentationFilterName) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["singular"] = o.Singular + } + if true { + toSerialize["plural"] = o.Plural + } + return json.Marshal(toSerialize) +} + +type NullablePresentationFilterName struct { + value *PresentationFilterName + isSet bool +} + +func (v NullablePresentationFilterName) Get() *PresentationFilterName { + return v.value +} + +func (v *NullablePresentationFilterName) Set(val *PresentationFilterName) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationFilterName) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationFilterName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationFilterName(val *PresentationFilterName) *NullablePresentationFilterName { + return &NullablePresentationFilterName{value: val, isSet: true} +} + +func (v NullablePresentationFilterName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationFilterName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_filters_response.go b/generated/stackstate_api/model_presentation_filters_response.go new file mode 100644 index 00000000..79af4826 --- /dev/null +++ b/generated/stackstate_api/model_presentation_filters_response.go @@ -0,0 +1,138 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// PresentationFiltersResponse struct for PresentationFiltersResponse +type PresentationFiltersResponse struct { + // Presentation filters in display order. Earlier items are primary (filter bar), later items are secondary (\"More\" section). + Filters []PresentationFilter `json:"filters" yaml:"filters"` + // Label for the section within \"More\" tab when secondary filters are present. + MenuSection string `json:"menuSection" yaml:"menuSection"` +} + +// NewPresentationFiltersResponse instantiates a new PresentationFiltersResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPresentationFiltersResponse(filters []PresentationFilter, menuSection string) *PresentationFiltersResponse { + this := PresentationFiltersResponse{} + this.Filters = filters + this.MenuSection = menuSection + return &this +} + +// NewPresentationFiltersResponseWithDefaults instantiates a new PresentationFiltersResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPresentationFiltersResponseWithDefaults() *PresentationFiltersResponse { + this := PresentationFiltersResponse{} + return &this +} + +// GetFilters returns the Filters field value +func (o *PresentationFiltersResponse) GetFilters() []PresentationFilter { + if o == nil { + var ret []PresentationFilter + return ret + } + + return o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value +// and a boolean to check if the value has been set. +func (o *PresentationFiltersResponse) GetFiltersOk() ([]PresentationFilter, bool) { + if o == nil { + return nil, false + } + return o.Filters, true +} + +// SetFilters sets field value +func (o *PresentationFiltersResponse) SetFilters(v []PresentationFilter) { + o.Filters = v +} + +// GetMenuSection returns the MenuSection field value +func (o *PresentationFiltersResponse) GetMenuSection() string { + if o == nil { + var ret string + return ret + } + + return o.MenuSection +} + +// GetMenuSectionOk returns a tuple with the MenuSection field value +// and a boolean to check if the value has been set. +func (o *PresentationFiltersResponse) GetMenuSectionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MenuSection, true +} + +// SetMenuSection sets field value +func (o *PresentationFiltersResponse) SetMenuSection(v string) { + o.MenuSection = v +} + +func (o PresentationFiltersResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["filters"] = o.Filters + } + if true { + toSerialize["menuSection"] = o.MenuSection + } + return json.Marshal(toSerialize) +} + +type NullablePresentationFiltersResponse struct { + value *PresentationFiltersResponse + isSet bool +} + +func (v NullablePresentationFiltersResponse) Get() *PresentationFiltersResponse { + return v.value +} + +func (v *NullablePresentationFiltersResponse) Set(val *PresentationFiltersResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationFiltersResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationFiltersResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationFiltersResponse(val *PresentationFiltersResponse) *NullablePresentationFiltersResponse { + return &NullablePresentationFiltersResponse{value: val, isSet: true} +} + +func (v NullablePresentationFiltersResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationFiltersResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_highlight.go b/generated/stackstate_api/model_presentation_highlight.go new file mode 100644 index 00000000..95d91ced --- /dev/null +++ b/generated/stackstate_api/model_presentation_highlight.go @@ -0,0 +1,136 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// PresentationHighlight Highlight presentation definition. The `fields` define the fields to show in the ab. The `flags` field can be used to enable/disable functionalities. If multiple ComponentPresentations match, columns are merged by `columnId` according to binding rank. Absence of the field means no overview is shown. +type PresentationHighlight struct { + Title string `json:"title" yaml:"title"` + Fields []PresentationHighlightField `json:"fields" yaml:"fields"` +} + +// NewPresentationHighlight instantiates a new PresentationHighlight object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPresentationHighlight(title string, fields []PresentationHighlightField) *PresentationHighlight { + this := PresentationHighlight{} + this.Title = title + this.Fields = fields + return &this +} + +// NewPresentationHighlightWithDefaults instantiates a new PresentationHighlight object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPresentationHighlightWithDefaults() *PresentationHighlight { + this := PresentationHighlight{} + return &this +} + +// GetTitle returns the Title field value +func (o *PresentationHighlight) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *PresentationHighlight) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *PresentationHighlight) SetTitle(v string) { + o.Title = v +} + +// GetFields returns the Fields field value +func (o *PresentationHighlight) GetFields() []PresentationHighlightField { + if o == nil { + var ret []PresentationHighlightField + return ret + } + + return o.Fields +} + +// GetFieldsOk returns a tuple with the Fields field value +// and a boolean to check if the value has been set. +func (o *PresentationHighlight) GetFieldsOk() ([]PresentationHighlightField, bool) { + if o == nil { + return nil, false + } + return o.Fields, true +} + +// SetFields sets field value +func (o *PresentationHighlight) SetFields(v []PresentationHighlightField) { + o.Fields = v +} + +func (o PresentationHighlight) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["title"] = o.Title + } + if true { + toSerialize["fields"] = o.Fields + } + return json.Marshal(toSerialize) +} + +type NullablePresentationHighlight struct { + value *PresentationHighlight + isSet bool +} + +func (v NullablePresentationHighlight) Get() *PresentationHighlight { + return v.value +} + +func (v *NullablePresentationHighlight) Set(val *PresentationHighlight) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationHighlight) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationHighlight) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationHighlight(val *PresentationHighlight) *NullablePresentationHighlight { + return &NullablePresentationHighlight{value: val, isSet: true} +} + +func (v NullablePresentationHighlight) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationHighlight) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_highlight_field.go b/generated/stackstate_api/model_presentation_highlight_field.go new file mode 100644 index 00000000..232f31eb --- /dev/null +++ b/generated/stackstate_api/model_presentation_highlight_field.go @@ -0,0 +1,237 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// PresentationHighlightField Definition of a field in the highlight presentation. The `fieldId` field is used to identify the field and merge fields from different presentations. +type PresentationHighlightField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Order float64 `json:"order" yaml:"order"` + Projection *ComponentHighlightProjection `json:"projection,omitempty" yaml:"projection,omitempty"` +} + +// NewPresentationHighlightField instantiates a new PresentationHighlightField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPresentationHighlightField(fieldId string, title string, order float64) *PresentationHighlightField { + this := PresentationHighlightField{} + this.FieldId = fieldId + this.Title = title + this.Order = order + return &this +} + +// NewPresentationHighlightFieldWithDefaults instantiates a new PresentationHighlightField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPresentationHighlightFieldWithDefaults() *PresentationHighlightField { + this := PresentationHighlightField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *PresentationHighlightField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *PresentationHighlightField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *PresentationHighlightField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *PresentationHighlightField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *PresentationHighlightField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *PresentationHighlightField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PresentationHighlightField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationHighlightField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PresentationHighlightField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PresentationHighlightField) SetDescription(v string) { + o.Description = &v +} + +// GetOrder returns the Order field value +func (o *PresentationHighlightField) GetOrder() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Order +} + +// GetOrderOk returns a tuple with the Order field value +// and a boolean to check if the value has been set. +func (o *PresentationHighlightField) GetOrderOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Order, true +} + +// SetOrder sets field value +func (o *PresentationHighlightField) SetOrder(v float64) { + o.Order = v +} + +// GetProjection returns the Projection field value if set, zero value otherwise. +func (o *PresentationHighlightField) GetProjection() ComponentHighlightProjection { + if o == nil || o.Projection == nil { + var ret ComponentHighlightProjection + return ret + } + return *o.Projection +} + +// GetProjectionOk returns a tuple with the Projection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationHighlightField) GetProjectionOk() (*ComponentHighlightProjection, bool) { + if o == nil || o.Projection == nil { + return nil, false + } + return o.Projection, true +} + +// HasProjection returns a boolean if a field has been set. +func (o *PresentationHighlightField) HasProjection() bool { + if o != nil && o.Projection != nil { + return true + } + + return false +} + +// SetProjection gets a reference to the given ComponentHighlightProjection and assigns it to the Projection field. +func (o *PresentationHighlightField) SetProjection(v ComponentHighlightProjection) { + o.Projection = &v +} + +func (o PresentationHighlightField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["order"] = o.Order + } + if o.Projection != nil { + toSerialize["projection"] = o.Projection + } + return json.Marshal(toSerialize) +} + +type NullablePresentationHighlightField struct { + value *PresentationHighlightField + isSet bool +} + +func (v NullablePresentationHighlightField) Get() *PresentationHighlightField { + return v.value +} + +func (v *NullablePresentationHighlightField) Set(val *PresentationHighlightField) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationHighlightField) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationHighlightField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationHighlightField(val *PresentationHighlightField) *NullablePresentationHighlightField { + return &NullablePresentationHighlightField{value: val, isSet: true} +} + +func (v NullablePresentationHighlightField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationHighlightField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_tag_filter.go b/generated/stackstate_api/model_presentation_tag_filter.go new file mode 100644 index 00000000..65fc3d5a --- /dev/null +++ b/generated/stackstate_api/model_presentation_tag_filter.go @@ -0,0 +1,195 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// PresentationTagFilter struct for PresentationTagFilter +type PresentationTagFilter struct { + Type string `json:"_type" yaml:"_type"` + FilterId string `json:"filterId" yaml:"filterId"` + DisplayName PresentationFilterName `json:"displayName" yaml:"displayName"` + // Tag key to use for filtering. + TagKey string `json:"tagKey" yaml:"tagKey"` +} + +// NewPresentationTagFilter instantiates a new PresentationTagFilter object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPresentationTagFilter(type_ string, filterId string, displayName PresentationFilterName, tagKey string) *PresentationTagFilter { + this := PresentationTagFilter{} + this.Type = type_ + this.FilterId = filterId + this.DisplayName = displayName + this.TagKey = tagKey + return &this +} + +// NewPresentationTagFilterWithDefaults instantiates a new PresentationTagFilter object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPresentationTagFilterWithDefaults() *PresentationTagFilter { + this := PresentationTagFilter{} + return &this +} + +// GetType returns the Type field value +func (o *PresentationTagFilter) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PresentationTagFilter) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PresentationTagFilter) SetType(v string) { + o.Type = v +} + +// GetFilterId returns the FilterId field value +func (o *PresentationTagFilter) GetFilterId() string { + if o == nil { + var ret string + return ret + } + + return o.FilterId +} + +// GetFilterIdOk returns a tuple with the FilterId field value +// and a boolean to check if the value has been set. +func (o *PresentationTagFilter) GetFilterIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FilterId, true +} + +// SetFilterId sets field value +func (o *PresentationTagFilter) SetFilterId(v string) { + o.FilterId = v +} + +// GetDisplayName returns the DisplayName field value +func (o *PresentationTagFilter) GetDisplayName() PresentationFilterName { + if o == nil { + var ret PresentationFilterName + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *PresentationTagFilter) GetDisplayNameOk() (*PresentationFilterName, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *PresentationTagFilter) SetDisplayName(v PresentationFilterName) { + o.DisplayName = v +} + +// GetTagKey returns the TagKey field value +func (o *PresentationTagFilter) GetTagKey() string { + if o == nil { + var ret string + return ret + } + + return o.TagKey +} + +// GetTagKeyOk returns a tuple with the TagKey field value +// and a boolean to check if the value has been set. +func (o *PresentationTagFilter) GetTagKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TagKey, true +} + +// SetTagKey sets field value +func (o *PresentationTagFilter) SetTagKey(v string) { + o.TagKey = v +} + +func (o PresentationTagFilter) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["filterId"] = o.FilterId + } + if true { + toSerialize["displayName"] = o.DisplayName + } + if true { + toSerialize["tagKey"] = o.TagKey + } + return json.Marshal(toSerialize) +} + +type NullablePresentationTagFilter struct { + value *PresentationTagFilter + isSet bool +} + +func (v NullablePresentationTagFilter) Get() *PresentationTagFilter { + return v.value +} + +func (v *NullablePresentationTagFilter) Set(val *PresentationTagFilter) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationTagFilter) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationTagFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationTagFilter(val *PresentationTagFilter) *NullablePresentationTagFilter { + return &NullablePresentationTagFilter{value: val, isSet: true} +} + +func (v NullablePresentationTagFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationTagFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_promql_display.go b/generated/stackstate_api/model_promql_display.go deleted file mode 100644 index 59c9ec03..00000000 --- a/generated/stackstate_api/model_promql_display.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// PromqlDisplay struct for PromqlDisplay -type PromqlDisplay struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewPromqlDisplay instantiates a new PromqlDisplay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPromqlDisplay(type_ string) *PromqlDisplay { - this := PromqlDisplay{} - this.Type = type_ - return &this -} - -// NewPromqlDisplayWithDefaults instantiates a new PromqlDisplay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPromqlDisplayWithDefaults() *PromqlDisplay { - this := PromqlDisplay{} - return &this -} - -// GetType returns the Type field value -func (o *PromqlDisplay) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *PromqlDisplay) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *PromqlDisplay) SetType(v string) { - o.Type = v -} - -func (o PromqlDisplay) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullablePromqlDisplay struct { - value *PromqlDisplay - isSet bool -} - -func (v NullablePromqlDisplay) Get() *PromqlDisplay { - return v.value -} - -func (v *NullablePromqlDisplay) Set(val *PromqlDisplay) { - v.value = val - v.isSet = true -} - -func (v NullablePromqlDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullablePromqlDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePromqlDisplay(val *PromqlDisplay) *NullablePromqlDisplay { - return &NullablePromqlDisplay{value: val, isSet: true} -} - -func (v NullablePromqlDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePromqlDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_property_source.go b/generated/stackstate_api/model_property_source.go deleted file mode 100644 index 540b4a44..00000000 --- a/generated/stackstate_api/model_property_source.go +++ /dev/null @@ -1,172 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// PropertySource struct for PropertySource -type PropertySource struct { - Type string `json:"_type" yaml:"_type"` - Key string `json:"key" yaml:"key"` - DefaultValue *string `json:"defaultValue,omitempty" yaml:"defaultValue,omitempty"` -} - -// NewPropertySource instantiates a new PropertySource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPropertySource(type_ string, key string) *PropertySource { - this := PropertySource{} - this.Type = type_ - this.Key = key - return &this -} - -// NewPropertySourceWithDefaults instantiates a new PropertySource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPropertySourceWithDefaults() *PropertySource { - this := PropertySource{} - return &this -} - -// GetType returns the Type field value -func (o *PropertySource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *PropertySource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *PropertySource) SetType(v string) { - o.Type = v -} - -// GetKey returns the Key field value -func (o *PropertySource) GetKey() string { - if o == nil { - var ret string - return ret - } - - return o.Key -} - -// GetKeyOk returns a tuple with the Key field value -// and a boolean to check if the value has been set. -func (o *PropertySource) GetKeyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Key, true -} - -// SetKey sets field value -func (o *PropertySource) SetKey(v string) { - o.Key = v -} - -// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. -func (o *PropertySource) GetDefaultValue() string { - if o == nil || o.DefaultValue == nil { - var ret string - return ret - } - return *o.DefaultValue -} - -// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PropertySource) GetDefaultValueOk() (*string, bool) { - if o == nil || o.DefaultValue == nil { - return nil, false - } - return o.DefaultValue, true -} - -// HasDefaultValue returns a boolean if a field has been set. -func (o *PropertySource) HasDefaultValue() bool { - if o != nil && o.DefaultValue != nil { - return true - } - - return false -} - -// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. -func (o *PropertySource) SetDefaultValue(v string) { - o.DefaultValue = &v -} - -func (o PropertySource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - if true { - toSerialize["key"] = o.Key - } - if o.DefaultValue != nil { - toSerialize["defaultValue"] = o.DefaultValue - } - return json.Marshal(toSerialize) -} - -type NullablePropertySource struct { - value *PropertySource - isSet bool -} - -func (v NullablePropertySource) Get() *PropertySource { - return v.value -} - -func (v *NullablePropertySource) Set(val *PropertySource) { - v.value = val - v.isSet = true -} - -func (v NullablePropertySource) IsSet() bool { - return v.isSet -} - -func (v *NullablePropertySource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePropertySource(val *PropertySource) *NullablePropertySource { - return &NullablePropertySource{value: val, isSet: true} -} - -func (v NullablePropertySource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePropertySource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_ratio_display.go b/generated/stackstate_api/model_ratio_display.go deleted file mode 100644 index 6ffaf5dc..00000000 --- a/generated/stackstate_api/model_ratio_display.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// RatioDisplay struct for RatioDisplay -type RatioDisplay struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewRatioDisplay instantiates a new RatioDisplay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRatioDisplay(type_ string) *RatioDisplay { - this := RatioDisplay{} - this.Type = type_ - return &this -} - -// NewRatioDisplayWithDefaults instantiates a new RatioDisplay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRatioDisplayWithDefaults() *RatioDisplay { - this := RatioDisplay{} - return &this -} - -// GetType returns the Type field value -func (o *RatioDisplay) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *RatioDisplay) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *RatioDisplay) SetType(v string) { - o.Type = v -} - -func (o RatioDisplay) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableRatioDisplay struct { - value *RatioDisplay - isSet bool -} - -func (v NullableRatioDisplay) Get() *RatioDisplay { - return v.value -} - -func (v *NullableRatioDisplay) Set(val *RatioDisplay) { - v.value = val - v.isSet = true -} - -func (v NullableRatioDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullableRatioDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRatioDisplay(val *RatioDisplay) *NullableRatioDisplay { - return &NullableRatioDisplay{value: val, isSet: true} -} - -func (v NullableRatioDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRatioDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_ratio_field.go b/generated/stackstate_api/model_ratio_field.go new file mode 100644 index 00000000..b3902b59 --- /dev/null +++ b/generated/stackstate_api/model_ratio_field.go @@ -0,0 +1,295 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// RatioField struct for RatioField +type RatioField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Numerator float32 `json:"numerator" yaml:"numerator"` + Denominator float32 `json:"denominator" yaml:"denominator"` + Status *HealthStateValue `json:"status,omitempty" yaml:"status,omitempty"` +} + +// NewRatioField instantiates a new RatioField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRatioField(fieldId string, title string, type_ string, numerator float32, denominator float32) *RatioField { + this := RatioField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Numerator = numerator + this.Denominator = denominator + return &this +} + +// NewRatioFieldWithDefaults instantiates a new RatioField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRatioFieldWithDefaults() *RatioField { + this := RatioField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *RatioField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *RatioField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *RatioField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *RatioField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *RatioField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *RatioField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RatioField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RatioField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RatioField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RatioField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *RatioField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RatioField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RatioField) SetType(v string) { + o.Type = v +} + +// GetNumerator returns the Numerator field value +func (o *RatioField) GetNumerator() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Numerator +} + +// GetNumeratorOk returns a tuple with the Numerator field value +// and a boolean to check if the value has been set. +func (o *RatioField) GetNumeratorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Numerator, true +} + +// SetNumerator sets field value +func (o *RatioField) SetNumerator(v float32) { + o.Numerator = v +} + +// GetDenominator returns the Denominator field value +func (o *RatioField) GetDenominator() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Denominator +} + +// GetDenominatorOk returns a tuple with the Denominator field value +// and a boolean to check if the value has been set. +func (o *RatioField) GetDenominatorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Denominator, true +} + +// SetDenominator sets field value +func (o *RatioField) SetDenominator(v float32) { + o.Denominator = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RatioField) GetStatus() HealthStateValue { + if o == nil || o.Status == nil { + var ret HealthStateValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RatioField) GetStatusOk() (*HealthStateValue, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RatioField) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given HealthStateValue and assigns it to the Status field. +func (o *RatioField) SetStatus(v HealthStateValue) { + o.Status = &v +} + +func (o RatioField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["numerator"] = o.Numerator + } + if true { + toSerialize["denominator"] = o.Denominator + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableRatioField struct { + value *RatioField + isSet bool +} + +func (v NullableRatioField) Get() *RatioField { + return v.value +} + +func (v *NullableRatioField) Set(val *RatioField) { + v.value = val + v.isSet = true +} + +func (v NullableRatioField) IsSet() bool { + return v.isSet +} + +func (v *NullableRatioField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRatioField(val *RatioField) *NullableRatioField { + return &NullableRatioField{value: val, isSet: true} +} + +func (v NullableRatioField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRatioField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_ratio_field_all_of.go b/generated/stackstate_api/model_ratio_field_all_of.go new file mode 100644 index 00000000..a51522f1 --- /dev/null +++ b/generated/stackstate_api/model_ratio_field_all_of.go @@ -0,0 +1,201 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// RatioFieldAllOf struct for RatioFieldAllOf +type RatioFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Numerator float32 `json:"numerator" yaml:"numerator"` + Denominator float32 `json:"denominator" yaml:"denominator"` + Status *HealthStateValue `json:"status,omitempty" yaml:"status,omitempty"` +} + +// NewRatioFieldAllOf instantiates a new RatioFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRatioFieldAllOf(type_ string, numerator float32, denominator float32) *RatioFieldAllOf { + this := RatioFieldAllOf{} + this.Type = type_ + this.Numerator = numerator + this.Denominator = denominator + return &this +} + +// NewRatioFieldAllOfWithDefaults instantiates a new RatioFieldAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRatioFieldAllOfWithDefaults() *RatioFieldAllOf { + this := RatioFieldAllOf{} + return &this +} + +// GetType returns the Type field value +func (o *RatioFieldAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RatioFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RatioFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetNumerator returns the Numerator field value +func (o *RatioFieldAllOf) GetNumerator() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Numerator +} + +// GetNumeratorOk returns a tuple with the Numerator field value +// and a boolean to check if the value has been set. +func (o *RatioFieldAllOf) GetNumeratorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Numerator, true +} + +// SetNumerator sets field value +func (o *RatioFieldAllOf) SetNumerator(v float32) { + o.Numerator = v +} + +// GetDenominator returns the Denominator field value +func (o *RatioFieldAllOf) GetDenominator() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Denominator +} + +// GetDenominatorOk returns a tuple with the Denominator field value +// and a boolean to check if the value has been set. +func (o *RatioFieldAllOf) GetDenominatorOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Denominator, true +} + +// SetDenominator sets field value +func (o *RatioFieldAllOf) SetDenominator(v float32) { + o.Denominator = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RatioFieldAllOf) GetStatus() HealthStateValue { + if o == nil || o.Status == nil { + var ret HealthStateValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RatioFieldAllOf) GetStatusOk() (*HealthStateValue, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RatioFieldAllOf) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given HealthStateValue and assigns it to the Status field. +func (o *RatioFieldAllOf) SetStatus(v HealthStateValue) { + o.Status = &v +} + +func (o RatioFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["numerator"] = o.Numerator + } + if true { + toSerialize["denominator"] = o.Denominator + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableRatioFieldAllOf struct { + value *RatioFieldAllOf + isSet bool +} + +func (v NullableRatioFieldAllOf) Get() *RatioFieldAllOf { + return v.value +} + +func (v *NullableRatioFieldAllOf) Set(val *RatioFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableRatioFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableRatioFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRatioFieldAllOf(val *RatioFieldAllOf) *NullableRatioFieldAllOf { + return &NullableRatioFieldAllOf{value: val, isSet: true} +} + +func (v NullableRatioFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRatioFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_ratio_projection.go b/generated/stackstate_api/model_ratio_projection.go new file mode 100644 index 00000000..867eca25 --- /dev/null +++ b/generated/stackstate_api/model_ratio_projection.go @@ -0,0 +1,204 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// RatioProjection Helps rendering columns that summarize success rates +type RatioProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a number + Numerator string `json:"numerator" yaml:"numerator"` + // Cel expression that returns a number + Denominator string `json:"denominator" yaml:"denominator"` + // Cel expression that returns a string that represents a valid HealthState + Status *string `json:"status,omitempty" yaml:"status,omitempty"` +} + +// NewRatioProjection instantiates a new RatioProjection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRatioProjection(type_ string, numerator string, denominator string) *RatioProjection { + this := RatioProjection{} + this.Type = type_ + this.Numerator = numerator + this.Denominator = denominator + return &this +} + +// NewRatioProjectionWithDefaults instantiates a new RatioProjection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRatioProjectionWithDefaults() *RatioProjection { + this := RatioProjection{} + return &this +} + +// GetType returns the Type field value +func (o *RatioProjection) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RatioProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RatioProjection) SetType(v string) { + o.Type = v +} + +// GetNumerator returns the Numerator field value +func (o *RatioProjection) GetNumerator() string { + if o == nil { + var ret string + return ret + } + + return o.Numerator +} + +// GetNumeratorOk returns a tuple with the Numerator field value +// and a boolean to check if the value has been set. +func (o *RatioProjection) GetNumeratorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Numerator, true +} + +// SetNumerator sets field value +func (o *RatioProjection) SetNumerator(v string) { + o.Numerator = v +} + +// GetDenominator returns the Denominator field value +func (o *RatioProjection) GetDenominator() string { + if o == nil { + var ret string + return ret + } + + return o.Denominator +} + +// GetDenominatorOk returns a tuple with the Denominator field value +// and a boolean to check if the value has been set. +func (o *RatioProjection) GetDenominatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Denominator, true +} + +// SetDenominator sets field value +func (o *RatioProjection) SetDenominator(v string) { + o.Denominator = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RatioProjection) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RatioProjection) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RatioProjection) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *RatioProjection) SetStatus(v string) { + o.Status = &v +} + +func (o RatioProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["numerator"] = o.Numerator + } + if true { + toSerialize["denominator"] = o.Denominator + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableRatioProjection struct { + value *RatioProjection + isSet bool +} + +func (v NullableRatioProjection) Get() *RatioProjection { + return v.value +} + +func (v *NullableRatioProjection) Set(val *RatioProjection) { + v.value = val + v.isSet = true +} + +func (v NullableRatioProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableRatioProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRatioProjection(val *RatioProjection) *NullableRatioProjection { + return &NullableRatioProjection{value: val, isSet: true} +} + +func (v NullableRatioProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRatioProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_ready_status_display.go b/generated/stackstate_api/model_ready_status_display.go deleted file mode 100644 index fae5ae1a..00000000 --- a/generated/stackstate_api/model_ready_status_display.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// ReadyStatusDisplay struct for ReadyStatusDisplay -type ReadyStatusDisplay struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewReadyStatusDisplay instantiates a new ReadyStatusDisplay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewReadyStatusDisplay(type_ string) *ReadyStatusDisplay { - this := ReadyStatusDisplay{} - this.Type = type_ - return &this -} - -// NewReadyStatusDisplayWithDefaults instantiates a new ReadyStatusDisplay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewReadyStatusDisplayWithDefaults() *ReadyStatusDisplay { - this := ReadyStatusDisplay{} - return &this -} - -// GetType returns the Type field value -func (o *ReadyStatusDisplay) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ReadyStatusDisplay) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ReadyStatusDisplay) SetType(v string) { - o.Type = v -} - -func (o ReadyStatusDisplay) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableReadyStatusDisplay struct { - value *ReadyStatusDisplay - isSet bool -} - -func (v NullableReadyStatusDisplay) Get() *ReadyStatusDisplay { - return v.value -} - -func (v *NullableReadyStatusDisplay) Set(val *ReadyStatusDisplay) { - v.value = val - v.isSet = true -} - -func (v NullableReadyStatusDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullableReadyStatusDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReadyStatusDisplay(val *ReadyStatusDisplay) *NullableReadyStatusDisplay { - return &NullableReadyStatusDisplay{value: val, isSet: true} -} - -func (v NullableReadyStatusDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableReadyStatusDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_ready_status_projection.go b/generated/stackstate_api/model_ready_status_projection.go deleted file mode 100644 index 2468be16..00000000 --- a/generated/stackstate_api/model_ready_status_projection.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// ReadyStatusProjection Helps rendering columns as Ready containers for K8s pods or Completions for K8s jobs -type ReadyStatusProjection struct { - Type string `json:"_type" yaml:"_type"` - // Cel expression that returns a number - ReadyNumber string `json:"readyNumber" yaml:"readyNumber"` - // Cel expression that returns a number - TotalNumber string `json:"totalNumber" yaml:"totalNumber"` - // Cel expression that returns a string that represents a valid HealthState - ReadyStatus *string `json:"readyStatus,omitempty" yaml:"readyStatus,omitempty"` -} - -// NewReadyStatusProjection instantiates a new ReadyStatusProjection object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewReadyStatusProjection(type_ string, readyNumber string, totalNumber string) *ReadyStatusProjection { - this := ReadyStatusProjection{} - this.Type = type_ - this.ReadyNumber = readyNumber - this.TotalNumber = totalNumber - return &this -} - -// NewReadyStatusProjectionWithDefaults instantiates a new ReadyStatusProjection object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewReadyStatusProjectionWithDefaults() *ReadyStatusProjection { - this := ReadyStatusProjection{} - return &this -} - -// GetType returns the Type field value -func (o *ReadyStatusProjection) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ReadyStatusProjection) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ReadyStatusProjection) SetType(v string) { - o.Type = v -} - -// GetReadyNumber returns the ReadyNumber field value -func (o *ReadyStatusProjection) GetReadyNumber() string { - if o == nil { - var ret string - return ret - } - - return o.ReadyNumber -} - -// GetReadyNumberOk returns a tuple with the ReadyNumber field value -// and a boolean to check if the value has been set. -func (o *ReadyStatusProjection) GetReadyNumberOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ReadyNumber, true -} - -// SetReadyNumber sets field value -func (o *ReadyStatusProjection) SetReadyNumber(v string) { - o.ReadyNumber = v -} - -// GetTotalNumber returns the TotalNumber field value -func (o *ReadyStatusProjection) GetTotalNumber() string { - if o == nil { - var ret string - return ret - } - - return o.TotalNumber -} - -// GetTotalNumberOk returns a tuple with the TotalNumber field value -// and a boolean to check if the value has been set. -func (o *ReadyStatusProjection) GetTotalNumberOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TotalNumber, true -} - -// SetTotalNumber sets field value -func (o *ReadyStatusProjection) SetTotalNumber(v string) { - o.TotalNumber = v -} - -// GetReadyStatus returns the ReadyStatus field value if set, zero value otherwise. -func (o *ReadyStatusProjection) GetReadyStatus() string { - if o == nil || o.ReadyStatus == nil { - var ret string - return ret - } - return *o.ReadyStatus -} - -// GetReadyStatusOk returns a tuple with the ReadyStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ReadyStatusProjection) GetReadyStatusOk() (*string, bool) { - if o == nil || o.ReadyStatus == nil { - return nil, false - } - return o.ReadyStatus, true -} - -// HasReadyStatus returns a boolean if a field has been set. -func (o *ReadyStatusProjection) HasReadyStatus() bool { - if o != nil && o.ReadyStatus != nil { - return true - } - - return false -} - -// SetReadyStatus gets a reference to the given string and assigns it to the ReadyStatus field. -func (o *ReadyStatusProjection) SetReadyStatus(v string) { - o.ReadyStatus = &v -} - -func (o ReadyStatusProjection) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - if true { - toSerialize["readyNumber"] = o.ReadyNumber - } - if true { - toSerialize["totalNumber"] = o.TotalNumber - } - if o.ReadyStatus != nil { - toSerialize["readyStatus"] = o.ReadyStatus - } - return json.Marshal(toSerialize) -} - -type NullableReadyStatusProjection struct { - value *ReadyStatusProjection - isSet bool -} - -func (v NullableReadyStatusProjection) Get() *ReadyStatusProjection { - return v.value -} - -func (v *NullableReadyStatusProjection) Set(val *ReadyStatusProjection) { - v.value = val - v.isSet = true -} - -func (v NullableReadyStatusProjection) IsSet() bool { - return v.isSet -} - -func (v *NullableReadyStatusProjection) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReadyStatusProjection(val *ReadyStatusProjection) *NullableReadyStatusProjection { - return &NullableReadyStatusProjection{value: val, isSet: true} -} - -func (v NullableReadyStatusProjection) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableReadyStatusProjection) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_tag_display.go b/generated/stackstate_api/model_tag_display.go deleted file mode 100644 index 0ee8db85..00000000 --- a/generated/stackstate_api/model_tag_display.go +++ /dev/null @@ -1,143 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// TagDisplay struct for TagDisplay -type TagDisplay struct { - Type string `json:"_type" yaml:"_type"` - Singular *string `json:"singular,omitempty" yaml:"singular,omitempty"` -} - -// NewTagDisplay instantiates a new TagDisplay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTagDisplay(type_ string) *TagDisplay { - this := TagDisplay{} - this.Type = type_ - return &this -} - -// NewTagDisplayWithDefaults instantiates a new TagDisplay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTagDisplayWithDefaults() *TagDisplay { - this := TagDisplay{} - return &this -} - -// GetType returns the Type field value -func (o *TagDisplay) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TagDisplay) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TagDisplay) SetType(v string) { - o.Type = v -} - -// GetSingular returns the Singular field value if set, zero value otherwise. -func (o *TagDisplay) GetSingular() string { - if o == nil || o.Singular == nil { - var ret string - return ret - } - return *o.Singular -} - -// GetSingularOk returns a tuple with the Singular field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TagDisplay) GetSingularOk() (*string, bool) { - if o == nil || o.Singular == nil { - return nil, false - } - return o.Singular, true -} - -// HasSingular returns a boolean if a field has been set. -func (o *TagDisplay) HasSingular() bool { - if o != nil && o.Singular != nil { - return true - } - - return false -} - -// SetSingular gets a reference to the given string and assigns it to the Singular field. -func (o *TagDisplay) SetSingular(v string) { - o.Singular = &v -} - -func (o TagDisplay) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - if o.Singular != nil { - toSerialize["singular"] = o.Singular - } - return json.Marshal(toSerialize) -} - -type NullableTagDisplay struct { - value *TagDisplay - isSet bool -} - -func (v NullableTagDisplay) Get() *TagDisplay { - return v.value -} - -func (v *NullableTagDisplay) Set(val *TagDisplay) { - v.value = val - v.isSet = true -} - -func (v NullableTagDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullableTagDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTagDisplay(val *TagDisplay) *NullableTagDisplay { - return &NullableTagDisplay{value: val, isSet: true} -} - -func (v NullableTagDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTagDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_tag_source.go b/generated/stackstate_api/model_tag_filter.go similarity index 57% rename from generated/stackstate_api/model_tag_source.go rename to generated/stackstate_api/model_tag_filter.go index 6a2606bc..186d70d5 100644 --- a/generated/stackstate_api/model_tag_source.go +++ b/generated/stackstate_api/model_tag_filter.go @@ -15,33 +15,34 @@ import ( "encoding/json" ) -// TagSource struct for TagSource -type TagSource struct { - Type string `json:"_type" yaml:"_type"` - TagName string `json:"tagName" yaml:"tagName"` +// TagFilter Tag-based filter. Uses indexed tags via `tagKey`. +type TagFilter struct { + Type string `json:"_type" yaml:"_type"` + // Tag key used for filtering and value lookup. + TagKey string `json:"tagKey" yaml:"tagKey"` } -// NewTagSource instantiates a new TagSource object +// NewTagFilter instantiates a new TagFilter object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTagSource(type_ string, tagName string) *TagSource { - this := TagSource{} +func NewTagFilter(type_ string, tagKey string) *TagFilter { + this := TagFilter{} this.Type = type_ - this.TagName = tagName + this.TagKey = tagKey return &this } -// NewTagSourceWithDefaults instantiates a new TagSource object +// NewTagFilterWithDefaults instantiates a new TagFilter object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewTagSourceWithDefaults() *TagSource { - this := TagSource{} +func NewTagFilterWithDefaults() *TagFilter { + this := TagFilter{} return &this } // GetType returns the Type field value -func (o *TagSource) GetType() string { +func (o *TagFilter) GetType() string { if o == nil { var ret string return ret @@ -52,7 +53,7 @@ func (o *TagSource) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *TagSource) GetTypeOk() (*string, bool) { +func (o *TagFilter) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -60,77 +61,77 @@ func (o *TagSource) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *TagSource) SetType(v string) { +func (o *TagFilter) SetType(v string) { o.Type = v } -// GetTagName returns the TagName field value -func (o *TagSource) GetTagName() string { +// GetTagKey returns the TagKey field value +func (o *TagFilter) GetTagKey() string { if o == nil { var ret string return ret } - return o.TagName + return o.TagKey } -// GetTagNameOk returns a tuple with the TagName field value +// GetTagKeyOk returns a tuple with the TagKey field value // and a boolean to check if the value has been set. -func (o *TagSource) GetTagNameOk() (*string, bool) { +func (o *TagFilter) GetTagKeyOk() (*string, bool) { if o == nil { return nil, false } - return &o.TagName, true + return &o.TagKey, true } -// SetTagName sets field value -func (o *TagSource) SetTagName(v string) { - o.TagName = v +// SetTagKey sets field value +func (o *TagFilter) SetTagKey(v string) { + o.TagKey = v } -func (o TagSource) MarshalJSON() ([]byte, error) { +func (o TagFilter) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["_type"] = o.Type } if true { - toSerialize["tagName"] = o.TagName + toSerialize["tagKey"] = o.TagKey } return json.Marshal(toSerialize) } -type NullableTagSource struct { - value *TagSource +type NullableTagFilter struct { + value *TagFilter isSet bool } -func (v NullableTagSource) Get() *TagSource { +func (v NullableTagFilter) Get() *TagFilter { return v.value } -func (v *NullableTagSource) Set(val *TagSource) { +func (v *NullableTagFilter) Set(val *TagFilter) { v.value = val v.isSet = true } -func (v NullableTagSource) IsSet() bool { +func (v NullableTagFilter) IsSet() bool { return v.isSet } -func (v *NullableTagSource) Unset() { +func (v *NullableTagFilter) Unset() { v.value = nil v.isSet = false } -func NewNullableTagSource(val *TagSource) *NullableTagSource { - return &NullableTagSource{value: val, isSet: true} +func NewNullableTagFilter(val *TagFilter) *NullableTagFilter { + return &NullableTagFilter{value: val, isSet: true} } -func (v NullableTagSource) MarshalJSON() ([]byte, error) { +func (v NullableTagFilter) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableTagSource) UnmarshalJSON(src []byte) error { +func (v *NullableTagFilter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_tags_source.go b/generated/stackstate_api/model_tags_source.go deleted file mode 100644 index 161fb967..00000000 --- a/generated/stackstate_api/model_tags_source.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// TagsSource struct for TagsSource -type TagsSource struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewTagsSource instantiates a new TagsSource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTagsSource(type_ string) *TagsSource { - this := TagsSource{} - this.Type = type_ - return &this -} - -// NewTagsSourceWithDefaults instantiates a new TagsSource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTagsSourceWithDefaults() *TagsSource { - this := TagsSource{} - return &this -} - -// GetType returns the Type field value -func (o *TagsSource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TagsSource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TagsSource) SetType(v string) { - o.Type = v -} - -func (o TagsSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableTagsSource struct { - value *TagsSource - isSet bool -} - -func (v NullableTagsSource) Get() *TagsSource { - return v.value -} - -func (v *NullableTagsSource) Set(val *TagsSource) { - v.value = val - v.isSet = true -} - -func (v NullableTagsSource) IsSet() bool { - return v.isSet -} - -func (v *NullableTagsSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTagsSource(val *TagsSource) *NullableTagsSource { - return &NullableTagsSource{value: val, isSet: true} -} - -func (v NullableTagsSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTagsSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_text_display.go b/generated/stackstate_api/model_text_display.go deleted file mode 100644 index bc7890d3..00000000 --- a/generated/stackstate_api/model_text_display.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// TextDisplay struct for TextDisplay -type TextDisplay struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewTextDisplay instantiates a new TextDisplay object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTextDisplay(type_ string) *TextDisplay { - this := TextDisplay{} - this.Type = type_ - return &this -} - -// NewTextDisplayWithDefaults instantiates a new TextDisplay object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTextDisplayWithDefaults() *TextDisplay { - this := TextDisplay{} - return &this -} - -// GetType returns the Type field value -func (o *TextDisplay) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TextDisplay) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TextDisplay) SetType(v string) { - o.Type = v -} - -func (o TextDisplay) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableTextDisplay struct { - value *TextDisplay - isSet bool -} - -func (v NullableTextDisplay) Get() *TextDisplay { - return v.value -} - -func (v *NullableTextDisplay) Set(val *TextDisplay) { - v.value = val - v.isSet = true -} - -func (v NullableTextDisplay) IsSet() bool { - return v.isSet -} - -func (v *NullableTextDisplay) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTextDisplay(val *TextDisplay) *NullableTextDisplay { - return &NullableTextDisplay{value: val, isSet: true} -} - -func (v NullableTextDisplay) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTextDisplay) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_text_field.go b/generated/stackstate_api/model_text_field.go new file mode 100644 index 00000000..6731fe87 --- /dev/null +++ b/generated/stackstate_api/model_text_field.go @@ -0,0 +1,261 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// TextField struct for TextField +type TextField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Value string `json:"value" yaml:"value"` + AsTag bool `json:"asTag" yaml:"asTag"` +} + +// NewTextField instantiates a new TextField object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTextField(fieldId string, title string, type_ string, value string, asTag bool) *TextField { + this := TextField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Value = value + this.AsTag = asTag + return &this +} + +// NewTextFieldWithDefaults instantiates a new TextField object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTextFieldWithDefaults() *TextField { + this := TextField{} + var asTag bool = false + this.AsTag = asTag + return &this +} + +// GetFieldId returns the FieldId field value +func (o *TextField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *TextField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *TextField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *TextField) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *TextField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *TextField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *TextField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TextField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *TextField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *TextField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *TextField) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *TextField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TextField) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *TextField) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *TextField) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *TextField) SetValue(v string) { + o.Value = v +} + +// GetAsTag returns the AsTag field value +func (o *TextField) GetAsTag() bool { + if o == nil { + var ret bool + return ret + } + + return o.AsTag +} + +// GetAsTagOk returns a tuple with the AsTag field value +// and a boolean to check if the value has been set. +func (o *TextField) GetAsTagOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AsTag, true +} + +// SetAsTag sets field value +func (o *TextField) SetAsTag(v bool) { + o.AsTag = v +} + +func (o TextField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + if true { + toSerialize["asTag"] = o.AsTag + } + return json.Marshal(toSerialize) +} + +type NullableTextField struct { + value *TextField + isSet bool +} + +func (v NullableTextField) Get() *TextField { + return v.value +} + +func (v *NullableTextField) Set(val *TextField) { + v.value = val + v.isSet = true +} + +func (v NullableTextField) IsSet() bool { + return v.isSet +} + +func (v *NullableTextField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTextField(val *TextField) *NullableTextField { + return &NullableTextField{value: val, isSet: true} +} + +func (v NullableTextField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTextField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_text_field_all_of.go b/generated/stackstate_api/model_text_field_all_of.go new file mode 100644 index 00000000..685cdcbd --- /dev/null +++ b/generated/stackstate_api/model_text_field_all_of.go @@ -0,0 +1,167 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// TextFieldAllOf struct for TextFieldAllOf +type TextFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Value string `json:"value" yaml:"value"` + AsTag bool `json:"asTag" yaml:"asTag"` +} + +// NewTextFieldAllOf instantiates a new TextFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTextFieldAllOf(type_ string, value string, asTag bool) *TextFieldAllOf { + this := TextFieldAllOf{} + this.Type = type_ + this.Value = value + this.AsTag = asTag + return &this +} + +// NewTextFieldAllOfWithDefaults instantiates a new TextFieldAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTextFieldAllOfWithDefaults() *TextFieldAllOf { + this := TextFieldAllOf{} + var asTag bool = false + this.AsTag = asTag + return &this +} + +// GetType returns the Type field value +func (o *TextFieldAllOf) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *TextFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TextFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *TextFieldAllOf) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *TextFieldAllOf) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *TextFieldAllOf) SetValue(v string) { + o.Value = v +} + +// GetAsTag returns the AsTag field value +func (o *TextFieldAllOf) GetAsTag() bool { + if o == nil { + var ret bool + return ret + } + + return o.AsTag +} + +// GetAsTagOk returns a tuple with the AsTag field value +// and a boolean to check if the value has been set. +func (o *TextFieldAllOf) GetAsTagOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AsTag, true +} + +// SetAsTag sets field value +func (o *TextFieldAllOf) SetAsTag(v bool) { + o.AsTag = v +} + +func (o TextFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + if true { + toSerialize["asTag"] = o.AsTag + } + return json.Marshal(toSerialize) +} + +type NullableTextFieldAllOf struct { + value *TextFieldAllOf + isSet bool +} + +func (v NullableTextFieldAllOf) Get() *TextFieldAllOf { + return v.value +} + +func (v *NullableTextFieldAllOf) Set(val *TextFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableTextFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableTextFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTextFieldAllOf(val *TextFieldAllOf) *NullableTextFieldAllOf { + return &NullableTextFieldAllOf{value: val, isSet: true} +} + +func (v NullableTextFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTextFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_text_projection.go b/generated/stackstate_api/model_text_projection.go index bc0589e9..ffee835c 100644 --- a/generated/stackstate_api/model_text_projection.go +++ b/generated/stackstate_api/model_text_projection.go @@ -20,6 +20,8 @@ type TextProjection struct { Type string `json:"_type" yaml:"_type"` // Cel expression that returns a string Value string `json:"value" yaml:"value"` + // Should the value be rendered as a tag or as plain text + AsTag *bool `json:"asTag,omitempty" yaml:"asTag,omitempty"` } // NewTextProjection instantiates a new TextProjection object @@ -30,6 +32,8 @@ func NewTextProjection(type_ string, value string) *TextProjection { this := TextProjection{} this.Type = type_ this.Value = value + var asTag bool = false + this.AsTag = &asTag return &this } @@ -38,6 +42,8 @@ func NewTextProjection(type_ string, value string) *TextProjection { // but it doesn't guarantee that properties required by API are set func NewTextProjectionWithDefaults() *TextProjection { this := TextProjection{} + var asTag bool = false + this.AsTag = &asTag return &this } @@ -89,6 +95,38 @@ func (o *TextProjection) SetValue(v string) { o.Value = v } +// GetAsTag returns the AsTag field value if set, zero value otherwise. +func (o *TextProjection) GetAsTag() bool { + if o == nil || o.AsTag == nil { + var ret bool + return ret + } + return *o.AsTag +} + +// GetAsTagOk returns a tuple with the AsTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TextProjection) GetAsTagOk() (*bool, bool) { + if o == nil || o.AsTag == nil { + return nil, false + } + return o.AsTag, true +} + +// HasAsTag returns a boolean if a field has been set. +func (o *TextProjection) HasAsTag() bool { + if o != nil && o.AsTag != nil { + return true + } + + return false +} + +// SetAsTag gets a reference to the given bool and assigns it to the AsTag field. +func (o *TextProjection) SetAsTag(v bool) { + o.AsTag = &v +} + func (o TextProjection) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -97,6 +135,9 @@ func (o TextProjection) MarshalJSON() ([]byte, error) { if true { toSerialize["value"] = o.Value } + if o.AsTag != nil { + toSerialize["asTag"] = o.AsTag + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_view_time_link.go b/generated/stackstate_api/model_view_time_link.go deleted file mode 100644 index 8adbf5d2..00000000 --- a/generated/stackstate_api/model_view_time_link.go +++ /dev/null @@ -1,107 +0,0 @@ -/* -StackState API - -This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). - -API version: 5.2.0 -Contact: info@stackstate.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackstate_api - -import ( - "encoding/json" -) - -// ViewTimeLink struct for ViewTimeLink -type ViewTimeLink struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewViewTimeLink instantiates a new ViewTimeLink object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewViewTimeLink(type_ string) *ViewTimeLink { - this := ViewTimeLink{} - this.Type = type_ - return &this -} - -// NewViewTimeLinkWithDefaults instantiates a new ViewTimeLink object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewViewTimeLinkWithDefaults() *ViewTimeLink { - this := ViewTimeLink{} - return &this -} - -// GetType returns the Type field value -func (o *ViewTimeLink) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ViewTimeLink) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ViewTimeLink) SetType(v string) { - o.Type = v -} - -func (o ViewTimeLink) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableViewTimeLink struct { - value *ViewTimeLink - isSet bool -} - -func (v NullableViewTimeLink) Get() *ViewTimeLink { - return v.value -} - -func (v *NullableViewTimeLink) Set(val *ViewTimeLink) { - v.value = val - v.isSet = true -} - -func (v NullableViewTimeLink) IsSet() bool { - return v.isSet -} - -func (v *NullableViewTimeLink) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableViewTimeLink(val *ViewTimeLink) *NullableViewTimeLink { - return &NullableViewTimeLink{value: val, isSet: true} -} - -func (v NullableViewTimeLink) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableViewTimeLink) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/stackstate_openapi/openapi_version b/stackstate_openapi/openapi_version index f5d1582a..98eb6225 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -34752223ae055d8fe418847be9482643a4636bc7 +f117f3cb7aa544be5aa4c96551f4b9c8f6e6d86f From 92a638cf3f86ec89665927d22d94e2a5dfd418d5 Mon Sep 17 00:00:00 2001 From: Deon Taljaard Date: Tue, 31 Mar 2026 16:51:38 +0200 Subject: [PATCH 2/2] STAC-24282: bump openapi version --- generated/stackstate_api/api/openapi.yaml | 129 +++++------------- .../docs/OtelComponentMappingFieldMapping.md | 6 +- .../docs/OtelComponentMappingOutput.md | 16 +-- .../docs/OtelRelationMappingOutput.md | 8 +- .../stackstate_api/docs/OtelTagMapping.md | 2 +- .../docs/OtelVariableMapping.md | 2 +- ...el_otel_component_mapping_field_mapping.go | 6 +- .../model_otel_component_mapping_output.go | 16 +-- .../model_otel_relation_mapping_output.go | 8 +- .../stackstate_api/model_otel_tag_mapping.go | 2 +- .../model_otel_variable_mapping.go | 2 +- stackstate_openapi/openapi_version | 2 +- 12 files changed, 69 insertions(+), 130 deletions(-) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index 3a62f572..597d0613 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -16590,74 +16590,42 @@ components: identifier: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string name: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string typeName: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string typeIdentifier: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string layerName: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string layerIdentifier: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string domainName: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string domainIdentifier: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string required: $ref: '#/components/schemas/OtelComponentMappingFieldMapping' @@ -16673,11 +16641,7 @@ components: OtelStringExpression: description: "An expression that must produce a string. It must be one of these\ \ formats:\n - A plain string, for example `\"this is a plain string\"`\n\ - \ - A string containing a CEL expression within curly braces `${}`, for example\ - \ \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is within\ - \ a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + \ - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string OtelComponentMappingFieldMapping: example: @@ -16702,30 +16666,24 @@ components: version: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string tags: items: $ref: '#/components/schemas/OtelTagMapping' type: array configuration: - description: "An expression that can produce any type. It uses the CEL expression\ - \ within curly braces `${}` syntax.\nVariables use it to store any type\ - \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ - \ assign \nit the expression `\"${resource.attributes['service.namespace']\ - \ == 'test'}\"`. The variable can now be used directly in the conditions\ + description: "An expression that can produce any type. \nVariables use it\ + \ to store any type of value. For example, to store a boolean in a variable\ + \ named `inTestNamespace` assign\nit the expression `resource.attributes['service.namespace']\ + \ == 'test'`. The variable can now be used directly in the conditions\ \ like this: `vars.inTestNamespace`." type: string status: - description: "An expression that can produce any type. It uses the CEL expression\ - \ within curly braces `${}` syntax.\nVariables use it to store any type\ - \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ - \ assign \nit the expression `\"${resource.attributes['service.namespace']\ - \ == 'test'}\"`. The variable can now be used directly in the conditions\ + description: "An expression that can produce any type. \nVariables use it\ + \ to store any type of value. For example, to store a boolean in a variable\ + \ named `inTestNamespace` assign\nit the expression `resource.attributes['service.namespace']\ + \ == 'test'`. The variable can now be used directly in the conditions\ \ like this: `vars.inTestNamespace`." type: string type: object @@ -16738,11 +16696,10 @@ components: target: target properties: source: - description: "An expression that can produce any type. It uses the CEL expression\ - \ within curly braces `${}` syntax.\nVariables use it to store any type\ - \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ - \ assign \nit the expression `\"${resource.attributes['service.namespace']\ - \ == 'test'}\"`. The variable can now be used directly in the conditions\ + description: "An expression that can produce any type. \nVariables use it\ + \ to store any type of value. For example, to store a boolean in a variable\ + \ named `inTestNamespace` assign\nit the expression `resource.attributes['service.namespace']\ + \ == 'test'`. The variable can now be used directly in the conditions\ \ like this: `vars.inTestNamespace`." type: string target: @@ -16757,11 +16714,10 @@ components: - target type: object OtelAnyExpression: - description: "An expression that can produce any type. It uses the CEL expression\ - \ within curly braces `${}` syntax.\nVariables use it to store any type of\ - \ value. For example, to store a boolean in a variable named `inTestNamespace`\ - \ assign \nit the expression `\"${resource.attributes['service.namespace']\ - \ == 'test'}\"`. The variable can now be used directly in the conditions like\ + description: "An expression that can produce any type. \nVariables use it to\ + \ store any type of value. For example, to store a boolean in a variable named\ + \ `inTestNamespace` assign\nit the expression `resource.attributes['service.namespace']\ + \ == 'test'`. The variable can now be used directly in the conditions like\ \ this: `vars.inTestNamespace`." type: string OtelVariableMapping: @@ -16772,11 +16728,10 @@ components: name: type: string value: - description: "An expression that can produce any type. It uses the CEL expression\ - \ within curly braces `${}` syntax.\nVariables use it to store any type\ - \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ - \ assign \nit the expression `\"${resource.attributes['service.namespace']\ - \ == 'test'}\"`. The variable can now be used directly in the conditions\ + description: "An expression that can produce any type. \nVariables use it\ + \ to store any type of value. For example, to store a boolean in a variable\ + \ named `inTestNamespace` assign\nit the expression `resource.attributes['service.namespace']\ + \ == 'test'`. The variable can now be used directly in the conditions\ \ like this: `vars.inTestNamespace`." type: string required: @@ -16985,38 +16940,22 @@ components: sourceId: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string targetId: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string typeName: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string typeIdentifier: description: "An expression that must produce a string. It must be one of\ \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string required: - sourceId diff --git a/generated/stackstate_api/docs/OtelComponentMappingFieldMapping.md b/generated/stackstate_api/docs/OtelComponentMappingFieldMapping.md index 96d7d4a6..e74a02f3 100644 --- a/generated/stackstate_api/docs/OtelComponentMappingFieldMapping.md +++ b/generated/stackstate_api/docs/OtelComponentMappingFieldMapping.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AdditionalIdentifiers** | Pointer to **[]string** | | [optional] -**Version** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | [optional] +**Version** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | [optional] **Tags** | Pointer to [**[]OtelTagMapping**](OtelTagMapping.md) | | [optional] -**Configuration** | Pointer to **string** | An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | [optional] -**Status** | Pointer to **string** | An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | [optional] +**Configuration** | Pointer to **string** | An expression that can produce any type. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `resource.attributes['service.namespace'] == 'test'`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | [optional] +**Status** | Pointer to **string** | An expression that can produce any type. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `resource.attributes['service.namespace'] == 'test'`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | [optional] ## Methods diff --git a/generated/stackstate_api/docs/OtelComponentMappingOutput.md b/generated/stackstate_api/docs/OtelComponentMappingOutput.md index 097b4795..6679db2c 100644 --- a/generated/stackstate_api/docs/OtelComponentMappingOutput.md +++ b/generated/stackstate_api/docs/OtelComponentMappingOutput.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Identifier** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | -**Name** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | -**TypeName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | -**TypeIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | [optional] -**LayerName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | -**LayerIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | [optional] -**DomainName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | -**DomainIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | [optional] +**Identifier** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**Name** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**TypeName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**TypeIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | [optional] +**LayerName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**LayerIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | [optional] +**DomainName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**DomainIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | [optional] **Required** | Pointer to [**OtelComponentMappingFieldMapping**](OtelComponentMappingFieldMapping.md) | | [optional] **Optional** | Pointer to [**OtelComponentMappingFieldMapping**](OtelComponentMappingFieldMapping.md) | | [optional] diff --git a/generated/stackstate_api/docs/OtelRelationMappingOutput.md b/generated/stackstate_api/docs/OtelRelationMappingOutput.md index c22e52cc..44a47c56 100644 --- a/generated/stackstate_api/docs/OtelRelationMappingOutput.md +++ b/generated/stackstate_api/docs/OtelRelationMappingOutput.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SourceId** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | -**TargetId** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | -**TypeName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | -**TypeIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. | [optional] +**SourceId** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**TargetId** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**TypeName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | +**TypeIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | [optional] ## Methods diff --git a/generated/stackstate_api/docs/OtelTagMapping.md b/generated/stackstate_api/docs/OtelTagMapping.md index 7d6c428a..16910e14 100644 --- a/generated/stackstate_api/docs/OtelTagMapping.md +++ b/generated/stackstate_api/docs/OtelTagMapping.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Source** | **string** | An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | +**Source** | **string** | An expression that can produce any type. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `resource.attributes['service.namespace'] == 'test'`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | **Target** | **string** | Name of the target tag key to which the value should be mapped. | **Pattern** | Pointer to **string** | Optional regex pattern applied to the source value. Capturing groups can be referenced in the target (e.g., ${1}). | [optional] diff --git a/generated/stackstate_api/docs/OtelVariableMapping.md b/generated/stackstate_api/docs/OtelVariableMapping.md index 22e5ee17..27055f55 100644 --- a/generated/stackstate_api/docs/OtelVariableMapping.md +++ b/generated/stackstate_api/docs/OtelVariableMapping.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Value** | **string** | An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | +**Value** | **string** | An expression that can produce any type. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `resource.attributes['service.namespace'] == 'test'`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. | ## Methods diff --git a/generated/stackstate_api/model_otel_component_mapping_field_mapping.go b/generated/stackstate_api/model_otel_component_mapping_field_mapping.go index 7580f9d8..d9f13456 100644 --- a/generated/stackstate_api/model_otel_component_mapping_field_mapping.go +++ b/generated/stackstate_api/model_otel_component_mapping_field_mapping.go @@ -18,12 +18,12 @@ import ( // OtelComponentMappingFieldMapping struct for OtelComponentMappingFieldMapping type OtelComponentMappingFieldMapping struct { AdditionalIdentifiers []string `json:"additionalIdentifiers,omitempty" yaml:"additionalIdentifiers,omitempty"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` Version *string `json:"version,omitempty" yaml:"version,omitempty"` Tags []OtelTagMapping `json:"tags,omitempty" yaml:"tags,omitempty"` - // An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. + // An expression that can produce any type. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `resource.attributes['service.namespace'] == 'test'`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. Configuration *string `json:"configuration,omitempty" yaml:"configuration,omitempty"` - // An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. + // An expression that can produce any type. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `resource.attributes['service.namespace'] == 'test'`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. Status *string `json:"status,omitempty" yaml:"status,omitempty"` } diff --git a/generated/stackstate_api/model_otel_component_mapping_output.go b/generated/stackstate_api/model_otel_component_mapping_output.go index d3907bb7..033d5cc6 100644 --- a/generated/stackstate_api/model_otel_component_mapping_output.go +++ b/generated/stackstate_api/model_otel_component_mapping_output.go @@ -17,21 +17,21 @@ import ( // OtelComponentMappingOutput struct for OtelComponentMappingOutput type OtelComponentMappingOutput struct { - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` Identifier string `json:"identifier" yaml:"identifier"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` Name string `json:"name" yaml:"name"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` TypeName string `json:"typeName" yaml:"typeName"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` TypeIdentifier *string `json:"typeIdentifier,omitempty" yaml:"typeIdentifier,omitempty"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` LayerName string `json:"layerName" yaml:"layerName"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` LayerIdentifier *string `json:"layerIdentifier,omitempty" yaml:"layerIdentifier,omitempty"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` DomainName string `json:"domainName" yaml:"domainName"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` DomainIdentifier *string `json:"domainIdentifier,omitempty" yaml:"domainIdentifier,omitempty"` Required *OtelComponentMappingFieldMapping `json:"required,omitempty" yaml:"required,omitempty"` Optional *OtelComponentMappingFieldMapping `json:"optional,omitempty" yaml:"optional,omitempty"` diff --git a/generated/stackstate_api/model_otel_relation_mapping_output.go b/generated/stackstate_api/model_otel_relation_mapping_output.go index 37c47873..f0a0754d 100644 --- a/generated/stackstate_api/model_otel_relation_mapping_output.go +++ b/generated/stackstate_api/model_otel_relation_mapping_output.go @@ -17,13 +17,13 @@ import ( // OtelRelationMappingOutput struct for OtelRelationMappingOutput type OtelRelationMappingOutput struct { - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` SourceId string `json:"sourceId" yaml:"sourceId"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` TargetId string `json:"targetId" yaml:"targetId"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` TypeName string `json:"typeName" yaml:"typeName"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A string containing a CEL expression within curly braces `${}`, for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"` A string with only a cel expression is also valid as long as it is within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"`. + // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` TypeIdentifier *string `json:"typeIdentifier,omitempty" yaml:"typeIdentifier,omitempty"` } diff --git a/generated/stackstate_api/model_otel_tag_mapping.go b/generated/stackstate_api/model_otel_tag_mapping.go index 6b114a04..db03d289 100644 --- a/generated/stackstate_api/model_otel_tag_mapping.go +++ b/generated/stackstate_api/model_otel_tag_mapping.go @@ -17,7 +17,7 @@ import ( // OtelTagMapping Defines how a tag should be mapped from an input source to an output target, optionally using a regex pattern. type OtelTagMapping struct { - // An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. + // An expression that can produce any type. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `resource.attributes['service.namespace'] == 'test'`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. Source string `json:"source" yaml:"source"` // Name of the target tag key to which the value should be mapped. Target string `json:"target" yaml:"target"` diff --git a/generated/stackstate_api/model_otel_variable_mapping.go b/generated/stackstate_api/model_otel_variable_mapping.go index 5dcf5616..b338ac77 100644 --- a/generated/stackstate_api/model_otel_variable_mapping.go +++ b/generated/stackstate_api/model_otel_variable_mapping.go @@ -18,7 +18,7 @@ import ( // OtelVariableMapping struct for OtelVariableMapping type OtelVariableMapping struct { Name string `json:"name" yaml:"name"` - // An expression that can produce any type. It uses the CEL expression within curly braces `${}` syntax. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `\"${resource.attributes['service.namespace'] == 'test'}\"`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. + // An expression that can produce any type. Variables use it to store any type of value. For example, to store a boolean in a variable named `inTestNamespace` assign it the expression `resource.attributes['service.namespace'] == 'test'`. The variable can now be used directly in the conditions like this: `vars.inTestNamespace`. Value string `json:"value" yaml:"value"` } diff --git a/stackstate_openapi/openapi_version b/stackstate_openapi/openapi_version index 98eb6225..cfda5e65 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -f117f3cb7aa544be5aa4c96551f4b9c8f6e6d86f +0010b2f10e6eb76a3c70ac41db3d9130d10ca180