diff --git a/generated/stackstate_api/.openapi-generator/FILES b/generated/stackstate_api/.openapi-generator/FILES index ca6f0818..ac302c63 100644 --- a/generated/stackstate_api/.openapi-generator/FILES +++ b/generated/stackstate_api/.openapi-generator/FILES @@ -15,7 +15,6 @@ api_export.go api_health_synchronization.go api_import.go api_kubernetes_logs.go -api_layout.go api_main_menu.go api_metric.go api_monitor.go @@ -26,6 +25,7 @@ api_notification_configurations.go api_otel_mapping.go api_overview.go api_permissions.go +api_perspectives.go api_problem.go api_relation.go api_scripting.go @@ -43,6 +43,7 @@ api_traces.go api_user_authorization.go api_user_profile.go api_user_session.go +api_view.go client.go configuration.go docs/AgentData.md @@ -73,12 +74,13 @@ docs/ArgumentTimeWindowVal.md docs/ArgumentTopologyPromQLMetricVal.md docs/ArgumentTopologyQueryVal.md docs/BaseComponentField.md -docs/BaseLayoutHint.md docs/BaseMonitorError.md docs/BaseNotificationChannel.md docs/BoundMetric.md +docs/BoundMetricBindingId.md +docs/BoundMetricId.md docs/BoundMetricQuery.md -docs/BoundMetrics.md +docs/BoundPresentationMetricId.md docs/BoundTraces.md docs/CausingEventsAreNotAvailableForTheTime.md docs/CausingEventsResult.md @@ -96,10 +98,6 @@ docs/ComponentEvents.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/ComponentLink.md docs/ComponentLinkCell.md @@ -107,17 +105,20 @@ docs/ComponentLinkField.md docs/ComponentLinkFieldAllOf.md docs/ComponentLinkMetaDisplay.md docs/ComponentLinkProjection.md +docs/ComponentMetricSection.md +docs/ComponentMetricTab.md docs/ComponentOverviewProjection.md docs/ComponentPresentation.md docs/ComponentPresentationApi.md docs/ComponentPresentationApiError.md docs/ComponentPresentationFilter.md docs/ComponentPresentationFilterDefinition.md +docs/ComponentPresentationMetric.md docs/ComponentPresentationQueryBinding.md docs/ComponentPresentationRank.md docs/ComponentProvisioning.md docs/ComponentQuery.md -docs/ComponentSummaryLocation.md +docs/ComponentSummary.md docs/ComponentViewArguments.md docs/ContainerImageProjection.md docs/CreateSubject.md @@ -246,10 +247,6 @@ docs/KubernetesLogHistogramBucket.md docs/KubernetesLogRecord.md docs/KubernetesLogSeverityHistogramBucket.md docs/KubernetesLogsApi.md -docs/LayoutApi.md -docs/LayoutApiError.md -docs/LayoutHint.md -docs/LayoutList.md docs/LegacyComponentHighlights.md docs/LicensedSubscription.md docs/LimitOutOfRange.md @@ -271,20 +268,13 @@ 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/MetricField.md docs/MetricFieldAllOf.md docs/MetricMetaDisplay.md -docs/MetricPerspectiveLocation.md -docs/MetricPerspectiveSection.md -docs/MetricPerspectiveSectionAllOf.md -docs/MetricPerspectiveTab.md -docs/MetricPerspectiveTabAllOf.md +docs/MetricPerspectiveData.md docs/MetricProjection.md -docs/MetricValuation.md docs/Monitor.md docs/MonitorApi.md docs/MonitorApiError.md @@ -372,6 +362,8 @@ docs/OpsgeniePriority.md docs/OpsgenieRegion.md docs/OpsgenieResponder.md docs/OpsgenieResponderType.md +docs/OrderedComponentPresentationMetric.md +docs/OrderedComponentPresentationMetricAllOf.md docs/OtelComponentMapping.md docs/OtelComponentMappingFieldMapping.md docs/OtelComponentMappingOutput.md @@ -448,6 +440,9 @@ docs/PersesTextVariableSpec.md docs/PersesVariableDisplaySpec.md docs/PersesVariableSort.md docs/PersesVariableTypes.md +docs/Perspectives.md +docs/PerspectivesApi.md +docs/PerspectivesApiError.md docs/PresentationDefinition.md docs/PresentationFilter.md docs/PresentationFilterName.md @@ -455,11 +450,19 @@ docs/PresentationFiltersResponse.md docs/PresentationHighlight.md docs/PresentationHighlightEvents.md docs/PresentationHighlightField.md +docs/PresentationHighlightMetricsSection.md docs/PresentationHighlightProvisioning.md docs/PresentationMainMenu.md +docs/PresentationMetricPerspective.md +docs/PresentationMetricPerspectiveSection.md +docs/PresentationMetricPerspectiveTab.md +docs/PresentationMetricQuery.md docs/PresentationName.md docs/PresentationOverview.md +docs/PresentationOverviewSorting.md +docs/PresentationOverviewSortingDirection.md docs/PresentationRelatedResource.md +docs/PresentationSummary.md docs/PresentationTagFilter.md docs/ProblemApi.md docs/ProblemNotFound.md @@ -492,6 +495,7 @@ docs/QueryMetadata.md docs/QueryParsingFailure.md docs/QuerySnapshotResult.md docs/QueryViewArguments.md +docs/QueryViewFlag.md docs/RatioField.md docs/RatioFieldAllOf.md docs/RatioProjection.md @@ -585,10 +589,14 @@ docs/TooManyActiveQueries.md docs/TooManyTopologyResults.md docs/Topic.md docs/TopicApi.md +docs/TopologyDomain.md docs/TopologyEvent.md +docs/TopologyLayer.md docs/TopologyMatchResult.md docs/TopologyOverflowError.md +docs/TopologyPerspective.md docs/TopologyPromQLMetric.md +docs/TopologySettings.md docs/TopologyStreamError.md docs/TopologyStreamList.md docs/TopologyStreamListItem.md @@ -624,7 +632,11 @@ docs/UserProfile.md docs/UserProfileApi.md docs/UserProfileSaveError.md docs/UserSessionApi.md +docs/View.md +docs/ViewApi.md docs/ViewCheckState.md +docs/ViewList.md +docs/ViewNotFoundError.md docs/ViewSnapshotRequest.md docs/WebhookChannelRefId.md docs/WebhookChannelWriteSchema.md @@ -658,12 +670,13 @@ 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 model_bound_metric.go +model_bound_metric_binding_id.go +model_bound_metric_id.go model_bound_metric_query.go -model_bound_metrics.go +model_bound_presentation_metric_id.go model_bound_traces.go model_causing_events_are_not_available_for_the_time.go model_causing_events_result.go @@ -680,10 +693,6 @@ model_component_events.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.go model_component_link_cell.go @@ -691,16 +700,19 @@ 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_metric_section.go +model_component_metric_tab.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_metric.go model_component_presentation_query_binding.go model_component_presentation_rank.go model_component_provisioning.go model_component_query.go -model_component_summary_location.go +model_component_summary.go model_component_view_arguments.go model_container_image_projection.go model_create_subject.go @@ -822,9 +834,6 @@ model_kubernetes_log_highlight.go model_kubernetes_log_histogram_bucket.go model_kubernetes_log_record.go model_kubernetes_log_severity_histogram_bucket.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 @@ -844,20 +853,13 @@ 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_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_perspective_data.go model_metric_projection.go -model_metric_valuation.go model_monitor.go model_monitor_api_error.go model_monitor_api_error_all_of.go @@ -940,6 +942,8 @@ model_opsgenie_priority.go model_opsgenie_region.go model_opsgenie_responder.go model_opsgenie_responder_type.go +model_ordered_component_presentation_metric.go +model_ordered_component_presentation_metric_all_of.go model_otel_component_mapping.go model_otel_component_mapping_field_mapping.go model_otel_component_mapping_output.go @@ -1013,6 +1017,8 @@ model_perses_text_variable_spec.go model_perses_variable_display_spec.go model_perses_variable_sort.go model_perses_variable_types.go +model_perspectives.go +model_perspectives_api_error.go model_presentation_definition.go model_presentation_filter.go model_presentation_filter_name.go @@ -1020,11 +1026,19 @@ model_presentation_filters_response.go model_presentation_highlight.go model_presentation_highlight_events.go model_presentation_highlight_field.go +model_presentation_highlight_metrics_section.go model_presentation_highlight_provisioning.go model_presentation_main_menu.go +model_presentation_metric_perspective.go +model_presentation_metric_perspective_section.go +model_presentation_metric_perspective_tab.go +model_presentation_metric_query.go model_presentation_name.go model_presentation_overview.go +model_presentation_overview_sorting.go +model_presentation_overview_sorting_direction.go model_presentation_related_resource.go +model_presentation_summary.go model_presentation_tag_filter.go model_problem_not_found.go model_prom_batch_envelope.go @@ -1056,6 +1070,7 @@ model_query_metadata.go model_query_parsing_failure.go model_query_snapshot_result.go model_query_view_arguments.go +model_query_view_flag.go model_ratio_field.go model_ratio_field_all_of.go model_ratio_projection.go @@ -1138,10 +1153,14 @@ model_timeline_summary_request_arguments.go model_too_many_active_queries.go model_too_many_topology_results.go model_topic.go +model_topology_domain.go model_topology_event.go +model_topology_layer.go model_topology_match_result.go model_topology_overflow_error.go +model_topology_perspective.go model_topology_prom_ql_metric.go +model_topology_settings.go model_topology_stream_error.go model_topology_stream_list.go model_topology_stream_list_item.go @@ -1172,7 +1191,10 @@ model_user_not_found_error.go model_user_not_logged_in_error.go model_user_profile.go model_user_profile_save_error.go +model_view.go model_view_check_state.go +model_view_list.go +model_view_not_found_error.go model_view_snapshot_request.go model_webhook_channel_ref_id.go model_webhook_channel_write_schema.go diff --git a/generated/stackstate_api/README.md b/generated/stackstate_api/README.md index 4e52fd63..509d270a 100644 --- a/generated/stackstate_api/README.md +++ b/generated/stackstate_api/README.md @@ -90,11 +90,11 @@ Class | Method | HTTP request | Description *AgentLeasesApi* | [**AgentCheckLease**](docs/AgentLeasesApi.md#agentchecklease) | **Post** /agents/{agentId}/checkLease | Check the lease of an agent. *AgentRegistrationsApi* | [**AllAgentRegistrations**](docs/AgentRegistrationsApi.md#allagentregistrations) | **Get** /agents | Overview of registered agents *ApiTokenApi* | [**GetCurrentUserApiTokens**](docs/ApiTokenApi.md#getcurrentuserapitokens) | **Get** /user/profile/tokens | Get current user's API tokens +*ComponentApi* | [**GetComponentBoundMetric**](docs/ComponentApi.md#getcomponentboundmetric) | **Post** /components/{componentIdOrIdentifier}/bindmetric | Get a bound metric for a component *ComponentApi* | [**GetComponentCheckStates**](docs/ComponentApi.md#getcomponentcheckstates) | **Get** /components/{componentIdOrIdentifier}/checkStates | Get a component checkstates *ComponentApi* | [**GetComponentHealthHistory**](docs/ComponentApi.md#getcomponenthealthhistory) | **Get** /components/{componentIdOrIdentifier}/healthHistory | Get a component health history -*ComponentApi* | [**GetComponentMetricBinding**](docs/ComponentApi.md#getcomponentmetricbinding) | **Get** /components/{componentIdOrIdentifier}/bindmetric | Get a bound metric binding to a component -*ComponentApi* | [**GetComponentMetricsWithData**](docs/ComponentApi.md#getcomponentmetricswithdata) | **Get** /components/{componentIdOrIdentifier}/boundMetricsWithData | Bound metric bindings that have data for a component *ComponentApi* | [**GetFullComponent**](docs/ComponentApi.md#getfullcomponent) | **Get** /components/{componentIdOrIdentifier} | Get full component +*ComponentApi* | [**GetMetricPerspectiveData**](docs/ComponentApi.md#getmetricperspectivedata) | **Get** /components/{componentIdOrIdentifier}/metricPerspectiveData | Bound metric bindings that have data for a component *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 @@ -126,7 +126,6 @@ Class | Method | HTTP request | Description *KubernetesLogsApi* | [**GetKubernetesLogs**](docs/KubernetesLogsApi.md#getkuberneteslogs) | **Get** /k8s/logs | Get Kubernetes logs *KubernetesLogsApi* | [**GetKubernetesLogsAutocomplete**](docs/KubernetesLogsApi.md#getkuberneteslogsautocomplete) | **Get** /k8s/logs/autocomplete | Get Kubernetes logs autocomplete values *KubernetesLogsApi* | [**GetKubernetesLogsHistogram**](docs/KubernetesLogsApi.md#getkuberneteslogshistogram) | **Get** /k8s/logs/histogram | Get Kubernetes logs histogram -*LayoutApi* | [**GetAllLayouts**](docs/LayoutApi.md#getalllayouts) | **Get** /layouts | List layout hints *MainMenuApi* | [**MainMenuGet**](docs/MainMenuApi.md#mainmenuget) | **Get** /main-menu | Get Main Menu *MetricApi* | [**GetExemplarsQuery**](docs/MetricApi.md#getexemplarsquery) | **Get** /metrics/query_exemplars | Experimental: Exemplars for a specific time range *MetricApi* | [**GetInstantQuery**](docs/MetricApi.md#getinstantquery) | **Get** /metrics/query | Instant query at a single point in time @@ -217,6 +216,7 @@ Class | Method | HTTP request | Description *PermissionsApi* | [**GetPermissions**](docs/PermissionsApi.md#getpermissions) | **Get** /security/permissions/list | List permissions *PermissionsApi* | [**GrantPermissions**](docs/PermissionsApi.md#grantpermissions) | **Post** /security/permissions/{subject} | Grant permissions *PermissionsApi* | [**RevokePermissions**](docs/PermissionsApi.md#revokepermissions) | **Delete** /security/permissions/{subject} | Revoke permissions +*PerspectivesApi* | [**GetPerspectives**](docs/PerspectivesApi.md#getperspectives) | **Get** /perspectives/{presentationOrViewUrn} | Get the perspectives for a view *ProblemApi* | [**GetProblemCausingEvents**](docs/ProblemApi.md#getproblemcausingevents) | **Get** /problems/{problemId}/causing-events | List possible events which led to the problem *RelationApi* | [**GetFullRelation**](docs/RelationApi.md#getfullrelation) | **Get** /relations/{relationId} | Get full relation *ScriptingApi* | [**ScriptExecute**](docs/ScriptingApi.md#scriptexecute) | **Post** /script/execute | Execute script @@ -262,6 +262,8 @@ Class | Method | HTTP request | Description *UserSessionApi* | [**GetUserSessionAssumedRole**](docs/UserSessionApi.md#getusersessionassumedrole) | **Get** /user/session/assumedRole | Get the assumed a role for the current session *UserSessionApi* | [**GetUserSessionAvailableRoles**](docs/UserSessionApi.md#getusersessionavailableroles) | **Get** /user/session/availableRoles | Get a list of available roles for this session *UserSessionApi* | [**SaveUserSessionAssumedRole**](docs/UserSessionApi.md#saveusersessionassumedrole) | **Put** /user/session/assumedRole | Set the assumed role for the current session +*ViewApi* | [**GetView**](docs/ViewApi.md#getview) | **Get** /views/{viewIdOrIdentifier} | Get a single view +*ViewApi* | [**GetViews**](docs/ViewApi.md#getviews) | **Get** /views | Get a list of views ## Documentation For Models @@ -291,12 +293,13 @@ Class | Method | HTTP request | Description - [ArgumentTopologyPromQLMetricVal](docs/ArgumentTopologyPromQLMetricVal.md) - [ArgumentTopologyQueryVal](docs/ArgumentTopologyQueryVal.md) - [BaseComponentField](docs/BaseComponentField.md) - - [BaseLayoutHint](docs/BaseLayoutHint.md) - [BaseMonitorError](docs/BaseMonitorError.md) - [BaseNotificationChannel](docs/BaseNotificationChannel.md) - [BoundMetric](docs/BoundMetric.md) + - [BoundMetricBindingId](docs/BoundMetricBindingId.md) + - [BoundMetricId](docs/BoundMetricId.md) - [BoundMetricQuery](docs/BoundMetricQuery.md) - - [BoundMetrics](docs/BoundMetrics.md) + - [BoundPresentationMetricId](docs/BoundPresentationMetricId.md) - [BoundTraces](docs/BoundTraces.md) - [CausingEventsAreNotAvailableForTheTime](docs/CausingEventsAreNotAvailableForTheTime.md) - [CausingEventsResult](docs/CausingEventsResult.md) @@ -313,10 +316,6 @@ Class | Method | HTTP request | Description - [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) - [ComponentLink](docs/ComponentLink.md) - [ComponentLinkCell](docs/ComponentLinkCell.md) @@ -324,16 +323,19 @@ Class | Method | HTTP request | Description - [ComponentLinkFieldAllOf](docs/ComponentLinkFieldAllOf.md) - [ComponentLinkMetaDisplay](docs/ComponentLinkMetaDisplay.md) - [ComponentLinkProjection](docs/ComponentLinkProjection.md) + - [ComponentMetricSection](docs/ComponentMetricSection.md) + - [ComponentMetricTab](docs/ComponentMetricTab.md) - [ComponentOverviewProjection](docs/ComponentOverviewProjection.md) - [ComponentPresentation](docs/ComponentPresentation.md) - [ComponentPresentationApiError](docs/ComponentPresentationApiError.md) - [ComponentPresentationFilter](docs/ComponentPresentationFilter.md) - [ComponentPresentationFilterDefinition](docs/ComponentPresentationFilterDefinition.md) + - [ComponentPresentationMetric](docs/ComponentPresentationMetric.md) - [ComponentPresentationQueryBinding](docs/ComponentPresentationQueryBinding.md) - [ComponentPresentationRank](docs/ComponentPresentationRank.md) - [ComponentProvisioning](docs/ComponentProvisioning.md) - [ComponentQuery](docs/ComponentQuery.md) - - [ComponentSummaryLocation](docs/ComponentSummaryLocation.md) + - [ComponentSummary](docs/ComponentSummary.md) - [ComponentViewArguments](docs/ComponentViewArguments.md) - [ContainerImageProjection](docs/ContainerImageProjection.md) - [CreateSubject](docs/CreateSubject.md) @@ -455,9 +457,6 @@ Class | Method | HTTP request | Description - [KubernetesLogHistogramBucket](docs/KubernetesLogHistogramBucket.md) - [KubernetesLogRecord](docs/KubernetesLogRecord.md) - [KubernetesLogSeverityHistogramBucket](docs/KubernetesLogSeverityHistogramBucket.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) @@ -477,20 +476,13 @@ Class | Method | HTTP request | Description - [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) - [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) + - [MetricPerspectiveData](docs/MetricPerspectiveData.md) - [MetricProjection](docs/MetricProjection.md) - - [MetricValuation](docs/MetricValuation.md) - [Monitor](docs/Monitor.md) - [MonitorApiError](docs/MonitorApiError.md) - [MonitorApiErrorAllOf](docs/MonitorApiErrorAllOf.md) @@ -573,6 +565,8 @@ Class | Method | HTTP request | Description - [OpsgenieRegion](docs/OpsgenieRegion.md) - [OpsgenieResponder](docs/OpsgenieResponder.md) - [OpsgenieResponderType](docs/OpsgenieResponderType.md) + - [OrderedComponentPresentationMetric](docs/OrderedComponentPresentationMetric.md) + - [OrderedComponentPresentationMetricAllOf](docs/OrderedComponentPresentationMetricAllOf.md) - [OtelComponentMapping](docs/OtelComponentMapping.md) - [OtelComponentMappingFieldMapping](docs/OtelComponentMappingFieldMapping.md) - [OtelComponentMappingOutput](docs/OtelComponentMappingOutput.md) @@ -646,6 +640,8 @@ Class | Method | HTTP request | Description - [PersesVariableDisplaySpec](docs/PersesVariableDisplaySpec.md) - [PersesVariableSort](docs/PersesVariableSort.md) - [PersesVariableTypes](docs/PersesVariableTypes.md) + - [Perspectives](docs/Perspectives.md) + - [PerspectivesApiError](docs/PerspectivesApiError.md) - [PresentationDefinition](docs/PresentationDefinition.md) - [PresentationFilter](docs/PresentationFilter.md) - [PresentationFilterName](docs/PresentationFilterName.md) @@ -653,11 +649,19 @@ Class | Method | HTTP request | Description - [PresentationHighlight](docs/PresentationHighlight.md) - [PresentationHighlightEvents](docs/PresentationHighlightEvents.md) - [PresentationHighlightField](docs/PresentationHighlightField.md) + - [PresentationHighlightMetricsSection](docs/PresentationHighlightMetricsSection.md) - [PresentationHighlightProvisioning](docs/PresentationHighlightProvisioning.md) - [PresentationMainMenu](docs/PresentationMainMenu.md) + - [PresentationMetricPerspective](docs/PresentationMetricPerspective.md) + - [PresentationMetricPerspectiveSection](docs/PresentationMetricPerspectiveSection.md) + - [PresentationMetricPerspectiveTab](docs/PresentationMetricPerspectiveTab.md) + - [PresentationMetricQuery](docs/PresentationMetricQuery.md) - [PresentationName](docs/PresentationName.md) - [PresentationOverview](docs/PresentationOverview.md) + - [PresentationOverviewSorting](docs/PresentationOverviewSorting.md) + - [PresentationOverviewSortingDirection](docs/PresentationOverviewSortingDirection.md) - [PresentationRelatedResource](docs/PresentationRelatedResource.md) + - [PresentationSummary](docs/PresentationSummary.md) - [PresentationTagFilter](docs/PresentationTagFilter.md) - [ProblemNotFound](docs/ProblemNotFound.md) - [PromBatchEnvelope](docs/PromBatchEnvelope.md) @@ -689,6 +693,7 @@ Class | Method | HTTP request | Description - [QueryParsingFailure](docs/QueryParsingFailure.md) - [QuerySnapshotResult](docs/QuerySnapshotResult.md) - [QueryViewArguments](docs/QueryViewArguments.md) + - [QueryViewFlag](docs/QueryViewFlag.md) - [RatioField](docs/RatioField.md) - [RatioFieldAllOf](docs/RatioFieldAllOf.md) - [RatioProjection](docs/RatioProjection.md) @@ -771,10 +776,14 @@ Class | Method | HTTP request | Description - [TooManyActiveQueries](docs/TooManyActiveQueries.md) - [TooManyTopologyResults](docs/TooManyTopologyResults.md) - [Topic](docs/Topic.md) + - [TopologyDomain](docs/TopologyDomain.md) - [TopologyEvent](docs/TopologyEvent.md) + - [TopologyLayer](docs/TopologyLayer.md) - [TopologyMatchResult](docs/TopologyMatchResult.md) - [TopologyOverflowError](docs/TopologyOverflowError.md) + - [TopologyPerspective](docs/TopologyPerspective.md) - [TopologyPromQLMetric](docs/TopologyPromQLMetric.md) + - [TopologySettings](docs/TopologySettings.md) - [TopologyStreamError](docs/TopologyStreamError.md) - [TopologyStreamList](docs/TopologyStreamList.md) - [TopologyStreamListItem](docs/TopologyStreamListItem.md) @@ -805,7 +814,10 @@ Class | Method | HTTP request | Description - [UserNotLoggedInError](docs/UserNotLoggedInError.md) - [UserProfile](docs/UserProfile.md) - [UserProfileSaveError](docs/UserProfileSaveError.md) + - [View](docs/View.md) - [ViewCheckState](docs/ViewCheckState.md) + - [ViewList](docs/ViewList.md) + - [ViewNotFoundError](docs/ViewNotFoundError.md) - [ViewSnapshotRequest](docs/ViewSnapshotRequest.md) - [WebhookChannelRefId](docs/WebhookChannelRefId.md) - [WebhookChannelWriteSchema](docs/WebhookChannelWriteSchema.md) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index 43041df4..871016db 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -5682,26 +5682,6 @@ paths: summary: Fetch components based on resource attributes tags: - traces - /layouts: - get: - description: List all available layout hints in the system - operationId: getAllLayouts - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/LayoutList' - description: List of all available layout hints - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/LayoutApiError' - description: container for all error response - summary: List layout hints - tags: - - layout /components/{componentIdOrIdentifier}: get: description: Get full component details @@ -5824,10 +5804,10 @@ paths: tags: - component /components/{componentIdOrIdentifier}/bindmetric: - get: + post: description: Bind the variables in a metric binding to a component to get valid queries for fetching metric data - operationId: getComponentMetricBinding + operationId: getComponentBoundMetric parameters: - description: The id or identifier (urn) of a component in: path @@ -5835,12 +5815,6 @@ paths: required: true schema: $ref: '#/components/schemas/ComponentIdOrIdentifier' - - description: The identifier (urn) of a metric binding - in: query - name: metricBindingIdentifier - required: true - schema: - $ref: '#/components/schemas/ComponentIdOrIdentifier' - description: A timestamp at which resources will be queried. If not given the resources are queried at current time. in: query @@ -5849,6 +5823,12 @@ paths: schema: format: instant type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BoundMetricId' + required: true responses: "200": content: @@ -5862,13 +5842,13 @@ paths: schema: $ref: '#/components/schemas/GenericErrorsResponse' description: Error when handling the request on the server side. - summary: Get a bound metric binding to a component + summary: Get a bound metric for a component tags: - component - /components/{componentIdOrIdentifier}/boundMetricsWithData: + /components/{componentIdOrIdentifier}/metricPerspectiveData: get: description: Bound metric bindings for metrics that have data for a component - operationId: getComponentMetricsWithData + operationId: getMetricPerspectiveData parameters: - description: The id or identifier (urn) of a component in: path @@ -5903,7 +5883,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BoundMetrics' + $ref: '#/components/schemas/MetricPerspectiveData' description: Bound metrics "500": content: @@ -6777,6 +6757,59 @@ paths: required: true schema: type: string + /views: + get: + description: Get a list of all QueryView settings. + operationId: getViews + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ViewList' + description: List of views + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericErrorsResponse' + description: Error when handling the request on the server side. + summary: Get a list of views + tags: + - view + /views/{viewIdOrIdentifier}: + get: + description: Get a QueryView by its ID or identifier. + operationId: getView + parameters: + - description: The system ID or identifier of a QueryView. + in: path + name: viewIdOrIdentifier + required: true + schema: + $ref: '#/components/schemas/ViewIdOrIdentifier' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/View' + description: A single view + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/ViewNotFoundError' + description: View not found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericErrorsResponse' + description: Error when handling the request on the server side. + summary: Get a single view + tags: + - view /main-menu: get: description: Get Main Menu @@ -6869,6 +6902,12 @@ paths: $ref: '#/components/schemas/OverviewErrorResponse' description: Bad request. The request was invalid or cannot be otherwise served. + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/OverviewErrorResponse' + description: Presentation not found. summary: Get overview data for components tags: - overview @@ -6927,6 +6966,55 @@ paths: required: true schema: type: string + /perspectives/{presentationOrViewUrn}: + get: + description: "Returns the perspectives, and the per-perspective configs that\ + \ are available.\n\nActs as the canonical view-open permission check: returns\ + \ 403 when the\ncaller lacks access and 404 when the URN does not resolve.\n" + operationId: getPerspectives + 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/Perspectives' + description: Resolved perspectives + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/PerspectivesApiError' + description: "No ComponentPresentation, QueryView, or ViewType found for\ + \ the given URN" + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/PerspectivesApiError' + description: Error when handling the request on the server side. + summary: Get the perspectives for a view + tags: + - perspectives + 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: "" @@ -7660,18 +7748,6 @@ components: schema: $ref: '#/components/schemas/SpanComponents' description: Components - layouts: - content: - application/json: - schema: - $ref: '#/components/schemas/LayoutList' - description: List of all available layout hints - layoutApiError: - content: - application/json: - schema: - $ref: '#/components/schemas/LayoutApiError' - description: container for all error response fullComponent: content: application/json: @@ -7696,11 +7772,11 @@ components: schema: $ref: '#/components/schemas/BoundMetric' description: Bound metric - boundMetrics: + metricPerspectiveData: content: application/json: schema: - $ref: '#/components/schemas/BoundMetrics' + $ref: '#/components/schemas/MetricPerspectiveData' description: Bound metrics fullRelation: content: @@ -7792,6 +7868,24 @@ components: schema: $ref: '#/components/schemas/ComponentPresentationApiError' description: Component Presentation with given identifier not found + views: + content: + application/json: + schema: + $ref: '#/components/schemas/ViewList' + description: List of views + view: + content: + application/json: + schema: + $ref: '#/components/schemas/View' + description: A single view + viewNotFoundError: + content: + application/json: + schema: + $ref: '#/components/schemas/ViewNotFoundError' + description: View not found. mainMenuGroup: content: application/json: @@ -7812,6 +7906,19 @@ components: schema: $ref: '#/components/schemas/QueryParsingFailure' description: Query parsing failed + PerspectivesNotFound: + content: + application/json: + schema: + $ref: '#/components/schemas/PerspectivesApiError' + description: "No ComponentPresentation, QueryView, or ViewType found for the\ + \ given URN" + PerspectivesErrorResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/PerspectivesApiError' + description: Error when handling the request on the server side. schemas: GenericErrorsResponse: properties: @@ -14289,63 +14396,44 @@ components: - name - type type: object - LayoutList: - example: - layouts: - - null - - null - properties: - layouts: - items: - $ref: '#/components/schemas/LayoutHint' - type: array - required: - - layouts - type: object - LayoutHint: - discriminator: - propertyName: _type - oneOf: - - $ref: '#/components/schemas/MetricPerspectiveTab' - - $ref: '#/components/schemas/MetricPerspectiveSection' - - $ref: '#/components/schemas/ComponentHighlightMetricSection' - MetricPerspectiveTab: - allOf: - - $ref: '#/components/schemas/BaseLayoutHint' - - $ref: '#/components/schemas/MetricPerspectiveTab_allOf' - BaseLayoutHint: - properties: - name: - type: string - weight: - format: float - type: number - required: - - name - - weight - type: object - MetricPerspectiveSection: - allOf: - - $ref: '#/components/schemas/BaseLayoutHint' - - $ref: '#/components/schemas/MetricPerspectiveSection_allOf' - ComponentHighlightMetricSection: - allOf: - - $ref: '#/components/schemas/BaseLayoutHint' - - $ref: '#/components/schemas/ComponentHighlightMetricSection_allOf' - LayoutApiError: - properties: - statusCode: - type: string - message: - type: string - required: - - message - - statusCode - type: object ComponentIdOrIdentifier: type: string FullComponent: example: + summary: + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias synced: - syncName: syncName lastUpdateTimestamp: 6 @@ -14375,22 +14463,6 @@ components: tags: - tags - tags - highlights: - namePlural: namePlural - showLogs: true - metrics: - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true data: lastUpdateTimestamp: 5 identifiers: @@ -14408,12 +14480,83 @@ components: tags: - tags - tags + highlightMetrics: + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true typeName: typeName icon: icon - provisioning: - showConfiguration: true - externalId: externalId - showStatus: true boundTraces: filter: traceId: @@ -14441,6 +14584,12 @@ components: scopeVersion: - scopeVersion - scopeVersion + highlights: + showLogs: true + provisioning: + showConfiguration: true + externalId: externalId + showStatus: true fields: - null - null @@ -14463,65 +14612,6 @@ components: events: relatedResourcesQuery: relatedResourcesQuery showEvents: true - boundMetrics: - - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - dummy: true - identifier: identifier - unit: unit - valuation: null - boundQueries: - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - name: name - chartType: null - description: description - alias: alias - tags: - key: tags - - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - dummy: true - identifier: identifier - unit: unit - valuation: null - boundQueries: - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - name: name - chartType: null - description: description - alias: alias - tags: - key: tags properties: typeName: type: string @@ -14549,22 +14639,26 @@ components: $ref: '#/components/schemas/ComponentData' highlights: $ref: '#/components/schemas/LegacyComponentHighlights' - actions: + summary: + $ref: '#/components/schemas/ComponentSummary' + highlightMetrics: items: - $ref: '#/components/schemas/ComponentAction' + $ref: '#/components/schemas/ComponentMetricSection' type: array - boundMetrics: + actions: items: - $ref: '#/components/schemas/BoundMetric' + $ref: '#/components/schemas/ComponentAction' type: array boundTraces: $ref: '#/components/schemas/BoundTraces' required: - actions - - boundMetrics - data - fields + - highlightMetrics + - metricPerspective - relatedResources + - summary - synced - typeName ComponentField: @@ -14798,67 +14892,60 @@ components: - tags LegacyComponentHighlights: example: - namePlural: namePlural showLogs: true + properties: + showLogs: + type: boolean + required: + - showLogs + ComponentSummary: + example: metrics: - - bindings: - - bindings - - bindings + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true name: name + chartType: null description: description - defaultExpanded: true - - bindings: - - bindings - - bindings + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true name: name + chartType: null description: description - defaultExpanded: true + alias: alias properties: - namePlural: - type: string - showLogs: - type: boolean metrics: items: - $ref: '#/components/schemas/ComponentHighlightMetrics' + $ref: '#/components/schemas/BoundMetric' type: array required: - metrics - - namePlural - - relatedResources - - showLogs - ComponentAction: - example: - name: name - description: description - id: 5 - properties: - id: - format: int64 - type: integer - name: - type: string - description: - type: string - required: - - id - - name + type: object BoundMetric: example: - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section dummy: true - identifier: identifier + boundMetricId: null unit: unit - valuation: null boundQueries: - expression: expression componentIdentifierTemplate: componentIdentifierTemplate @@ -14872,13 +14959,11 @@ components: chartType: null description: description alias: alias - tags: - key: tags properties: + boundMetricId: + $ref: '#/components/schemas/BoundMetricId' name: type: string - identifier: - type: string boundQueries: items: $ref: '#/components/schemas/BoundMetricQuery' @@ -14891,21 +14976,42 @@ components: $ref: '#/components/schemas/ChartType' alias: type: string - valuation: - $ref: '#/components/schemas/MetricValuation' - tags: - additionalProperties: - type: string - type: object - layout: - $ref: '#/components/schemas/MetricBindingLayout' dummy: type: boolean required: - boundQueries - chartType - name - - tags + BoundMetricId: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/BoundMetricBindingId' + - $ref: '#/components/schemas/BoundPresentationMetricId' + BoundMetricBindingId: + properties: + _type: + enum: + - BoundMetricBindingId + type: string + identifier: + type: string + required: + - _type + - identifier + BoundPresentationMetricId: + properties: + _type: + enum: + - BoundPresentationMetricId + type: string + presentationIdentifier: + type: string + metricId: + type: string + required: + - _type + - metricId BoundMetricQuery: example: expression: expression @@ -14924,65 +15030,80 @@ components: required: - alias - expression - ChartType: - enum: - - line - type: string - MetricValuation: - enum: - - higher-is-better - - lower-is-better - type: string - MetricBindingLayout: - example: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - properties: - metricPerspective: - $ref: '#/components/schemas/MetricPerspectiveLocation' - componentHighlight: - $ref: '#/components/schemas/ComponentHighlightLocation' - componentSummary: - $ref: '#/components/schemas/ComponentSummaryLocation' - MetricPerspectiveLocation: + ComponentMetricSection: example: - tab: tab - weight: 2 - section: section + description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true properties: - tab: + sectionId: type: string - section: + title: type: string - weight: - type: integer - required: - - section - - tab - ComponentHighlightLocation: - example: - weight: 7 - section: section - properties: - section: + description: type: string - weight: - type: integer + metrics: + items: + $ref: '#/components/schemas/BoundMetric' + type: array + defaultExpanded: + type: boolean required: - - section - ComponentSummaryLocation: + - defaultExpanded + - metrics + - sectionId + - title + type: object + ComponentAction: example: - weight: 9 + name: name + description: description + id: 5 properties: - weight: + id: + format: int64 type: integer + name: + type: string + description: + type: string + required: + - id + - name BoundTraces: example: filter: @@ -15094,83 +15215,273 @@ components: - idOrIdentifier - identifier - startTime - BoundMetrics: - example: - boundMetrics: - - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - dummy: true - identifier: identifier - unit: unit - valuation: null - boundQueries: - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - name: name - chartType: null - description: description - alias: alias - tags: - key: tags - - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - dummy: true - identifier: identifier - unit: unit - valuation: null - boundQueries: - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - name: name - chartType: null - description: description - alias: alias - tags: - key: tags - properties: - boundMetrics: - items: - $ref: '#/components/schemas/BoundMetric' - type: array - required: - - boundMetrics - FullRelation: + MetricPerspectiveData: example: - synced: - - syncName: syncName - lastUpdateTimestamp: 5 - elementTypeTag: elementTypeTag - data: "{}" - identifiers: - - identifiers + tabs: + - tabId: tabId + title: title + sections: + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + - tabId: tabId + title: title + sections: + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + properties: + tabs: + items: + $ref: '#/components/schemas/ComponentMetricTab' + type: array + required: + - tabs + type: object + ComponentMetricTab: + example: + tabId: tabId + title: title + sections: + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + properties: + tabId: + type: string + title: + type: string + sections: + items: + $ref: '#/components/schemas/ComponentMetricSection' + type: array + required: + - sections + - tabId + - title + type: object + FullRelation: + example: + synced: + - syncName: syncName + lastUpdateTimestamp: 5 + elementTypeTag: elementTypeTag + data: "{}" + identifiers: + - identifiers - identifiers externalId: externalId id: 1 @@ -15204,6 +15515,40 @@ components: - tags typeName: typeName source: + summary: + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias synced: - syncName: syncName lastUpdateTimestamp: 6 @@ -15233,22 +15578,6 @@ components: tags: - tags - tags - highlights: - namePlural: namePlural - showLogs: true - metrics: - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true data: lastUpdateTimestamp: 5 identifiers: @@ -15266,12 +15595,83 @@ components: tags: - tags - tags + highlightMetrics: + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true typeName: typeName icon: icon - provisioning: - showConfiguration: true - externalId: externalId - showStatus: true boundTraces: filter: traceId: @@ -15299,6 +15699,12 @@ components: scopeVersion: - scopeVersion - scopeVersion + highlights: + showLogs: true + provisioning: + showConfiguration: true + externalId: externalId + showStatus: true fields: - null - null @@ -15321,66 +15727,41 @@ components: events: relatedResourcesQuery: relatedResourcesQuery showEvents: true - boundMetrics: - - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - dummy: true - identifier: identifier - unit: unit - valuation: null - boundQueries: - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - name: name - chartType: null - description: description - alias: alias - tags: - key: tags - - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - dummy: true - identifier: identifier - unit: unit - valuation: null - boundQueries: - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate + target: + summary: + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description alias: alias - primary: true - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description alias: alias - primary: true - name: name - chartType: null - description: description - alias: alias - tags: - key: tags - target: synced: - syncName: syncName lastUpdateTimestamp: 6 @@ -15410,22 +15791,6 @@ components: tags: - tags - tags - highlights: - namePlural: namePlural - showLogs: true - metrics: - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true data: lastUpdateTimestamp: 5 identifiers: @@ -15443,12 +15808,83 @@ components: tags: - tags - tags + highlightMetrics: + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true + - description: description + sectionId: sectionId + metrics: + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + - dummy: true + boundMetricId: null + unit: unit + boundQueries: + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + - expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true + name: name + chartType: null + description: description + alias: alias + title: title + defaultExpanded: true typeName: typeName icon: icon - provisioning: - showConfiguration: true - externalId: externalId - showStatus: true boundTraces: filter: traceId: @@ -15476,6 +15912,12 @@ components: scopeVersion: - scopeVersion - scopeVersion + highlights: + showLogs: true + provisioning: + showConfiguration: true + externalId: externalId + showStatus: true fields: - null - null @@ -15491,72 +15933,13 @@ components: stql: stql title: title presentationIdentifier: presentationIdentifier - - resourceId: resourceId - stql: stql - title: title - presentationIdentifier: presentationIdentifier - events: - relatedResourcesQuery: relatedResourcesQuery - showEvents: true - boundMetrics: - - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - dummy: true - identifier: identifier - unit: unit - valuation: null - boundQueries: - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - name: name - chartType: null - description: description - alias: alias - tags: - key: tags - - layout: - metricPerspective: - tab: tab - weight: 2 - section: section - componentSummary: - weight: 9 - componentHighlight: - weight: 7 - section: section - dummy: true - identifier: identifier - unit: unit - valuation: null - boundQueries: - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - name: name - chartType: null - description: description - alias: alias - tags: - key: tags + - resourceId: resourceId + stql: stql + title: title + presentationIdentifier: presentationIdentifier + events: + relatedResourcesQuery: relatedResourcesQuery + showEvents: true properties: data: $ref: '#/components/schemas/RelationData' @@ -16795,12 +17178,8 @@ components: OtelComponentMappingOutput: example: identifier: identifier - domainIdentifier: domainIdentifier - domainName: domainName name: name typeName: typeName - typeIdentifier: typeIdentifier - layerIdentifier: layerIdentifier optional: configuration: configuration additionalIdentifiers: @@ -16815,7 +17194,6 @@ components: source: source target: target status: status - layerName: layerName required: configuration: configuration additionalIdentifiers: @@ -16846,39 +17224,12 @@ components: \ these formats:\n - A plain string, for example `\"this is a plain string\"\ `\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 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 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 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 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 cel expression that must return a string, for example: `resource.attributes['service.namespace']`" - type: string required: $ref: '#/components/schemas/OtelComponentMappingFieldMapping' optional: $ref: '#/components/schemas/OtelComponentMappingFieldMapping' required: - - domainName - identifier - - layerName - name - typeName type: object @@ -16981,12 +17332,8 @@ components: example: output: identifier: identifier - domainIdentifier: domainIdentifier - domainName: domainName name: name typeName: typeName - typeIdentifier: typeIdentifier - layerIdentifier: layerIdentifier optional: configuration: configuration additionalIdentifiers: @@ -17001,7 +17348,6 @@ components: source: source target: target status: status - layerName: layerName required: configuration: configuration additionalIdentifiers: @@ -17041,6 +17387,7 @@ components: - null _type: OtelComponentMapping name: name + specificity: 6.027456183070403 description: description expireAfter: 0 vars: @@ -17070,6 +17417,13 @@ components: expireAfter: format: int64 type: integer + specificity: + description: Determines how much of a "specialization" this mapping is. + Higher number means more specific. Used during component merge to pick + the winning typeName / name when multiple mappings contribute to the same + component identifier. + format: double + type: number required: - _type - expireAfter @@ -17077,6 +17431,7 @@ components: - input - name - output + - specificity type: object OtelMappingStatus: example: @@ -17273,6 +17628,10 @@ components: ComponentPresentation: example: presentation: + summary: + metrics: + - null + - null overview: fixedColumns: 1 mainMenu: @@ -17290,11 +17649,33 @@ components: plural: plural singular: singular title: title + sort: + - columnId: columnId + direction: null + - columnId: columnId + direction: null highlight: provisioning: - externalComponentSelector: externalComponentSelector + topologySourceSelector: topologySourceSelector showConfiguration: true showStatus: true + metrics: + - description: description + sectionId: sectionId + metrics: + - null + - null + title: title + defaultExpanded: true + order: 2.3021358869347655 + - description: description + sectionId: sectionId + metrics: + - null + - null + title: title + defaultExpanded: true + order: 2.3021358869347655 title: title fields: - description: description @@ -17322,6 +17703,56 @@ components: excludedRelatedResourcesQuery: excludedRelatedResourcesQuery relatedResourcesQuery: relatedResourcesQuery showEvents: true + metricPerspective: + tabs: + - tabId: tabId + title: title + sections: + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + order: 7.061401241503109 + - tabId: tabId + title: title + sections: + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + order: 7.061401241503109 + topology: + neighboringComponents: true + autoGrouping: true + groupedByRelations: true + domain: + name: name + order: 4.145608029883936 + showIndirectRelations: true + groupedByLayers: true + connectedComponents: true + groupingEnabled: true + minimumGroupSize: 3 + groupedByDomains: true + layer: + name: name + order: 2.027123023002322 icon: icon filters: - filterId: filterId @@ -17369,6 +17800,140 @@ components: required: - message type: object + ViewList: + example: + views: + - identifier: identifier + neighboringComponents: true + autoGrouping: true + groupedByRelations: true + flags: + - null + - null + connectedComponents: true + topologyQuery: topologyQuery + minimumGroupSize: 6 + name: name + viewType: viewType + groupedByLayers: true + showIndirectRelations: true + id: 0 + groupingEnabled: true + groupedByDomains: true + ownedBy: ownedBy + - identifier: identifier + neighboringComponents: true + autoGrouping: true + groupedByRelations: true + flags: + - null + - null + connectedComponents: true + topologyQuery: topologyQuery + minimumGroupSize: 6 + name: name + viewType: viewType + groupedByLayers: true + showIndirectRelations: true + id: 0 + groupingEnabled: true + groupedByDomains: true + ownedBy: ownedBy + properties: + views: + items: + $ref: '#/components/schemas/View' + type: array + required: + - views + type: object + View: + example: + identifier: identifier + neighboringComponents: true + autoGrouping: true + groupedByRelations: true + flags: + - null + - null + connectedComponents: true + topologyQuery: topologyQuery + minimumGroupSize: 6 + name: name + viewType: viewType + groupedByLayers: true + showIndirectRelations: true + id: 0 + groupingEnabled: true + groupedByDomains: true + ownedBy: ownedBy + properties: + id: + format: int64 + type: integer + identifier: + type: string + name: + type: string + viewType: + type: string + topologyQuery: + type: string + groupingEnabled: + type: boolean + groupedByLayers: + type: boolean + groupedByDomains: + type: boolean + groupedByRelations: + type: boolean + minimumGroupSize: + format: int64 + type: integer + showIndirectRelations: + type: boolean + autoGrouping: + type: boolean + connectedComponents: + type: boolean + neighboringComponents: + type: boolean + flags: + items: + $ref: '#/components/schemas/QueryViewFlag' + type: array + uniqueItems: true + ownedBy: + type: string + required: + - autoGrouping + - connectedComponents + - flags + - groupedByDomains + - groupedByLayers + - groupedByRelations + - groupingEnabled + - id + - minimumGroupSize + - name + - neighboringComponents + - showIndirectRelations + - topologyQuery + type: object + ViewIdOrIdentifier: + description: The system ID or identifier of a QueryView. + type: string + ViewNotFoundError: + properties: + message: + description: A detailed error message describing why the operation failed. + type: string + viewIdOrIdentifier: + type: string + required: + - message + - viewIdOrIdentifier + type: object MainMenuGroup: example: identifier: identifier @@ -17400,7 +17965,6 @@ components: type: array required: - defaultOpen - - icon - items - name MainMenuViewItem: @@ -17660,19 +18224,12 @@ components: type: boolean locked: type: boolean - metricId: - $ref: '#/components/schemas/MetricBindingId' + boundMetricId: + $ref: '#/components/schemas/BoundMetricId' required: - _type - locked type: object - MetricBindingId: - properties: - identifier: - type: string - required: - - identifier - type: object ComponentLinkMetaDisplay: properties: _type: @@ -18117,7 +18674,11 @@ components: filters: - null - null + topologyFilters: true properties: + topologyFilters: + description: Whether topology filters are enabled for this presentation. + type: boolean filters: description: "Presentation filters in display order. Earlier items are primary\ \ (filter bar),\nlater items are secondary (\"More\" section).\n" @@ -18131,6 +18692,7 @@ components: required: - filters - menuSection + - topologyFilters type: object PresentationFilter: discriminator: @@ -18166,6 +18728,82 @@ components: - plural - singular type: object + Perspectives: + description: | + The set of perspectives the frontend needs to render a view page in one response. + Each optional field carries the per-perspective config; absence means + the perspective is not available for this view. + example: + identifier: identifier + overview: "{}" + topology: + queryMetadata: + minGroupSize: 0 + neighboringComponents: true + groupedByRelation: true + autoGrouping: true + groupedByLayer: true + queryTime: 6 + showFullComponent: true + showIndirectRelations: true + connectedComponents: true + groupingEnabled: true + groupedByDomain: true + topologyQuery: topologyQuery + events: "{}" + properties: + identifier: + description: The resolved URN (ComponentPresentation identifier or legacy + QueryView/ViewType URN). + type: string + topologyQuery: + description: "STQL query for this view. Used by the shared timeline, the\ + \ events perspective, and the topology perspective." + type: string + overview: + type: object + topology: + $ref: '#/components/schemas/TopologyPerspective' + events: + type: object + required: + - identifier + - topologyQuery + type: object + OverviewPerspective: + type: object + TopologyPerspective: + description: | + Topology perspective config. Reuses QueryMetadata from the snapshot API + as the rendering spec. + example: + queryMetadata: + minGroupSize: 0 + neighboringComponents: true + groupedByRelation: true + autoGrouping: true + groupedByLayer: true + queryTime: 6 + showFullComponent: true + showIndirectRelations: true + connectedComponents: true + groupingEnabled: true + groupedByDomain: true + properties: + queryMetadata: + $ref: '#/components/schemas/QueryMetadata' + required: + - queryMetadata + type: object + EventsPerspective: + type: object + PerspectivesApiError: + properties: + message: + type: string + required: + - message + type: object Argument: discriminator: propertyName: _type @@ -18739,29 +19377,12 @@ components: - offsetNanos - timestamp type: object - ComponentHighlightMetrics: - example: - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true - properties: - name: - type: string - description: - type: string - bindings: - items: - type: string - type: array - defaultExpanded: - type: boolean - required: - - bindings - - defaultExpanded - - name + ChartType: + enum: + - line + - gauge + - stat + type: string PersesDashboard: example: metadata: @@ -19470,9 +20091,15 @@ components: 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" + \ winning.\nScalar fields like `icon` and `topology` follow most-specific-wins\ + \ semantics across matching presentations.\nAbsence of `topology` means the\ + \ Topology perspective is not available for this presentation.\nAbsence of\ + \ the field keeps legacy behavior (for example, ViewType-based filters) unchanged.\n" example: + summary: + metrics: + - null + - null overview: fixedColumns: 1 mainMenu: @@ -19490,11 +20117,33 @@ components: plural: plural singular: singular title: title + sort: + - columnId: columnId + direction: null + - columnId: columnId + direction: null highlight: provisioning: - externalComponentSelector: externalComponentSelector + topologySourceSelector: topologySourceSelector showConfiguration: true showStatus: true + metrics: + - description: description + sectionId: sectionId + metrics: + - null + - null + title: title + defaultExpanded: true + order: 2.3021358869347655 + - description: description + sectionId: sectionId + metrics: + - null + - null + title: title + defaultExpanded: true + order: 2.3021358869347655 title: title fields: - description: description @@ -19522,6 +20171,56 @@ components: excludedRelatedResourcesQuery: excludedRelatedResourcesQuery relatedResourcesQuery: relatedResourcesQuery showEvents: true + metricPerspective: + tabs: + - tabId: tabId + title: title + sections: + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + order: 7.061401241503109 + - tabId: tabId + title: title + sections: + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + order: 7.061401241503109 + topology: + neighboringComponents: true + autoGrouping: true + groupedByRelations: true + domain: + name: name + order: 4.145608029883936 + showIndirectRelations: true + groupedByLayers: true + connectedComponents: true + groupingEnabled: true + minimumGroupSize: 3 + groupedByDomains: true + layer: + name: name + order: 2.027123023002322 icon: icon filters: - filterId: filterId @@ -19543,10 +20242,16 @@ components: $ref: '#/components/schemas/PresentationOverview' highlight: $ref: '#/components/schemas/PresentationHighlight' + summary: + $ref: '#/components/schemas/PresentationSummary' filters: items: $ref: '#/components/schemas/ComponentPresentationFilter' type: array + metricPerspective: + $ref: '#/components/schemas/PresentationMetricPerspective' + topology: + $ref: '#/components/schemas/TopologySettings' type: object PresentationOverview: description: "Overview presentation definition. The `columns` field defines\ @@ -19571,6 +20276,11 @@ components: plural: plural singular: singular title: title + sort: + - columnId: columnId + direction: null + - columnId: columnId + direction: null properties: name: $ref: '#/components/schemas/PresentationName' @@ -19582,6 +20292,10 @@ components: type: array fixedColumns: type: integer + sort: + items: + $ref: '#/components/schemas/PresentationOverviewSorting' + type: array required: - columns - name @@ -19796,6 +20510,23 @@ components: - imageId - imageName type: object + PresentationOverviewSorting: + example: + columnId: columnId + direction: null + properties: + columnId: + type: string + direction: + $ref: '#/components/schemas/PresentationOverviewSortingDirection' + required: + - columnId + type: object + PresentationOverviewSortingDirection: + enum: + - Ascending + - Descending + type: string PresentationHighlight: description: "Highlight presentation definition. The `fields` define the fields\ \ to show in the highlight page.\nIf multiple ComponentPresentations match,\ @@ -19803,9 +20534,26 @@ components: \ follow the same merge semantics using `resourceId` as the identity key.\n" example: provisioning: - externalComponentSelector: externalComponentSelector + topologySourceSelector: topologySourceSelector showConfiguration: true showStatus: true + metrics: + - description: description + sectionId: sectionId + metrics: + - null + - null + title: title + defaultExpanded: true + order: 2.3021358869347655 + - description: description + sectionId: sectionId + metrics: + - null + - null + title: title + defaultExpanded: true + order: 2.3021358869347655 title: title fields: - description: description @@ -19848,6 +20596,10 @@ components: type: array events: $ref: '#/components/schemas/PresentationHighlightEvents' + metrics: + items: + $ref: '#/components/schemas/PresentationHighlightMetricsSection' + type: array required: - fields - title @@ -19910,14 +20662,14 @@ components: type: object PresentationHighlightProvisioning: description: Provisioning section of a component in the highlight presentation. - The `externalComponentSelector` field is used to identify the external component + The `topologySourceSelector` field is used to identify the external component with provisioning details for this component. example: - externalComponentSelector: externalComponentSelector + topologySourceSelector: topologySourceSelector showConfiguration: true showStatus: true properties: - externalComponentSelector: + topologySourceSelector: description: Cel expression that selects the external component with provisioning details type: string @@ -19983,6 +20735,86 @@ components: required: - showEvents type: object + PresentationHighlightMetricsSection: + example: + description: description + sectionId: sectionId + metrics: + - null + - null + title: title + defaultExpanded: true + order: 2.3021358869347655 + properties: + sectionId: + type: string + title: + type: string + description: + type: string + defaultExpanded: + type: boolean + order: + format: double + type: number + metrics: + items: + $ref: '#/components/schemas/OrderedComponentPresentationMetric' + type: array + required: + - order + - sectionId + - title + type: object + OrderedComponentPresentationMetric: + allOf: + - $ref: '#/components/schemas/ComponentPresentationMetric' + - $ref: '#/components/schemas/OrderedComponentPresentationMetric_allOf' + ComponentPresentationMetric: + properties: + metricId: + type: string + name: + type: string + description: + type: string + metricQueries: + items: + $ref: '#/components/schemas/PresentationMetricQuery' + type: array + unit: + type: string + chartType: + $ref: '#/components/schemas/ChartType' + alias: + type: string + required: + - metricId + type: object + PresentationMetricQuery: + properties: + expression: + type: string + alias: + type: string + componentIdentifierTemplate: + type: string + primary: + type: boolean + required: + - alias + - expression + PresentationSummary: + example: + metrics: + - null + - null + properties: + metrics: + items: + $ref: '#/components/schemas/OrderedComponentPresentationMetric' + type: array + type: object ComponentPresentationFilter: description: "Filter definition for ComponentPresentation.\nWhen only `filterId`\ \ is provided, the filter references a definition from a less specific presentation.\n\ @@ -20050,6 +20882,196 @@ components: - _type - tagKey type: object + PresentationMetricPerspective: + example: + tabs: + - tabId: tabId + title: title + sections: + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + order: 7.061401241503109 + - tabId: tabId + title: title + sections: + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + order: 7.061401241503109 + properties: + tabs: + items: + $ref: '#/components/schemas/PresentationMetricPerspectiveTab' + type: array + required: + - tabs + type: object + PresentationMetricPerspectiveTab: + example: + tabId: tabId + title: title + sections: + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + - sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + order: 7.061401241503109 + properties: + tabId: + type: string + title: + type: string + order: + format: double + type: number + sections: + items: + $ref: '#/components/schemas/PresentationMetricPerspectiveSection' + type: array + required: + - order + - tabId + - title + type: object + PresentationMetricPerspectiveSection: + example: + sectionId: sectionId + metrics: + - null + - null + title: title + order: 9.301444243932576 + properties: + sectionId: + type: string + title: + type: string + order: + format: double + type: number + metrics: + items: + $ref: '#/components/schemas/OrderedComponentPresentationMetric' + type: array + required: + - order + - sectionId + - title + type: object + TopologySettings: + description: "Rendering settings for the topology perspective.\nNear-copy of\ + \ QueryMetadata used for topology rendering today; differences:\n- `queryTime`\ + \ is intentionally absent (request-time state, not a presentation setting).\n\ + Most-specific-wins merge semantics across matching ComponentPresentations.\n" + example: + neighboringComponents: true + autoGrouping: true + groupedByRelations: true + domain: + name: name + order: 4.145608029883936 + showIndirectRelations: true + groupedByLayers: true + connectedComponents: true + groupingEnabled: true + minimumGroupSize: 3 + groupedByDomains: true + layer: + name: name + order: 2.027123023002322 + properties: + groupingEnabled: + type: boolean + showIndirectRelations: + type: boolean + minimumGroupSize: + format: int64 + type: integer + groupedByLayers: + type: boolean + groupedByDomains: + type: boolean + groupedByRelations: + type: boolean + autoGrouping: + type: boolean + connectedComponents: + type: boolean + neighboringComponents: + type: boolean + layer: + $ref: '#/components/schemas/TopologyLayer' + domain: + $ref: '#/components/schemas/TopologyDomain' + type: object + TopologyLayer: + description: "Layer assigned to components matched by this presentation, used\ + \ to bucket and order them in the topology view.\nAt presentation time, the\ + \ layer of the most-specific matching presentation wins.\nWhen multiple components\ + \ share a layer name with different orders, the highest order wins.\n" + example: + name: name + order: 2.027123023002322 + properties: + name: + type: string + order: + format: double + type: number + required: + - name + - order + type: object + TopologyDomain: + description: "Domain assigned to components matched by this presentation, used\ + \ to bucket and order them in the topology view.\nAt presentation time, the\ + \ domain of the most-specific matching presentation wins.\nWhen multiple components\ + \ share a domain name with different orders, the highest order wins.\n" + example: + name: name + order: 4.145608029883936 + properties: + name: + type: string + order: + format: double + type: number + required: + - name + - order + type: object + QueryViewFlag: + enum: + - NotUnlockable + - HideFromViewsOverview + type: string upsertOtelComponentMappings_request: properties: identifier: @@ -20069,12 +21091,20 @@ components: expireAfter: format: int64 type: integer + specificity: + description: Determines how much of a "specialization" this mapping is. + Higher number means more specific. Used during component merge to pick + the winning typeName / name when multiple mappings contribute to the same + component identifier. + format: double + type: number required: - expireAfter - identifier - input - name - output + - specificity type: object upsertOtelRelationMappings_request: properties: @@ -20256,36 +21286,6 @@ components: - primaryFilterMatches - secondaryFilterMatches type: object - MetricPerspectiveTab_allOf: - properties: - _type: - enum: - - MetricPerspectiveTab - type: string - required: - - _type - type: object - MetricPerspectiveSection_allOf: - properties: - _type: - enum: - - MetricPerspectiveSection - type: string - tab: - type: string - required: - - _type - - tab - type: object - ComponentHighlightMetricSection_allOf: - properties: - _type: - enum: - - ComponentHighlightMetricSection - type: string - required: - - _type - type: object ErrorField_allOf: properties: _type: @@ -20468,6 +21468,12 @@ components: required: - dashboard type: object + OrderedComponentPresentationMetric_allOf: + properties: + order: + format: double + type: number + type: object securitySchemes: ApiToken: description: | diff --git a/generated/stackstate_api/api_component.go b/generated/stackstate_api/api_component.go index 01b1e518..2206b66e 100644 --- a/generated/stackstate_api/api_component.go +++ b/generated/stackstate_api/api_component.go @@ -22,6 +22,21 @@ import ( type ComponentApi interface { + /* + GetComponentBoundMetric Get a bound metric for a component + + Bind the variables in a metric binding to a component to get valid queries for fetching metric data + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param componentIdOrIdentifier The id or identifier (urn) of a component + @return ApiGetComponentBoundMetricRequest + */ + GetComponentBoundMetric(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentBoundMetricRequest + + // GetComponentBoundMetricExecute executes the request + // @return BoundMetric + GetComponentBoundMetricExecute(r ApiGetComponentBoundMetricRequest) (*BoundMetric, *http.Response, error) + /* GetComponentCheckStates Get a component checkstates @@ -53,89 +68,73 @@ type ComponentApi interface { GetComponentHealthHistoryExecute(r ApiGetComponentHealthHistoryRequest) (*ComponentHealthHistory, *http.Response, error) /* - GetComponentMetricBinding Get a bound metric binding to a component + GetFullComponent Get full component - Bind the variables in a metric binding to a component to get valid queries for fetching metric data + Get full component details @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param componentIdOrIdentifier The id or identifier (urn) of a component - @return ApiGetComponentMetricBindingRequest + @return ApiGetFullComponentRequest */ - GetComponentMetricBinding(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentMetricBindingRequest + GetFullComponent(ctx context.Context, componentIdOrIdentifier string) ApiGetFullComponentRequest - // GetComponentMetricBindingExecute executes the request - // @return BoundMetric - GetComponentMetricBindingExecute(r ApiGetComponentMetricBindingRequest) (*BoundMetric, *http.Response, error) + // GetFullComponentExecute executes the request + // @return FullComponent + GetFullComponentExecute(r ApiGetFullComponentRequest) (*FullComponent, *http.Response, error) /* - GetComponentMetricsWithData Bound metric bindings that have data for a component + GetMetricPerspectiveData Bound metric bindings that have data for a component Bound metric bindings for metrics that have data for a component @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param componentIdOrIdentifier The id or identifier (urn) of a component - @return ApiGetComponentMetricsWithDataRequest - */ - GetComponentMetricsWithData(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentMetricsWithDataRequest - - // GetComponentMetricsWithDataExecute executes the request - // @return BoundMetrics - GetComponentMetricsWithDataExecute(r ApiGetComponentMetricsWithDataRequest) (*BoundMetrics, *http.Response, error) - - /* - GetFullComponent Get full component - - Get full component details - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param componentIdOrIdentifier The id or identifier (urn) of a component - @return ApiGetFullComponentRequest + @return ApiGetMetricPerspectiveDataRequest */ - GetFullComponent(ctx context.Context, componentIdOrIdentifier string) ApiGetFullComponentRequest + GetMetricPerspectiveData(ctx context.Context, componentIdOrIdentifier string) ApiGetMetricPerspectiveDataRequest - // GetFullComponentExecute executes the request - // @return FullComponent - GetFullComponentExecute(r ApiGetFullComponentRequest) (*FullComponent, *http.Response, error) + // GetMetricPerspectiveDataExecute executes the request + // @return MetricPerspectiveData + GetMetricPerspectiveDataExecute(r ApiGetMetricPerspectiveDataRequest) (*MetricPerspectiveData, *http.Response, error) } // ComponentApiService ComponentApi service type ComponentApiService service -type ApiGetComponentCheckStatesRequest struct { +type ApiGetComponentBoundMetricRequest struct { ctx context.Context ApiService ComponentApi componentIdOrIdentifier string - startTime *int32 - endTime *int32 + boundMetricId *BoundMetricId + topologyTime *int32 } -// The start time of a time range to query resources. -func (r ApiGetComponentCheckStatesRequest) StartTime(startTime int32) ApiGetComponentCheckStatesRequest { - r.startTime = &startTime +func (r ApiGetComponentBoundMetricRequest) BoundMetricId(boundMetricId BoundMetricId) ApiGetComponentBoundMetricRequest { + r.boundMetricId = &boundMetricId return r } -// The end time of a time range to query resources. If not given the endTime is set to current time. -func (r ApiGetComponentCheckStatesRequest) EndTime(endTime int32) ApiGetComponentCheckStatesRequest { - r.endTime = &endTime +// A timestamp at which resources will be queried. If not given the resources are queried at current time. +func (r ApiGetComponentBoundMetricRequest) TopologyTime(topologyTime int32) ApiGetComponentBoundMetricRequest { + r.topologyTime = &topologyTime return r } -func (r ApiGetComponentCheckStatesRequest) Execute() (*ComponentCheckStates, *http.Response, error) { - return r.ApiService.GetComponentCheckStatesExecute(r) +func (r ApiGetComponentBoundMetricRequest) Execute() (*BoundMetric, *http.Response, error) { + return r.ApiService.GetComponentBoundMetricExecute(r) } /* -GetComponentCheckStates Get a component checkstates +GetComponentBoundMetric Get a bound metric for a component -Get a component checkstates for a defined period of time by id or identifier +Bind the variables in a metric binding to a component to get valid queries for fetching metric data @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param componentIdOrIdentifier The id or identifier (urn) of a component - @return ApiGetComponentCheckStatesRequest + @return ApiGetComponentBoundMetricRequest */ -func (a *ComponentApiService) GetComponentCheckStates(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentCheckStatesRequest { - return ApiGetComponentCheckStatesRequest{ +func (a *ComponentApiService) GetComponentBoundMetric(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentBoundMetricRequest { + return ApiGetComponentBoundMetricRequest{ ApiService: a, ctx: ctx, componentIdOrIdentifier: componentIdOrIdentifier, @@ -144,36 +143,35 @@ func (a *ComponentApiService) GetComponentCheckStates(ctx context.Context, compo // Execute executes the request // -// @return ComponentCheckStates -func (a *ComponentApiService) GetComponentCheckStatesExecute(r ApiGetComponentCheckStatesRequest) (*ComponentCheckStates, *http.Response, error) { +// @return BoundMetric +func (a *ComponentApiService) GetComponentBoundMetricExecute(r ApiGetComponentBoundMetricRequest) (*BoundMetric, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ComponentCheckStates + localVarReturnValue *BoundMetric ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetComponentCheckStates") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetComponentBoundMetric") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/components/{componentIdOrIdentifier}/checkStates" + localVarPath := localBasePath + "/components/{componentIdOrIdentifier}/bindmetric" localVarPath = strings.Replace(localVarPath, "{"+"componentIdOrIdentifier"+"}", url.PathEscape(parameterToString(r.componentIdOrIdentifier, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") + if r.boundMetricId == nil { + return localVarReturnValue, nil, reportError("boundMetricId is required and must be specified") } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - if r.endTime != nil { - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) + if r.topologyTime != nil { + localVarQueryParams.Add("topologyTime", parameterToString(*r.topologyTime, "")) } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -189,6 +187,8 @@ func (a *ComponentApiService) GetComponentCheckStatesExecute(r ApiGetComponentCh if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.boundMetricId if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -277,7 +277,7 @@ func (a *ComponentApiService) GetComponentCheckStatesExecute(r ApiGetComponentCh return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetComponentHealthHistoryRequest struct { +type ApiGetComponentCheckStatesRequest struct { ctx context.Context ApiService ComponentApi componentIdOrIdentifier string @@ -286,32 +286,32 @@ type ApiGetComponentHealthHistoryRequest struct { } // The start time of a time range to query resources. -func (r ApiGetComponentHealthHistoryRequest) StartTime(startTime int32) ApiGetComponentHealthHistoryRequest { +func (r ApiGetComponentCheckStatesRequest) StartTime(startTime int32) ApiGetComponentCheckStatesRequest { r.startTime = &startTime return r } // The end time of a time range to query resources. If not given the endTime is set to current time. -func (r ApiGetComponentHealthHistoryRequest) EndTime(endTime int32) ApiGetComponentHealthHistoryRequest { +func (r ApiGetComponentCheckStatesRequest) EndTime(endTime int32) ApiGetComponentCheckStatesRequest { r.endTime = &endTime return r } -func (r ApiGetComponentHealthHistoryRequest) Execute() (*ComponentHealthHistory, *http.Response, error) { - return r.ApiService.GetComponentHealthHistoryExecute(r) +func (r ApiGetComponentCheckStatesRequest) Execute() (*ComponentCheckStates, *http.Response, error) { + return r.ApiService.GetComponentCheckStatesExecute(r) } /* -GetComponentHealthHistory Get a component health history +GetComponentCheckStates Get a component checkstates -Get a component health history for a defined period of time by id or identifier +Get a component checkstates for a defined period of time by id or identifier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param componentIdOrIdentifier The id or identifier (urn) of a component - @return ApiGetComponentHealthHistoryRequest + @return ApiGetComponentCheckStatesRequest */ -func (a *ComponentApiService) GetComponentHealthHistory(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentHealthHistoryRequest { - return ApiGetComponentHealthHistoryRequest{ +func (a *ComponentApiService) GetComponentCheckStates(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentCheckStatesRequest { + return ApiGetComponentCheckStatesRequest{ ApiService: a, ctx: ctx, componentIdOrIdentifier: componentIdOrIdentifier, @@ -320,21 +320,21 @@ func (a *ComponentApiService) GetComponentHealthHistory(ctx context.Context, com // Execute executes the request // -// @return ComponentHealthHistory -func (a *ComponentApiService) GetComponentHealthHistoryExecute(r ApiGetComponentHealthHistoryRequest) (*ComponentHealthHistory, *http.Response, error) { +// @return ComponentCheckStates +func (a *ComponentApiService) GetComponentCheckStatesExecute(r ApiGetComponentCheckStatesRequest) (*ComponentCheckStates, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ComponentHealthHistory + localVarReturnValue *ComponentCheckStates ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetComponentHealthHistory") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetComponentCheckStates") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/components/{componentIdOrIdentifier}/healthHistory" + localVarPath := localBasePath + "/components/{componentIdOrIdentifier}/checkStates" localVarPath = strings.Replace(localVarPath, "{"+"componentIdOrIdentifier"+"}", url.PathEscape(parameterToString(r.componentIdOrIdentifier, "")), -1) localVarHeaderParams := make(map[string]string) @@ -453,41 +453,41 @@ func (a *ComponentApiService) GetComponentHealthHistoryExecute(r ApiGetComponent return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetComponentMetricBindingRequest struct { +type ApiGetComponentHealthHistoryRequest struct { ctx context.Context ApiService ComponentApi componentIdOrIdentifier string - metricBindingIdentifier *string - topologyTime *int32 + startTime *int32 + endTime *int32 } -// The identifier (urn) of a metric binding -func (r ApiGetComponentMetricBindingRequest) MetricBindingIdentifier(metricBindingIdentifier string) ApiGetComponentMetricBindingRequest { - r.metricBindingIdentifier = &metricBindingIdentifier +// The start time of a time range to query resources. +func (r ApiGetComponentHealthHistoryRequest) StartTime(startTime int32) ApiGetComponentHealthHistoryRequest { + r.startTime = &startTime return r } -// A timestamp at which resources will be queried. If not given the resources are queried at current time. -func (r ApiGetComponentMetricBindingRequest) TopologyTime(topologyTime int32) ApiGetComponentMetricBindingRequest { - r.topologyTime = &topologyTime +// The end time of a time range to query resources. If not given the endTime is set to current time. +func (r ApiGetComponentHealthHistoryRequest) EndTime(endTime int32) ApiGetComponentHealthHistoryRequest { + r.endTime = &endTime return r } -func (r ApiGetComponentMetricBindingRequest) Execute() (*BoundMetric, *http.Response, error) { - return r.ApiService.GetComponentMetricBindingExecute(r) +func (r ApiGetComponentHealthHistoryRequest) Execute() (*ComponentHealthHistory, *http.Response, error) { + return r.ApiService.GetComponentHealthHistoryExecute(r) } /* -GetComponentMetricBinding Get a bound metric binding to a component +GetComponentHealthHistory Get a component health history -Bind the variables in a metric binding to a component to get valid queries for fetching metric data +Get a component health history for a defined period of time by id or identifier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param componentIdOrIdentifier The id or identifier (urn) of a component - @return ApiGetComponentMetricBindingRequest + @return ApiGetComponentHealthHistoryRequest */ -func (a *ComponentApiService) GetComponentMetricBinding(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentMetricBindingRequest { - return ApiGetComponentMetricBindingRequest{ +func (a *ComponentApiService) GetComponentHealthHistory(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentHealthHistoryRequest { + return ApiGetComponentHealthHistoryRequest{ ApiService: a, ctx: ctx, componentIdOrIdentifier: componentIdOrIdentifier, @@ -496,33 +496,33 @@ func (a *ComponentApiService) GetComponentMetricBinding(ctx context.Context, com // Execute executes the request // -// @return BoundMetric -func (a *ComponentApiService) GetComponentMetricBindingExecute(r ApiGetComponentMetricBindingRequest) (*BoundMetric, *http.Response, error) { +// @return ComponentHealthHistory +func (a *ComponentApiService) GetComponentHealthHistoryExecute(r ApiGetComponentHealthHistoryRequest) (*ComponentHealthHistory, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *BoundMetric + localVarReturnValue *ComponentHealthHistory ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetComponentMetricBinding") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetComponentHealthHistory") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/components/{componentIdOrIdentifier}/bindmetric" + localVarPath := localBasePath + "/components/{componentIdOrIdentifier}/healthHistory" localVarPath = strings.Replace(localVarPath, "{"+"componentIdOrIdentifier"+"}", url.PathEscape(parameterToString(r.componentIdOrIdentifier, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.metricBindingIdentifier == nil { - return localVarReturnValue, nil, reportError("metricBindingIdentifier is required and must be specified") + if r.startTime == nil { + return localVarReturnValue, nil, reportError("startTime is required and must be specified") } - localVarQueryParams.Add("metricBindingIdentifier", parameterToString(*r.metricBindingIdentifier, "")) - if r.topologyTime != nil { - localVarQueryParams.Add("topologyTime", parameterToString(*r.topologyTime, "")) + localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) + if r.endTime != nil { + localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -629,48 +629,34 @@ func (a *ComponentApiService) GetComponentMetricBindingExecute(r ApiGetComponent return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetComponentMetricsWithDataRequest struct { +type ApiGetFullComponentRequest struct { ctx context.Context ApiService ComponentApi componentIdOrIdentifier string - startTime *int32 - endTime *int32 topologyTime *int32 } -// The start time of a time range to query resources. -func (r ApiGetComponentMetricsWithDataRequest) StartTime(startTime int32) ApiGetComponentMetricsWithDataRequest { - r.startTime = &startTime - return r -} - -// The end time of a time range to query resources. -func (r ApiGetComponentMetricsWithDataRequest) EndTime(endTime int32) ApiGetComponentMetricsWithDataRequest { - r.endTime = &endTime - return r -} - // A timestamp at which resources will be queried. If not given the resources are queried at current time. -func (r ApiGetComponentMetricsWithDataRequest) TopologyTime(topologyTime int32) ApiGetComponentMetricsWithDataRequest { +func (r ApiGetFullComponentRequest) TopologyTime(topologyTime int32) ApiGetFullComponentRequest { r.topologyTime = &topologyTime return r } -func (r ApiGetComponentMetricsWithDataRequest) Execute() (*BoundMetrics, *http.Response, error) { - return r.ApiService.GetComponentMetricsWithDataExecute(r) +func (r ApiGetFullComponentRequest) Execute() (*FullComponent, *http.Response, error) { + return r.ApiService.GetFullComponentExecute(r) } /* -GetComponentMetricsWithData Bound metric bindings that have data for a component +GetFullComponent Get full component -Bound metric bindings for metrics that have data for a component +Get full component details @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param componentIdOrIdentifier The id or identifier (urn) of a component - @return ApiGetComponentMetricsWithDataRequest + @return ApiGetFullComponentRequest */ -func (a *ComponentApiService) GetComponentMetricsWithData(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentMetricsWithDataRequest { - return ApiGetComponentMetricsWithDataRequest{ +func (a *ComponentApiService) GetFullComponent(ctx context.Context, componentIdOrIdentifier string) ApiGetFullComponentRequest { + return ApiGetFullComponentRequest{ ApiService: a, ctx: ctx, componentIdOrIdentifier: componentIdOrIdentifier, @@ -679,38 +665,30 @@ func (a *ComponentApiService) GetComponentMetricsWithData(ctx context.Context, c // Execute executes the request // -// @return BoundMetrics -func (a *ComponentApiService) GetComponentMetricsWithDataExecute(r ApiGetComponentMetricsWithDataRequest) (*BoundMetrics, *http.Response, error) { +// @return FullComponent +func (a *ComponentApiService) GetFullComponentExecute(r ApiGetFullComponentRequest) (*FullComponent, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *BoundMetrics + localVarReturnValue *FullComponent ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetComponentMetricsWithData") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetFullComponent") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/components/{componentIdOrIdentifier}/boundMetricsWithData" + localVarPath := localBasePath + "/components/{componentIdOrIdentifier}" localVarPath = strings.Replace(localVarPath, "{"+"componentIdOrIdentifier"+"}", url.PathEscape(parameterToString(r.componentIdOrIdentifier, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.startTime == nil { - return localVarReturnValue, nil, reportError("startTime is required and must be specified") - } - if r.endTime == nil { - return localVarReturnValue, nil, reportError("endTime is required and must be specified") - } if r.topologyTime != nil { localVarQueryParams.Add("topologyTime", parameterToString(*r.topologyTime, "")) } - localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) - localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -816,34 +794,48 @@ func (a *ComponentApiService) GetComponentMetricsWithDataExecute(r ApiGetCompone return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetFullComponentRequest struct { +type ApiGetMetricPerspectiveDataRequest struct { ctx context.Context ApiService ComponentApi componentIdOrIdentifier string + startTime *int32 + endTime *int32 topologyTime *int32 } +// The start time of a time range to query resources. +func (r ApiGetMetricPerspectiveDataRequest) StartTime(startTime int32) ApiGetMetricPerspectiveDataRequest { + r.startTime = &startTime + return r +} + +// The end time of a time range to query resources. +func (r ApiGetMetricPerspectiveDataRequest) EndTime(endTime int32) ApiGetMetricPerspectiveDataRequest { + r.endTime = &endTime + return r +} + // A timestamp at which resources will be queried. If not given the resources are queried at current time. -func (r ApiGetFullComponentRequest) TopologyTime(topologyTime int32) ApiGetFullComponentRequest { +func (r ApiGetMetricPerspectiveDataRequest) TopologyTime(topologyTime int32) ApiGetMetricPerspectiveDataRequest { r.topologyTime = &topologyTime return r } -func (r ApiGetFullComponentRequest) Execute() (*FullComponent, *http.Response, error) { - return r.ApiService.GetFullComponentExecute(r) +func (r ApiGetMetricPerspectiveDataRequest) Execute() (*MetricPerspectiveData, *http.Response, error) { + return r.ApiService.GetMetricPerspectiveDataExecute(r) } /* -GetFullComponent Get full component +GetMetricPerspectiveData Bound metric bindings that have data for a component -Get full component details +Bound metric bindings for metrics that have data for a component @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param componentIdOrIdentifier The id or identifier (urn) of a component - @return ApiGetFullComponentRequest + @return ApiGetMetricPerspectiveDataRequest */ -func (a *ComponentApiService) GetFullComponent(ctx context.Context, componentIdOrIdentifier string) ApiGetFullComponentRequest { - return ApiGetFullComponentRequest{ +func (a *ComponentApiService) GetMetricPerspectiveData(ctx context.Context, componentIdOrIdentifier string) ApiGetMetricPerspectiveDataRequest { + return ApiGetMetricPerspectiveDataRequest{ ApiService: a, ctx: ctx, componentIdOrIdentifier: componentIdOrIdentifier, @@ -852,30 +844,38 @@ func (a *ComponentApiService) GetFullComponent(ctx context.Context, componentIdO // Execute executes the request // -// @return FullComponent -func (a *ComponentApiService) GetFullComponentExecute(r ApiGetFullComponentRequest) (*FullComponent, *http.Response, error) { +// @return MetricPerspectiveData +func (a *ComponentApiService) GetMetricPerspectiveDataExecute(r ApiGetMetricPerspectiveDataRequest) (*MetricPerspectiveData, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *FullComponent + localVarReturnValue *MetricPerspectiveData ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetFullComponent") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComponentApiService.GetMetricPerspectiveData") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/components/{componentIdOrIdentifier}" + localVarPath := localBasePath + "/components/{componentIdOrIdentifier}/metricPerspectiveData" localVarPath = strings.Replace(localVarPath, "{"+"componentIdOrIdentifier"+"}", url.PathEscape(parameterToString(r.componentIdOrIdentifier, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.startTime == nil { + return localVarReturnValue, nil, reportError("startTime is required and must be specified") + } + if r.endTime == nil { + return localVarReturnValue, nil, reportError("endTime is required and must be specified") + } if r.topologyTime != nil { localVarQueryParams.Add("topologyTime", parameterToString(*r.topologyTime, "")) } + localVarQueryParams.Add("startTime", parameterToString(*r.startTime, "")) + localVarQueryParams.Add("endTime", parameterToString(*r.endTime, "")) // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -986,33 +986,63 @@ func (a *ComponentApiService) GetFullComponentExecute(r ApiGetFullComponentReque // --------------------------------------------- type ComponentApiMock struct { - GetComponentCheckStatesCalls *[]GetComponentCheckStatesCall - GetComponentCheckStatesResponse GetComponentCheckStatesMockResponse - GetComponentHealthHistoryCalls *[]GetComponentHealthHistoryCall - GetComponentHealthHistoryResponse GetComponentHealthHistoryMockResponse - GetComponentMetricBindingCalls *[]GetComponentMetricBindingCall - GetComponentMetricBindingResponse GetComponentMetricBindingMockResponse - GetComponentMetricsWithDataCalls *[]GetComponentMetricsWithDataCall - GetComponentMetricsWithDataResponse GetComponentMetricsWithDataMockResponse - GetFullComponentCalls *[]GetFullComponentCall - GetFullComponentResponse GetFullComponentMockResponse + GetComponentBoundMetricCalls *[]GetComponentBoundMetricCall + GetComponentBoundMetricResponse GetComponentBoundMetricMockResponse + GetComponentCheckStatesCalls *[]GetComponentCheckStatesCall + GetComponentCheckStatesResponse GetComponentCheckStatesMockResponse + GetComponentHealthHistoryCalls *[]GetComponentHealthHistoryCall + GetComponentHealthHistoryResponse GetComponentHealthHistoryMockResponse + GetFullComponentCalls *[]GetFullComponentCall + GetFullComponentResponse GetFullComponentMockResponse + GetMetricPerspectiveDataCalls *[]GetMetricPerspectiveDataCall + GetMetricPerspectiveDataResponse GetMetricPerspectiveDataMockResponse } func NewComponentApiMock() ComponentApiMock { + xGetComponentBoundMetricCalls := make([]GetComponentBoundMetricCall, 0) xGetComponentCheckStatesCalls := make([]GetComponentCheckStatesCall, 0) xGetComponentHealthHistoryCalls := make([]GetComponentHealthHistoryCall, 0) - xGetComponentMetricBindingCalls := make([]GetComponentMetricBindingCall, 0) - xGetComponentMetricsWithDataCalls := make([]GetComponentMetricsWithDataCall, 0) xGetFullComponentCalls := make([]GetFullComponentCall, 0) + xGetMetricPerspectiveDataCalls := make([]GetMetricPerspectiveDataCall, 0) return ComponentApiMock{ - GetComponentCheckStatesCalls: &xGetComponentCheckStatesCalls, - GetComponentHealthHistoryCalls: &xGetComponentHealthHistoryCalls, - GetComponentMetricBindingCalls: &xGetComponentMetricBindingCalls, - GetComponentMetricsWithDataCalls: &xGetComponentMetricsWithDataCalls, - GetFullComponentCalls: &xGetFullComponentCalls, + GetComponentBoundMetricCalls: &xGetComponentBoundMetricCalls, + GetComponentCheckStatesCalls: &xGetComponentCheckStatesCalls, + GetComponentHealthHistoryCalls: &xGetComponentHealthHistoryCalls, + GetFullComponentCalls: &xGetFullComponentCalls, + GetMetricPerspectiveDataCalls: &xGetMetricPerspectiveDataCalls, } } +type GetComponentBoundMetricMockResponse struct { + Result BoundMetric + Response *http.Response + Error error +} + +type GetComponentBoundMetricCall struct { + PcomponentIdOrIdentifier string + PboundMetricId *BoundMetricId + PtopologyTime *int32 +} + +func (mock ComponentApiMock) GetComponentBoundMetric(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentBoundMetricRequest { + return ApiGetComponentBoundMetricRequest{ + ApiService: mock, + ctx: ctx, + componentIdOrIdentifier: componentIdOrIdentifier, + } +} + +func (mock ComponentApiMock) GetComponentBoundMetricExecute(r ApiGetComponentBoundMetricRequest) (*BoundMetric, *http.Response, error) { + p := GetComponentBoundMetricCall{ + PcomponentIdOrIdentifier: r.componentIdOrIdentifier, + PboundMetricId: r.boundMetricId, + PtopologyTime: r.topologyTime, + } + *mock.GetComponentBoundMetricCalls = append(*mock.GetComponentBoundMetricCalls, p) + return &mock.GetComponentBoundMetricResponse.Result, mock.GetComponentBoundMetricResponse.Response, mock.GetComponentBoundMetricResponse.Error +} + type GetComponentCheckStatesMockResponse struct { Result ComponentCheckStates Response *http.Response @@ -1073,92 +1103,62 @@ func (mock ComponentApiMock) GetComponentHealthHistoryExecute(r ApiGetComponentH return &mock.GetComponentHealthHistoryResponse.Result, mock.GetComponentHealthHistoryResponse.Response, mock.GetComponentHealthHistoryResponse.Error } -type GetComponentMetricBindingMockResponse struct { - Result BoundMetric +type GetFullComponentMockResponse struct { + Result FullComponent Response *http.Response Error error } -type GetComponentMetricBindingCall struct { +type GetFullComponentCall struct { PcomponentIdOrIdentifier string - PmetricBindingIdentifier *string PtopologyTime *int32 } -func (mock ComponentApiMock) GetComponentMetricBinding(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentMetricBindingRequest { - return ApiGetComponentMetricBindingRequest{ +func (mock ComponentApiMock) GetFullComponent(ctx context.Context, componentIdOrIdentifier string) ApiGetFullComponentRequest { + return ApiGetFullComponentRequest{ ApiService: mock, ctx: ctx, componentIdOrIdentifier: componentIdOrIdentifier, } } -func (mock ComponentApiMock) GetComponentMetricBindingExecute(r ApiGetComponentMetricBindingRequest) (*BoundMetric, *http.Response, error) { - p := GetComponentMetricBindingCall{ +func (mock ComponentApiMock) GetFullComponentExecute(r ApiGetFullComponentRequest) (*FullComponent, *http.Response, error) { + p := GetFullComponentCall{ PcomponentIdOrIdentifier: r.componentIdOrIdentifier, - PmetricBindingIdentifier: r.metricBindingIdentifier, PtopologyTime: r.topologyTime, } - *mock.GetComponentMetricBindingCalls = append(*mock.GetComponentMetricBindingCalls, p) - return &mock.GetComponentMetricBindingResponse.Result, mock.GetComponentMetricBindingResponse.Response, mock.GetComponentMetricBindingResponse.Error + *mock.GetFullComponentCalls = append(*mock.GetFullComponentCalls, p) + return &mock.GetFullComponentResponse.Result, mock.GetFullComponentResponse.Response, mock.GetFullComponentResponse.Error } -type GetComponentMetricsWithDataMockResponse struct { - Result BoundMetrics +type GetMetricPerspectiveDataMockResponse struct { + Result MetricPerspectiveData Response *http.Response Error error } -type GetComponentMetricsWithDataCall struct { +type GetMetricPerspectiveDataCall struct { PcomponentIdOrIdentifier string PstartTime *int32 PendTime *int32 PtopologyTime *int32 } -func (mock ComponentApiMock) GetComponentMetricsWithData(ctx context.Context, componentIdOrIdentifier string) ApiGetComponentMetricsWithDataRequest { - return ApiGetComponentMetricsWithDataRequest{ +func (mock ComponentApiMock) GetMetricPerspectiveData(ctx context.Context, componentIdOrIdentifier string) ApiGetMetricPerspectiveDataRequest { + return ApiGetMetricPerspectiveDataRequest{ ApiService: mock, ctx: ctx, componentIdOrIdentifier: componentIdOrIdentifier, } } -func (mock ComponentApiMock) GetComponentMetricsWithDataExecute(r ApiGetComponentMetricsWithDataRequest) (*BoundMetrics, *http.Response, error) { - p := GetComponentMetricsWithDataCall{ +func (mock ComponentApiMock) GetMetricPerspectiveDataExecute(r ApiGetMetricPerspectiveDataRequest) (*MetricPerspectiveData, *http.Response, error) { + p := GetMetricPerspectiveDataCall{ PcomponentIdOrIdentifier: r.componentIdOrIdentifier, PstartTime: r.startTime, PendTime: r.endTime, PtopologyTime: r.topologyTime, } - *mock.GetComponentMetricsWithDataCalls = append(*mock.GetComponentMetricsWithDataCalls, p) - return &mock.GetComponentMetricsWithDataResponse.Result, mock.GetComponentMetricsWithDataResponse.Response, mock.GetComponentMetricsWithDataResponse.Error -} - -type GetFullComponentMockResponse struct { - Result FullComponent - Response *http.Response - Error error -} - -type GetFullComponentCall struct { - PcomponentIdOrIdentifier string - PtopologyTime *int32 -} - -func (mock ComponentApiMock) GetFullComponent(ctx context.Context, componentIdOrIdentifier string) ApiGetFullComponentRequest { - return ApiGetFullComponentRequest{ - ApiService: mock, - ctx: ctx, - componentIdOrIdentifier: componentIdOrIdentifier, - } -} - -func (mock ComponentApiMock) GetFullComponentExecute(r ApiGetFullComponentRequest) (*FullComponent, *http.Response, error) { - p := GetFullComponentCall{ - PcomponentIdOrIdentifier: r.componentIdOrIdentifier, - PtopologyTime: r.topologyTime, - } - *mock.GetFullComponentCalls = append(*mock.GetFullComponentCalls, p) - return &mock.GetFullComponentResponse.Result, mock.GetFullComponentResponse.Response, mock.GetFullComponentResponse.Error + *mock.GetMetricPerspectiveDataCalls = append(*mock.GetMetricPerspectiveDataCalls, p) + return &mock.GetMetricPerspectiveDataResponse.Result, mock.GetMetricPerspectiveDataResponse.Response, mock.GetMetricPerspectiveDataResponse.Error } diff --git a/generated/stackstate_api/api_overview.go b/generated/stackstate_api/api_overview.go index f2ad60c8..2454e0b4 100644 --- a/generated/stackstate_api/api_overview.go +++ b/generated/stackstate_api/api_overview.go @@ -187,6 +187,16 @@ func (a *OverviewApiService) GetOverviewExecute(r ApiGetOverviewRequest) (*Overv return localVarReturnValue, localVarHTTPResponse, newErr } newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v OverviewErrorResponse + 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 } diff --git a/generated/stackstate_api/api_layout.go b/generated/stackstate_api/api_perspectives.go similarity index 55% rename from generated/stackstate_api/api_layout.go rename to generated/stackstate_api/api_perspectives.go index f109fef5..bee1702d 100644 --- a/generated/stackstate_api/api_layout.go +++ b/generated/stackstate_api/api_perspectives.go @@ -17,69 +17,82 @@ import ( "io/ioutil" "net/http" "net/url" + "strings" ) -type LayoutApi interface { +type PerspectivesApi interface { /* - GetAllLayouts List layout hints + GetPerspectives Get the perspectives for a view - List all available layout hints in the system + Returns the perspectives, and the per-perspective configs that are available. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAllLayoutsRequest + Acts as the canonical view-open permission check: returns 403 when the + caller lacks access and 404 when the URN does not resolve. + + + @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 ApiGetPerspectivesRequest */ - GetAllLayouts(ctx context.Context) ApiGetAllLayoutsRequest + GetPerspectives(ctx context.Context, presentationOrViewUrn string) ApiGetPerspectivesRequest - // GetAllLayoutsExecute executes the request - // @return LayoutList - GetAllLayoutsExecute(r ApiGetAllLayoutsRequest) (*LayoutList, *http.Response, error) + // GetPerspectivesExecute executes the request + // @return Perspectives + GetPerspectivesExecute(r ApiGetPerspectivesRequest) (*Perspectives, *http.Response, error) } -// LayoutApiService LayoutApi service -type LayoutApiService service +// PerspectivesApiService PerspectivesApi service +type PerspectivesApiService service -type ApiGetAllLayoutsRequest struct { - ctx context.Context - ApiService LayoutApi +type ApiGetPerspectivesRequest struct { + ctx context.Context + ApiService PerspectivesApi + presentationOrViewUrn string } -func (r ApiGetAllLayoutsRequest) Execute() (*LayoutList, *http.Response, error) { - return r.ApiService.GetAllLayoutsExecute(r) +func (r ApiGetPerspectivesRequest) Execute() (*Perspectives, *http.Response, error) { + return r.ApiService.GetPerspectivesExecute(r) } /* -GetAllLayouts List layout hints +GetPerspectives Get the perspectives for a view + +Returns the perspectives, and the per-perspective configs that are available. -List all available layout hints in the system +Acts as the canonical view-open permission check: returns 403 when the +caller lacks access and 404 when the URN does not resolve. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAllLayoutsRequest + @param presentationOrViewUrn A Component Presentation Identifier, legacy View (QueryView, ViewType) URNs are supported for backward compatibility + @return ApiGetPerspectivesRequest */ -func (a *LayoutApiService) GetAllLayouts(ctx context.Context) ApiGetAllLayoutsRequest { - return ApiGetAllLayoutsRequest{ - ApiService: a, - ctx: ctx, +func (a *PerspectivesApiService) GetPerspectives(ctx context.Context, presentationOrViewUrn string) ApiGetPerspectivesRequest { + return ApiGetPerspectivesRequest{ + ApiService: a, + ctx: ctx, + presentationOrViewUrn: presentationOrViewUrn, } } // Execute executes the request // -// @return LayoutList -func (a *LayoutApiService) GetAllLayoutsExecute(r ApiGetAllLayoutsRequest) (*LayoutList, *http.Response, error) { +// @return Perspectives +func (a *PerspectivesApiService) GetPerspectivesExecute(r ApiGetPerspectivesRequest) (*Perspectives, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *LayoutList + localVarReturnValue *Perspectives ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LayoutApiService.GetAllLayouts") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PerspectivesApiService.GetPerspectives") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/layouts" + localVarPath := localBasePath + "/perspectives/{presentationOrViewUrn}" + localVarPath = strings.Replace(localVarPath, "{"+"presentationOrViewUrn"+"}", url.PathEscape(parameterToString(r.presentationOrViewUrn, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -166,8 +179,18 @@ func (a *LayoutApiService) GetAllLayoutsExecute(r ApiGetAllLayoutsRequest) (*Lay body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 404 { + var v PerspectivesApiError + 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 LayoutApiError + var v PerspectivesApiError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -194,36 +217,40 @@ func (a *LayoutApiService) GetAllLayoutsExecute(r ApiGetAllLayoutsRequest) (*Lay // ------------------ MOCKS -------------------- // --------------------------------------------- -type LayoutApiMock struct { - GetAllLayoutsCalls *[]GetAllLayoutsCall - GetAllLayoutsResponse GetAllLayoutsMockResponse +type PerspectivesApiMock struct { + GetPerspectivesCalls *[]GetPerspectivesCall + GetPerspectivesResponse GetPerspectivesMockResponse } -func NewLayoutApiMock() LayoutApiMock { - xGetAllLayoutsCalls := make([]GetAllLayoutsCall, 0) - return LayoutApiMock{ - GetAllLayoutsCalls: &xGetAllLayoutsCalls, +func NewPerspectivesApiMock() PerspectivesApiMock { + xGetPerspectivesCalls := make([]GetPerspectivesCall, 0) + return PerspectivesApiMock{ + GetPerspectivesCalls: &xGetPerspectivesCalls, } } -type GetAllLayoutsMockResponse struct { - Result LayoutList +type GetPerspectivesMockResponse struct { + Result Perspectives Response *http.Response Error error } -type GetAllLayoutsCall struct { +type GetPerspectivesCall struct { + PpresentationOrViewUrn string } -func (mock LayoutApiMock) GetAllLayouts(ctx context.Context) ApiGetAllLayoutsRequest { - return ApiGetAllLayoutsRequest{ - ApiService: mock, - ctx: ctx, +func (mock PerspectivesApiMock) GetPerspectives(ctx context.Context, presentationOrViewUrn string) ApiGetPerspectivesRequest { + return ApiGetPerspectivesRequest{ + ApiService: mock, + ctx: ctx, + presentationOrViewUrn: presentationOrViewUrn, } } -func (mock LayoutApiMock) GetAllLayoutsExecute(r ApiGetAllLayoutsRequest) (*LayoutList, *http.Response, error) { - p := GetAllLayoutsCall{} - *mock.GetAllLayoutsCalls = append(*mock.GetAllLayoutsCalls, p) - return &mock.GetAllLayoutsResponse.Result, mock.GetAllLayoutsResponse.Response, mock.GetAllLayoutsResponse.Error +func (mock PerspectivesApiMock) GetPerspectivesExecute(r ApiGetPerspectivesRequest) (*Perspectives, *http.Response, error) { + p := GetPerspectivesCall{ + PpresentationOrViewUrn: r.presentationOrViewUrn, + } + *mock.GetPerspectivesCalls = append(*mock.GetPerspectivesCalls, p) + return &mock.GetPerspectivesResponse.Result, mock.GetPerspectivesResponse.Response, mock.GetPerspectivesResponse.Error } diff --git a/generated/stackstate_api/api_view.go b/generated/stackstate_api/api_view.go new file mode 100644 index 00000000..5cf5439f --- /dev/null +++ b/generated/stackstate_api/api_view.go @@ -0,0 +1,440 @@ +/* +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 ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +type ViewApi interface { + + /* + GetView Get a single view + + Get a QueryView by its ID or identifier. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param viewIdOrIdentifier The system ID or identifier of a QueryView. + @return ApiGetViewRequest + */ + GetView(ctx context.Context, viewIdOrIdentifier string) ApiGetViewRequest + + // GetViewExecute executes the request + // @return View + GetViewExecute(r ApiGetViewRequest) (*View, *http.Response, error) + + /* + GetViews Get a list of views + + Get a list of all QueryView settings. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetViewsRequest + */ + GetViews(ctx context.Context) ApiGetViewsRequest + + // GetViewsExecute executes the request + // @return ViewList + GetViewsExecute(r ApiGetViewsRequest) (*ViewList, *http.Response, error) +} + +// ViewApiService ViewApi service +type ViewApiService service + +type ApiGetViewRequest struct { + ctx context.Context + ApiService ViewApi + viewIdOrIdentifier string +} + +func (r ApiGetViewRequest) Execute() (*View, *http.Response, error) { + return r.ApiService.GetViewExecute(r) +} + +/* +GetView Get a single view + +Get a QueryView by its ID or identifier. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param viewIdOrIdentifier The system ID or identifier of a QueryView. + @return ApiGetViewRequest +*/ +func (a *ViewApiService) GetView(ctx context.Context, viewIdOrIdentifier string) ApiGetViewRequest { + return ApiGetViewRequest{ + ApiService: a, + ctx: ctx, + viewIdOrIdentifier: viewIdOrIdentifier, + } +} + +// Execute executes the request +// +// @return View +func (a *ViewApiService) GetViewExecute(r ApiGetViewRequest) (*View, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *View + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ViewApiService.GetView") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/views/{viewIdOrIdentifier}" + localVarPath = strings.Replace(localVarPath, "{"+"viewIdOrIdentifier"+"}", url.PathEscape(parameterToString(r.viewIdOrIdentifier, "")), -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 == 404 { + var v ViewNotFoundError + 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 GenericErrorsResponse + 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 ApiGetViewsRequest struct { + ctx context.Context + ApiService ViewApi +} + +func (r ApiGetViewsRequest) Execute() (*ViewList, *http.Response, error) { + return r.ApiService.GetViewsExecute(r) +} + +/* +GetViews Get a list of views + +Get a list of all QueryView settings. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetViewsRequest +*/ +func (a *ViewApiService) GetViews(ctx context.Context) ApiGetViewsRequest { + return ApiGetViewsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ViewList +func (a *ViewApiService) GetViewsExecute(r ApiGetViewsRequest) (*ViewList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ViewList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ViewApiService.GetViews") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/views" + + 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 == 500 { + var v GenericErrorsResponse + 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 +} + +// --------------------------------------------- +// ------------------ MOCKS -------------------- +// --------------------------------------------- + +type ViewApiMock struct { + GetViewCalls *[]GetViewCall + GetViewResponse GetViewMockResponse + GetViewsCalls *[]GetViewsCall + GetViewsResponse GetViewsMockResponse +} + +func NewViewApiMock() ViewApiMock { + xGetViewCalls := make([]GetViewCall, 0) + xGetViewsCalls := make([]GetViewsCall, 0) + return ViewApiMock{ + GetViewCalls: &xGetViewCalls, + GetViewsCalls: &xGetViewsCalls, + } +} + +type GetViewMockResponse struct { + Result View + Response *http.Response + Error error +} + +type GetViewCall struct { + PviewIdOrIdentifier string +} + +func (mock ViewApiMock) GetView(ctx context.Context, viewIdOrIdentifier string) ApiGetViewRequest { + return ApiGetViewRequest{ + ApiService: mock, + ctx: ctx, + viewIdOrIdentifier: viewIdOrIdentifier, + } +} + +func (mock ViewApiMock) GetViewExecute(r ApiGetViewRequest) (*View, *http.Response, error) { + p := GetViewCall{ + PviewIdOrIdentifier: r.viewIdOrIdentifier, + } + *mock.GetViewCalls = append(*mock.GetViewCalls, p) + return &mock.GetViewResponse.Result, mock.GetViewResponse.Response, mock.GetViewResponse.Error +} + +type GetViewsMockResponse struct { + Result ViewList + Response *http.Response + Error error +} + +type GetViewsCall struct { +} + +func (mock ViewApiMock) GetViews(ctx context.Context) ApiGetViewsRequest { + return ApiGetViewsRequest{ + ApiService: mock, + ctx: ctx, + } +} + +func (mock ViewApiMock) GetViewsExecute(r ApiGetViewsRequest) (*ViewList, *http.Response, error) { + p := GetViewsCall{} + *mock.GetViewsCalls = append(*mock.GetViewsCalls, p) + return &mock.GetViewsResponse.Result, mock.GetViewsResponse.Response, mock.GetViewsResponse.Error +} diff --git a/generated/stackstate_api/client.go b/generated/stackstate_api/client.go index 2c4b740d..27e181a3 100644 --- a/generated/stackstate_api/client.go +++ b/generated/stackstate_api/client.go @@ -74,8 +74,6 @@ type APIClient struct { KubernetesLogsApi KubernetesLogsApi - LayoutApi LayoutApi - MainMenuApi MainMenuApi MetricApi MetricApi @@ -96,6 +94,8 @@ type APIClient struct { PermissionsApi PermissionsApi + PerspectivesApi PerspectivesApi + ProblemApi ProblemApi RelationApi RelationApi @@ -129,6 +129,8 @@ type APIClient struct { UserProfileApi UserProfileApi UserSessionApi UserSessionApi + + ViewApi ViewApi } type service struct { @@ -159,7 +161,6 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.HealthSynchronizationApi = (*HealthSynchronizationApiService)(&c.common) c.ImportApi = (*ImportApiService)(&c.common) c.KubernetesLogsApi = (*KubernetesLogsApiService)(&c.common) - c.LayoutApi = (*LayoutApiService)(&c.common) c.MainMenuApi = (*MainMenuApiService)(&c.common) c.MetricApi = (*MetricApiService)(&c.common) c.MonitorApi = (*MonitorApiService)(&c.common) @@ -170,6 +171,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.OtelMappingApi = (*OtelMappingApiService)(&c.common) c.OverviewApi = (*OverviewApiService)(&c.common) c.PermissionsApi = (*PermissionsApiService)(&c.common) + c.PerspectivesApi = (*PerspectivesApiService)(&c.common) c.ProblemApi = (*ProblemApiService)(&c.common) c.RelationApi = (*RelationApiService)(&c.common) c.ScriptingApi = (*ScriptingApiService)(&c.common) @@ -187,6 +189,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.UserAuthorizationApi = (*UserAuthorizationApiService)(&c.common) c.UserProfileApi = (*UserProfileApiService)(&c.common) c.UserSessionApi = (*UserSessionApiService)(&c.common) + c.ViewApi = (*ViewApiService)(&c.common) return c } diff --git a/generated/stackstate_api/docs/BoundMetric.md b/generated/stackstate_api/docs/BoundMetric.md index f720a5cf..b10d4998 100644 --- a/generated/stackstate_api/docs/BoundMetric.md +++ b/generated/stackstate_api/docs/BoundMetric.md @@ -4,23 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**BoundMetricId** | Pointer to [**BoundMetricId**](BoundMetricId.md) | | [optional] **Name** | **string** | | -**Identifier** | Pointer to **string** | | [optional] **BoundQueries** | [**[]BoundMetricQuery**](BoundMetricQuery.md) | | **Description** | Pointer to **string** | | [optional] **Unit** | Pointer to **string** | | [optional] **ChartType** | [**ChartType**](ChartType.md) | | **Alias** | Pointer to **string** | | [optional] -**Valuation** | Pointer to [**MetricValuation**](MetricValuation.md) | | [optional] -**Tags** | **map[string]string** | | -**Layout** | Pointer to [**MetricBindingLayout**](MetricBindingLayout.md) | | [optional] **Dummy** | Pointer to **bool** | | [optional] ## Methods ### NewBoundMetric -`func NewBoundMetric(name string, boundQueries []BoundMetricQuery, chartType ChartType, tags map[string]string, ) *BoundMetric` +`func NewBoundMetric(name string, boundQueries []BoundMetricQuery, chartType ChartType, ) *BoundMetric` NewBoundMetric instantiates a new BoundMetric object This constructor will assign default values to properties that have it defined, @@ -35,50 +32,50 @@ NewBoundMetricWithDefaults instantiates a new BoundMetric 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 -### GetName +### GetBoundMetricId -`func (o *BoundMetric) GetName() string` +`func (o *BoundMetric) GetBoundMetricId() BoundMetricId` -GetName returns the Name field if non-nil, zero value otherwise. +GetBoundMetricId returns the BoundMetricId field if non-nil, zero value otherwise. -### GetNameOk +### GetBoundMetricIdOk -`func (o *BoundMetric) GetNameOk() (*string, bool)` +`func (o *BoundMetric) GetBoundMetricIdOk() (*BoundMetricId, bool)` -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +GetBoundMetricIdOk returns a tuple with the BoundMetricId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetName +### SetBoundMetricId -`func (o *BoundMetric) SetName(v string)` +`func (o *BoundMetric) SetBoundMetricId(v BoundMetricId)` -SetName sets Name field to given value. +SetBoundMetricId sets BoundMetricId field to given value. +### HasBoundMetricId -### GetIdentifier +`func (o *BoundMetric) HasBoundMetricId() bool` -`func (o *BoundMetric) GetIdentifier() string` +HasBoundMetricId returns a boolean if a field has been set. -GetIdentifier returns the Identifier field if non-nil, zero value otherwise. +### GetName -### GetIdentifierOk +`func (o *BoundMetric) GetName() string` -`func (o *BoundMetric) GetIdentifierOk() (*string, bool)` +GetName returns the Name field if 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. +### GetNameOk -### SetIdentifier +`func (o *BoundMetric) GetNameOk() (*string, bool)` -`func (o *BoundMetric) SetIdentifier(v string)` +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. -SetIdentifier sets Identifier field to given value. +### SetName -### HasIdentifier +`func (o *BoundMetric) SetName(v string)` -`func (o *BoundMetric) HasIdentifier() bool` +SetName sets Name field to given value. -HasIdentifier returns a boolean if a field has been set. ### GetBoundQueries @@ -195,76 +192,6 @@ SetAlias sets Alias field to given value. HasAlias returns a boolean if a field has been set. -### GetValuation - -`func (o *BoundMetric) GetValuation() MetricValuation` - -GetValuation returns the Valuation field if non-nil, zero value otherwise. - -### GetValuationOk - -`func (o *BoundMetric) GetValuationOk() (*MetricValuation, bool)` - -GetValuationOk returns a tuple with the Valuation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValuation - -`func (o *BoundMetric) SetValuation(v MetricValuation)` - -SetValuation sets Valuation field to given value. - -### HasValuation - -`func (o *BoundMetric) HasValuation() bool` - -HasValuation returns a boolean if a field has been set. - -### GetTags - -`func (o *BoundMetric) GetTags() map[string]string` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *BoundMetric) GetTagsOk() (*map[string]string, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *BoundMetric) SetTags(v map[string]string)` - -SetTags sets Tags field to given value. - - -### GetLayout - -`func (o *BoundMetric) GetLayout() MetricBindingLayout` - -GetLayout returns the Layout field if non-nil, zero value otherwise. - -### GetLayoutOk - -`func (o *BoundMetric) GetLayoutOk() (*MetricBindingLayout, bool)` - -GetLayoutOk returns a tuple with the Layout field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLayout - -`func (o *BoundMetric) SetLayout(v MetricBindingLayout)` - -SetLayout sets Layout field to given value. - -### HasLayout - -`func (o *BoundMetric) HasLayout() bool` - -HasLayout returns a boolean if a field has been set. - ### GetDummy `func (o *BoundMetric) GetDummy() bool` diff --git a/generated/stackstate_api/docs/BoundMetricBindingId.md b/generated/stackstate_api/docs/BoundMetricBindingId.md new file mode 100644 index 00000000..5eca8aab --- /dev/null +++ b/generated/stackstate_api/docs/BoundMetricBindingId.md @@ -0,0 +1,72 @@ +# BoundMetricBindingId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Identifier** | **string** | | + +## Methods + +### NewBoundMetricBindingId + +`func NewBoundMetricBindingId(type_ string, identifier string, ) *BoundMetricBindingId` + +NewBoundMetricBindingId instantiates a new BoundMetricBindingId 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 + +### NewBoundMetricBindingIdWithDefaults + +`func NewBoundMetricBindingIdWithDefaults() *BoundMetricBindingId` + +NewBoundMetricBindingIdWithDefaults instantiates a new BoundMetricBindingId 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 *BoundMetricBindingId) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BoundMetricBindingId) 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 *BoundMetricBindingId) SetType(v string)` + +SetType sets Type field to given value. + + +### GetIdentifier + +`func (o *BoundMetricBindingId) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *BoundMetricBindingId) 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 *BoundMetricBindingId) 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/BoundMetricId.md b/generated/stackstate_api/docs/BoundMetricId.md new file mode 100644 index 00000000..97ec0bd9 --- /dev/null +++ b/generated/stackstate_api/docs/BoundMetricId.md @@ -0,0 +1,119 @@ +# BoundMetricId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Identifier** | **string** | | +**PresentationIdentifier** | Pointer to **string** | | [optional] +**MetricId** | **string** | | + +## Methods + +### NewBoundMetricId + +`func NewBoundMetricId(type_ string, identifier string, metricId string, ) *BoundMetricId` + +NewBoundMetricId instantiates a new BoundMetricId 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 + +### NewBoundMetricIdWithDefaults + +`func NewBoundMetricIdWithDefaults() *BoundMetricId` + +NewBoundMetricIdWithDefaults instantiates a new BoundMetricId 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 *BoundMetricId) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BoundMetricId) 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 *BoundMetricId) SetType(v string)` + +SetType sets Type field to given value. + + +### GetIdentifier + +`func (o *BoundMetricId) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *BoundMetricId) 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 *BoundMetricId) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + +### GetPresentationIdentifier + +`func (o *BoundMetricId) GetPresentationIdentifier() string` + +GetPresentationIdentifier returns the PresentationIdentifier field if non-nil, zero value otherwise. + +### GetPresentationIdentifierOk + +`func (o *BoundMetricId) GetPresentationIdentifierOk() (*string, bool)` + +GetPresentationIdentifierOk returns a tuple with the PresentationIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPresentationIdentifier + +`func (o *BoundMetricId) SetPresentationIdentifier(v string)` + +SetPresentationIdentifier sets PresentationIdentifier field to given value. + +### HasPresentationIdentifier + +`func (o *BoundMetricId) HasPresentationIdentifier() bool` + +HasPresentationIdentifier returns a boolean if a field has been set. + +### GetMetricId + +`func (o *BoundMetricId) GetMetricId() string` + +GetMetricId returns the MetricId field if non-nil, zero value otherwise. + +### GetMetricIdOk + +`func (o *BoundMetricId) GetMetricIdOk() (*string, 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 *BoundMetricId) SetMetricId(v string)` + +SetMetricId sets MetricId 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/BoundMetrics.md b/generated/stackstate_api/docs/BoundMetrics.md deleted file mode 100644 index bbcbab63..00000000 --- a/generated/stackstate_api/docs/BoundMetrics.md +++ /dev/null @@ -1,51 +0,0 @@ -# BoundMetrics - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BoundMetrics** | [**[]BoundMetric**](BoundMetric.md) | | - -## Methods - -### NewBoundMetrics - -`func NewBoundMetrics(boundMetrics []BoundMetric, ) *BoundMetrics` - -NewBoundMetrics instantiates a new BoundMetrics 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 - -### NewBoundMetricsWithDefaults - -`func NewBoundMetricsWithDefaults() *BoundMetrics` - -NewBoundMetricsWithDefaults instantiates a new BoundMetrics 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 - -### GetBoundMetrics - -`func (o *BoundMetrics) GetBoundMetrics() []BoundMetric` - -GetBoundMetrics returns the BoundMetrics field if non-nil, zero value otherwise. - -### GetBoundMetricsOk - -`func (o *BoundMetrics) GetBoundMetricsOk() (*[]BoundMetric, bool)` - -GetBoundMetricsOk returns a tuple with the BoundMetrics field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBoundMetrics - -`func (o *BoundMetrics) SetBoundMetrics(v []BoundMetric)` - -SetBoundMetrics sets BoundMetrics 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/BoundPresentationMetricId.md b/generated/stackstate_api/docs/BoundPresentationMetricId.md new file mode 100644 index 00000000..b921412c --- /dev/null +++ b/generated/stackstate_api/docs/BoundPresentationMetricId.md @@ -0,0 +1,98 @@ +# BoundPresentationMetricId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**PresentationIdentifier** | Pointer to **string** | | [optional] +**MetricId** | **string** | | + +## Methods + +### NewBoundPresentationMetricId + +`func NewBoundPresentationMetricId(type_ string, metricId string, ) *BoundPresentationMetricId` + +NewBoundPresentationMetricId instantiates a new BoundPresentationMetricId 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 + +### NewBoundPresentationMetricIdWithDefaults + +`func NewBoundPresentationMetricIdWithDefaults() *BoundPresentationMetricId` + +NewBoundPresentationMetricIdWithDefaults instantiates a new BoundPresentationMetricId 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 *BoundPresentationMetricId) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BoundPresentationMetricId) 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 *BoundPresentationMetricId) SetType(v string)` + +SetType sets Type field to given value. + + +### GetPresentationIdentifier + +`func (o *BoundPresentationMetricId) GetPresentationIdentifier() string` + +GetPresentationIdentifier returns the PresentationIdentifier field if non-nil, zero value otherwise. + +### GetPresentationIdentifierOk + +`func (o *BoundPresentationMetricId) GetPresentationIdentifierOk() (*string, bool)` + +GetPresentationIdentifierOk returns a tuple with the PresentationIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPresentationIdentifier + +`func (o *BoundPresentationMetricId) SetPresentationIdentifier(v string)` + +SetPresentationIdentifier sets PresentationIdentifier field to given value. + +### HasPresentationIdentifier + +`func (o *BoundPresentationMetricId) HasPresentationIdentifier() bool` + +HasPresentationIdentifier returns a boolean if a field has been set. + +### GetMetricId + +`func (o *BoundPresentationMetricId) GetMetricId() string` + +GetMetricId returns the MetricId field if non-nil, zero value otherwise. + +### GetMetricIdOk + +`func (o *BoundPresentationMetricId) GetMetricIdOk() (*string, 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 *BoundPresentationMetricId) SetMetricId(v string)` + +SetMetricId sets MetricId 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/ChartType.md b/generated/stackstate_api/docs/ChartType.md index 4306128a..ba10fca2 100644 --- a/generated/stackstate_api/docs/ChartType.md +++ b/generated/stackstate_api/docs/ChartType.md @@ -5,6 +5,10 @@ * `LINE` (value: `"line"`) +* `GAUGE` (value: `"gauge"`) + +* `STAT` (value: `"stat"`) + [[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/ComponentApi.md b/generated/stackstate_api/docs/ComponentApi.md index 0995c58a..6e69d0cc 100644 --- a/generated/stackstate_api/docs/ComponentApi.md +++ b/generated/stackstate_api/docs/ComponentApi.md @@ -4,19 +4,19 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**GetComponentBoundMetric**](ComponentApi.md#GetComponentBoundMetric) | **Post** /components/{componentIdOrIdentifier}/bindmetric | Get a bound metric for a component [**GetComponentCheckStates**](ComponentApi.md#GetComponentCheckStates) | **Get** /components/{componentIdOrIdentifier}/checkStates | Get a component checkstates [**GetComponentHealthHistory**](ComponentApi.md#GetComponentHealthHistory) | **Get** /components/{componentIdOrIdentifier}/healthHistory | Get a component health history -[**GetComponentMetricBinding**](ComponentApi.md#GetComponentMetricBinding) | **Get** /components/{componentIdOrIdentifier}/bindmetric | Get a bound metric binding to a component -[**GetComponentMetricsWithData**](ComponentApi.md#GetComponentMetricsWithData) | **Get** /components/{componentIdOrIdentifier}/boundMetricsWithData | Bound metric bindings that have data for a component [**GetFullComponent**](ComponentApi.md#GetFullComponent) | **Get** /components/{componentIdOrIdentifier} | Get full component +[**GetMetricPerspectiveData**](ComponentApi.md#GetMetricPerspectiveData) | **Get** /components/{componentIdOrIdentifier}/metricPerspectiveData | Bound metric bindings that have data for a component -## GetComponentCheckStates +## GetComponentBoundMetric -> ComponentCheckStates GetComponentCheckStates(ctx, componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).Execute() +> BoundMetric GetComponentBoundMetric(ctx, componentIdOrIdentifier).BoundMetricId(boundMetricId).TopologyTime(topologyTime).Execute() -Get a component checkstates +Get a bound metric for a component @@ -34,18 +34,18 @@ import ( func main() { componentIdOrIdentifier := "componentIdOrIdentifier_example" // string | The id or identifier (urn) of a component - startTime := int32(56) // int32 | The start time of a time range to query resources. - endTime := int32(56) // int32 | The end time of a time range to query resources. If not given the endTime is set to current time. (optional) + boundMetricId := openapiclient.BoundMetricId{BoundMetricBindingId: openapiclient.NewBoundMetricBindingId("Type_example", "Identifier_example")} // BoundMetricId | + topologyTime := int32(56) // int32 | A timestamp at which resources will be queried. If not given the resources are queried at current time. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ComponentApi.GetComponentCheckStates(context.Background(), componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).Execute() + resp, r, err := apiClient.ComponentApi.GetComponentBoundMetric(context.Background(), componentIdOrIdentifier).BoundMetricId(boundMetricId).TopologyTime(topologyTime).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetComponentCheckStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetComponentBoundMetric``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetComponentCheckStates`: ComponentCheckStates - fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetComponentCheckStates`: %v\n", resp) + // response from `GetComponentBoundMetric`: BoundMetric + fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetComponentBoundMetric`: %v\n", resp) } ``` @@ -59,18 +59,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGetComponentCheckStatesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetComponentBoundMetricRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **startTime** | **int32** | The start time of a time range to query resources. | - **endTime** | **int32** | The end time of a time range to query resources. If not given the endTime is set to current time. | + **boundMetricId** | [**BoundMetricId**](BoundMetricId.md) | | + **topologyTime** | **int32** | A timestamp at which resources will be queried. If not given the resources are queried at current time. | ### Return type -[**ComponentCheckStates**](ComponentCheckStates.md) +[**BoundMetric**](BoundMetric.md) ### Authorization @@ -78,7 +78,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -86,11 +86,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetComponentHealthHistory +## GetComponentCheckStates -> ComponentHealthHistory GetComponentHealthHistory(ctx, componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).Execute() +> ComponentCheckStates GetComponentCheckStates(ctx, componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).Execute() -Get a component health history +Get a component checkstates @@ -113,13 +113,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ComponentApi.GetComponentHealthHistory(context.Background(), componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).Execute() + resp, r, err := apiClient.ComponentApi.GetComponentCheckStates(context.Background(), componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetComponentHealthHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetComponentCheckStates``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetComponentHealthHistory`: ComponentHealthHistory - fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetComponentHealthHistory`: %v\n", resp) + // response from `GetComponentCheckStates`: ComponentCheckStates + fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetComponentCheckStates`: %v\n", resp) } ``` @@ -133,7 +133,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGetComponentHealthHistoryRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetComponentCheckStatesRequest struct via the builder pattern Name | Type | Description | Notes @@ -144,7 +144,7 @@ Name | Type | Description | Notes ### Return type -[**ComponentHealthHistory**](ComponentHealthHistory.md) +[**ComponentCheckStates**](ComponentCheckStates.md) ### Authorization @@ -160,11 +160,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetComponentMetricBinding +## GetComponentHealthHistory -> BoundMetric GetComponentMetricBinding(ctx, componentIdOrIdentifier).MetricBindingIdentifier(metricBindingIdentifier).TopologyTime(topologyTime).Execute() +> ComponentHealthHistory GetComponentHealthHistory(ctx, componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).Execute() -Get a bound metric binding to a component +Get a component health history @@ -182,18 +182,18 @@ import ( func main() { componentIdOrIdentifier := "componentIdOrIdentifier_example" // string | The id or identifier (urn) of a component - metricBindingIdentifier := "metricBindingIdentifier_example" // string | The identifier (urn) of a metric binding - topologyTime := int32(56) // int32 | A timestamp at which resources will be queried. If not given the resources are queried at current time. (optional) + startTime := int32(56) // int32 | The start time of a time range to query resources. + endTime := int32(56) // int32 | The end time of a time range to query resources. If not given the endTime is set to current time. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ComponentApi.GetComponentMetricBinding(context.Background(), componentIdOrIdentifier).MetricBindingIdentifier(metricBindingIdentifier).TopologyTime(topologyTime).Execute() + resp, r, err := apiClient.ComponentApi.GetComponentHealthHistory(context.Background(), componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetComponentMetricBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetComponentHealthHistory``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetComponentMetricBinding`: BoundMetric - fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetComponentMetricBinding`: %v\n", resp) + // response from `GetComponentHealthHistory`: ComponentHealthHistory + fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetComponentHealthHistory`: %v\n", resp) } ``` @@ -207,18 +207,18 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGetComponentMetricBindingRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetComponentHealthHistoryRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **metricBindingIdentifier** | **string** | The identifier (urn) of a metric binding | - **topologyTime** | **int32** | A timestamp at which resources will be queried. If not given the resources are queried at current time. | + **startTime** | **int32** | The start time of a time range to query resources. | + **endTime** | **int32** | The end time of a time range to query resources. If not given the endTime is set to current time. | ### Return type -[**BoundMetric**](BoundMetric.md) +[**ComponentHealthHistory**](ComponentHealthHistory.md) ### Authorization @@ -234,11 +234,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetComponentMetricsWithData +## GetFullComponent -> BoundMetrics GetComponentMetricsWithData(ctx, componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).TopologyTime(topologyTime).Execute() +> FullComponent GetFullComponent(ctx, componentIdOrIdentifier).TopologyTime(topologyTime).Execute() -Bound metric bindings that have data for a component +Get full component @@ -256,19 +256,17 @@ import ( func main() { componentIdOrIdentifier := "componentIdOrIdentifier_example" // string | The id or identifier (urn) of a component - startTime := int32(56) // int32 | The start time of a time range to query resources. - endTime := int32(56) // int32 | The end time of a time range to query resources. topologyTime := int32(56) // int32 | A timestamp at which resources will be queried. If not given the resources are queried at current time. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ComponentApi.GetComponentMetricsWithData(context.Background(), componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).TopologyTime(topologyTime).Execute() + resp, r, err := apiClient.ComponentApi.GetFullComponent(context.Background(), componentIdOrIdentifier).TopologyTime(topologyTime).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetComponentMetricsWithData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetFullComponent``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetComponentMetricsWithData`: BoundMetrics - fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetComponentMetricsWithData`: %v\n", resp) + // response from `GetFullComponent`: FullComponent + fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetFullComponent`: %v\n", resp) } ``` @@ -282,19 +280,17 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGetComponentMetricsWithDataRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetFullComponentRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **startTime** | **int32** | The start time of a time range to query resources. | - **endTime** | **int32** | The end time of a time range to query resources. | **topologyTime** | **int32** | A timestamp at which resources will be queried. If not given the resources are queried at current time. | ### Return type -[**BoundMetrics**](BoundMetrics.md) +[**FullComponent**](FullComponent.md) ### Authorization @@ -310,11 +306,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetFullComponent +## GetMetricPerspectiveData -> FullComponent GetFullComponent(ctx, componentIdOrIdentifier).TopologyTime(topologyTime).Execute() +> MetricPerspectiveData GetMetricPerspectiveData(ctx, componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).TopologyTime(topologyTime).Execute() -Get full component +Bound metric bindings that have data for a component @@ -332,17 +328,19 @@ import ( func main() { componentIdOrIdentifier := "componentIdOrIdentifier_example" // string | The id or identifier (urn) of a component + startTime := int32(56) // int32 | The start time of a time range to query resources. + endTime := int32(56) // int32 | The end time of a time range to query resources. topologyTime := int32(56) // int32 | A timestamp at which resources will be queried. If not given the resources are queried at current time. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ComponentApi.GetFullComponent(context.Background(), componentIdOrIdentifier).TopologyTime(topologyTime).Execute() + resp, r, err := apiClient.ComponentApi.GetMetricPerspectiveData(context.Background(), componentIdOrIdentifier).StartTime(startTime).EndTime(endTime).TopologyTime(topologyTime).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetFullComponent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ComponentApi.GetMetricPerspectiveData``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetFullComponent`: FullComponent - fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetFullComponent`: %v\n", resp) + // response from `GetMetricPerspectiveData`: MetricPerspectiveData + fmt.Fprintf(os.Stdout, "Response from `ComponentApi.GetMetricPerspectiveData`: %v\n", resp) } ``` @@ -356,17 +354,19 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGetFullComponentRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetMetricPerspectiveDataRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **startTime** | **int32** | The start time of a time range to query resources. | + **endTime** | **int32** | The end time of a time range to query resources. | **topologyTime** | **int32** | A timestamp at which resources will be queried. If not given the resources are queried at current time. | ### Return type -[**FullComponent**](FullComponent.md) +[**MetricPerspectiveData**](MetricPerspectiveData.md) ### Authorization diff --git a/generated/stackstate_api/docs/ComponentHighlightLocation.md b/generated/stackstate_api/docs/ComponentHighlightLocation.md deleted file mode 100644 index 59ff7831..00000000 --- a/generated/stackstate_api/docs/ComponentHighlightLocation.md +++ /dev/null @@ -1,77 +0,0 @@ -# ComponentHighlightLocation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Section** | **string** | | -**Weight** | Pointer to **int32** | | [optional] - -## Methods - -### NewComponentHighlightLocation - -`func NewComponentHighlightLocation(section string, ) *ComponentHighlightLocation` - -NewComponentHighlightLocation instantiates a new ComponentHighlightLocation 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 - -### NewComponentHighlightLocationWithDefaults - -`func NewComponentHighlightLocationWithDefaults() *ComponentHighlightLocation` - -NewComponentHighlightLocationWithDefaults instantiates a new ComponentHighlightLocation 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 - -### GetSection - -`func (o *ComponentHighlightLocation) GetSection() string` - -GetSection returns the Section field if non-nil, zero value otherwise. - -### GetSectionOk - -`func (o *ComponentHighlightLocation) GetSectionOk() (*string, bool)` - -GetSectionOk returns a tuple with the Section field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSection - -`func (o *ComponentHighlightLocation) SetSection(v string)` - -SetSection sets Section field to given value. - - -### GetWeight - -`func (o *ComponentHighlightLocation) GetWeight() int32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *ComponentHighlightLocation) GetWeightOk() (*int32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *ComponentHighlightLocation) SetWeight(v int32)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *ComponentHighlightLocation) HasWeight() bool` - -HasWeight 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/ComponentHighlightMetricSection.md b/generated/stackstate_api/docs/ComponentHighlightMetricSection.md deleted file mode 100644 index b2550fa6..00000000 --- a/generated/stackstate_api/docs/ComponentHighlightMetricSection.md +++ /dev/null @@ -1,93 +0,0 @@ -# ComponentHighlightMetricSection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Weight** | **float32** | | -**Type** | **string** | | - -## Methods - -### NewComponentHighlightMetricSection - -`func NewComponentHighlightMetricSection(name string, weight float32, type_ string, ) *ComponentHighlightMetricSection` - -NewComponentHighlightMetricSection instantiates a new ComponentHighlightMetricSection 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 - -### NewComponentHighlightMetricSectionWithDefaults - -`func NewComponentHighlightMetricSectionWithDefaults() *ComponentHighlightMetricSection` - -NewComponentHighlightMetricSectionWithDefaults instantiates a new ComponentHighlightMetricSection 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 - -### GetName - -`func (o *ComponentHighlightMetricSection) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ComponentHighlightMetricSection) 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 *ComponentHighlightMetricSection) SetName(v string)` - -SetName sets Name field to given value. - - -### GetWeight - -`func (o *ComponentHighlightMetricSection) GetWeight() float32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *ComponentHighlightMetricSection) GetWeightOk() (*float32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *ComponentHighlightMetricSection) SetWeight(v float32)` - -SetWeight sets Weight field to given value. - - -### GetType - -`func (o *ComponentHighlightMetricSection) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ComponentHighlightMetricSection) 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 *ComponentHighlightMetricSection) 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/ComponentHighlightMetricSectionAllOf.md b/generated/stackstate_api/docs/ComponentHighlightMetricSectionAllOf.md deleted file mode 100644 index 5ba0aea8..00000000 --- a/generated/stackstate_api/docs/ComponentHighlightMetricSectionAllOf.md +++ /dev/null @@ -1,51 +0,0 @@ -# ComponentHighlightMetricSectionAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewComponentHighlightMetricSectionAllOf - -`func NewComponentHighlightMetricSectionAllOf(type_ string, ) *ComponentHighlightMetricSectionAllOf` - -NewComponentHighlightMetricSectionAllOf instantiates a new ComponentHighlightMetricSectionAllOf 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 - -### NewComponentHighlightMetricSectionAllOfWithDefaults - -`func NewComponentHighlightMetricSectionAllOfWithDefaults() *ComponentHighlightMetricSectionAllOf` - -NewComponentHighlightMetricSectionAllOfWithDefaults instantiates a new ComponentHighlightMetricSectionAllOf 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 *ComponentHighlightMetricSectionAllOf) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ComponentHighlightMetricSectionAllOf) 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 *ComponentHighlightMetricSectionAllOf) 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/ComponentHighlightMetrics.md b/generated/stackstate_api/docs/ComponentHighlightMetrics.md deleted file mode 100644 index e2d2ae6a..00000000 --- a/generated/stackstate_api/docs/ComponentHighlightMetrics.md +++ /dev/null @@ -1,119 +0,0 @@ -# ComponentHighlightMetrics - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Description** | Pointer to **string** | | [optional] -**Bindings** | **[]string** | | -**DefaultExpanded** | **bool** | | - -## Methods - -### NewComponentHighlightMetrics - -`func NewComponentHighlightMetrics(name string, bindings []string, defaultExpanded bool, ) *ComponentHighlightMetrics` - -NewComponentHighlightMetrics instantiates a new ComponentHighlightMetrics 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 - -### NewComponentHighlightMetricsWithDefaults - -`func NewComponentHighlightMetricsWithDefaults() *ComponentHighlightMetrics` - -NewComponentHighlightMetricsWithDefaults instantiates a new ComponentHighlightMetrics 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 - -### GetName - -`func (o *ComponentHighlightMetrics) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *ComponentHighlightMetrics) 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 *ComponentHighlightMetrics) SetName(v string)` - -SetName sets Name field to given value. - - -### GetDescription - -`func (o *ComponentHighlightMetrics) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ComponentHighlightMetrics) 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 *ComponentHighlightMetrics) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ComponentHighlightMetrics) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### GetBindings - -`func (o *ComponentHighlightMetrics) GetBindings() []string` - -GetBindings returns the Bindings field if non-nil, zero value otherwise. - -### GetBindingsOk - -`func (o *ComponentHighlightMetrics) GetBindingsOk() (*[]string, bool)` - -GetBindingsOk returns a tuple with the Bindings field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBindings - -`func (o *ComponentHighlightMetrics) SetBindings(v []string)` - -SetBindings sets Bindings field to given value. - - -### GetDefaultExpanded - -`func (o *ComponentHighlightMetrics) GetDefaultExpanded() bool` - -GetDefaultExpanded returns the DefaultExpanded field if non-nil, zero value otherwise. - -### GetDefaultExpandedOk - -`func (o *ComponentHighlightMetrics) GetDefaultExpandedOk() (*bool, bool)` - -GetDefaultExpandedOk returns a tuple with the DefaultExpanded field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultExpanded - -`func (o *ComponentHighlightMetrics) SetDefaultExpanded(v bool)` - -SetDefaultExpanded sets DefaultExpanded 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/ComponentMetricSection.md b/generated/stackstate_api/docs/ComponentMetricSection.md new file mode 100644 index 00000000..5f448cc4 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentMetricSection.md @@ -0,0 +1,140 @@ +# ComponentMetricSection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SectionId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Metrics** | [**[]BoundMetric**](BoundMetric.md) | | +**DefaultExpanded** | **bool** | | + +## Methods + +### NewComponentMetricSection + +`func NewComponentMetricSection(sectionId string, title string, metrics []BoundMetric, defaultExpanded bool, ) *ComponentMetricSection` + +NewComponentMetricSection instantiates a new ComponentMetricSection 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 + +### NewComponentMetricSectionWithDefaults + +`func NewComponentMetricSectionWithDefaults() *ComponentMetricSection` + +NewComponentMetricSectionWithDefaults instantiates a new ComponentMetricSection 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 + +### GetSectionId + +`func (o *ComponentMetricSection) GetSectionId() string` + +GetSectionId returns the SectionId field if non-nil, zero value otherwise. + +### GetSectionIdOk + +`func (o *ComponentMetricSection) GetSectionIdOk() (*string, bool)` + +GetSectionIdOk returns a tuple with the SectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSectionId + +`func (o *ComponentMetricSection) SetSectionId(v string)` + +SetSectionId sets SectionId field to given value. + + +### GetTitle + +`func (o *ComponentMetricSection) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ComponentMetricSection) 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 *ComponentMetricSection) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *ComponentMetricSection) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComponentMetricSection) 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 *ComponentMetricSection) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComponentMetricSection) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMetrics + +`func (o *ComponentMetricSection) GetMetrics() []BoundMetric` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *ComponentMetricSection) GetMetricsOk() (*[]BoundMetric, 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 *ComponentMetricSection) SetMetrics(v []BoundMetric)` + +SetMetrics sets Metrics field to given value. + + +### GetDefaultExpanded + +`func (o *ComponentMetricSection) GetDefaultExpanded() bool` + +GetDefaultExpanded returns the DefaultExpanded field if non-nil, zero value otherwise. + +### GetDefaultExpandedOk + +`func (o *ComponentMetricSection) GetDefaultExpandedOk() (*bool, bool)` + +GetDefaultExpandedOk returns a tuple with the DefaultExpanded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultExpanded + +`func (o *ComponentMetricSection) SetDefaultExpanded(v bool)` + +SetDefaultExpanded sets DefaultExpanded 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/ComponentMetricTab.md b/generated/stackstate_api/docs/ComponentMetricTab.md new file mode 100644 index 00000000..8fc77267 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentMetricTab.md @@ -0,0 +1,93 @@ +# ComponentMetricTab + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TabId** | **string** | | +**Title** | **string** | | +**Sections** | [**[]ComponentMetricSection**](ComponentMetricSection.md) | | + +## Methods + +### NewComponentMetricTab + +`func NewComponentMetricTab(tabId string, title string, sections []ComponentMetricSection, ) *ComponentMetricTab` + +NewComponentMetricTab instantiates a new ComponentMetricTab 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 + +### NewComponentMetricTabWithDefaults + +`func NewComponentMetricTabWithDefaults() *ComponentMetricTab` + +NewComponentMetricTabWithDefaults instantiates a new ComponentMetricTab 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 + +### GetTabId + +`func (o *ComponentMetricTab) GetTabId() string` + +GetTabId returns the TabId field if non-nil, zero value otherwise. + +### GetTabIdOk + +`func (o *ComponentMetricTab) GetTabIdOk() (*string, bool)` + +GetTabIdOk returns a tuple with the TabId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTabId + +`func (o *ComponentMetricTab) SetTabId(v string)` + +SetTabId sets TabId field to given value. + + +### GetTitle + +`func (o *ComponentMetricTab) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ComponentMetricTab) 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 *ComponentMetricTab) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetSections + +`func (o *ComponentMetricTab) GetSections() []ComponentMetricSection` + +GetSections returns the Sections field if non-nil, zero value otherwise. + +### GetSectionsOk + +`func (o *ComponentMetricTab) GetSectionsOk() (*[]ComponentMetricSection, bool)` + +GetSectionsOk returns a tuple with the Sections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSections + +`func (o *ComponentMetricTab) SetSections(v []ComponentMetricSection)` + +SetSections sets Sections 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/ComponentPresentationMetric.md b/generated/stackstate_api/docs/ComponentPresentationMetric.md new file mode 100644 index 00000000..dbbc5eed --- /dev/null +++ b/generated/stackstate_api/docs/ComponentPresentationMetric.md @@ -0,0 +1,207 @@ +# ComponentPresentationMetric + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MetricId** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**MetricQueries** | Pointer to [**[]PresentationMetricQuery**](PresentationMetricQuery.md) | | [optional] +**Unit** | Pointer to **string** | | [optional] +**ChartType** | Pointer to [**ChartType**](ChartType.md) | | [optional] +**Alias** | Pointer to **string** | | [optional] + +## Methods + +### NewComponentPresentationMetric + +`func NewComponentPresentationMetric(metricId string, ) *ComponentPresentationMetric` + +NewComponentPresentationMetric instantiates a new ComponentPresentationMetric 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 + +### NewComponentPresentationMetricWithDefaults + +`func NewComponentPresentationMetricWithDefaults() *ComponentPresentationMetric` + +NewComponentPresentationMetricWithDefaults instantiates a new ComponentPresentationMetric 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 + +### GetMetricId + +`func (o *ComponentPresentationMetric) GetMetricId() string` + +GetMetricId returns the MetricId field if non-nil, zero value otherwise. + +### GetMetricIdOk + +`func (o *ComponentPresentationMetric) GetMetricIdOk() (*string, 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 *ComponentPresentationMetric) SetMetricId(v string)` + +SetMetricId sets MetricId field to given value. + + +### GetName + +`func (o *ComponentPresentationMetric) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentPresentationMetric) 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 *ComponentPresentationMetric) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComponentPresentationMetric) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ComponentPresentationMetric) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComponentPresentationMetric) 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 *ComponentPresentationMetric) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComponentPresentationMetric) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMetricQueries + +`func (o *ComponentPresentationMetric) GetMetricQueries() []PresentationMetricQuery` + +GetMetricQueries returns the MetricQueries field if non-nil, zero value otherwise. + +### GetMetricQueriesOk + +`func (o *ComponentPresentationMetric) GetMetricQueriesOk() (*[]PresentationMetricQuery, bool)` + +GetMetricQueriesOk returns a tuple with the MetricQueries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricQueries + +`func (o *ComponentPresentationMetric) SetMetricQueries(v []PresentationMetricQuery)` + +SetMetricQueries sets MetricQueries field to given value. + +### HasMetricQueries + +`func (o *ComponentPresentationMetric) HasMetricQueries() bool` + +HasMetricQueries returns a boolean if a field has been set. + +### GetUnit + +`func (o *ComponentPresentationMetric) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *ComponentPresentationMetric) 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 *ComponentPresentationMetric) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *ComponentPresentationMetric) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetChartType + +`func (o *ComponentPresentationMetric) GetChartType() ChartType` + +GetChartType returns the ChartType field if non-nil, zero value otherwise. + +### GetChartTypeOk + +`func (o *ComponentPresentationMetric) GetChartTypeOk() (*ChartType, bool)` + +GetChartTypeOk returns a tuple with the ChartType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChartType + +`func (o *ComponentPresentationMetric) SetChartType(v ChartType)` + +SetChartType sets ChartType field to given value. + +### HasChartType + +`func (o *ComponentPresentationMetric) HasChartType() bool` + +HasChartType returns a boolean if a field has been set. + +### GetAlias + +`func (o *ComponentPresentationMetric) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *ComponentPresentationMetric) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *ComponentPresentationMetric) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *ComponentPresentationMetric) HasAlias() bool` + +HasAlias 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/ComponentSummary.md b/generated/stackstate_api/docs/ComponentSummary.md new file mode 100644 index 00000000..8afef2d8 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentSummary.md @@ -0,0 +1,51 @@ +# ComponentSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metrics** | [**[]BoundMetric**](BoundMetric.md) | | + +## Methods + +### NewComponentSummary + +`func NewComponentSummary(metrics []BoundMetric, ) *ComponentSummary` + +NewComponentSummary instantiates a new ComponentSummary 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 + +### NewComponentSummaryWithDefaults + +`func NewComponentSummaryWithDefaults() *ComponentSummary` + +NewComponentSummaryWithDefaults instantiates a new ComponentSummary 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 + +### GetMetrics + +`func (o *ComponentSummary) GetMetrics() []BoundMetric` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *ComponentSummary) GetMetricsOk() (*[]BoundMetric, 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 *ComponentSummary) SetMetrics(v []BoundMetric)` + +SetMetrics sets Metrics 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/ComponentSummaryLocation.md b/generated/stackstate_api/docs/ComponentSummaryLocation.md deleted file mode 100644 index 03a58c73..00000000 --- a/generated/stackstate_api/docs/ComponentSummaryLocation.md +++ /dev/null @@ -1,56 +0,0 @@ -# ComponentSummaryLocation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Weight** | Pointer to **int32** | | [optional] - -## Methods - -### NewComponentSummaryLocation - -`func NewComponentSummaryLocation() *ComponentSummaryLocation` - -NewComponentSummaryLocation instantiates a new ComponentSummaryLocation 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 - -### NewComponentSummaryLocationWithDefaults - -`func NewComponentSummaryLocationWithDefaults() *ComponentSummaryLocation` - -NewComponentSummaryLocationWithDefaults instantiates a new ComponentSummaryLocation 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 - -### GetWeight - -`func (o *ComponentSummaryLocation) GetWeight() int32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *ComponentSummaryLocation) GetWeightOk() (*int32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *ComponentSummaryLocation) SetWeight(v int32)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *ComponentSummaryLocation) HasWeight() bool` - -HasWeight 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 93e11933..998c434b 100644 --- a/generated/stackstate_api/docs/FullComponent.md +++ b/generated/stackstate_api/docs/FullComponent.md @@ -13,15 +13,16 @@ Name | Type | Description | Notes **Events** | Pointer to [**ComponentEvents**](ComponentEvents.md) | | [optional] **Data** | [**ComponentData**](ComponentData.md) | | **Highlights** | Pointer to [**LegacyComponentHighlights**](LegacyComponentHighlights.md) | | [optional] +**Summary** | [**ComponentSummary**](ComponentSummary.md) | | +**HighlightMetrics** | [**[]ComponentMetricSection**](ComponentMetricSection.md) | | **Actions** | [**[]ComponentAction**](ComponentAction.md) | | -**BoundMetrics** | [**[]BoundMetric**](BoundMetric.md) | | **BoundTraces** | Pointer to [**BoundTraces**](BoundTraces.md) | | [optional] ## Methods ### NewFullComponent -`func NewFullComponent(typeName string, fields []ComponentField, synced []ExternalComponent, relatedResources []RelatedResource, data ComponentData, actions []ComponentAction, boundMetrics []BoundMetric, ) *FullComponent` +`func NewFullComponent(typeName string, fields []ComponentField, synced []ExternalComponent, relatedResources []RelatedResource, data ComponentData, summary ComponentSummary, highlightMetrics []ComponentMetricSection, actions []ComponentAction, ) *FullComponent` NewFullComponent instantiates a new FullComponent object This constructor will assign default values to properties that have it defined, @@ -236,44 +237,64 @@ SetHighlights sets Highlights field to given value. HasHighlights returns a boolean if a field has been set. -### GetActions +### GetSummary -`func (o *FullComponent) GetActions() []ComponentAction` +`func (o *FullComponent) GetSummary() ComponentSummary` -GetActions returns the Actions field if non-nil, zero value otherwise. +GetSummary returns the Summary field if non-nil, zero value otherwise. -### GetActionsOk +### GetSummaryOk -`func (o *FullComponent) GetActionsOk() (*[]ComponentAction, bool)` +`func (o *FullComponent) GetSummaryOk() (*ComponentSummary, bool)` -GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetActions +### SetSummary -`func (o *FullComponent) SetActions(v []ComponentAction)` +`func (o *FullComponent) SetSummary(v ComponentSummary)` -SetActions sets Actions field to given value. +SetSummary sets Summary field to given value. -### GetBoundMetrics +### GetHighlightMetrics -`func (o *FullComponent) GetBoundMetrics() []BoundMetric` +`func (o *FullComponent) GetHighlightMetrics() []ComponentMetricSection` -GetBoundMetrics returns the BoundMetrics field if non-nil, zero value otherwise. +GetHighlightMetrics returns the HighlightMetrics field if non-nil, zero value otherwise. -### GetBoundMetricsOk +### GetHighlightMetricsOk -`func (o *FullComponent) GetBoundMetricsOk() (*[]BoundMetric, bool)` +`func (o *FullComponent) GetHighlightMetricsOk() (*[]ComponentMetricSection, bool)` -GetBoundMetricsOk returns a tuple with the BoundMetrics field if it's non-nil, zero value otherwise +GetHighlightMetricsOk returns a tuple with the HighlightMetrics field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetBoundMetrics +### SetHighlightMetrics + +`func (o *FullComponent) SetHighlightMetrics(v []ComponentMetricSection)` + +SetHighlightMetrics sets HighlightMetrics field to given value. + -`func (o *FullComponent) SetBoundMetrics(v []BoundMetric)` +### GetActions + +`func (o *FullComponent) GetActions() []ComponentAction` -SetBoundMetrics sets BoundMetrics field to given value. +GetActions returns the Actions field if non-nil, zero value otherwise. + +### GetActionsOk + +`func (o *FullComponent) GetActionsOk() (*[]ComponentAction, bool)` + +GetActionsOk returns a tuple with the Actions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActions + +`func (o *FullComponent) SetActions(v []ComponentAction)` + +SetActions sets Actions field to given value. ### GetBoundTraces diff --git a/generated/stackstate_api/docs/LayoutApi.md b/generated/stackstate_api/docs/LayoutApi.md deleted file mode 100644 index f350c04c..00000000 --- a/generated/stackstate_api/docs/LayoutApi.md +++ /dev/null @@ -1,70 +0,0 @@ -# \LayoutApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**GetAllLayouts**](LayoutApi.md#GetAllLayouts) | **Get** /layouts | List layout hints - - - -## GetAllLayouts - -> LayoutList GetAllLayouts(ctx).Execute() - -List layout hints - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LayoutApi.GetAllLayouts(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LayoutApi.GetAllLayouts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAllLayouts`: LayoutList - fmt.Fprintf(os.Stdout, "Response from `LayoutApi.GetAllLayouts`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetAllLayoutsRequest struct via the builder pattern - - -### Return type - -[**LayoutList**](LayoutList.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) - diff --git a/generated/stackstate_api/docs/LayoutApiError.md b/generated/stackstate_api/docs/LayoutApiError.md deleted file mode 100644 index c6542169..00000000 --- a/generated/stackstate_api/docs/LayoutApiError.md +++ /dev/null @@ -1,72 +0,0 @@ -# LayoutApiError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusCode** | **string** | | -**Message** | **string** | | - -## Methods - -### NewLayoutApiError - -`func NewLayoutApiError(statusCode string, message string, ) *LayoutApiError` - -NewLayoutApiError instantiates a new LayoutApiError 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 - -### NewLayoutApiErrorWithDefaults - -`func NewLayoutApiErrorWithDefaults() *LayoutApiError` - -NewLayoutApiErrorWithDefaults instantiates a new LayoutApiError 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 - -### GetStatusCode - -`func (o *LayoutApiError) GetStatusCode() string` - -GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. - -### GetStatusCodeOk - -`func (o *LayoutApiError) GetStatusCodeOk() (*string, bool)` - -GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusCode - -`func (o *LayoutApiError) SetStatusCode(v string)` - -SetStatusCode sets StatusCode field to given value. - - -### GetMessage - -`func (o *LayoutApiError) GetMessage() string` - -GetMessage returns the Message field if non-nil, zero value otherwise. - -### GetMessageOk - -`func (o *LayoutApiError) 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 *LayoutApiError) 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/LayoutHint.md b/generated/stackstate_api/docs/LayoutHint.md deleted file mode 100644 index cf12aca9..00000000 --- a/generated/stackstate_api/docs/LayoutHint.md +++ /dev/null @@ -1,114 +0,0 @@ -# LayoutHint - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Weight** | **float32** | | -**Type** | **string** | | -**Tab** | **string** | | - -## Methods - -### NewLayoutHint - -`func NewLayoutHint(name string, weight float32, type_ string, tab string, ) *LayoutHint` - -NewLayoutHint instantiates a new LayoutHint 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 - -### NewLayoutHintWithDefaults - -`func NewLayoutHintWithDefaults() *LayoutHint` - -NewLayoutHintWithDefaults instantiates a new LayoutHint 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 - -### GetName - -`func (o *LayoutHint) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *LayoutHint) 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 *LayoutHint) SetName(v string)` - -SetName sets Name field to given value. - - -### GetWeight - -`func (o *LayoutHint) GetWeight() float32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *LayoutHint) GetWeightOk() (*float32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *LayoutHint) SetWeight(v float32)` - -SetWeight sets Weight field to given value. - - -### GetType - -`func (o *LayoutHint) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *LayoutHint) 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 *LayoutHint) SetType(v string)` - -SetType sets Type field to given value. - - -### GetTab - -`func (o *LayoutHint) GetTab() string` - -GetTab returns the Tab field if non-nil, zero value otherwise. - -### GetTabOk - -`func (o *LayoutHint) GetTabOk() (*string, bool)` - -GetTabOk returns a tuple with the Tab field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTab - -`func (o *LayoutHint) SetTab(v string)` - -SetTab sets Tab 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/LayoutList.md b/generated/stackstate_api/docs/LayoutList.md deleted file mode 100644 index 34042fea..00000000 --- a/generated/stackstate_api/docs/LayoutList.md +++ /dev/null @@ -1,51 +0,0 @@ -# LayoutList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Layouts** | [**[]LayoutHint**](LayoutHint.md) | | - -## Methods - -### NewLayoutList - -`func NewLayoutList(layouts []LayoutHint, ) *LayoutList` - -NewLayoutList instantiates a new LayoutList 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 - -### NewLayoutListWithDefaults - -`func NewLayoutListWithDefaults() *LayoutList` - -NewLayoutListWithDefaults instantiates a new LayoutList 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 - -### GetLayouts - -`func (o *LayoutList) GetLayouts() []LayoutHint` - -GetLayouts returns the Layouts field if non-nil, zero value otherwise. - -### GetLayoutsOk - -`func (o *LayoutList) GetLayoutsOk() (*[]LayoutHint, bool)` - -GetLayoutsOk returns a tuple with the Layouts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLayouts - -`func (o *LayoutList) SetLayouts(v []LayoutHint)` - -SetLayouts sets Layouts 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/LegacyComponentHighlights.md b/generated/stackstate_api/docs/LegacyComponentHighlights.md index 7b108f7f..a455b829 100644 --- a/generated/stackstate_api/docs/LegacyComponentHighlights.md +++ b/generated/stackstate_api/docs/LegacyComponentHighlights.md @@ -4,15 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NamePlural** | **string** | | **ShowLogs** | **bool** | | -**Metrics** | [**[]ComponentHighlightMetrics**](ComponentHighlightMetrics.md) | | ## Methods ### NewLegacyComponentHighlights -`func NewLegacyComponentHighlights(namePlural string, showLogs bool, metrics []ComponentHighlightMetrics, ) *LegacyComponentHighlights` +`func NewLegacyComponentHighlights(showLogs bool, ) *LegacyComponentHighlights` NewLegacyComponentHighlights instantiates a new LegacyComponentHighlights object This constructor will assign default values to properties that have it defined, @@ -27,26 +25,6 @@ NewLegacyComponentHighlightsWithDefaults instantiates a new LegacyComponentHighl 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 *LegacyComponentHighlights) GetNamePlural() string` - -GetNamePlural returns the NamePlural field if non-nil, zero value otherwise. - -### GetNamePluralOk - -`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 *LegacyComponentHighlights) SetNamePlural(v string)` - -SetNamePlural sets NamePlural field to given value. - - ### GetShowLogs `func (o *LegacyComponentHighlights) GetShowLogs() bool` @@ -67,26 +45,6 @@ and a boolean to check if the value has been set. SetShowLogs sets ShowLogs field to given value. -### GetMetrics - -`func (o *LegacyComponentHighlights) GetMetrics() []ComponentHighlightMetrics` - -GetMetrics returns the Metrics field if non-nil, zero value otherwise. - -### GetMetricsOk - -`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 *LegacyComponentHighlights) SetMetrics(v []ComponentHighlightMetrics)` - -SetMetrics sets Metrics 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/MainMenuGroup.md b/generated/stackstate_api/docs/MainMenuGroup.md index 56aebc45..12b30046 100644 --- a/generated/stackstate_api/docs/MainMenuGroup.md +++ b/generated/stackstate_api/docs/MainMenuGroup.md @@ -8,14 +8,14 @@ Name | Type | Description | Notes **Identifier** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **DefaultOpen** | **bool** | | -**Icon** | **string** | | +**Icon** | Pointer to **string** | | [optional] **Items** | [**[]MainMenuViewItem**](MainMenuViewItem.md) | | ## Methods ### NewMainMenuGroup -`func NewMainMenuGroup(name string, defaultOpen bool, icon string, items []MainMenuViewItem, ) *MainMenuGroup` +`func NewMainMenuGroup(name string, defaultOpen bool, items []MainMenuViewItem, ) *MainMenuGroup` NewMainMenuGroup instantiates a new MainMenuGroup object This constructor will assign default values to properties that have it defined, @@ -139,6 +139,11 @@ and a boolean to check if the value has been set. SetIcon sets Icon field to given value. +### HasIcon + +`func (o *MainMenuGroup) HasIcon() bool` + +HasIcon returns a boolean if a field has been set. ### GetItems diff --git a/generated/stackstate_api/docs/MetricBindingId.md b/generated/stackstate_api/docs/MetricBindingId.md deleted file mode 100644 index da20c7a1..00000000 --- a/generated/stackstate_api/docs/MetricBindingId.md +++ /dev/null @@ -1,51 +0,0 @@ -# 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/MetricBindingLayout.md b/generated/stackstate_api/docs/MetricBindingLayout.md deleted file mode 100644 index 224293e0..00000000 --- a/generated/stackstate_api/docs/MetricBindingLayout.md +++ /dev/null @@ -1,108 +0,0 @@ -# MetricBindingLayout - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MetricPerspective** | Pointer to [**MetricPerspectiveLocation**](MetricPerspectiveLocation.md) | | [optional] -**ComponentHighlight** | Pointer to [**ComponentHighlightLocation**](ComponentHighlightLocation.md) | | [optional] -**ComponentSummary** | Pointer to [**ComponentSummaryLocation**](ComponentSummaryLocation.md) | | [optional] - -## Methods - -### NewMetricBindingLayout - -`func NewMetricBindingLayout() *MetricBindingLayout` - -NewMetricBindingLayout instantiates a new MetricBindingLayout 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 - -### NewMetricBindingLayoutWithDefaults - -`func NewMetricBindingLayoutWithDefaults() *MetricBindingLayout` - -NewMetricBindingLayoutWithDefaults instantiates a new MetricBindingLayout 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 - -### GetMetricPerspective - -`func (o *MetricBindingLayout) GetMetricPerspective() MetricPerspectiveLocation` - -GetMetricPerspective returns the MetricPerspective field if non-nil, zero value otherwise. - -### GetMetricPerspectiveOk - -`func (o *MetricBindingLayout) GetMetricPerspectiveOk() (*MetricPerspectiveLocation, bool)` - -GetMetricPerspectiveOk returns a tuple with the MetricPerspective field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMetricPerspective - -`func (o *MetricBindingLayout) SetMetricPerspective(v MetricPerspectiveLocation)` - -SetMetricPerspective sets MetricPerspective field to given value. - -### HasMetricPerspective - -`func (o *MetricBindingLayout) HasMetricPerspective() bool` - -HasMetricPerspective returns a boolean if a field has been set. - -### GetComponentHighlight - -`func (o *MetricBindingLayout) GetComponentHighlight() ComponentHighlightLocation` - -GetComponentHighlight returns the ComponentHighlight field if non-nil, zero value otherwise. - -### GetComponentHighlightOk - -`func (o *MetricBindingLayout) GetComponentHighlightOk() (*ComponentHighlightLocation, bool)` - -GetComponentHighlightOk returns a tuple with the ComponentHighlight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComponentHighlight - -`func (o *MetricBindingLayout) SetComponentHighlight(v ComponentHighlightLocation)` - -SetComponentHighlight sets ComponentHighlight field to given value. - -### HasComponentHighlight - -`func (o *MetricBindingLayout) HasComponentHighlight() bool` - -HasComponentHighlight returns a boolean if a field has been set. - -### GetComponentSummary - -`func (o *MetricBindingLayout) GetComponentSummary() ComponentSummaryLocation` - -GetComponentSummary returns the ComponentSummary field if non-nil, zero value otherwise. - -### GetComponentSummaryOk - -`func (o *MetricBindingLayout) GetComponentSummaryOk() (*ComponentSummaryLocation, bool)` - -GetComponentSummaryOk returns a tuple with the ComponentSummary field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComponentSummary - -`func (o *MetricBindingLayout) SetComponentSummary(v ComponentSummaryLocation)` - -SetComponentSummary sets ComponentSummary field to given value. - -### HasComponentSummary - -`func (o *MetricBindingLayout) HasComponentSummary() bool` - -HasComponentSummary 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/MetricMetaDisplay.md b/generated/stackstate_api/docs/MetricMetaDisplay.md index 77470512..02656885 100644 --- a/generated/stackstate_api/docs/MetricMetaDisplay.md +++ b/generated/stackstate_api/docs/MetricMetaDisplay.md @@ -9,7 +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] +**BoundMetricId** | Pointer to [**BoundMetricId**](BoundMetricId.md) | | [optional] ## Methods @@ -175,30 +175,30 @@ and a boolean to check if the value has been set. SetLocked sets Locked field to given value. -### GetMetricId +### GetBoundMetricId -`func (o *MetricMetaDisplay) GetMetricId() MetricBindingId` +`func (o *MetricMetaDisplay) GetBoundMetricId() BoundMetricId` -GetMetricId returns the MetricId field if non-nil, zero value otherwise. +GetBoundMetricId returns the BoundMetricId field if non-nil, zero value otherwise. -### GetMetricIdOk +### GetBoundMetricIdOk -`func (o *MetricMetaDisplay) GetMetricIdOk() (*MetricBindingId, bool)` +`func (o *MetricMetaDisplay) GetBoundMetricIdOk() (*BoundMetricId, bool)` -GetMetricIdOk returns a tuple with the MetricId field if it's non-nil, zero value otherwise +GetBoundMetricIdOk returns a tuple with the BoundMetricId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMetricId +### SetBoundMetricId -`func (o *MetricMetaDisplay) SetMetricId(v MetricBindingId)` +`func (o *MetricMetaDisplay) SetBoundMetricId(v BoundMetricId)` -SetMetricId sets MetricId field to given value. +SetBoundMetricId sets BoundMetricId field to given value. -### HasMetricId +### HasBoundMetricId -`func (o *MetricMetaDisplay) HasMetricId() bool` +`func (o *MetricMetaDisplay) HasBoundMetricId() bool` -HasMetricId returns a boolean if a field has been set. +HasBoundMetricId 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/MetricPerspectiveData.md b/generated/stackstate_api/docs/MetricPerspectiveData.md new file mode 100644 index 00000000..2de003c6 --- /dev/null +++ b/generated/stackstate_api/docs/MetricPerspectiveData.md @@ -0,0 +1,51 @@ +# MetricPerspectiveData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Tabs** | [**[]ComponentMetricTab**](ComponentMetricTab.md) | | + +## Methods + +### NewMetricPerspectiveData + +`func NewMetricPerspectiveData(tabs []ComponentMetricTab, ) *MetricPerspectiveData` + +NewMetricPerspectiveData instantiates a new MetricPerspectiveData 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 + +### NewMetricPerspectiveDataWithDefaults + +`func NewMetricPerspectiveDataWithDefaults() *MetricPerspectiveData` + +NewMetricPerspectiveDataWithDefaults instantiates a new MetricPerspectiveData 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 + +### GetTabs + +`func (o *MetricPerspectiveData) GetTabs() []ComponentMetricTab` + +GetTabs returns the Tabs field if non-nil, zero value otherwise. + +### GetTabsOk + +`func (o *MetricPerspectiveData) GetTabsOk() (*[]ComponentMetricTab, bool)` + +GetTabsOk returns a tuple with the Tabs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTabs + +`func (o *MetricPerspectiveData) SetTabs(v []ComponentMetricTab)` + +SetTabs sets Tabs 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/MetricPerspectiveLocation.md b/generated/stackstate_api/docs/MetricPerspectiveLocation.md deleted file mode 100644 index 384290f5..00000000 --- a/generated/stackstate_api/docs/MetricPerspectiveLocation.md +++ /dev/null @@ -1,98 +0,0 @@ -# MetricPerspectiveLocation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Tab** | **string** | | -**Section** | **string** | | -**Weight** | Pointer to **int32** | | [optional] - -## Methods - -### NewMetricPerspectiveLocation - -`func NewMetricPerspectiveLocation(tab string, section string, ) *MetricPerspectiveLocation` - -NewMetricPerspectiveLocation instantiates a new MetricPerspectiveLocation 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 - -### NewMetricPerspectiveLocationWithDefaults - -`func NewMetricPerspectiveLocationWithDefaults() *MetricPerspectiveLocation` - -NewMetricPerspectiveLocationWithDefaults instantiates a new MetricPerspectiveLocation 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 - -### GetTab - -`func (o *MetricPerspectiveLocation) GetTab() string` - -GetTab returns the Tab field if non-nil, zero value otherwise. - -### GetTabOk - -`func (o *MetricPerspectiveLocation) GetTabOk() (*string, bool)` - -GetTabOk returns a tuple with the Tab field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTab - -`func (o *MetricPerspectiveLocation) SetTab(v string)` - -SetTab sets Tab field to given value. - - -### GetSection - -`func (o *MetricPerspectiveLocation) GetSection() string` - -GetSection returns the Section field if non-nil, zero value otherwise. - -### GetSectionOk - -`func (o *MetricPerspectiveLocation) GetSectionOk() (*string, bool)` - -GetSectionOk returns a tuple with the Section field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSection - -`func (o *MetricPerspectiveLocation) SetSection(v string)` - -SetSection sets Section field to given value. - - -### GetWeight - -`func (o *MetricPerspectiveLocation) GetWeight() int32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *MetricPerspectiveLocation) GetWeightOk() (*int32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *MetricPerspectiveLocation) SetWeight(v int32)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *MetricPerspectiveLocation) HasWeight() bool` - -HasWeight 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/MetricPerspectiveSection.md b/generated/stackstate_api/docs/MetricPerspectiveSection.md deleted file mode 100644 index 9fbaf605..00000000 --- a/generated/stackstate_api/docs/MetricPerspectiveSection.md +++ /dev/null @@ -1,114 +0,0 @@ -# MetricPerspectiveSection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Weight** | **float32** | | -**Type** | **string** | | -**Tab** | **string** | | - -## Methods - -### NewMetricPerspectiveSection - -`func NewMetricPerspectiveSection(name string, weight float32, type_ string, tab string, ) *MetricPerspectiveSection` - -NewMetricPerspectiveSection instantiates a new MetricPerspectiveSection 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 - -### NewMetricPerspectiveSectionWithDefaults - -`func NewMetricPerspectiveSectionWithDefaults() *MetricPerspectiveSection` - -NewMetricPerspectiveSectionWithDefaults instantiates a new MetricPerspectiveSection 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 - -### GetName - -`func (o *MetricPerspectiveSection) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *MetricPerspectiveSection) 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 *MetricPerspectiveSection) SetName(v string)` - -SetName sets Name field to given value. - - -### GetWeight - -`func (o *MetricPerspectiveSection) GetWeight() float32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *MetricPerspectiveSection) GetWeightOk() (*float32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *MetricPerspectiveSection) SetWeight(v float32)` - -SetWeight sets Weight field to given value. - - -### GetType - -`func (o *MetricPerspectiveSection) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MetricPerspectiveSection) 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 *MetricPerspectiveSection) SetType(v string)` - -SetType sets Type field to given value. - - -### GetTab - -`func (o *MetricPerspectiveSection) GetTab() string` - -GetTab returns the Tab field if non-nil, zero value otherwise. - -### GetTabOk - -`func (o *MetricPerspectiveSection) GetTabOk() (*string, bool)` - -GetTabOk returns a tuple with the Tab field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTab - -`func (o *MetricPerspectiveSection) SetTab(v string)` - -SetTab sets Tab 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/MetricPerspectiveSectionAllOf.md b/generated/stackstate_api/docs/MetricPerspectiveSectionAllOf.md deleted file mode 100644 index 6116d3f0..00000000 --- a/generated/stackstate_api/docs/MetricPerspectiveSectionAllOf.md +++ /dev/null @@ -1,72 +0,0 @@ -# MetricPerspectiveSectionAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | -**Tab** | **string** | | - -## Methods - -### NewMetricPerspectiveSectionAllOf - -`func NewMetricPerspectiveSectionAllOf(type_ string, tab string, ) *MetricPerspectiveSectionAllOf` - -NewMetricPerspectiveSectionAllOf instantiates a new MetricPerspectiveSectionAllOf 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 - -### NewMetricPerspectiveSectionAllOfWithDefaults - -`func NewMetricPerspectiveSectionAllOfWithDefaults() *MetricPerspectiveSectionAllOf` - -NewMetricPerspectiveSectionAllOfWithDefaults instantiates a new MetricPerspectiveSectionAllOf 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 *MetricPerspectiveSectionAllOf) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MetricPerspectiveSectionAllOf) 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 *MetricPerspectiveSectionAllOf) SetType(v string)` - -SetType sets Type field to given value. - - -### GetTab - -`func (o *MetricPerspectiveSectionAllOf) GetTab() string` - -GetTab returns the Tab field if non-nil, zero value otherwise. - -### GetTabOk - -`func (o *MetricPerspectiveSectionAllOf) GetTabOk() (*string, bool)` - -GetTabOk returns a tuple with the Tab field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTab - -`func (o *MetricPerspectiveSectionAllOf) SetTab(v string)` - -SetTab sets Tab 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/MetricPerspectiveTab.md b/generated/stackstate_api/docs/MetricPerspectiveTab.md deleted file mode 100644 index a1b05c6a..00000000 --- a/generated/stackstate_api/docs/MetricPerspectiveTab.md +++ /dev/null @@ -1,93 +0,0 @@ -# MetricPerspectiveTab - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Weight** | **float32** | | -**Type** | **string** | | - -## Methods - -### NewMetricPerspectiveTab - -`func NewMetricPerspectiveTab(name string, weight float32, type_ string, ) *MetricPerspectiveTab` - -NewMetricPerspectiveTab instantiates a new MetricPerspectiveTab 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 - -### NewMetricPerspectiveTabWithDefaults - -`func NewMetricPerspectiveTabWithDefaults() *MetricPerspectiveTab` - -NewMetricPerspectiveTabWithDefaults instantiates a new MetricPerspectiveTab 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 - -### GetName - -`func (o *MetricPerspectiveTab) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *MetricPerspectiveTab) 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 *MetricPerspectiveTab) SetName(v string)` - -SetName sets Name field to given value. - - -### GetWeight - -`func (o *MetricPerspectiveTab) GetWeight() float32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *MetricPerspectiveTab) GetWeightOk() (*float32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *MetricPerspectiveTab) SetWeight(v float32)` - -SetWeight sets Weight field to given value. - - -### GetType - -`func (o *MetricPerspectiveTab) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MetricPerspectiveTab) 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 *MetricPerspectiveTab) 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/MetricPerspectiveTabAllOf.md b/generated/stackstate_api/docs/MetricPerspectiveTabAllOf.md deleted file mode 100644 index 8b469fd4..00000000 --- a/generated/stackstate_api/docs/MetricPerspectiveTabAllOf.md +++ /dev/null @@ -1,51 +0,0 @@ -# MetricPerspectiveTabAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | | - -## Methods - -### NewMetricPerspectiveTabAllOf - -`func NewMetricPerspectiveTabAllOf(type_ string, ) *MetricPerspectiveTabAllOf` - -NewMetricPerspectiveTabAllOf instantiates a new MetricPerspectiveTabAllOf 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 - -### NewMetricPerspectiveTabAllOfWithDefaults - -`func NewMetricPerspectiveTabAllOfWithDefaults() *MetricPerspectiveTabAllOf` - -NewMetricPerspectiveTabAllOfWithDefaults instantiates a new MetricPerspectiveTabAllOf 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 *MetricPerspectiveTabAllOf) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *MetricPerspectiveTabAllOf) 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 *MetricPerspectiveTabAllOf) 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/OrderedComponentPresentationMetric.md b/generated/stackstate_api/docs/OrderedComponentPresentationMetric.md new file mode 100644 index 00000000..194c5a01 --- /dev/null +++ b/generated/stackstate_api/docs/OrderedComponentPresentationMetric.md @@ -0,0 +1,233 @@ +# OrderedComponentPresentationMetric + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MetricId** | **string** | | +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**MetricQueries** | Pointer to [**[]PresentationMetricQuery**](PresentationMetricQuery.md) | | [optional] +**Unit** | Pointer to **string** | | [optional] +**ChartType** | Pointer to [**ChartType**](ChartType.md) | | [optional] +**Alias** | Pointer to **string** | | [optional] +**Order** | Pointer to **float64** | | [optional] + +## Methods + +### NewOrderedComponentPresentationMetric + +`func NewOrderedComponentPresentationMetric(metricId string, ) *OrderedComponentPresentationMetric` + +NewOrderedComponentPresentationMetric instantiates a new OrderedComponentPresentationMetric 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 + +### NewOrderedComponentPresentationMetricWithDefaults + +`func NewOrderedComponentPresentationMetricWithDefaults() *OrderedComponentPresentationMetric` + +NewOrderedComponentPresentationMetricWithDefaults instantiates a new OrderedComponentPresentationMetric 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 + +### GetMetricId + +`func (o *OrderedComponentPresentationMetric) GetMetricId() string` + +GetMetricId returns the MetricId field if non-nil, zero value otherwise. + +### GetMetricIdOk + +`func (o *OrderedComponentPresentationMetric) GetMetricIdOk() (*string, 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 *OrderedComponentPresentationMetric) SetMetricId(v string)` + +SetMetricId sets MetricId field to given value. + + +### GetName + +`func (o *OrderedComponentPresentationMetric) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrderedComponentPresentationMetric) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *OrderedComponentPresentationMetric) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *OrderedComponentPresentationMetric) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMetricQueries + +`func (o *OrderedComponentPresentationMetric) GetMetricQueries() []PresentationMetricQuery` + +GetMetricQueries returns the MetricQueries field if non-nil, zero value otherwise. + +### GetMetricQueriesOk + +`func (o *OrderedComponentPresentationMetric) GetMetricQueriesOk() (*[]PresentationMetricQuery, bool)` + +GetMetricQueriesOk returns a tuple with the MetricQueries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricQueries + +`func (o *OrderedComponentPresentationMetric) SetMetricQueries(v []PresentationMetricQuery)` + +SetMetricQueries sets MetricQueries field to given value. + +### HasMetricQueries + +`func (o *OrderedComponentPresentationMetric) HasMetricQueries() bool` + +HasMetricQueries returns a boolean if a field has been set. + +### GetUnit + +`func (o *OrderedComponentPresentationMetric) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *OrderedComponentPresentationMetric) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetChartType + +`func (o *OrderedComponentPresentationMetric) GetChartType() ChartType` + +GetChartType returns the ChartType field if non-nil, zero value otherwise. + +### GetChartTypeOk + +`func (o *OrderedComponentPresentationMetric) GetChartTypeOk() (*ChartType, bool)` + +GetChartTypeOk returns a tuple with the ChartType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChartType + +`func (o *OrderedComponentPresentationMetric) SetChartType(v ChartType)` + +SetChartType sets ChartType field to given value. + +### HasChartType + +`func (o *OrderedComponentPresentationMetric) HasChartType() bool` + +HasChartType returns a boolean if a field has been set. + +### GetAlias + +`func (o *OrderedComponentPresentationMetric) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *OrderedComponentPresentationMetric) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *OrderedComponentPresentationMetric) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *OrderedComponentPresentationMetric) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetOrder + +`func (o *OrderedComponentPresentationMetric) GetOrder() float64` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) SetOrder(v float64)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *OrderedComponentPresentationMetric) HasOrder() bool` + +HasOrder 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/OrderedComponentPresentationMetricAllOf.md b/generated/stackstate_api/docs/OrderedComponentPresentationMetricAllOf.md new file mode 100644 index 00000000..8e73cd37 --- /dev/null +++ b/generated/stackstate_api/docs/OrderedComponentPresentationMetricAllOf.md @@ -0,0 +1,56 @@ +# OrderedComponentPresentationMetricAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | Pointer to **float64** | | [optional] + +## Methods + +### NewOrderedComponentPresentationMetricAllOf + +`func NewOrderedComponentPresentationMetricAllOf() *OrderedComponentPresentationMetricAllOf` + +NewOrderedComponentPresentationMetricAllOf instantiates a new OrderedComponentPresentationMetricAllOf 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 + +### NewOrderedComponentPresentationMetricAllOfWithDefaults + +`func NewOrderedComponentPresentationMetricAllOfWithDefaults() *OrderedComponentPresentationMetricAllOf` + +NewOrderedComponentPresentationMetricAllOfWithDefaults instantiates a new OrderedComponentPresentationMetricAllOf 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 + +### GetOrder + +`func (o *OrderedComponentPresentationMetricAllOf) GetOrder() float64` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *OrderedComponentPresentationMetricAllOf) 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 *OrderedComponentPresentationMetricAllOf) SetOrder(v float64)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *OrderedComponentPresentationMetricAllOf) HasOrder() bool` + +HasOrder 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/OtelComponentMapping.md b/generated/stackstate_api/docs/OtelComponentMapping.md index 39a68525..7d3ec824 100644 --- a/generated/stackstate_api/docs/OtelComponentMapping.md +++ b/generated/stackstate_api/docs/OtelComponentMapping.md @@ -12,12 +12,13 @@ Name | Type | Description | Notes **Output** | [**OtelComponentMappingOutput**](OtelComponentMappingOutput.md) | | **Vars** | Pointer to [**[]OtelVariableMapping**](OtelVariableMapping.md) | | [optional] **ExpireAfter** | **int64** | | +**Specificity** | **float64** | Determines how much of a \"specialization\" this mapping is. Higher number means more specific. Used during component merge to pick the winning typeName / name when multiple mappings contribute to the same component identifier. | ## Methods ### NewOtelComponentMapping -`func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, ) *OtelComponentMapping` +`func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, specificity float64, ) *OtelComponentMapping` NewOtelComponentMapping instantiates a new OtelComponentMapping object This constructor will assign default values to properties that have it defined, @@ -202,6 +203,26 @@ and a boolean to check if the value has been set. SetExpireAfter sets ExpireAfter field to given value. +### GetSpecificity + +`func (o *OtelComponentMapping) GetSpecificity() float64` + +GetSpecificity returns the Specificity field if non-nil, zero value otherwise. + +### GetSpecificityOk + +`func (o *OtelComponentMapping) GetSpecificityOk() (*float64, bool)` + +GetSpecificityOk returns a tuple with the Specificity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpecificity + +`func (o *OtelComponentMapping) SetSpecificity(v float64)` + +SetSpecificity sets Specificity 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/OtelComponentMappingOutput.md b/generated/stackstate_api/docs/OtelComponentMappingOutput.md index 6679db2c..c4240b30 100644 --- a/generated/stackstate_api/docs/OtelComponentMappingOutput.md +++ b/generated/stackstate_api/docs/OtelComponentMappingOutput.md @@ -7,11 +7,6 @@ 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 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] @@ -19,7 +14,7 @@ Name | Type | Description | Notes ### NewOtelComponentMappingOutput -`func NewOtelComponentMappingOutput(identifier string, name string, typeName string, layerName string, domainName string, ) *OtelComponentMappingOutput` +`func NewOtelComponentMappingOutput(identifier string, name string, typeName string, ) *OtelComponentMappingOutput` NewOtelComponentMappingOutput instantiates a new OtelComponentMappingOutput object This constructor will assign default values to properties that have it defined, @@ -94,121 +89,6 @@ and a boolean to check if the value has been set. SetTypeName sets TypeName field to given value. -### GetTypeIdentifier - -`func (o *OtelComponentMappingOutput) GetTypeIdentifier() string` - -GetTypeIdentifier returns the TypeIdentifier field if non-nil, zero value otherwise. - -### GetTypeIdentifierOk - -`func (o *OtelComponentMappingOutput) GetTypeIdentifierOk() (*string, bool)` - -GetTypeIdentifierOk returns a tuple with the TypeIdentifier field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeIdentifier - -`func (o *OtelComponentMappingOutput) SetTypeIdentifier(v string)` - -SetTypeIdentifier sets TypeIdentifier field to given value. - -### HasTypeIdentifier - -`func (o *OtelComponentMappingOutput) HasTypeIdentifier() bool` - -HasTypeIdentifier returns a boolean if a field has been set. - -### GetLayerName - -`func (o *OtelComponentMappingOutput) GetLayerName() string` - -GetLayerName returns the LayerName field if non-nil, zero value otherwise. - -### GetLayerNameOk - -`func (o *OtelComponentMappingOutput) GetLayerNameOk() (*string, bool)` - -GetLayerNameOk returns a tuple with the LayerName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLayerName - -`func (o *OtelComponentMappingOutput) SetLayerName(v string)` - -SetLayerName sets LayerName field to given value. - - -### GetLayerIdentifier - -`func (o *OtelComponentMappingOutput) GetLayerIdentifier() string` - -GetLayerIdentifier returns the LayerIdentifier field if non-nil, zero value otherwise. - -### GetLayerIdentifierOk - -`func (o *OtelComponentMappingOutput) GetLayerIdentifierOk() (*string, bool)` - -GetLayerIdentifierOk returns a tuple with the LayerIdentifier field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLayerIdentifier - -`func (o *OtelComponentMappingOutput) SetLayerIdentifier(v string)` - -SetLayerIdentifier sets LayerIdentifier field to given value. - -### HasLayerIdentifier - -`func (o *OtelComponentMappingOutput) HasLayerIdentifier() bool` - -HasLayerIdentifier returns a boolean if a field has been set. - -### GetDomainName - -`func (o *OtelComponentMappingOutput) GetDomainName() string` - -GetDomainName returns the DomainName field if non-nil, zero value otherwise. - -### GetDomainNameOk - -`func (o *OtelComponentMappingOutput) GetDomainNameOk() (*string, bool)` - -GetDomainNameOk returns a tuple with the DomainName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDomainName - -`func (o *OtelComponentMappingOutput) SetDomainName(v string)` - -SetDomainName sets DomainName field to given value. - - -### GetDomainIdentifier - -`func (o *OtelComponentMappingOutput) GetDomainIdentifier() string` - -GetDomainIdentifier returns the DomainIdentifier field if non-nil, zero value otherwise. - -### GetDomainIdentifierOk - -`func (o *OtelComponentMappingOutput) GetDomainIdentifierOk() (*string, bool)` - -GetDomainIdentifierOk returns a tuple with the DomainIdentifier field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDomainIdentifier - -`func (o *OtelComponentMappingOutput) SetDomainIdentifier(v string)` - -SetDomainIdentifier sets DomainIdentifier field to given value. - -### HasDomainIdentifier - -`func (o *OtelComponentMappingOutput) HasDomainIdentifier() bool` - -HasDomainIdentifier returns a boolean if a field has been set. - ### GetRequired `func (o *OtelComponentMappingOutput) GetRequired() OtelComponentMappingFieldMapping` diff --git a/generated/stackstate_api/docs/OtelMappingApi.md b/generated/stackstate_api/docs/OtelMappingApi.md index 13f633e2..da280f20 100644 --- a/generated/stackstate_api/docs/OtelMappingApi.md +++ b/generated/stackstate_api/docs/OtelMappingApi.md @@ -558,7 +558,7 @@ import ( ) func main() { - upsertOtelComponentMappingsRequest := *openapiclient.NewUpsertOtelComponentMappingsRequest("Identifier_example", "Name_example", *openapiclient.NewOtelInput([]openapiclient.OtelInputSignal{openapiclient.OtelInputSignal("TRACES")}, *openapiclient.NewOtelInputResource()), *openapiclient.NewOtelComponentMappingOutput("Identifier_example", "Name_example", "TypeName_example", "LayerName_example", "DomainName_example"), int64(123)) // UpsertOtelComponentMappingsRequest | Otel Component Mapping to create/update + upsertOtelComponentMappingsRequest := *openapiclient.NewUpsertOtelComponentMappingsRequest("Identifier_example", "Name_example", *openapiclient.NewOtelInput([]openapiclient.OtelInputSignal{openapiclient.OtelInputSignal("TRACES")}, *openapiclient.NewOtelInputResource()), *openapiclient.NewOtelComponentMappingOutput("Identifier_example", "Name_example", "TypeName_example"), int64(123), float64(123)) // UpsertOtelComponentMappingsRequest | Otel Component Mapping to create/update configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md b/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md index abea9d2a..9301a757 100644 --- a/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md +++ b/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md @@ -9,7 +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] +**BoundMetricId** | Pointer to [**BoundMetricId**](BoundMetricId.md) | | [optional] **External** | **bool** | | ## Methods @@ -176,30 +176,30 @@ and a boolean to check if the value has been set. SetLocked sets Locked field to given value. -### GetMetricId +### GetBoundMetricId -`func (o *OverviewColumnMetaDisplay) GetMetricId() MetricBindingId` +`func (o *OverviewColumnMetaDisplay) GetBoundMetricId() BoundMetricId` -GetMetricId returns the MetricId field if non-nil, zero value otherwise. +GetBoundMetricId returns the BoundMetricId field if non-nil, zero value otherwise. -### GetMetricIdOk +### GetBoundMetricIdOk -`func (o *OverviewColumnMetaDisplay) GetMetricIdOk() (*MetricBindingId, bool)` +`func (o *OverviewColumnMetaDisplay) GetBoundMetricIdOk() (*BoundMetricId, bool)` -GetMetricIdOk returns a tuple with the MetricId field if it's non-nil, zero value otherwise +GetBoundMetricIdOk returns a tuple with the BoundMetricId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMetricId +### SetBoundMetricId -`func (o *OverviewColumnMetaDisplay) SetMetricId(v MetricBindingId)` +`func (o *OverviewColumnMetaDisplay) SetBoundMetricId(v BoundMetricId)` -SetMetricId sets MetricId field to given value. +SetBoundMetricId sets BoundMetricId field to given value. -### HasMetricId +### HasBoundMetricId -`func (o *OverviewColumnMetaDisplay) HasMetricId() bool` +`func (o *OverviewColumnMetaDisplay) HasBoundMetricId() bool` -HasMetricId returns a boolean if a field has been set. +HasBoundMetricId returns a boolean if a field has been set. ### GetExternal diff --git a/generated/stackstate_api/docs/Perspectives.md b/generated/stackstate_api/docs/Perspectives.md new file mode 100644 index 00000000..291ba155 --- /dev/null +++ b/generated/stackstate_api/docs/Perspectives.md @@ -0,0 +1,150 @@ +# Perspectives + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | The resolved URN (ComponentPresentation identifier or legacy QueryView/ViewType URN). | +**TopologyQuery** | **string** | STQL query for this view. Used by the shared timeline, the events perspective, and the topology perspective. | +**Overview** | Pointer to **map[string]interface{}** | | [optional] +**Topology** | Pointer to [**TopologyPerspective**](TopologyPerspective.md) | | [optional] +**Events** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPerspectives + +`func NewPerspectives(identifier string, topologyQuery string, ) *Perspectives` + +NewPerspectives instantiates a new Perspectives 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 + +### NewPerspectivesWithDefaults + +`func NewPerspectivesWithDefaults() *Perspectives` + +NewPerspectivesWithDefaults instantiates a new Perspectives 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 *Perspectives) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *Perspectives) 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 *Perspectives) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + +### GetTopologyQuery + +`func (o *Perspectives) GetTopologyQuery() string` + +GetTopologyQuery returns the TopologyQuery field if non-nil, zero value otherwise. + +### GetTopologyQueryOk + +`func (o *Perspectives) GetTopologyQueryOk() (*string, bool)` + +GetTopologyQueryOk returns a tuple with the TopologyQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopologyQuery + +`func (o *Perspectives) SetTopologyQuery(v string)` + +SetTopologyQuery sets TopologyQuery field to given value. + + +### GetOverview + +`func (o *Perspectives) GetOverview() map[string]interface{}` + +GetOverview returns the Overview field if non-nil, zero value otherwise. + +### GetOverviewOk + +`func (o *Perspectives) GetOverviewOk() (*map[string]interface{}, bool)` + +GetOverviewOk returns a tuple with the Overview field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverview + +`func (o *Perspectives) SetOverview(v map[string]interface{})` + +SetOverview sets Overview field to given value. + +### HasOverview + +`func (o *Perspectives) HasOverview() bool` + +HasOverview returns a boolean if a field has been set. + +### GetTopology + +`func (o *Perspectives) GetTopology() TopologyPerspective` + +GetTopology returns the Topology field if non-nil, zero value otherwise. + +### GetTopologyOk + +`func (o *Perspectives) GetTopologyOk() (*TopologyPerspective, bool)` + +GetTopologyOk returns a tuple with the Topology field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopology + +`func (o *Perspectives) SetTopology(v TopologyPerspective)` + +SetTopology sets Topology field to given value. + +### HasTopology + +`func (o *Perspectives) HasTopology() bool` + +HasTopology returns a boolean if a field has been set. + +### GetEvents + +`func (o *Perspectives) GetEvents() map[string]interface{}` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *Perspectives) GetEventsOk() (*map[string]interface{}, 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 *Perspectives) SetEvents(v map[string]interface{})` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *Perspectives) HasEvents() bool` + +HasEvents 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/PerspectivesApi.md b/generated/stackstate_api/docs/PerspectivesApi.md new file mode 100644 index 00000000..34b450ba --- /dev/null +++ b/generated/stackstate_api/docs/PerspectivesApi.md @@ -0,0 +1,79 @@ +# \PerspectivesApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetPerspectives**](PerspectivesApi.md#GetPerspectives) | **Get** /perspectives/{presentationOrViewUrn} | Get the perspectives for a view + + + +## GetPerspectives + +> Perspectives GetPerspectives(ctx, presentationOrViewUrn).Execute() + +Get the perspectives for a view + + + +### 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.PerspectivesApi.GetPerspectives(context.Background(), presentationOrViewUrn).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PerspectivesApi.GetPerspectives``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPerspectives`: Perspectives + fmt.Fprintf(os.Stdout, "Response from `PerspectivesApi.GetPerspectives`: %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 apiGetPerspectivesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Perspectives**](Perspectives.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) + diff --git a/generated/stackstate_api/docs/PerspectivesApiError.md b/generated/stackstate_api/docs/PerspectivesApiError.md new file mode 100644 index 00000000..aa8c5ad9 --- /dev/null +++ b/generated/stackstate_api/docs/PerspectivesApiError.md @@ -0,0 +1,51 @@ +# PerspectivesApiError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | + +## Methods + +### NewPerspectivesApiError + +`func NewPerspectivesApiError(message string, ) *PerspectivesApiError` + +NewPerspectivesApiError instantiates a new PerspectivesApiError 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 + +### NewPerspectivesApiErrorWithDefaults + +`func NewPerspectivesApiErrorWithDefaults() *PerspectivesApiError` + +NewPerspectivesApiErrorWithDefaults instantiates a new PerspectivesApiError 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 + +### GetMessage + +`func (o *PerspectivesApiError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *PerspectivesApiError) 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 *PerspectivesApiError) 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/PresentationDefinition.md b/generated/stackstate_api/docs/PresentationDefinition.md index 35297e99..9569237e 100644 --- a/generated/stackstate_api/docs/PresentationDefinition.md +++ b/generated/stackstate_api/docs/PresentationDefinition.md @@ -7,7 +7,10 @@ Name | Type | Description | Notes **Icon** | Pointer to **string** | | [optional] **Overview** | Pointer to [**PresentationOverview**](PresentationOverview.md) | | [optional] **Highlight** | Pointer to [**PresentationHighlight**](PresentationHighlight.md) | | [optional] +**Summary** | Pointer to [**PresentationSummary**](PresentationSummary.md) | | [optional] **Filters** | Pointer to [**[]ComponentPresentationFilter**](ComponentPresentationFilter.md) | | [optional] +**MetricPerspective** | Pointer to [**PresentationMetricPerspective**](PresentationMetricPerspective.md) | | [optional] +**Topology** | Pointer to [**TopologySettings**](TopologySettings.md) | | [optional] ## Methods @@ -103,6 +106,31 @@ SetHighlight sets Highlight field to given value. HasHighlight returns a boolean if a field has been set. +### GetSummary + +`func (o *PresentationDefinition) GetSummary() PresentationSummary` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *PresentationDefinition) GetSummaryOk() (*PresentationSummary, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *PresentationDefinition) SetSummary(v PresentationSummary)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *PresentationDefinition) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + ### GetFilters `func (o *PresentationDefinition) GetFilters() []ComponentPresentationFilter` @@ -128,6 +156,56 @@ SetFilters sets Filters field to given value. HasFilters returns a boolean if a field has been set. +### GetMetricPerspective + +`func (o *PresentationDefinition) GetMetricPerspective() PresentationMetricPerspective` + +GetMetricPerspective returns the MetricPerspective field if non-nil, zero value otherwise. + +### GetMetricPerspectiveOk + +`func (o *PresentationDefinition) GetMetricPerspectiveOk() (*PresentationMetricPerspective, bool)` + +GetMetricPerspectiveOk returns a tuple with the MetricPerspective field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetricPerspective + +`func (o *PresentationDefinition) SetMetricPerspective(v PresentationMetricPerspective)` + +SetMetricPerspective sets MetricPerspective field to given value. + +### HasMetricPerspective + +`func (o *PresentationDefinition) HasMetricPerspective() bool` + +HasMetricPerspective returns a boolean if a field has been set. + +### GetTopology + +`func (o *PresentationDefinition) GetTopology() TopologySettings` + +GetTopology returns the Topology field if non-nil, zero value otherwise. + +### GetTopologyOk + +`func (o *PresentationDefinition) GetTopologyOk() (*TopologySettings, bool)` + +GetTopologyOk returns a tuple with the Topology field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopology + +`func (o *PresentationDefinition) SetTopology(v TopologySettings)` + +SetTopology sets Topology field to given value. + +### HasTopology + +`func (o *PresentationDefinition) HasTopology() bool` + +HasTopology 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/PresentationFiltersResponse.md b/generated/stackstate_api/docs/PresentationFiltersResponse.md index aba4334d..f6420155 100644 --- a/generated/stackstate_api/docs/PresentationFiltersResponse.md +++ b/generated/stackstate_api/docs/PresentationFiltersResponse.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**TopologyFilters** | **bool** | Whether topology filters are enabled for this presentation. | **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. | @@ -11,7 +12,7 @@ Name | Type | Description | Notes ### NewPresentationFiltersResponse -`func NewPresentationFiltersResponse(filters []PresentationFilter, menuSection string, ) *PresentationFiltersResponse` +`func NewPresentationFiltersResponse(topologyFilters bool, filters []PresentationFilter, menuSection string, ) *PresentationFiltersResponse` NewPresentationFiltersResponse instantiates a new PresentationFiltersResponse object This constructor will assign default values to properties that have it defined, @@ -26,6 +27,26 @@ NewPresentationFiltersResponseWithDefaults instantiates a new PresentationFilter 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 +### GetTopologyFilters + +`func (o *PresentationFiltersResponse) GetTopologyFilters() bool` + +GetTopologyFilters returns the TopologyFilters field if non-nil, zero value otherwise. + +### GetTopologyFiltersOk + +`func (o *PresentationFiltersResponse) GetTopologyFiltersOk() (*bool, bool)` + +GetTopologyFiltersOk returns a tuple with the TopologyFilters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopologyFilters + +`func (o *PresentationFiltersResponse) SetTopologyFilters(v bool)` + +SetTopologyFilters sets TopologyFilters field to given value. + + ### GetFilters `func (o *PresentationFiltersResponse) GetFilters() []PresentationFilter` diff --git a/generated/stackstate_api/docs/PresentationHighlight.md b/generated/stackstate_api/docs/PresentationHighlight.md index fd41ee0c..09307a52 100644 --- a/generated/stackstate_api/docs/PresentationHighlight.md +++ b/generated/stackstate_api/docs/PresentationHighlight.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Provisioning** | Pointer to [**PresentationHighlightProvisioning**](PresentationHighlightProvisioning.md) | | [optional] **RelatedResources** | Pointer to [**[]PresentationRelatedResource**](PresentationRelatedResource.md) | | [optional] **Events** | Pointer to [**PresentationHighlightEvents**](PresentationHighlightEvents.md) | | [optional] +**Metrics** | Pointer to [**[]PresentationHighlightMetricsSection**](PresentationHighlightMetricsSection.md) | | [optional] ## Methods @@ -144,6 +145,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetMetrics + +`func (o *PresentationHighlight) GetMetrics() []PresentationHighlightMetricsSection` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *PresentationHighlight) GetMetricsOk() (*[]PresentationHighlightMetricsSection, 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 *PresentationHighlight) SetMetrics(v []PresentationHighlightMetricsSection)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *PresentationHighlight) HasMetrics() bool` + +HasMetrics 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/PresentationHighlightMetricsSection.md b/generated/stackstate_api/docs/PresentationHighlightMetricsSection.md new file mode 100644 index 00000000..44d76cbc --- /dev/null +++ b/generated/stackstate_api/docs/PresentationHighlightMetricsSection.md @@ -0,0 +1,171 @@ +# PresentationHighlightMetricsSection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SectionId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DefaultExpanded** | Pointer to **bool** | | [optional] +**Order** | **float64** | | +**Metrics** | Pointer to [**[]OrderedComponentPresentationMetric**](OrderedComponentPresentationMetric.md) | | [optional] + +## Methods + +### NewPresentationHighlightMetricsSection + +`func NewPresentationHighlightMetricsSection(sectionId string, title string, order float64, ) *PresentationHighlightMetricsSection` + +NewPresentationHighlightMetricsSection instantiates a new PresentationHighlightMetricsSection 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 + +### NewPresentationHighlightMetricsSectionWithDefaults + +`func NewPresentationHighlightMetricsSectionWithDefaults() *PresentationHighlightMetricsSection` + +NewPresentationHighlightMetricsSectionWithDefaults instantiates a new PresentationHighlightMetricsSection 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 + +### GetSectionId + +`func (o *PresentationHighlightMetricsSection) GetSectionId() string` + +GetSectionId returns the SectionId field if non-nil, zero value otherwise. + +### GetSectionIdOk + +`func (o *PresentationHighlightMetricsSection) GetSectionIdOk() (*string, bool)` + +GetSectionIdOk returns a tuple with the SectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSectionId + +`func (o *PresentationHighlightMetricsSection) SetSectionId(v string)` + +SetSectionId sets SectionId field to given value. + + +### GetTitle + +`func (o *PresentationHighlightMetricsSection) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PresentationHighlightMetricsSection) 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 *PresentationHighlightMetricsSection) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *PresentationHighlightMetricsSection) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PresentationHighlightMetricsSection) 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 *PresentationHighlightMetricsSection) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PresentationHighlightMetricsSection) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDefaultExpanded + +`func (o *PresentationHighlightMetricsSection) GetDefaultExpanded() bool` + +GetDefaultExpanded returns the DefaultExpanded field if non-nil, zero value otherwise. + +### GetDefaultExpandedOk + +`func (o *PresentationHighlightMetricsSection) GetDefaultExpandedOk() (*bool, bool)` + +GetDefaultExpandedOk returns a tuple with the DefaultExpanded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultExpanded + +`func (o *PresentationHighlightMetricsSection) SetDefaultExpanded(v bool)` + +SetDefaultExpanded sets DefaultExpanded field to given value. + +### HasDefaultExpanded + +`func (o *PresentationHighlightMetricsSection) HasDefaultExpanded() bool` + +HasDefaultExpanded returns a boolean if a field has been set. + +### GetOrder + +`func (o *PresentationHighlightMetricsSection) GetOrder() float64` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *PresentationHighlightMetricsSection) 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 *PresentationHighlightMetricsSection) SetOrder(v float64)` + +SetOrder sets Order field to given value. + + +### GetMetrics + +`func (o *PresentationHighlightMetricsSection) GetMetrics() []OrderedComponentPresentationMetric` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *PresentationHighlightMetricsSection) GetMetricsOk() (*[]OrderedComponentPresentationMetric, 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 *PresentationHighlightMetricsSection) SetMetrics(v []OrderedComponentPresentationMetric)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *PresentationHighlightMetricsSection) HasMetrics() bool` + +HasMetrics 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/PresentationHighlightProvisioning.md b/generated/stackstate_api/docs/PresentationHighlightProvisioning.md index af2d3cfb..15daba03 100644 --- a/generated/stackstate_api/docs/PresentationHighlightProvisioning.md +++ b/generated/stackstate_api/docs/PresentationHighlightProvisioning.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ExternalComponentSelector** | Pointer to **string** | Cel expression that selects the external component with provisioning details | [optional] +**TopologySourceSelector** | Pointer to **string** | Cel expression that selects the external component with provisioning details | [optional] **ShowConfiguration** | Pointer to **bool** | | [optional] **ShowStatus** | Pointer to **bool** | | [optional] @@ -27,30 +27,30 @@ NewPresentationHighlightProvisioningWithDefaults instantiates a new Presentation 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 -### GetExternalComponentSelector +### GetTopologySourceSelector -`func (o *PresentationHighlightProvisioning) GetExternalComponentSelector() string` +`func (o *PresentationHighlightProvisioning) GetTopologySourceSelector() string` -GetExternalComponentSelector returns the ExternalComponentSelector field if non-nil, zero value otherwise. +GetTopologySourceSelector returns the TopologySourceSelector field if non-nil, zero value otherwise. -### GetExternalComponentSelectorOk +### GetTopologySourceSelectorOk -`func (o *PresentationHighlightProvisioning) GetExternalComponentSelectorOk() (*string, bool)` +`func (o *PresentationHighlightProvisioning) GetTopologySourceSelectorOk() (*string, bool)` -GetExternalComponentSelectorOk returns a tuple with the ExternalComponentSelector field if it's non-nil, zero value otherwise +GetTopologySourceSelectorOk returns a tuple with the TopologySourceSelector field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetExternalComponentSelector +### SetTopologySourceSelector -`func (o *PresentationHighlightProvisioning) SetExternalComponentSelector(v string)` +`func (o *PresentationHighlightProvisioning) SetTopologySourceSelector(v string)` -SetExternalComponentSelector sets ExternalComponentSelector field to given value. +SetTopologySourceSelector sets TopologySourceSelector field to given value. -### HasExternalComponentSelector +### HasTopologySourceSelector -`func (o *PresentationHighlightProvisioning) HasExternalComponentSelector() bool` +`func (o *PresentationHighlightProvisioning) HasTopologySourceSelector() bool` -HasExternalComponentSelector returns a boolean if a field has been set. +HasTopologySourceSelector returns a boolean if a field has been set. ### GetShowConfiguration diff --git a/generated/stackstate_api/docs/PresentationMetricPerspective.md b/generated/stackstate_api/docs/PresentationMetricPerspective.md new file mode 100644 index 00000000..0185ea3e --- /dev/null +++ b/generated/stackstate_api/docs/PresentationMetricPerspective.md @@ -0,0 +1,51 @@ +# PresentationMetricPerspective + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Tabs** | [**[]PresentationMetricPerspectiveTab**](PresentationMetricPerspectiveTab.md) | | + +## Methods + +### NewPresentationMetricPerspective + +`func NewPresentationMetricPerspective(tabs []PresentationMetricPerspectiveTab, ) *PresentationMetricPerspective` + +NewPresentationMetricPerspective instantiates a new PresentationMetricPerspective 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 + +### NewPresentationMetricPerspectiveWithDefaults + +`func NewPresentationMetricPerspectiveWithDefaults() *PresentationMetricPerspective` + +NewPresentationMetricPerspectiveWithDefaults instantiates a new PresentationMetricPerspective 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 + +### GetTabs + +`func (o *PresentationMetricPerspective) GetTabs() []PresentationMetricPerspectiveTab` + +GetTabs returns the Tabs field if non-nil, zero value otherwise. + +### GetTabsOk + +`func (o *PresentationMetricPerspective) GetTabsOk() (*[]PresentationMetricPerspectiveTab, bool)` + +GetTabsOk returns a tuple with the Tabs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTabs + +`func (o *PresentationMetricPerspective) SetTabs(v []PresentationMetricPerspectiveTab)` + +SetTabs sets Tabs 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/PresentationMetricPerspectiveSection.md b/generated/stackstate_api/docs/PresentationMetricPerspectiveSection.md new file mode 100644 index 00000000..63b4b9ef --- /dev/null +++ b/generated/stackstate_api/docs/PresentationMetricPerspectiveSection.md @@ -0,0 +1,119 @@ +# PresentationMetricPerspectiveSection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SectionId** | **string** | | +**Title** | **string** | | +**Order** | **float64** | | +**Metrics** | Pointer to [**[]OrderedComponentPresentationMetric**](OrderedComponentPresentationMetric.md) | | [optional] + +## Methods + +### NewPresentationMetricPerspectiveSection + +`func NewPresentationMetricPerspectiveSection(sectionId string, title string, order float64, ) *PresentationMetricPerspectiveSection` + +NewPresentationMetricPerspectiveSection instantiates a new PresentationMetricPerspectiveSection 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 + +### NewPresentationMetricPerspectiveSectionWithDefaults + +`func NewPresentationMetricPerspectiveSectionWithDefaults() *PresentationMetricPerspectiveSection` + +NewPresentationMetricPerspectiveSectionWithDefaults instantiates a new PresentationMetricPerspectiveSection 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 + +### GetSectionId + +`func (o *PresentationMetricPerspectiveSection) GetSectionId() string` + +GetSectionId returns the SectionId field if non-nil, zero value otherwise. + +### GetSectionIdOk + +`func (o *PresentationMetricPerspectiveSection) GetSectionIdOk() (*string, bool)` + +GetSectionIdOk returns a tuple with the SectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSectionId + +`func (o *PresentationMetricPerspectiveSection) SetSectionId(v string)` + +SetSectionId sets SectionId field to given value. + + +### GetTitle + +`func (o *PresentationMetricPerspectiveSection) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PresentationMetricPerspectiveSection) 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 *PresentationMetricPerspectiveSection) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetOrder + +`func (o *PresentationMetricPerspectiveSection) GetOrder() float64` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *PresentationMetricPerspectiveSection) 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 *PresentationMetricPerspectiveSection) SetOrder(v float64)` + +SetOrder sets Order field to given value. + + +### GetMetrics + +`func (o *PresentationMetricPerspectiveSection) GetMetrics() []OrderedComponentPresentationMetric` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *PresentationMetricPerspectiveSection) GetMetricsOk() (*[]OrderedComponentPresentationMetric, 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 *PresentationMetricPerspectiveSection) SetMetrics(v []OrderedComponentPresentationMetric)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *PresentationMetricPerspectiveSection) HasMetrics() bool` + +HasMetrics 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/PresentationMetricPerspectiveTab.md b/generated/stackstate_api/docs/PresentationMetricPerspectiveTab.md new file mode 100644 index 00000000..f85adca5 --- /dev/null +++ b/generated/stackstate_api/docs/PresentationMetricPerspectiveTab.md @@ -0,0 +1,119 @@ +# PresentationMetricPerspectiveTab + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TabId** | **string** | | +**Title** | **string** | | +**Order** | **float64** | | +**Sections** | Pointer to [**[]PresentationMetricPerspectiveSection**](PresentationMetricPerspectiveSection.md) | | [optional] + +## Methods + +### NewPresentationMetricPerspectiveTab + +`func NewPresentationMetricPerspectiveTab(tabId string, title string, order float64, ) *PresentationMetricPerspectiveTab` + +NewPresentationMetricPerspectiveTab instantiates a new PresentationMetricPerspectiveTab 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 + +### NewPresentationMetricPerspectiveTabWithDefaults + +`func NewPresentationMetricPerspectiveTabWithDefaults() *PresentationMetricPerspectiveTab` + +NewPresentationMetricPerspectiveTabWithDefaults instantiates a new PresentationMetricPerspectiveTab 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 + +### GetTabId + +`func (o *PresentationMetricPerspectiveTab) GetTabId() string` + +GetTabId returns the TabId field if non-nil, zero value otherwise. + +### GetTabIdOk + +`func (o *PresentationMetricPerspectiveTab) GetTabIdOk() (*string, bool)` + +GetTabIdOk returns a tuple with the TabId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTabId + +`func (o *PresentationMetricPerspectiveTab) SetTabId(v string)` + +SetTabId sets TabId field to given value. + + +### GetTitle + +`func (o *PresentationMetricPerspectiveTab) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PresentationMetricPerspectiveTab) 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 *PresentationMetricPerspectiveTab) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetOrder + +`func (o *PresentationMetricPerspectiveTab) GetOrder() float64` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *PresentationMetricPerspectiveTab) 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 *PresentationMetricPerspectiveTab) SetOrder(v float64)` + +SetOrder sets Order field to given value. + + +### GetSections + +`func (o *PresentationMetricPerspectiveTab) GetSections() []PresentationMetricPerspectiveSection` + +GetSections returns the Sections field if non-nil, zero value otherwise. + +### GetSectionsOk + +`func (o *PresentationMetricPerspectiveTab) GetSectionsOk() (*[]PresentationMetricPerspectiveSection, bool)` + +GetSectionsOk returns a tuple with the Sections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSections + +`func (o *PresentationMetricPerspectiveTab) SetSections(v []PresentationMetricPerspectiveSection)` + +SetSections sets Sections field to given value. + +### HasSections + +`func (o *PresentationMetricPerspectiveTab) HasSections() bool` + +HasSections 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/PresentationMetricQuery.md b/generated/stackstate_api/docs/PresentationMetricQuery.md new file mode 100644 index 00000000..aa15a360 --- /dev/null +++ b/generated/stackstate_api/docs/PresentationMetricQuery.md @@ -0,0 +1,124 @@ +# PresentationMetricQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Expression** | **string** | | +**Alias** | **string** | | +**ComponentIdentifierTemplate** | Pointer to **string** | | [optional] +**Primary** | Pointer to **bool** | | [optional] + +## Methods + +### NewPresentationMetricQuery + +`func NewPresentationMetricQuery(expression string, alias string, ) *PresentationMetricQuery` + +NewPresentationMetricQuery instantiates a new PresentationMetricQuery 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 + +### NewPresentationMetricQueryWithDefaults + +`func NewPresentationMetricQueryWithDefaults() *PresentationMetricQuery` + +NewPresentationMetricQueryWithDefaults instantiates a new PresentationMetricQuery 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 + +### GetExpression + +`func (o *PresentationMetricQuery) GetExpression() string` + +GetExpression returns the Expression field if non-nil, zero value otherwise. + +### GetExpressionOk + +`func (o *PresentationMetricQuery) GetExpressionOk() (*string, bool)` + +GetExpressionOk returns a tuple with the Expression field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpression + +`func (o *PresentationMetricQuery) SetExpression(v string)` + +SetExpression sets Expression field to given value. + + +### GetAlias + +`func (o *PresentationMetricQuery) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *PresentationMetricQuery) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *PresentationMetricQuery) SetAlias(v string)` + +SetAlias sets Alias field to given value. + + +### GetComponentIdentifierTemplate + +`func (o *PresentationMetricQuery) GetComponentIdentifierTemplate() string` + +GetComponentIdentifierTemplate returns the ComponentIdentifierTemplate field if non-nil, zero value otherwise. + +### GetComponentIdentifierTemplateOk + +`func (o *PresentationMetricQuery) GetComponentIdentifierTemplateOk() (*string, bool)` + +GetComponentIdentifierTemplateOk returns a tuple with the ComponentIdentifierTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponentIdentifierTemplate + +`func (o *PresentationMetricQuery) SetComponentIdentifierTemplate(v string)` + +SetComponentIdentifierTemplate sets ComponentIdentifierTemplate field to given value. + +### HasComponentIdentifierTemplate + +`func (o *PresentationMetricQuery) HasComponentIdentifierTemplate() bool` + +HasComponentIdentifierTemplate returns a boolean if a field has been set. + +### GetPrimary + +`func (o *PresentationMetricQuery) GetPrimary() bool` + +GetPrimary returns the Primary field if non-nil, zero value otherwise. + +### GetPrimaryOk + +`func (o *PresentationMetricQuery) GetPrimaryOk() (*bool, bool)` + +GetPrimaryOk returns a tuple with the Primary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimary + +`func (o *PresentationMetricQuery) SetPrimary(v bool)` + +SetPrimary sets Primary field to given value. + +### HasPrimary + +`func (o *PresentationMetricQuery) HasPrimary() bool` + +HasPrimary 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/PresentationOverview.md b/generated/stackstate_api/docs/PresentationOverview.md index 7776c9cf..156c3cd3 100644 --- a/generated/stackstate_api/docs/PresentationOverview.md +++ b/generated/stackstate_api/docs/PresentationOverview.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **MainMenu** | Pointer to [**PresentationMainMenu**](PresentationMainMenu.md) | | [optional] **Columns** | [**[]OverviewColumnDefinition**](OverviewColumnDefinition.md) | | **FixedColumns** | Pointer to **int32** | | [optional] +**Sort** | Pointer to [**[]PresentationOverviewSorting**](PresentationOverviewSorting.md) | | [optional] ## Methods @@ -118,6 +119,31 @@ SetFixedColumns sets FixedColumns field to given value. HasFixedColumns returns a boolean if a field has been set. +### GetSort + +`func (o *PresentationOverview) GetSort() []PresentationOverviewSorting` + +GetSort returns the Sort field if non-nil, zero value otherwise. + +### GetSortOk + +`func (o *PresentationOverview) GetSortOk() (*[]PresentationOverviewSorting, bool)` + +GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSort + +`func (o *PresentationOverview) SetSort(v []PresentationOverviewSorting)` + +SetSort sets Sort field to given value. + +### HasSort + +`func (o *PresentationOverview) HasSort() bool` + +HasSort 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/PresentationOverviewSorting.md b/generated/stackstate_api/docs/PresentationOverviewSorting.md new file mode 100644 index 00000000..16b3f910 --- /dev/null +++ b/generated/stackstate_api/docs/PresentationOverviewSorting.md @@ -0,0 +1,77 @@ +# PresentationOverviewSorting + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ColumnId** | **string** | | +**Direction** | Pointer to [**PresentationOverviewSortingDirection**](PresentationOverviewSortingDirection.md) | | [optional] + +## Methods + +### NewPresentationOverviewSorting + +`func NewPresentationOverviewSorting(columnId string, ) *PresentationOverviewSorting` + +NewPresentationOverviewSorting instantiates a new PresentationOverviewSorting 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 + +### NewPresentationOverviewSortingWithDefaults + +`func NewPresentationOverviewSortingWithDefaults() *PresentationOverviewSorting` + +NewPresentationOverviewSortingWithDefaults instantiates a new PresentationOverviewSorting 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 + +### GetColumnId + +`func (o *PresentationOverviewSorting) GetColumnId() string` + +GetColumnId returns the ColumnId field if non-nil, zero value otherwise. + +### GetColumnIdOk + +`func (o *PresentationOverviewSorting) GetColumnIdOk() (*string, bool)` + +GetColumnIdOk returns a tuple with the ColumnId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColumnId + +`func (o *PresentationOverviewSorting) SetColumnId(v string)` + +SetColumnId sets ColumnId field to given value. + + +### GetDirection + +`func (o *PresentationOverviewSorting) GetDirection() PresentationOverviewSortingDirection` + +GetDirection returns the Direction field if non-nil, zero value otherwise. + +### GetDirectionOk + +`func (o *PresentationOverviewSorting) GetDirectionOk() (*PresentationOverviewSortingDirection, bool)` + +GetDirectionOk returns a tuple with the Direction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirection + +`func (o *PresentationOverviewSorting) SetDirection(v PresentationOverviewSortingDirection)` + +SetDirection sets Direction field to given value. + +### HasDirection + +`func (o *PresentationOverviewSorting) HasDirection() bool` + +HasDirection 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/MetricValuation.md b/generated/stackstate_api/docs/PresentationOverviewSortingDirection.md similarity index 60% rename from generated/stackstate_api/docs/MetricValuation.md rename to generated/stackstate_api/docs/PresentationOverviewSortingDirection.md index 6d746aaf..c89a9c69 100644 --- a/generated/stackstate_api/docs/MetricValuation.md +++ b/generated/stackstate_api/docs/PresentationOverviewSortingDirection.md @@ -1,11 +1,11 @@ -# MetricValuation +# PresentationOverviewSortingDirection ## Enum -* `HIGHER_IS_BETTER` (value: `"higher-is-better"`) +* `ASCENDING` (value: `"Ascending"`) -* `LOWER_IS_BETTER` (value: `"lower-is-better"`) +* `DESCENDING` (value: `"Descending"`) [[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/PresentationSummary.md b/generated/stackstate_api/docs/PresentationSummary.md new file mode 100644 index 00000000..97d8eb16 --- /dev/null +++ b/generated/stackstate_api/docs/PresentationSummary.md @@ -0,0 +1,56 @@ +# PresentationSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metrics** | Pointer to [**[]OrderedComponentPresentationMetric**](OrderedComponentPresentationMetric.md) | | [optional] + +## Methods + +### NewPresentationSummary + +`func NewPresentationSummary() *PresentationSummary` + +NewPresentationSummary instantiates a new PresentationSummary 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 + +### NewPresentationSummaryWithDefaults + +`func NewPresentationSummaryWithDefaults() *PresentationSummary` + +NewPresentationSummaryWithDefaults instantiates a new PresentationSummary 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 + +### GetMetrics + +`func (o *PresentationSummary) GetMetrics() []OrderedComponentPresentationMetric` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *PresentationSummary) GetMetricsOk() (*[]OrderedComponentPresentationMetric, 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 *PresentationSummary) SetMetrics(v []OrderedComponentPresentationMetric)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *PresentationSummary) HasMetrics() bool` + +HasMetrics 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/QueryViewFlag.md b/generated/stackstate_api/docs/QueryViewFlag.md new file mode 100644 index 00000000..7ec7d2f0 --- /dev/null +++ b/generated/stackstate_api/docs/QueryViewFlag.md @@ -0,0 +1,13 @@ +# QueryViewFlag + +## Enum + + +* `NOT_UNLOCKABLE` (value: `"NotUnlockable"`) + +* `HIDE_FROM_VIEWS_OVERVIEW` (value: `"HideFromViewsOverview"`) + + +[[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/BaseLayoutHint.md b/generated/stackstate_api/docs/TopologyDomain.md similarity index 53% rename from generated/stackstate_api/docs/BaseLayoutHint.md rename to generated/stackstate_api/docs/TopologyDomain.md index eb055263..4f26cfb2 100644 --- a/generated/stackstate_api/docs/BaseLayoutHint.md +++ b/generated/stackstate_api/docs/TopologyDomain.md @@ -1,69 +1,69 @@ -# BaseLayoutHint +# TopologyDomain ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Weight** | **float32** | | +**Order** | **float64** | | ## Methods -### NewBaseLayoutHint +### NewTopologyDomain -`func NewBaseLayoutHint(name string, weight float32, ) *BaseLayoutHint` +`func NewTopologyDomain(name string, order float64, ) *TopologyDomain` -NewBaseLayoutHint instantiates a new BaseLayoutHint object +NewTopologyDomain instantiates a new TopologyDomain 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 -### NewBaseLayoutHintWithDefaults +### NewTopologyDomainWithDefaults -`func NewBaseLayoutHintWithDefaults() *BaseLayoutHint` +`func NewTopologyDomainWithDefaults() *TopologyDomain` -NewBaseLayoutHintWithDefaults instantiates a new BaseLayoutHint object +NewTopologyDomainWithDefaults instantiates a new TopologyDomain 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 ### GetName -`func (o *BaseLayoutHint) GetName() string` +`func (o *TopologyDomain) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *BaseLayoutHint) GetNameOk() (*string, bool)` +`func (o *TopologyDomain) 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 *BaseLayoutHint) SetName(v string)` +`func (o *TopologyDomain) SetName(v string)` SetName sets Name field to given value. -### GetWeight +### GetOrder -`func (o *BaseLayoutHint) GetWeight() float32` +`func (o *TopologyDomain) GetOrder() float64` -GetWeight returns the Weight field if non-nil, zero value otherwise. +GetOrder returns the Order field if non-nil, zero value otherwise. -### GetWeightOk +### GetOrderOk -`func (o *BaseLayoutHint) GetWeightOk() (*float32, bool)` +`func (o *TopologyDomain) GetOrderOk() (*float64, bool)` -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +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. -### SetWeight +### SetOrder -`func (o *BaseLayoutHint) SetWeight(v float32)` +`func (o *TopologyDomain) SetOrder(v float64)` -SetWeight sets Weight field to given value. +SetOrder sets Order field to given value. diff --git a/generated/stackstate_api/docs/TopologyLayer.md b/generated/stackstate_api/docs/TopologyLayer.md new file mode 100644 index 00000000..fefeb4ea --- /dev/null +++ b/generated/stackstate_api/docs/TopologyLayer.md @@ -0,0 +1,72 @@ +# TopologyLayer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Order** | **float64** | | + +## Methods + +### NewTopologyLayer + +`func NewTopologyLayer(name string, order float64, ) *TopologyLayer` + +NewTopologyLayer instantiates a new TopologyLayer 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 + +### NewTopologyLayerWithDefaults + +`func NewTopologyLayerWithDefaults() *TopologyLayer` + +NewTopologyLayerWithDefaults instantiates a new TopologyLayer 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 + +### GetName + +`func (o *TopologyLayer) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *TopologyLayer) 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 *TopologyLayer) SetName(v string)` + +SetName sets Name field to given value. + + +### GetOrder + +`func (o *TopologyLayer) GetOrder() float64` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *TopologyLayer) 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 *TopologyLayer) SetOrder(v float64)` + +SetOrder sets Order 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/TopologyPerspective.md b/generated/stackstate_api/docs/TopologyPerspective.md new file mode 100644 index 00000000..c781dc51 --- /dev/null +++ b/generated/stackstate_api/docs/TopologyPerspective.md @@ -0,0 +1,51 @@ +# TopologyPerspective + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QueryMetadata** | [**QueryMetadata**](QueryMetadata.md) | | + +## Methods + +### NewTopologyPerspective + +`func NewTopologyPerspective(queryMetadata QueryMetadata, ) *TopologyPerspective` + +NewTopologyPerspective instantiates a new TopologyPerspective 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 + +### NewTopologyPerspectiveWithDefaults + +`func NewTopologyPerspectiveWithDefaults() *TopologyPerspective` + +NewTopologyPerspectiveWithDefaults instantiates a new TopologyPerspective 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 + +### GetQueryMetadata + +`func (o *TopologyPerspective) GetQueryMetadata() QueryMetadata` + +GetQueryMetadata returns the QueryMetadata field if non-nil, zero value otherwise. + +### GetQueryMetadataOk + +`func (o *TopologyPerspective) GetQueryMetadataOk() (*QueryMetadata, bool)` + +GetQueryMetadataOk returns a tuple with the QueryMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueryMetadata + +`func (o *TopologyPerspective) SetQueryMetadata(v QueryMetadata)` + +SetQueryMetadata sets QueryMetadata 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/TopologySettings.md b/generated/stackstate_api/docs/TopologySettings.md new file mode 100644 index 00000000..d22d2972 --- /dev/null +++ b/generated/stackstate_api/docs/TopologySettings.md @@ -0,0 +1,316 @@ +# TopologySettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupingEnabled** | Pointer to **bool** | | [optional] +**ShowIndirectRelations** | Pointer to **bool** | | [optional] +**MinimumGroupSize** | Pointer to **int64** | | [optional] +**GroupedByLayers** | Pointer to **bool** | | [optional] +**GroupedByDomains** | Pointer to **bool** | | [optional] +**GroupedByRelations** | Pointer to **bool** | | [optional] +**AutoGrouping** | Pointer to **bool** | | [optional] +**ConnectedComponents** | Pointer to **bool** | | [optional] +**NeighboringComponents** | Pointer to **bool** | | [optional] +**Layer** | Pointer to [**TopologyLayer**](TopologyLayer.md) | | [optional] +**Domain** | Pointer to [**TopologyDomain**](TopologyDomain.md) | | [optional] + +## Methods + +### NewTopologySettings + +`func NewTopologySettings() *TopologySettings` + +NewTopologySettings instantiates a new TopologySettings 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 + +### NewTopologySettingsWithDefaults + +`func NewTopologySettingsWithDefaults() *TopologySettings` + +NewTopologySettingsWithDefaults instantiates a new TopologySettings 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 + +### GetGroupingEnabled + +`func (o *TopologySettings) GetGroupingEnabled() bool` + +GetGroupingEnabled returns the GroupingEnabled field if non-nil, zero value otherwise. + +### GetGroupingEnabledOk + +`func (o *TopologySettings) GetGroupingEnabledOk() (*bool, bool)` + +GetGroupingEnabledOk returns a tuple with the GroupingEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupingEnabled + +`func (o *TopologySettings) SetGroupingEnabled(v bool)` + +SetGroupingEnabled sets GroupingEnabled field to given value. + +### HasGroupingEnabled + +`func (o *TopologySettings) HasGroupingEnabled() bool` + +HasGroupingEnabled returns a boolean if a field has been set. + +### GetShowIndirectRelations + +`func (o *TopologySettings) GetShowIndirectRelations() bool` + +GetShowIndirectRelations returns the ShowIndirectRelations field if non-nil, zero value otherwise. + +### GetShowIndirectRelationsOk + +`func (o *TopologySettings) GetShowIndirectRelationsOk() (*bool, bool)` + +GetShowIndirectRelationsOk returns a tuple with the ShowIndirectRelations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowIndirectRelations + +`func (o *TopologySettings) SetShowIndirectRelations(v bool)` + +SetShowIndirectRelations sets ShowIndirectRelations field to given value. + +### HasShowIndirectRelations + +`func (o *TopologySettings) HasShowIndirectRelations() bool` + +HasShowIndirectRelations returns a boolean if a field has been set. + +### GetMinimumGroupSize + +`func (o *TopologySettings) GetMinimumGroupSize() int64` + +GetMinimumGroupSize returns the MinimumGroupSize field if non-nil, zero value otherwise. + +### GetMinimumGroupSizeOk + +`func (o *TopologySettings) GetMinimumGroupSizeOk() (*int64, bool)` + +GetMinimumGroupSizeOk returns a tuple with the MinimumGroupSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinimumGroupSize + +`func (o *TopologySettings) SetMinimumGroupSize(v int64)` + +SetMinimumGroupSize sets MinimumGroupSize field to given value. + +### HasMinimumGroupSize + +`func (o *TopologySettings) HasMinimumGroupSize() bool` + +HasMinimumGroupSize returns a boolean if a field has been set. + +### GetGroupedByLayers + +`func (o *TopologySettings) GetGroupedByLayers() bool` + +GetGroupedByLayers returns the GroupedByLayers field if non-nil, zero value otherwise. + +### GetGroupedByLayersOk + +`func (o *TopologySettings) GetGroupedByLayersOk() (*bool, bool)` + +GetGroupedByLayersOk returns a tuple with the GroupedByLayers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupedByLayers + +`func (o *TopologySettings) SetGroupedByLayers(v bool)` + +SetGroupedByLayers sets GroupedByLayers field to given value. + +### HasGroupedByLayers + +`func (o *TopologySettings) HasGroupedByLayers() bool` + +HasGroupedByLayers returns a boolean if a field has been set. + +### GetGroupedByDomains + +`func (o *TopologySettings) GetGroupedByDomains() bool` + +GetGroupedByDomains returns the GroupedByDomains field if non-nil, zero value otherwise. + +### GetGroupedByDomainsOk + +`func (o *TopologySettings) GetGroupedByDomainsOk() (*bool, bool)` + +GetGroupedByDomainsOk returns a tuple with the GroupedByDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupedByDomains + +`func (o *TopologySettings) SetGroupedByDomains(v bool)` + +SetGroupedByDomains sets GroupedByDomains field to given value. + +### HasGroupedByDomains + +`func (o *TopologySettings) HasGroupedByDomains() bool` + +HasGroupedByDomains returns a boolean if a field has been set. + +### GetGroupedByRelations + +`func (o *TopologySettings) GetGroupedByRelations() bool` + +GetGroupedByRelations returns the GroupedByRelations field if non-nil, zero value otherwise. + +### GetGroupedByRelationsOk + +`func (o *TopologySettings) GetGroupedByRelationsOk() (*bool, bool)` + +GetGroupedByRelationsOk returns a tuple with the GroupedByRelations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupedByRelations + +`func (o *TopologySettings) SetGroupedByRelations(v bool)` + +SetGroupedByRelations sets GroupedByRelations field to given value. + +### HasGroupedByRelations + +`func (o *TopologySettings) HasGroupedByRelations() bool` + +HasGroupedByRelations returns a boolean if a field has been set. + +### GetAutoGrouping + +`func (o *TopologySettings) GetAutoGrouping() bool` + +GetAutoGrouping returns the AutoGrouping field if non-nil, zero value otherwise. + +### GetAutoGroupingOk + +`func (o *TopologySettings) GetAutoGroupingOk() (*bool, bool)` + +GetAutoGroupingOk returns a tuple with the AutoGrouping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoGrouping + +`func (o *TopologySettings) SetAutoGrouping(v bool)` + +SetAutoGrouping sets AutoGrouping field to given value. + +### HasAutoGrouping + +`func (o *TopologySettings) HasAutoGrouping() bool` + +HasAutoGrouping returns a boolean if a field has been set. + +### GetConnectedComponents + +`func (o *TopologySettings) GetConnectedComponents() bool` + +GetConnectedComponents returns the ConnectedComponents field if non-nil, zero value otherwise. + +### GetConnectedComponentsOk + +`func (o *TopologySettings) GetConnectedComponentsOk() (*bool, bool)` + +GetConnectedComponentsOk returns a tuple with the ConnectedComponents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedComponents + +`func (o *TopologySettings) SetConnectedComponents(v bool)` + +SetConnectedComponents sets ConnectedComponents field to given value. + +### HasConnectedComponents + +`func (o *TopologySettings) HasConnectedComponents() bool` + +HasConnectedComponents returns a boolean if a field has been set. + +### GetNeighboringComponents + +`func (o *TopologySettings) GetNeighboringComponents() bool` + +GetNeighboringComponents returns the NeighboringComponents field if non-nil, zero value otherwise. + +### GetNeighboringComponentsOk + +`func (o *TopologySettings) GetNeighboringComponentsOk() (*bool, bool)` + +GetNeighboringComponentsOk returns a tuple with the NeighboringComponents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNeighboringComponents + +`func (o *TopologySettings) SetNeighboringComponents(v bool)` + +SetNeighboringComponents sets NeighboringComponents field to given value. + +### HasNeighboringComponents + +`func (o *TopologySettings) HasNeighboringComponents() bool` + +HasNeighboringComponents returns a boolean if a field has been set. + +### GetLayer + +`func (o *TopologySettings) GetLayer() TopologyLayer` + +GetLayer returns the Layer field if non-nil, zero value otherwise. + +### GetLayerOk + +`func (o *TopologySettings) GetLayerOk() (*TopologyLayer, bool)` + +GetLayerOk returns a tuple with the Layer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLayer + +`func (o *TopologySettings) SetLayer(v TopologyLayer)` + +SetLayer sets Layer field to given value. + +### HasLayer + +`func (o *TopologySettings) HasLayer() bool` + +HasLayer returns a boolean if a field has been set. + +### GetDomain + +`func (o *TopologySettings) GetDomain() TopologyDomain` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *TopologySettings) GetDomainOk() (*TopologyDomain, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *TopologySettings) SetDomain(v TopologyDomain)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *TopologySettings) HasDomain() bool` + +HasDomain 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/UpsertOtelComponentMappingsRequest.md b/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md index 1f7086df..d1bd7adf 100644 --- a/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md +++ b/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md @@ -11,12 +11,13 @@ Name | Type | Description | Notes **Output** | [**OtelComponentMappingOutput**](OtelComponentMappingOutput.md) | | **Vars** | Pointer to [**[]OtelVariableMapping**](OtelVariableMapping.md) | | [optional] **ExpireAfter** | **int64** | | +**Specificity** | **float64** | Determines how much of a \"specialization\" this mapping is. Higher number means more specific. Used during component merge to pick the winning typeName / name when multiple mappings contribute to the same component identifier. | ## Methods ### NewUpsertOtelComponentMappingsRequest -`func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, ) *UpsertOtelComponentMappingsRequest` +`func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, specificity float64, ) *UpsertOtelComponentMappingsRequest` NewUpsertOtelComponentMappingsRequest instantiates a new UpsertOtelComponentMappingsRequest object This constructor will assign default values to properties that have it defined, @@ -181,6 +182,26 @@ and a boolean to check if the value has been set. SetExpireAfter sets ExpireAfter field to given value. +### GetSpecificity + +`func (o *UpsertOtelComponentMappingsRequest) GetSpecificity() float64` + +GetSpecificity returns the Specificity field if non-nil, zero value otherwise. + +### GetSpecificityOk + +`func (o *UpsertOtelComponentMappingsRequest) GetSpecificityOk() (*float64, bool)` + +GetSpecificityOk returns a tuple with the Specificity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpecificity + +`func (o *UpsertOtelComponentMappingsRequest) SetSpecificity(v float64)` + +SetSpecificity sets Specificity 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/View.md b/generated/stackstate_api/docs/View.md new file mode 100644 index 00000000..fb84c611 --- /dev/null +++ b/generated/stackstate_api/docs/View.md @@ -0,0 +1,381 @@ +# View + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int64** | | +**Identifier** | Pointer to **string** | | [optional] +**Name** | **string** | | +**ViewType** | Pointer to **string** | | [optional] +**TopologyQuery** | **string** | | +**GroupingEnabled** | **bool** | | +**GroupedByLayers** | **bool** | | +**GroupedByDomains** | **bool** | | +**GroupedByRelations** | **bool** | | +**MinimumGroupSize** | **int64** | | +**ShowIndirectRelations** | **bool** | | +**AutoGrouping** | **bool** | | +**ConnectedComponents** | **bool** | | +**NeighboringComponents** | **bool** | | +**Flags** | [**[]QueryViewFlag**](QueryViewFlag.md) | | +**OwnedBy** | Pointer to **string** | | [optional] + +## Methods + +### NewView + +`func NewView(id int64, name string, topologyQuery string, groupingEnabled bool, groupedByLayers bool, groupedByDomains bool, groupedByRelations bool, minimumGroupSize int64, showIndirectRelations bool, autoGrouping bool, connectedComponents bool, neighboringComponents bool, flags []QueryViewFlag, ) *View` + +NewView instantiates a new View 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 + +### NewViewWithDefaults + +`func NewViewWithDefaults() *View` + +NewViewWithDefaults instantiates a new View 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 + +### GetId + +`func (o *View) GetId() int64` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *View) GetIdOk() (*int64, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *View) SetId(v int64)` + +SetId sets Id field to given value. + + +### GetIdentifier + +`func (o *View) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *View) 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 *View) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + +### HasIdentifier + +`func (o *View) HasIdentifier() bool` + +HasIdentifier returns a boolean if a field has been set. + +### GetName + +`func (o *View) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *View) 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 *View) SetName(v string)` + +SetName sets Name field to given value. + + +### GetViewType + +`func (o *View) GetViewType() string` + +GetViewType returns the ViewType field if non-nil, zero value otherwise. + +### GetViewTypeOk + +`func (o *View) GetViewTypeOk() (*string, bool)` + +GetViewTypeOk returns a tuple with the ViewType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViewType + +`func (o *View) SetViewType(v string)` + +SetViewType sets ViewType field to given value. + +### HasViewType + +`func (o *View) HasViewType() bool` + +HasViewType returns a boolean if a field has been set. + +### GetTopologyQuery + +`func (o *View) GetTopologyQuery() string` + +GetTopologyQuery returns the TopologyQuery field if non-nil, zero value otherwise. + +### GetTopologyQueryOk + +`func (o *View) GetTopologyQueryOk() (*string, bool)` + +GetTopologyQueryOk returns a tuple with the TopologyQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopologyQuery + +`func (o *View) SetTopologyQuery(v string)` + +SetTopologyQuery sets TopologyQuery field to given value. + + +### GetGroupingEnabled + +`func (o *View) GetGroupingEnabled() bool` + +GetGroupingEnabled returns the GroupingEnabled field if non-nil, zero value otherwise. + +### GetGroupingEnabledOk + +`func (o *View) GetGroupingEnabledOk() (*bool, bool)` + +GetGroupingEnabledOk returns a tuple with the GroupingEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupingEnabled + +`func (o *View) SetGroupingEnabled(v bool)` + +SetGroupingEnabled sets GroupingEnabled field to given value. + + +### GetGroupedByLayers + +`func (o *View) GetGroupedByLayers() bool` + +GetGroupedByLayers returns the GroupedByLayers field if non-nil, zero value otherwise. + +### GetGroupedByLayersOk + +`func (o *View) GetGroupedByLayersOk() (*bool, bool)` + +GetGroupedByLayersOk returns a tuple with the GroupedByLayers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupedByLayers + +`func (o *View) SetGroupedByLayers(v bool)` + +SetGroupedByLayers sets GroupedByLayers field to given value. + + +### GetGroupedByDomains + +`func (o *View) GetGroupedByDomains() bool` + +GetGroupedByDomains returns the GroupedByDomains field if non-nil, zero value otherwise. + +### GetGroupedByDomainsOk + +`func (o *View) GetGroupedByDomainsOk() (*bool, bool)` + +GetGroupedByDomainsOk returns a tuple with the GroupedByDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupedByDomains + +`func (o *View) SetGroupedByDomains(v bool)` + +SetGroupedByDomains sets GroupedByDomains field to given value. + + +### GetGroupedByRelations + +`func (o *View) GetGroupedByRelations() bool` + +GetGroupedByRelations returns the GroupedByRelations field if non-nil, zero value otherwise. + +### GetGroupedByRelationsOk + +`func (o *View) GetGroupedByRelationsOk() (*bool, bool)` + +GetGroupedByRelationsOk returns a tuple with the GroupedByRelations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupedByRelations + +`func (o *View) SetGroupedByRelations(v bool)` + +SetGroupedByRelations sets GroupedByRelations field to given value. + + +### GetMinimumGroupSize + +`func (o *View) GetMinimumGroupSize() int64` + +GetMinimumGroupSize returns the MinimumGroupSize field if non-nil, zero value otherwise. + +### GetMinimumGroupSizeOk + +`func (o *View) GetMinimumGroupSizeOk() (*int64, bool)` + +GetMinimumGroupSizeOk returns a tuple with the MinimumGroupSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinimumGroupSize + +`func (o *View) SetMinimumGroupSize(v int64)` + +SetMinimumGroupSize sets MinimumGroupSize field to given value. + + +### GetShowIndirectRelations + +`func (o *View) GetShowIndirectRelations() bool` + +GetShowIndirectRelations returns the ShowIndirectRelations field if non-nil, zero value otherwise. + +### GetShowIndirectRelationsOk + +`func (o *View) GetShowIndirectRelationsOk() (*bool, bool)` + +GetShowIndirectRelationsOk returns a tuple with the ShowIndirectRelations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowIndirectRelations + +`func (o *View) SetShowIndirectRelations(v bool)` + +SetShowIndirectRelations sets ShowIndirectRelations field to given value. + + +### GetAutoGrouping + +`func (o *View) GetAutoGrouping() bool` + +GetAutoGrouping returns the AutoGrouping field if non-nil, zero value otherwise. + +### GetAutoGroupingOk + +`func (o *View) GetAutoGroupingOk() (*bool, bool)` + +GetAutoGroupingOk returns a tuple with the AutoGrouping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoGrouping + +`func (o *View) SetAutoGrouping(v bool)` + +SetAutoGrouping sets AutoGrouping field to given value. + + +### GetConnectedComponents + +`func (o *View) GetConnectedComponents() bool` + +GetConnectedComponents returns the ConnectedComponents field if non-nil, zero value otherwise. + +### GetConnectedComponentsOk + +`func (o *View) GetConnectedComponentsOk() (*bool, bool)` + +GetConnectedComponentsOk returns a tuple with the ConnectedComponents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedComponents + +`func (o *View) SetConnectedComponents(v bool)` + +SetConnectedComponents sets ConnectedComponents field to given value. + + +### GetNeighboringComponents + +`func (o *View) GetNeighboringComponents() bool` + +GetNeighboringComponents returns the NeighboringComponents field if non-nil, zero value otherwise. + +### GetNeighboringComponentsOk + +`func (o *View) GetNeighboringComponentsOk() (*bool, bool)` + +GetNeighboringComponentsOk returns a tuple with the NeighboringComponents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNeighboringComponents + +`func (o *View) SetNeighboringComponents(v bool)` + +SetNeighboringComponents sets NeighboringComponents field to given value. + + +### GetFlags + +`func (o *View) GetFlags() []QueryViewFlag` + +GetFlags returns the Flags field if non-nil, zero value otherwise. + +### GetFlagsOk + +`func (o *View) GetFlagsOk() (*[]QueryViewFlag, bool)` + +GetFlagsOk returns a tuple with the Flags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlags + +`func (o *View) SetFlags(v []QueryViewFlag)` + +SetFlags sets Flags field to given value. + + +### GetOwnedBy + +`func (o *View) GetOwnedBy() string` + +GetOwnedBy returns the OwnedBy field if non-nil, zero value otherwise. + +### GetOwnedByOk + +`func (o *View) GetOwnedByOk() (*string, bool)` + +GetOwnedByOk returns a tuple with the OwnedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnedBy + +`func (o *View) SetOwnedBy(v string)` + +SetOwnedBy sets OwnedBy field to given value. + +### HasOwnedBy + +`func (o *View) HasOwnedBy() bool` + +HasOwnedBy 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/ViewApi.md b/generated/stackstate_api/docs/ViewApi.md new file mode 100644 index 00000000..f18b35a2 --- /dev/null +++ b/generated/stackstate_api/docs/ViewApi.md @@ -0,0 +1,141 @@ +# \ViewApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetView**](ViewApi.md#GetView) | **Get** /views/{viewIdOrIdentifier} | Get a single view +[**GetViews**](ViewApi.md#GetViews) | **Get** /views | Get a list of views + + + +## GetView + +> View GetView(ctx, viewIdOrIdentifier).Execute() + +Get a single view + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + viewIdOrIdentifier := "viewIdOrIdentifier_example" // string | The system ID or identifier of a QueryView. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ViewApi.GetView(context.Background(), viewIdOrIdentifier).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.GetView``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetView`: View + fmt.Fprintf(os.Stdout, "Response from `ViewApi.GetView`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**viewIdOrIdentifier** | **string** | The system ID or identifier of a QueryView. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetViewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**View**](View.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) + + +## GetViews + +> ViewList GetViews(ctx).Execute() + +Get a list of views + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ViewApi.GetViews(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.GetViews``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetViews`: ViewList + fmt.Fprintf(os.Stdout, "Response from `ViewApi.GetViews`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetViewsRequest struct via the builder pattern + + +### Return type + +[**ViewList**](ViewList.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) + diff --git a/generated/stackstate_api/docs/ViewList.md b/generated/stackstate_api/docs/ViewList.md new file mode 100644 index 00000000..a43fe687 --- /dev/null +++ b/generated/stackstate_api/docs/ViewList.md @@ -0,0 +1,51 @@ +# ViewList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Views** | [**[]View**](View.md) | | + +## Methods + +### NewViewList + +`func NewViewList(views []View, ) *ViewList` + +NewViewList instantiates a new ViewList 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 + +### NewViewListWithDefaults + +`func NewViewListWithDefaults() *ViewList` + +NewViewListWithDefaults instantiates a new ViewList 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 + +### GetViews + +`func (o *ViewList) GetViews() []View` + +GetViews returns the Views field if non-nil, zero value otherwise. + +### GetViewsOk + +`func (o *ViewList) GetViewsOk() (*[]View, bool)` + +GetViewsOk returns a tuple with the Views field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViews + +`func (o *ViewList) SetViews(v []View)` + +SetViews sets Views 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/ViewNotFoundError.md b/generated/stackstate_api/docs/ViewNotFoundError.md new file mode 100644 index 00000000..d4d54739 --- /dev/null +++ b/generated/stackstate_api/docs/ViewNotFoundError.md @@ -0,0 +1,72 @@ +# ViewNotFoundError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | A detailed error message describing why the operation failed. | +**ViewIdOrIdentifier** | **string** | | + +## Methods + +### NewViewNotFoundError + +`func NewViewNotFoundError(message string, viewIdOrIdentifier string, ) *ViewNotFoundError` + +NewViewNotFoundError instantiates a new ViewNotFoundError 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 + +### NewViewNotFoundErrorWithDefaults + +`func NewViewNotFoundErrorWithDefaults() *ViewNotFoundError` + +NewViewNotFoundErrorWithDefaults instantiates a new ViewNotFoundError 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 + +### GetMessage + +`func (o *ViewNotFoundError) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ViewNotFoundError) 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 *ViewNotFoundError) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetViewIdOrIdentifier + +`func (o *ViewNotFoundError) GetViewIdOrIdentifier() string` + +GetViewIdOrIdentifier returns the ViewIdOrIdentifier field if non-nil, zero value otherwise. + +### GetViewIdOrIdentifierOk + +`func (o *ViewNotFoundError) GetViewIdOrIdentifierOk() (*string, bool)` + +GetViewIdOrIdentifierOk returns a tuple with the ViewIdOrIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViewIdOrIdentifier + +`func (o *ViewNotFoundError) SetViewIdOrIdentifier(v string)` + +SetViewIdOrIdentifier sets ViewIdOrIdentifier 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_bound_metric.go b/generated/stackstate_api/model_bound_metric.go index 476f0aa8..aef25e1f 100644 --- a/generated/stackstate_api/model_bound_metric.go +++ b/generated/stackstate_api/model_bound_metric.go @@ -17,29 +17,25 @@ import ( // BoundMetric struct for BoundMetric type BoundMetric struct { - Name string `json:"name" yaml:"name"` - Identifier *string `json:"identifier,omitempty" yaml:"identifier,omitempty"` - BoundQueries []BoundMetricQuery `json:"boundQueries" yaml:"boundQueries"` - Description *string `json:"description,omitempty" yaml:"description,omitempty"` - Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` - ChartType ChartType `json:"chartType" yaml:"chartType"` - Alias *string `json:"alias,omitempty" yaml:"alias,omitempty"` - Valuation *MetricValuation `json:"valuation,omitempty" yaml:"valuation,omitempty"` - Tags map[string]string `json:"tags" yaml:"tags"` - Layout *MetricBindingLayout `json:"layout,omitempty" yaml:"layout,omitempty"` - Dummy *bool `json:"dummy,omitempty" yaml:"dummy,omitempty"` + BoundMetricId *BoundMetricId `json:"boundMetricId,omitempty" yaml:"boundMetricId,omitempty"` + Name string `json:"name" yaml:"name"` + BoundQueries []BoundMetricQuery `json:"boundQueries" yaml:"boundQueries"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` + ChartType ChartType `json:"chartType" yaml:"chartType"` + Alias *string `json:"alias,omitempty" yaml:"alias,omitempty"` + Dummy *bool `json:"dummy,omitempty" yaml:"dummy,omitempty"` } // NewBoundMetric instantiates a new BoundMetric 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 NewBoundMetric(name string, boundQueries []BoundMetricQuery, chartType ChartType, tags map[string]string) *BoundMetric { +func NewBoundMetric(name string, boundQueries []BoundMetricQuery, chartType ChartType) *BoundMetric { this := BoundMetric{} this.Name = name this.BoundQueries = boundQueries this.ChartType = chartType - this.Tags = tags return &this } @@ -51,6 +47,38 @@ func NewBoundMetricWithDefaults() *BoundMetric { return &this } +// GetBoundMetricId returns the BoundMetricId field value if set, zero value otherwise. +func (o *BoundMetric) GetBoundMetricId() BoundMetricId { + if o == nil || o.BoundMetricId == nil { + var ret BoundMetricId + return ret + } + return *o.BoundMetricId +} + +// GetBoundMetricIdOk returns a tuple with the BoundMetricId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BoundMetric) GetBoundMetricIdOk() (*BoundMetricId, bool) { + if o == nil || o.BoundMetricId == nil { + return nil, false + } + return o.BoundMetricId, true +} + +// HasBoundMetricId returns a boolean if a field has been set. +func (o *BoundMetric) HasBoundMetricId() bool { + if o != nil && o.BoundMetricId != nil { + return true + } + + return false +} + +// SetBoundMetricId gets a reference to the given BoundMetricId and assigns it to the BoundMetricId field. +func (o *BoundMetric) SetBoundMetricId(v BoundMetricId) { + o.BoundMetricId = &v +} + // GetName returns the Name field value func (o *BoundMetric) GetName() string { if o == nil { @@ -75,38 +103,6 @@ func (o *BoundMetric) SetName(v string) { o.Name = v } -// GetIdentifier returns the Identifier field value if set, zero value otherwise. -func (o *BoundMetric) GetIdentifier() string { - if o == nil || o.Identifier == nil { - var ret string - return ret - } - return *o.Identifier -} - -// GetIdentifierOk returns a tuple with the Identifier field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BoundMetric) GetIdentifierOk() (*string, bool) { - if o == nil || o.Identifier == nil { - return nil, false - } - return o.Identifier, true -} - -// HasIdentifier returns a boolean if a field has been set. -func (o *BoundMetric) HasIdentifier() bool { - if o != nil && o.Identifier != nil { - return true - } - - return false -} - -// SetIdentifier gets a reference to the given string and assigns it to the Identifier field. -func (o *BoundMetric) SetIdentifier(v string) { - o.Identifier = &v -} - // GetBoundQueries returns the BoundQueries field value func (o *BoundMetric) GetBoundQueries() []BoundMetricQuery { if o == nil { @@ -251,94 +247,6 @@ func (o *BoundMetric) SetAlias(v string) { o.Alias = &v } -// GetValuation returns the Valuation field value if set, zero value otherwise. -func (o *BoundMetric) GetValuation() MetricValuation { - if o == nil || o.Valuation == nil { - var ret MetricValuation - return ret - } - return *o.Valuation -} - -// GetValuationOk returns a tuple with the Valuation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BoundMetric) GetValuationOk() (*MetricValuation, bool) { - if o == nil || o.Valuation == nil { - return nil, false - } - return o.Valuation, true -} - -// HasValuation returns a boolean if a field has been set. -func (o *BoundMetric) HasValuation() bool { - if o != nil && o.Valuation != nil { - return true - } - - return false -} - -// SetValuation gets a reference to the given MetricValuation and assigns it to the Valuation field. -func (o *BoundMetric) SetValuation(v MetricValuation) { - o.Valuation = &v -} - -// GetTags returns the Tags field value -func (o *BoundMetric) GetTags() map[string]string { - if o == nil { - var ret map[string]string - return ret - } - - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value -// and a boolean to check if the value has been set. -func (o *BoundMetric) GetTagsOk() (*map[string]string, bool) { - if o == nil { - return nil, false - } - return &o.Tags, true -} - -// SetTags sets field value -func (o *BoundMetric) SetTags(v map[string]string) { - o.Tags = v -} - -// GetLayout returns the Layout field value if set, zero value otherwise. -func (o *BoundMetric) GetLayout() MetricBindingLayout { - if o == nil || o.Layout == nil { - var ret MetricBindingLayout - return ret - } - return *o.Layout -} - -// GetLayoutOk returns a tuple with the Layout field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *BoundMetric) GetLayoutOk() (*MetricBindingLayout, bool) { - if o == nil || o.Layout == nil { - return nil, false - } - return o.Layout, true -} - -// HasLayout returns a boolean if a field has been set. -func (o *BoundMetric) HasLayout() bool { - if o != nil && o.Layout != nil { - return true - } - - return false -} - -// SetLayout gets a reference to the given MetricBindingLayout and assigns it to the Layout field. -func (o *BoundMetric) SetLayout(v MetricBindingLayout) { - o.Layout = &v -} - // GetDummy returns the Dummy field value if set, zero value otherwise. func (o *BoundMetric) GetDummy() bool { if o == nil || o.Dummy == nil { @@ -373,12 +281,12 @@ func (o *BoundMetric) SetDummy(v bool) { func (o BoundMetric) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.BoundMetricId != nil { + toSerialize["boundMetricId"] = o.BoundMetricId + } if true { toSerialize["name"] = o.Name } - if o.Identifier != nil { - toSerialize["identifier"] = o.Identifier - } if true { toSerialize["boundQueries"] = o.BoundQueries } @@ -394,15 +302,6 @@ func (o BoundMetric) MarshalJSON() ([]byte, error) { if o.Alias != nil { toSerialize["alias"] = o.Alias } - if o.Valuation != nil { - toSerialize["valuation"] = o.Valuation - } - if true { - toSerialize["tags"] = o.Tags - } - if o.Layout != nil { - toSerialize["layout"] = o.Layout - } if o.Dummy != nil { toSerialize["dummy"] = o.Dummy } diff --git a/generated/stackstate_api/model_metric_binding_id.go b/generated/stackstate_api/model_bound_metric_binding_id.go similarity index 51% rename from generated/stackstate_api/model_metric_binding_id.go rename to generated/stackstate_api/model_bound_metric_binding_id.go index 7b974714..7176774c 100644 --- a/generated/stackstate_api/model_metric_binding_id.go +++ b/generated/stackstate_api/model_bound_metric_binding_id.go @@ -15,31 +15,57 @@ import ( "encoding/json" ) -// MetricBindingId struct for MetricBindingId -type MetricBindingId struct { +// BoundMetricBindingId struct for BoundMetricBindingId +type BoundMetricBindingId struct { + Type string `json:"_type" yaml:"_type"` Identifier string `json:"identifier" yaml:"identifier"` } -// NewMetricBindingId instantiates a new MetricBindingId object +// NewBoundMetricBindingId instantiates a new BoundMetricBindingId 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 NewMetricBindingId(identifier string) *MetricBindingId { - this := MetricBindingId{} +func NewBoundMetricBindingId(type_ string, identifier string) *BoundMetricBindingId { + this := BoundMetricBindingId{} + this.Type = type_ this.Identifier = identifier return &this } -// NewMetricBindingIdWithDefaults instantiates a new MetricBindingId object +// NewBoundMetricBindingIdWithDefaults instantiates a new BoundMetricBindingId 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 NewMetricBindingIdWithDefaults() *MetricBindingId { - this := MetricBindingId{} +func NewBoundMetricBindingIdWithDefaults() *BoundMetricBindingId { + this := BoundMetricBindingId{} return &this } +// GetType returns the Type field value +func (o *BoundMetricBindingId) 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 *BoundMetricBindingId) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *BoundMetricBindingId) SetType(v string) { + o.Type = v +} + // GetIdentifier returns the Identifier field value -func (o *MetricBindingId) GetIdentifier() string { +func (o *BoundMetricBindingId) GetIdentifier() string { if o == nil { var ret string return ret @@ -50,7 +76,7 @@ func (o *MetricBindingId) GetIdentifier() string { // GetIdentifierOk returns a tuple with the Identifier field value // and a boolean to check if the value has been set. -func (o *MetricBindingId) GetIdentifierOk() (*string, bool) { +func (o *BoundMetricBindingId) GetIdentifierOk() (*string, bool) { if o == nil { return nil, false } @@ -58,50 +84,53 @@ func (o *MetricBindingId) GetIdentifierOk() (*string, bool) { } // SetIdentifier sets field value -func (o *MetricBindingId) SetIdentifier(v string) { +func (o *BoundMetricBindingId) SetIdentifier(v string) { o.Identifier = v } -func (o MetricBindingId) MarshalJSON() ([]byte, error) { +func (o BoundMetricBindingId) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } if true { toSerialize["identifier"] = o.Identifier } return json.Marshal(toSerialize) } -type NullableMetricBindingId struct { - value *MetricBindingId +type NullableBoundMetricBindingId struct { + value *BoundMetricBindingId isSet bool } -func (v NullableMetricBindingId) Get() *MetricBindingId { +func (v NullableBoundMetricBindingId) Get() *BoundMetricBindingId { return v.value } -func (v *NullableMetricBindingId) Set(val *MetricBindingId) { +func (v *NullableBoundMetricBindingId) Set(val *BoundMetricBindingId) { v.value = val v.isSet = true } -func (v NullableMetricBindingId) IsSet() bool { +func (v NullableBoundMetricBindingId) IsSet() bool { return v.isSet } -func (v *NullableMetricBindingId) Unset() { +func (v *NullableBoundMetricBindingId) Unset() { v.value = nil v.isSet = false } -func NewNullableMetricBindingId(val *MetricBindingId) *NullableMetricBindingId { - return &NullableMetricBindingId{value: val, isSet: true} +func NewNullableBoundMetricBindingId(val *BoundMetricBindingId) *NullableBoundMetricBindingId { + return &NullableBoundMetricBindingId{value: val, isSet: true} } -func (v NullableMetricBindingId) MarshalJSON() ([]byte, error) { +func (v NullableBoundMetricBindingId) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableMetricBindingId) UnmarshalJSON(src []byte) error { +func (v *NullableBoundMetricBindingId) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_bound_metric_id.go b/generated/stackstate_api/model_bound_metric_id.go new file mode 100644 index 00000000..0f96071f --- /dev/null +++ b/generated/stackstate_api/model_bound_metric_id.go @@ -0,0 +1,140 @@ +/* +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" +) + +// BoundMetricId - struct for BoundMetricId +type BoundMetricId struct { + BoundMetricBindingId *BoundMetricBindingId + BoundPresentationMetricId *BoundPresentationMetricId +} + +// BoundMetricBindingIdAsBoundMetricId is a convenience function that returns BoundMetricBindingId wrapped in BoundMetricId +func BoundMetricBindingIdAsBoundMetricId(v *BoundMetricBindingId) BoundMetricId { + return BoundMetricId{ + BoundMetricBindingId: v, + } +} + +// BoundPresentationMetricIdAsBoundMetricId is a convenience function that returns BoundPresentationMetricId wrapped in BoundMetricId +func BoundPresentationMetricIdAsBoundMetricId(v *BoundPresentationMetricId) BoundMetricId { + return BoundMetricId{ + BoundPresentationMetricId: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *BoundMetricId) 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 'BoundMetricBindingId' + if jsonDict["_type"] == "BoundMetricBindingId" { + // try to unmarshal JSON data into BoundMetricBindingId + err = json.Unmarshal(data, &dst.BoundMetricBindingId) + if err == nil { + return nil // data stored in dst.BoundMetricBindingId, return on the first match + } else { + dst.BoundMetricBindingId = nil + return fmt.Errorf("Failed to unmarshal BoundMetricId as BoundMetricBindingId: %s", err.Error()) + } + } + + // check if the discriminator value is 'BoundPresentationMetricId' + if jsonDict["_type"] == "BoundPresentationMetricId" { + // try to unmarshal JSON data into BoundPresentationMetricId + err = json.Unmarshal(data, &dst.BoundPresentationMetricId) + if err == nil { + return nil // data stored in dst.BoundPresentationMetricId, return on the first match + } else { + dst.BoundPresentationMetricId = nil + return fmt.Errorf("Failed to unmarshal BoundMetricId as BoundPresentationMetricId: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src BoundMetricId) MarshalJSON() ([]byte, error) { + if src.BoundMetricBindingId != nil { + return json.Marshal(&src.BoundMetricBindingId) + } + + if src.BoundPresentationMetricId != nil { + return json.Marshal(&src.BoundPresentationMetricId) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *BoundMetricId) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.BoundMetricBindingId != nil { + return obj.BoundMetricBindingId + } + + if obj.BoundPresentationMetricId != nil { + return obj.BoundPresentationMetricId + } + + // all schemas are nil + return nil +} + +type NullableBoundMetricId struct { + value *BoundMetricId + isSet bool +} + +func (v NullableBoundMetricId) Get() *BoundMetricId { + return v.value +} + +func (v *NullableBoundMetricId) Set(val *BoundMetricId) { + v.value = val + v.isSet = true +} + +func (v NullableBoundMetricId) IsSet() bool { + return v.isSet +} + +func (v *NullableBoundMetricId) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBoundMetricId(val *BoundMetricId) *NullableBoundMetricId { + return &NullableBoundMetricId{value: val, isSet: true} +} + +func (v NullableBoundMetricId) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBoundMetricId) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_bound_presentation_metric_id.go b/generated/stackstate_api/model_bound_presentation_metric_id.go new file mode 100644 index 00000000..cce3727b --- /dev/null +++ b/generated/stackstate_api/model_bound_presentation_metric_id.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" +) + +// BoundPresentationMetricId struct for BoundPresentationMetricId +type BoundPresentationMetricId struct { + Type string `json:"_type" yaml:"_type"` + PresentationIdentifier *string `json:"presentationIdentifier,omitempty" yaml:"presentationIdentifier,omitempty"` + MetricId string `json:"metricId" yaml:"metricId"` +} + +// NewBoundPresentationMetricId instantiates a new BoundPresentationMetricId 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 NewBoundPresentationMetricId(type_ string, metricId string) *BoundPresentationMetricId { + this := BoundPresentationMetricId{} + this.Type = type_ + this.MetricId = metricId + return &this +} + +// NewBoundPresentationMetricIdWithDefaults instantiates a new BoundPresentationMetricId 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 NewBoundPresentationMetricIdWithDefaults() *BoundPresentationMetricId { + this := BoundPresentationMetricId{} + return &this +} + +// GetType returns the Type field value +func (o *BoundPresentationMetricId) 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 *BoundPresentationMetricId) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *BoundPresentationMetricId) SetType(v string) { + o.Type = v +} + +// GetPresentationIdentifier returns the PresentationIdentifier field value if set, zero value otherwise. +func (o *BoundPresentationMetricId) GetPresentationIdentifier() string { + if o == nil || o.PresentationIdentifier == nil { + var ret string + return ret + } + return *o.PresentationIdentifier +} + +// GetPresentationIdentifierOk returns a tuple with the PresentationIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BoundPresentationMetricId) GetPresentationIdentifierOk() (*string, bool) { + if o == nil || o.PresentationIdentifier == nil { + return nil, false + } + return o.PresentationIdentifier, true +} + +// HasPresentationIdentifier returns a boolean if a field has been set. +func (o *BoundPresentationMetricId) HasPresentationIdentifier() bool { + if o != nil && o.PresentationIdentifier != nil { + return true + } + + return false +} + +// SetPresentationIdentifier gets a reference to the given string and assigns it to the PresentationIdentifier field. +func (o *BoundPresentationMetricId) SetPresentationIdentifier(v string) { + o.PresentationIdentifier = &v +} + +// GetMetricId returns the MetricId field value +func (o *BoundPresentationMetricId) GetMetricId() string { + if o == nil { + var ret string + return ret + } + + return o.MetricId +} + +// GetMetricIdOk returns a tuple with the MetricId field value +// and a boolean to check if the value has been set. +func (o *BoundPresentationMetricId) GetMetricIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricId, true +} + +// SetMetricId sets field value +func (o *BoundPresentationMetricId) SetMetricId(v string) { + o.MetricId = v +} + +func (o BoundPresentationMetricId) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if o.PresentationIdentifier != nil { + toSerialize["presentationIdentifier"] = o.PresentationIdentifier + } + if true { + toSerialize["metricId"] = o.MetricId + } + return json.Marshal(toSerialize) +} + +type NullableBoundPresentationMetricId struct { + value *BoundPresentationMetricId + isSet bool +} + +func (v NullableBoundPresentationMetricId) Get() *BoundPresentationMetricId { + return v.value +} + +func (v *NullableBoundPresentationMetricId) Set(val *BoundPresentationMetricId) { + v.value = val + v.isSet = true +} + +func (v NullableBoundPresentationMetricId) IsSet() bool { + return v.isSet +} + +func (v *NullableBoundPresentationMetricId) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBoundPresentationMetricId(val *BoundPresentationMetricId) *NullableBoundPresentationMetricId { + return &NullableBoundPresentationMetricId{value: val, isSet: true} +} + +func (v NullableBoundPresentationMetricId) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBoundPresentationMetricId) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_chart_type.go b/generated/stackstate_api/model_chart_type.go index 6760c581..f3564aa1 100644 --- a/generated/stackstate_api/model_chart_type.go +++ b/generated/stackstate_api/model_chart_type.go @@ -21,12 +21,16 @@ type ChartType string // List of ChartType const ( - CHARTTYPE_LINE ChartType = "line" + CHARTTYPE_LINE ChartType = "line" + CHARTTYPE_GAUGE ChartType = "gauge" + CHARTTYPE_STAT ChartType = "stat" ) // All allowed values of ChartType enum var AllowedChartTypeEnumValues = []ChartType{ "line", + "gauge", + "stat", } func (v *ChartType) UnmarshalJSON(src []byte) error { diff --git a/generated/stackstate_api/model_component_highlight_location.go b/generated/stackstate_api/model_component_highlight_location.go deleted file mode 100644 index f0b2c3d2..00000000 --- a/generated/stackstate_api/model_component_highlight_location.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" -) - -// ComponentHighlightLocation struct for ComponentHighlightLocation -type ComponentHighlightLocation struct { - Section string `json:"section" yaml:"section"` - Weight *int32 `json:"weight,omitempty" yaml:"weight,omitempty"` -} - -// NewComponentHighlightLocation instantiates a new ComponentHighlightLocation 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 NewComponentHighlightLocation(section string) *ComponentHighlightLocation { - this := ComponentHighlightLocation{} - this.Section = section - return &this -} - -// NewComponentHighlightLocationWithDefaults instantiates a new ComponentHighlightLocation 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 NewComponentHighlightLocationWithDefaults() *ComponentHighlightLocation { - this := ComponentHighlightLocation{} - return &this -} - -// GetSection returns the Section field value -func (o *ComponentHighlightLocation) GetSection() string { - if o == nil { - var ret string - return ret - } - - return o.Section -} - -// GetSectionOk returns a tuple with the Section field value -// and a boolean to check if the value has been set. -func (o *ComponentHighlightLocation) GetSectionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Section, true -} - -// SetSection sets field value -func (o *ComponentHighlightLocation) SetSection(v string) { - o.Section = v -} - -// GetWeight returns the Weight field value if set, zero value otherwise. -func (o *ComponentHighlightLocation) GetWeight() int32 { - if o == nil || o.Weight == nil { - var ret int32 - return ret - } - return *o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComponentHighlightLocation) GetWeightOk() (*int32, bool) { - if o == nil || o.Weight == nil { - return nil, false - } - return o.Weight, true -} - -// HasWeight returns a boolean if a field has been set. -func (o *ComponentHighlightLocation) HasWeight() bool { - if o != nil && o.Weight != nil { - return true - } - - return false -} - -// SetWeight gets a reference to the given int32 and assigns it to the Weight field. -func (o *ComponentHighlightLocation) SetWeight(v int32) { - o.Weight = &v -} - -func (o ComponentHighlightLocation) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["section"] = o.Section - } - if o.Weight != nil { - toSerialize["weight"] = o.Weight - } - return json.Marshal(toSerialize) -} - -type NullableComponentHighlightLocation struct { - value *ComponentHighlightLocation - isSet bool -} - -func (v NullableComponentHighlightLocation) Get() *ComponentHighlightLocation { - return v.value -} - -func (v *NullableComponentHighlightLocation) Set(val *ComponentHighlightLocation) { - v.value = val - v.isSet = true -} - -func (v NullableComponentHighlightLocation) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentHighlightLocation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentHighlightLocation(val *ComponentHighlightLocation) *NullableComponentHighlightLocation { - return &NullableComponentHighlightLocation{value: val, isSet: true} -} - -func (v NullableComponentHighlightLocation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentHighlightLocation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_highlight_metric_section.go b/generated/stackstate_api/model_component_highlight_metric_section.go deleted file mode 100644 index 06bd6980..00000000 --- a/generated/stackstate_api/model_component_highlight_metric_section.go +++ /dev/null @@ -1,165 +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" -) - -// ComponentHighlightMetricSection struct for ComponentHighlightMetricSection -type ComponentHighlightMetricSection struct { - Name string `json:"name" yaml:"name"` - Weight float32 `json:"weight" yaml:"weight"` - Type string `json:"_type" yaml:"_type"` -} - -// NewComponentHighlightMetricSection instantiates a new ComponentHighlightMetricSection 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 NewComponentHighlightMetricSection(name string, weight float32, type_ string) *ComponentHighlightMetricSection { - this := ComponentHighlightMetricSection{} - this.Name = name - this.Weight = weight - this.Type = type_ - return &this -} - -// NewComponentHighlightMetricSectionWithDefaults instantiates a new ComponentHighlightMetricSection 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 NewComponentHighlightMetricSectionWithDefaults() *ComponentHighlightMetricSection { - this := ComponentHighlightMetricSection{} - return &this -} - -// GetName returns the Name field value -func (o *ComponentHighlightMetricSection) 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 *ComponentHighlightMetricSection) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ComponentHighlightMetricSection) SetName(v string) { - o.Name = v -} - -// GetWeight returns the Weight field value -func (o *ComponentHighlightMetricSection) GetWeight() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value -// and a boolean to check if the value has been set. -func (o *ComponentHighlightMetricSection) GetWeightOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.Weight, true -} - -// SetWeight sets field value -func (o *ComponentHighlightMetricSection) SetWeight(v float32) { - o.Weight = v -} - -// GetType returns the Type field value -func (o *ComponentHighlightMetricSection) 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 *ComponentHighlightMetricSection) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ComponentHighlightMetricSection) SetType(v string) { - o.Type = v -} - -func (o ComponentHighlightMetricSection) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["name"] = o.Name - } - if true { - toSerialize["weight"] = o.Weight - } - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableComponentHighlightMetricSection struct { - value *ComponentHighlightMetricSection - isSet bool -} - -func (v NullableComponentHighlightMetricSection) Get() *ComponentHighlightMetricSection { - return v.value -} - -func (v *NullableComponentHighlightMetricSection) Set(val *ComponentHighlightMetricSection) { - v.value = val - v.isSet = true -} - -func (v NullableComponentHighlightMetricSection) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentHighlightMetricSection) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentHighlightMetricSection(val *ComponentHighlightMetricSection) *NullableComponentHighlightMetricSection { - return &NullableComponentHighlightMetricSection{value: val, isSet: true} -} - -func (v NullableComponentHighlightMetricSection) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentHighlightMetricSection) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_highlight_metric_section_all_of.go b/generated/stackstate_api/model_component_highlight_metric_section_all_of.go deleted file mode 100644 index dadc5fae..00000000 --- a/generated/stackstate_api/model_component_highlight_metric_section_all_of.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" -) - -// ComponentHighlightMetricSectionAllOf struct for ComponentHighlightMetricSectionAllOf -type ComponentHighlightMetricSectionAllOf struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewComponentHighlightMetricSectionAllOf instantiates a new ComponentHighlightMetricSectionAllOf 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 NewComponentHighlightMetricSectionAllOf(type_ string) *ComponentHighlightMetricSectionAllOf { - this := ComponentHighlightMetricSectionAllOf{} - this.Type = type_ - return &this -} - -// NewComponentHighlightMetricSectionAllOfWithDefaults instantiates a new ComponentHighlightMetricSectionAllOf 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 NewComponentHighlightMetricSectionAllOfWithDefaults() *ComponentHighlightMetricSectionAllOf { - this := ComponentHighlightMetricSectionAllOf{} - return &this -} - -// GetType returns the Type field value -func (o *ComponentHighlightMetricSectionAllOf) 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 *ComponentHighlightMetricSectionAllOf) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ComponentHighlightMetricSectionAllOf) SetType(v string) { - o.Type = v -} - -func (o ComponentHighlightMetricSectionAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableComponentHighlightMetricSectionAllOf struct { - value *ComponentHighlightMetricSectionAllOf - isSet bool -} - -func (v NullableComponentHighlightMetricSectionAllOf) Get() *ComponentHighlightMetricSectionAllOf { - return v.value -} - -func (v *NullableComponentHighlightMetricSectionAllOf) Set(val *ComponentHighlightMetricSectionAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableComponentHighlightMetricSectionAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentHighlightMetricSectionAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentHighlightMetricSectionAllOf(val *ComponentHighlightMetricSectionAllOf) *NullableComponentHighlightMetricSectionAllOf { - return &NullableComponentHighlightMetricSectionAllOf{value: val, isSet: true} -} - -func (v NullableComponentHighlightMetricSectionAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentHighlightMetricSectionAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_highlight_metrics.go b/generated/stackstate_api/model_component_highlight_metrics.go deleted file mode 100644 index 23ebea54..00000000 --- a/generated/stackstate_api/model_component_highlight_metrics.go +++ /dev/null @@ -1,201 +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" -) - -// ComponentHighlightMetrics struct for ComponentHighlightMetrics -type ComponentHighlightMetrics struct { - Name string `json:"name" yaml:"name"` - Description *string `json:"description,omitempty" yaml:"description,omitempty"` - Bindings []string `json:"bindings" yaml:"bindings"` - DefaultExpanded bool `json:"defaultExpanded" yaml:"defaultExpanded"` -} - -// NewComponentHighlightMetrics instantiates a new ComponentHighlightMetrics 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 NewComponentHighlightMetrics(name string, bindings []string, defaultExpanded bool) *ComponentHighlightMetrics { - this := ComponentHighlightMetrics{} - this.Name = name - this.Bindings = bindings - this.DefaultExpanded = defaultExpanded - return &this -} - -// NewComponentHighlightMetricsWithDefaults instantiates a new ComponentHighlightMetrics 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 NewComponentHighlightMetricsWithDefaults() *ComponentHighlightMetrics { - this := ComponentHighlightMetrics{} - return &this -} - -// GetName returns the Name field value -func (o *ComponentHighlightMetrics) 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 *ComponentHighlightMetrics) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *ComponentHighlightMetrics) SetName(v string) { - o.Name = v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ComponentHighlightMetrics) 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 *ComponentHighlightMetrics) 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 *ComponentHighlightMetrics) 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 *ComponentHighlightMetrics) SetDescription(v string) { - o.Description = &v -} - -// GetBindings returns the Bindings field value -func (o *ComponentHighlightMetrics) GetBindings() []string { - if o == nil { - var ret []string - return ret - } - - return o.Bindings -} - -// GetBindingsOk returns a tuple with the Bindings field value -// and a boolean to check if the value has been set. -func (o *ComponentHighlightMetrics) GetBindingsOk() ([]string, bool) { - if o == nil { - return nil, false - } - return o.Bindings, true -} - -// SetBindings sets field value -func (o *ComponentHighlightMetrics) SetBindings(v []string) { - o.Bindings = v -} - -// GetDefaultExpanded returns the DefaultExpanded field value -func (o *ComponentHighlightMetrics) GetDefaultExpanded() bool { - if o == nil { - var ret bool - return ret - } - - return o.DefaultExpanded -} - -// GetDefaultExpandedOk returns a tuple with the DefaultExpanded field value -// and a boolean to check if the value has been set. -func (o *ComponentHighlightMetrics) GetDefaultExpandedOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.DefaultExpanded, true -} - -// SetDefaultExpanded sets field value -func (o *ComponentHighlightMetrics) SetDefaultExpanded(v bool) { - o.DefaultExpanded = v -} - -func (o ComponentHighlightMetrics) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["name"] = o.Name - } - if o.Description != nil { - toSerialize["description"] = o.Description - } - if true { - toSerialize["bindings"] = o.Bindings - } - if true { - toSerialize["defaultExpanded"] = o.DefaultExpanded - } - return json.Marshal(toSerialize) -} - -type NullableComponentHighlightMetrics struct { - value *ComponentHighlightMetrics - isSet bool -} - -func (v NullableComponentHighlightMetrics) Get() *ComponentHighlightMetrics { - return v.value -} - -func (v *NullableComponentHighlightMetrics) Set(val *ComponentHighlightMetrics) { - v.value = val - v.isSet = true -} - -func (v NullableComponentHighlightMetrics) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentHighlightMetrics) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentHighlightMetrics(val *ComponentHighlightMetrics) *NullableComponentHighlightMetrics { - return &NullableComponentHighlightMetrics{value: val, isSet: true} -} - -func (v NullableComponentHighlightMetrics) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentHighlightMetrics) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_component_metric_section.go b/generated/stackstate_api/model_component_metric_section.go new file mode 100644 index 00000000..3e5ee35c --- /dev/null +++ b/generated/stackstate_api/model_component_metric_section.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" +) + +// ComponentMetricSection struct for ComponentMetricSection +type ComponentMetricSection struct { + SectionId string `json:"sectionId" yaml:"sectionId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Metrics []BoundMetric `json:"metrics" yaml:"metrics"` + DefaultExpanded bool `json:"defaultExpanded" yaml:"defaultExpanded"` +} + +// NewComponentMetricSection instantiates a new ComponentMetricSection 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 NewComponentMetricSection(sectionId string, title string, metrics []BoundMetric, defaultExpanded bool) *ComponentMetricSection { + this := ComponentMetricSection{} + this.SectionId = sectionId + this.Title = title + this.Metrics = metrics + this.DefaultExpanded = defaultExpanded + return &this +} + +// NewComponentMetricSectionWithDefaults instantiates a new ComponentMetricSection 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 NewComponentMetricSectionWithDefaults() *ComponentMetricSection { + this := ComponentMetricSection{} + return &this +} + +// GetSectionId returns the SectionId field value +func (o *ComponentMetricSection) GetSectionId() string { + if o == nil { + var ret string + return ret + } + + return o.SectionId +} + +// GetSectionIdOk returns a tuple with the SectionId field value +// and a boolean to check if the value has been set. +func (o *ComponentMetricSection) GetSectionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SectionId, true +} + +// SetSectionId sets field value +func (o *ComponentMetricSection) SetSectionId(v string) { + o.SectionId = v +} + +// GetTitle returns the Title field value +func (o *ComponentMetricSection) 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 *ComponentMetricSection) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ComponentMetricSection) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ComponentMetricSection) 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 *ComponentMetricSection) 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 *ComponentMetricSection) 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 *ComponentMetricSection) SetDescription(v string) { + o.Description = &v +} + +// GetMetrics returns the Metrics field value +func (o *ComponentMetricSection) GetMetrics() []BoundMetric { + if o == nil { + var ret []BoundMetric + return ret + } + + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value +// and a boolean to check if the value has been set. +func (o *ComponentMetricSection) GetMetricsOk() ([]BoundMetric, bool) { + if o == nil { + return nil, false + } + return o.Metrics, true +} + +// SetMetrics sets field value +func (o *ComponentMetricSection) SetMetrics(v []BoundMetric) { + o.Metrics = v +} + +// GetDefaultExpanded returns the DefaultExpanded field value +func (o *ComponentMetricSection) GetDefaultExpanded() bool { + if o == nil { + var ret bool + return ret + } + + return o.DefaultExpanded +} + +// GetDefaultExpandedOk returns a tuple with the DefaultExpanded field value +// and a boolean to check if the value has been set. +func (o *ComponentMetricSection) GetDefaultExpandedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.DefaultExpanded, true +} + +// SetDefaultExpanded sets field value +func (o *ComponentMetricSection) SetDefaultExpanded(v bool) { + o.DefaultExpanded = v +} + +func (o ComponentMetricSection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["sectionId"] = o.SectionId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["metrics"] = o.Metrics + } + if true { + toSerialize["defaultExpanded"] = o.DefaultExpanded + } + return json.Marshal(toSerialize) +} + +type NullableComponentMetricSection struct { + value *ComponentMetricSection + isSet bool +} + +func (v NullableComponentMetricSection) Get() *ComponentMetricSection { + return v.value +} + +func (v *NullableComponentMetricSection) Set(val *ComponentMetricSection) { + v.value = val + v.isSet = true +} + +func (v NullableComponentMetricSection) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentMetricSection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentMetricSection(val *ComponentMetricSection) *NullableComponentMetricSection { + return &NullableComponentMetricSection{value: val, isSet: true} +} + +func (v NullableComponentMetricSection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentMetricSection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_metric_tab.go b/generated/stackstate_api/model_component_metric_tab.go new file mode 100644 index 00000000..0e488eb8 --- /dev/null +++ b/generated/stackstate_api/model_component_metric_tab.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" +) + +// ComponentMetricTab struct for ComponentMetricTab +type ComponentMetricTab struct { + TabId string `json:"tabId" yaml:"tabId"` + Title string `json:"title" yaml:"title"` + Sections []ComponentMetricSection `json:"sections" yaml:"sections"` +} + +// NewComponentMetricTab instantiates a new ComponentMetricTab 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 NewComponentMetricTab(tabId string, title string, sections []ComponentMetricSection) *ComponentMetricTab { + this := ComponentMetricTab{} + this.TabId = tabId + this.Title = title + this.Sections = sections + return &this +} + +// NewComponentMetricTabWithDefaults instantiates a new ComponentMetricTab 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 NewComponentMetricTabWithDefaults() *ComponentMetricTab { + this := ComponentMetricTab{} + return &this +} + +// GetTabId returns the TabId field value +func (o *ComponentMetricTab) GetTabId() string { + if o == nil { + var ret string + return ret + } + + return o.TabId +} + +// GetTabIdOk returns a tuple with the TabId field value +// and a boolean to check if the value has been set. +func (o *ComponentMetricTab) GetTabIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TabId, true +} + +// SetTabId sets field value +func (o *ComponentMetricTab) SetTabId(v string) { + o.TabId = v +} + +// GetTitle returns the Title field value +func (o *ComponentMetricTab) 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 *ComponentMetricTab) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *ComponentMetricTab) SetTitle(v string) { + o.Title = v +} + +// GetSections returns the Sections field value +func (o *ComponentMetricTab) GetSections() []ComponentMetricSection { + if o == nil { + var ret []ComponentMetricSection + return ret + } + + return o.Sections +} + +// GetSectionsOk returns a tuple with the Sections field value +// and a boolean to check if the value has been set. +func (o *ComponentMetricTab) GetSectionsOk() ([]ComponentMetricSection, bool) { + if o == nil { + return nil, false + } + return o.Sections, true +} + +// SetSections sets field value +func (o *ComponentMetricTab) SetSections(v []ComponentMetricSection) { + o.Sections = v +} + +func (o ComponentMetricTab) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["tabId"] = o.TabId + } + if true { + toSerialize["title"] = o.Title + } + if true { + toSerialize["sections"] = o.Sections + } + return json.Marshal(toSerialize) +} + +type NullableComponentMetricTab struct { + value *ComponentMetricTab + isSet bool +} + +func (v NullableComponentMetricTab) Get() *ComponentMetricTab { + return v.value +} + +func (v *NullableComponentMetricTab) Set(val *ComponentMetricTab) { + v.value = val + v.isSet = true +} + +func (v NullableComponentMetricTab) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentMetricTab) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentMetricTab(val *ComponentMetricTab) *NullableComponentMetricTab { + return &NullableComponentMetricTab{value: val, isSet: true} +} + +func (v NullableComponentMetricTab) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentMetricTab) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_presentation_metric.go b/generated/stackstate_api/model_component_presentation_metric.go new file mode 100644 index 00000000..ae9229b3 --- /dev/null +++ b/generated/stackstate_api/model_component_presentation_metric.go @@ -0,0 +1,323 @@ +/* +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" +) + +// ComponentPresentationMetric struct for ComponentPresentationMetric +type ComponentPresentationMetric struct { + MetricId string `json:"metricId" yaml:"metricId"` + Name *string `json:"name,omitempty" yaml:"name,omitempty"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + MetricQueries []PresentationMetricQuery `json:"metricQueries,omitempty" yaml:"metricQueries,omitempty"` + Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` + ChartType *ChartType `json:"chartType,omitempty" yaml:"chartType,omitempty"` + Alias *string `json:"alias,omitempty" yaml:"alias,omitempty"` +} + +// NewComponentPresentationMetric instantiates a new ComponentPresentationMetric 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 NewComponentPresentationMetric(metricId string) *ComponentPresentationMetric { + this := ComponentPresentationMetric{} + this.MetricId = metricId + return &this +} + +// NewComponentPresentationMetricWithDefaults instantiates a new ComponentPresentationMetric 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 NewComponentPresentationMetricWithDefaults() *ComponentPresentationMetric { + this := ComponentPresentationMetric{} + return &this +} + +// GetMetricId returns the MetricId field value +func (o *ComponentPresentationMetric) GetMetricId() string { + if o == nil { + var ret string + return ret + } + + return o.MetricId +} + +// GetMetricIdOk returns a tuple with the MetricId field value +// and a boolean to check if the value has been set. +func (o *ComponentPresentationMetric) GetMetricIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricId, true +} + +// SetMetricId sets field value +func (o *ComponentPresentationMetric) SetMetricId(v string) { + o.MetricId = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComponentPresentationMetric) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentPresentationMetric) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComponentPresentationMetric) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComponentPresentationMetric) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ComponentPresentationMetric) 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 *ComponentPresentationMetric) 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 *ComponentPresentationMetric) 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 *ComponentPresentationMetric) SetDescription(v string) { + o.Description = &v +} + +// GetMetricQueries returns the MetricQueries field value if set, zero value otherwise. +func (o *ComponentPresentationMetric) GetMetricQueries() []PresentationMetricQuery { + if o == nil || o.MetricQueries == nil { + var ret []PresentationMetricQuery + return ret + } + return o.MetricQueries +} + +// GetMetricQueriesOk returns a tuple with the MetricQueries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentPresentationMetric) GetMetricQueriesOk() ([]PresentationMetricQuery, bool) { + if o == nil || o.MetricQueries == nil { + return nil, false + } + return o.MetricQueries, true +} + +// HasMetricQueries returns a boolean if a field has been set. +func (o *ComponentPresentationMetric) HasMetricQueries() bool { + if o != nil && o.MetricQueries != nil { + return true + } + + return false +} + +// SetMetricQueries gets a reference to the given []PresentationMetricQuery and assigns it to the MetricQueries field. +func (o *ComponentPresentationMetric) SetMetricQueries(v []PresentationMetricQuery) { + o.MetricQueries = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *ComponentPresentationMetric) 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 *ComponentPresentationMetric) 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 *ComponentPresentationMetric) 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 *ComponentPresentationMetric) SetUnit(v string) { + o.Unit = &v +} + +// GetChartType returns the ChartType field value if set, zero value otherwise. +func (o *ComponentPresentationMetric) GetChartType() ChartType { + if o == nil || o.ChartType == nil { + var ret ChartType + return ret + } + return *o.ChartType +} + +// GetChartTypeOk returns a tuple with the ChartType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentPresentationMetric) GetChartTypeOk() (*ChartType, bool) { + if o == nil || o.ChartType == nil { + return nil, false + } + return o.ChartType, true +} + +// HasChartType returns a boolean if a field has been set. +func (o *ComponentPresentationMetric) HasChartType() bool { + if o != nil && o.ChartType != nil { + return true + } + + return false +} + +// SetChartType gets a reference to the given ChartType and assigns it to the ChartType field. +func (o *ComponentPresentationMetric) SetChartType(v ChartType) { + o.ChartType = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *ComponentPresentationMetric) GetAlias() string { + if o == nil || o.Alias == nil { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComponentPresentationMetric) GetAliasOk() (*string, bool) { + if o == nil || o.Alias == nil { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *ComponentPresentationMetric) HasAlias() bool { + if o != nil && o.Alias != nil { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *ComponentPresentationMetric) SetAlias(v string) { + o.Alias = &v +} + +func (o ComponentPresentationMetric) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["metricId"] = o.MetricId + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.MetricQueries != nil { + toSerialize["metricQueries"] = o.MetricQueries + } + if o.Unit != nil { + toSerialize["unit"] = o.Unit + } + if o.ChartType != nil { + toSerialize["chartType"] = o.ChartType + } + if o.Alias != nil { + toSerialize["alias"] = o.Alias + } + return json.Marshal(toSerialize) +} + +type NullableComponentPresentationMetric struct { + value *ComponentPresentationMetric + isSet bool +} + +func (v NullableComponentPresentationMetric) Get() *ComponentPresentationMetric { + return v.value +} + +func (v *NullableComponentPresentationMetric) Set(val *ComponentPresentationMetric) { + v.value = val + v.isSet = true +} + +func (v NullableComponentPresentationMetric) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentPresentationMetric) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentPresentationMetric(val *ComponentPresentationMetric) *NullableComponentPresentationMetric { + return &NullableComponentPresentationMetric{value: val, isSet: true} +} + +func (v NullableComponentPresentationMetric) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentPresentationMetric) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_bound_metrics.go b/generated/stackstate_api/model_component_summary.go similarity index 52% rename from generated/stackstate_api/model_bound_metrics.go rename to generated/stackstate_api/model_component_summary.go index baeb7dfc..52fb18e9 100644 --- a/generated/stackstate_api/model_bound_metrics.go +++ b/generated/stackstate_api/model_component_summary.go @@ -15,93 +15,93 @@ import ( "encoding/json" ) -// BoundMetrics struct for BoundMetrics -type BoundMetrics struct { - BoundMetrics []BoundMetric `json:"boundMetrics" yaml:"boundMetrics"` +// ComponentSummary struct for ComponentSummary +type ComponentSummary struct { + Metrics []BoundMetric `json:"metrics" yaml:"metrics"` } -// NewBoundMetrics instantiates a new BoundMetrics object +// NewComponentSummary instantiates a new ComponentSummary 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 NewBoundMetrics(boundMetrics []BoundMetric) *BoundMetrics { - this := BoundMetrics{} - this.BoundMetrics = boundMetrics +func NewComponentSummary(metrics []BoundMetric) *ComponentSummary { + this := ComponentSummary{} + this.Metrics = metrics return &this } -// NewBoundMetricsWithDefaults instantiates a new BoundMetrics object +// NewComponentSummaryWithDefaults instantiates a new ComponentSummary 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 NewBoundMetricsWithDefaults() *BoundMetrics { - this := BoundMetrics{} +func NewComponentSummaryWithDefaults() *ComponentSummary { + this := ComponentSummary{} return &this } -// GetBoundMetrics returns the BoundMetrics field value -func (o *BoundMetrics) GetBoundMetrics() []BoundMetric { +// GetMetrics returns the Metrics field value +func (o *ComponentSummary) GetMetrics() []BoundMetric { if o == nil { var ret []BoundMetric return ret } - return o.BoundMetrics + return o.Metrics } -// GetBoundMetricsOk returns a tuple with the BoundMetrics field value +// GetMetricsOk returns a tuple with the Metrics field value // and a boolean to check if the value has been set. -func (o *BoundMetrics) GetBoundMetricsOk() ([]BoundMetric, bool) { +func (o *ComponentSummary) GetMetricsOk() ([]BoundMetric, bool) { if o == nil { return nil, false } - return o.BoundMetrics, true + return o.Metrics, true } -// SetBoundMetrics sets field value -func (o *BoundMetrics) SetBoundMetrics(v []BoundMetric) { - o.BoundMetrics = v +// SetMetrics sets field value +func (o *ComponentSummary) SetMetrics(v []BoundMetric) { + o.Metrics = v } -func (o BoundMetrics) MarshalJSON() ([]byte, error) { +func (o ComponentSummary) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { - toSerialize["boundMetrics"] = o.BoundMetrics + toSerialize["metrics"] = o.Metrics } return json.Marshal(toSerialize) } -type NullableBoundMetrics struct { - value *BoundMetrics +type NullableComponentSummary struct { + value *ComponentSummary isSet bool } -func (v NullableBoundMetrics) Get() *BoundMetrics { +func (v NullableComponentSummary) Get() *ComponentSummary { return v.value } -func (v *NullableBoundMetrics) Set(val *BoundMetrics) { +func (v *NullableComponentSummary) Set(val *ComponentSummary) { v.value = val v.isSet = true } -func (v NullableBoundMetrics) IsSet() bool { +func (v NullableComponentSummary) IsSet() bool { return v.isSet } -func (v *NullableBoundMetrics) Unset() { +func (v *NullableComponentSummary) Unset() { v.value = nil v.isSet = false } -func NewNullableBoundMetrics(val *BoundMetrics) *NullableBoundMetrics { - return &NullableBoundMetrics{value: val, isSet: true} +func NewNullableComponentSummary(val *ComponentSummary) *NullableComponentSummary { + return &NullableComponentSummary{value: val, isSet: true} } -func (v NullableBoundMetrics) MarshalJSON() ([]byte, error) { +func (v NullableComponentSummary) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableBoundMetrics) UnmarshalJSON(src []byte) error { +func (v *NullableComponentSummary) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_component_summary_location.go b/generated/stackstate_api/model_component_summary_location.go deleted file mode 100644 index 8a81ada6..00000000 --- a/generated/stackstate_api/model_component_summary_location.go +++ /dev/null @@ -1,114 +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" -) - -// ComponentSummaryLocation struct for ComponentSummaryLocation -type ComponentSummaryLocation struct { - Weight *int32 `json:"weight,omitempty" yaml:"weight,omitempty"` -} - -// NewComponentSummaryLocation instantiates a new ComponentSummaryLocation 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 NewComponentSummaryLocation() *ComponentSummaryLocation { - this := ComponentSummaryLocation{} - return &this -} - -// NewComponentSummaryLocationWithDefaults instantiates a new ComponentSummaryLocation 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 NewComponentSummaryLocationWithDefaults() *ComponentSummaryLocation { - this := ComponentSummaryLocation{} - return &this -} - -// GetWeight returns the Weight field value if set, zero value otherwise. -func (o *ComponentSummaryLocation) GetWeight() int32 { - if o == nil || o.Weight == nil { - var ret int32 - return ret - } - return *o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComponentSummaryLocation) GetWeightOk() (*int32, bool) { - if o == nil || o.Weight == nil { - return nil, false - } - return o.Weight, true -} - -// HasWeight returns a boolean if a field has been set. -func (o *ComponentSummaryLocation) HasWeight() bool { - if o != nil && o.Weight != nil { - return true - } - - return false -} - -// SetWeight gets a reference to the given int32 and assigns it to the Weight field. -func (o *ComponentSummaryLocation) SetWeight(v int32) { - o.Weight = &v -} - -func (o ComponentSummaryLocation) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Weight != nil { - toSerialize["weight"] = o.Weight - } - return json.Marshal(toSerialize) -} - -type NullableComponentSummaryLocation struct { - value *ComponentSummaryLocation - isSet bool -} - -func (v NullableComponentSummaryLocation) Get() *ComponentSummaryLocation { - return v.value -} - -func (v *NullableComponentSummaryLocation) Set(val *ComponentSummaryLocation) { - v.value = val - v.isSet = true -} - -func (v NullableComponentSummaryLocation) IsSet() bool { - return v.isSet -} - -func (v *NullableComponentSummaryLocation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComponentSummaryLocation(val *ComponentSummaryLocation) *NullableComponentSummaryLocation { - return &NullableComponentSummaryLocation{value: val, isSet: true} -} - -func (v NullableComponentSummaryLocation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComponentSummaryLocation) 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 348fcf3b..93d474cb 100644 --- a/generated/stackstate_api/model_full_component.go +++ b/generated/stackstate_api/model_full_component.go @@ -27,8 +27,9 @@ type FullComponent struct { Events *ComponentEvents `json:"events,omitempty" yaml:"events,omitempty"` Data ComponentData `json:"data" yaml:"data"` Highlights *LegacyComponentHighlights `json:"highlights,omitempty" yaml:"highlights,omitempty"` + Summary ComponentSummary `json:"summary" yaml:"summary"` + HighlightMetrics []ComponentMetricSection `json:"highlightMetrics" yaml:"highlightMetrics"` Actions []ComponentAction `json:"actions" yaml:"actions"` - BoundMetrics []BoundMetric `json:"boundMetrics" yaml:"boundMetrics"` BoundTraces *BoundTraces `json:"boundTraces,omitempty" yaml:"boundTraces,omitempty"` } @@ -36,15 +37,16 @@ type FullComponent struct { // 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, fields []ComponentField, synced []ExternalComponent, relatedResources []RelatedResource, data ComponentData, actions []ComponentAction, boundMetrics []BoundMetric) *FullComponent { +func NewFullComponent(typeName string, fields []ComponentField, synced []ExternalComponent, relatedResources []RelatedResource, data ComponentData, summary ComponentSummary, highlightMetrics []ComponentMetricSection, actions []ComponentAction) *FullComponent { this := FullComponent{} this.TypeName = typeName this.Fields = fields this.Synced = synced this.RelatedResources = relatedResources this.Data = data + this.Summary = summary + this.HighlightMetrics = highlightMetrics this.Actions = actions - this.BoundMetrics = boundMetrics return &this } @@ -304,52 +306,76 @@ func (o *FullComponent) SetHighlights(v LegacyComponentHighlights) { o.Highlights = &v } -// GetActions returns the Actions field value -func (o *FullComponent) GetActions() []ComponentAction { +// GetSummary returns the Summary field value +func (o *FullComponent) GetSummary() ComponentSummary { if o == nil { - var ret []ComponentAction + var ret ComponentSummary return ret } - return o.Actions + return o.Summary } -// GetActionsOk returns a tuple with the Actions field value +// GetSummaryOk returns a tuple with the Summary field value // and a boolean to check if the value has been set. -func (o *FullComponent) GetActionsOk() ([]ComponentAction, bool) { +func (o *FullComponent) GetSummaryOk() (*ComponentSummary, bool) { if o == nil { return nil, false } - return o.Actions, true + return &o.Summary, true } -// SetActions sets field value -func (o *FullComponent) SetActions(v []ComponentAction) { - o.Actions = v +// SetSummary sets field value +func (o *FullComponent) SetSummary(v ComponentSummary) { + o.Summary = v +} + +// GetHighlightMetrics returns the HighlightMetrics field value +func (o *FullComponent) GetHighlightMetrics() []ComponentMetricSection { + if o == nil { + var ret []ComponentMetricSection + return ret + } + + return o.HighlightMetrics +} + +// GetHighlightMetricsOk returns a tuple with the HighlightMetrics field value +// and a boolean to check if the value has been set. +func (o *FullComponent) GetHighlightMetricsOk() ([]ComponentMetricSection, bool) { + if o == nil { + return nil, false + } + return o.HighlightMetrics, true +} + +// SetHighlightMetrics sets field value +func (o *FullComponent) SetHighlightMetrics(v []ComponentMetricSection) { + o.HighlightMetrics = v } -// GetBoundMetrics returns the BoundMetrics field value -func (o *FullComponent) GetBoundMetrics() []BoundMetric { +// GetActions returns the Actions field value +func (o *FullComponent) GetActions() []ComponentAction { if o == nil { - var ret []BoundMetric + var ret []ComponentAction return ret } - return o.BoundMetrics + return o.Actions } -// GetBoundMetricsOk returns a tuple with the BoundMetrics field value +// GetActionsOk returns a tuple with the Actions field value // and a boolean to check if the value has been set. -func (o *FullComponent) GetBoundMetricsOk() ([]BoundMetric, bool) { +func (o *FullComponent) GetActionsOk() ([]ComponentAction, bool) { if o == nil { return nil, false } - return o.BoundMetrics, true + return o.Actions, true } -// SetBoundMetrics sets field value -func (o *FullComponent) SetBoundMetrics(v []BoundMetric) { - o.BoundMetrics = v +// SetActions sets field value +func (o *FullComponent) SetActions(v []ComponentAction) { + o.Actions = v } // GetBoundTraces returns the BoundTraces field value if set, zero value otherwise. @@ -414,10 +440,13 @@ func (o FullComponent) MarshalJSON() ([]byte, error) { toSerialize["highlights"] = o.Highlights } if true { - toSerialize["actions"] = o.Actions + toSerialize["summary"] = o.Summary + } + if true { + toSerialize["highlightMetrics"] = o.HighlightMetrics } if true { - toSerialize["boundMetrics"] = o.BoundMetrics + toSerialize["actions"] = o.Actions } if o.BoundTraces != nil { toSerialize["boundTraces"] = o.BoundTraces diff --git a/generated/stackstate_api/model_layout_hint.go b/generated/stackstate_api/model_layout_hint.go deleted file mode 100644 index 7bf8adfb..00000000 --- a/generated/stackstate_api/model_layout_hint.go +++ /dev/null @@ -1,168 +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" -) - -// LayoutHint - struct for LayoutHint -type LayoutHint struct { - ComponentHighlightMetricSection *ComponentHighlightMetricSection - MetricPerspectiveSection *MetricPerspectiveSection - MetricPerspectiveTab *MetricPerspectiveTab -} - -// ComponentHighlightMetricSectionAsLayoutHint is a convenience function that returns ComponentHighlightMetricSection wrapped in LayoutHint -func ComponentHighlightMetricSectionAsLayoutHint(v *ComponentHighlightMetricSection) LayoutHint { - return LayoutHint{ - ComponentHighlightMetricSection: v, - } -} - -// MetricPerspectiveSectionAsLayoutHint is a convenience function that returns MetricPerspectiveSection wrapped in LayoutHint -func MetricPerspectiveSectionAsLayoutHint(v *MetricPerspectiveSection) LayoutHint { - return LayoutHint{ - MetricPerspectiveSection: v, - } -} - -// MetricPerspectiveTabAsLayoutHint is a convenience function that returns MetricPerspectiveTab wrapped in LayoutHint -func MetricPerspectiveTabAsLayoutHint(v *MetricPerspectiveTab) LayoutHint { - return LayoutHint{ - MetricPerspectiveTab: v, - } -} - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *LayoutHint) 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 'ComponentHighlightMetricSection' - if jsonDict["_type"] == "ComponentHighlightMetricSection" { - // try to unmarshal JSON data into ComponentHighlightMetricSection - err = json.Unmarshal(data, &dst.ComponentHighlightMetricSection) - if err == nil { - return nil // data stored in dst.ComponentHighlightMetricSection, return on the first match - } else { - dst.ComponentHighlightMetricSection = nil - return fmt.Errorf("Failed to unmarshal LayoutHint as ComponentHighlightMetricSection: %s", err.Error()) - } - } - - // check if the discriminator value is 'MetricPerspectiveSection' - if jsonDict["_type"] == "MetricPerspectiveSection" { - // try to unmarshal JSON data into MetricPerspectiveSection - err = json.Unmarshal(data, &dst.MetricPerspectiveSection) - if err == nil { - return nil // data stored in dst.MetricPerspectiveSection, return on the first match - } else { - dst.MetricPerspectiveSection = nil - return fmt.Errorf("Failed to unmarshal LayoutHint as MetricPerspectiveSection: %s", err.Error()) - } - } - - // check if the discriminator value is 'MetricPerspectiveTab' - if jsonDict["_type"] == "MetricPerspectiveTab" { - // try to unmarshal JSON data into MetricPerspectiveTab - err = json.Unmarshal(data, &dst.MetricPerspectiveTab) - if err == nil { - return nil // data stored in dst.MetricPerspectiveTab, return on the first match - } else { - dst.MetricPerspectiveTab = nil - return fmt.Errorf("Failed to unmarshal LayoutHint as MetricPerspectiveTab: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src LayoutHint) MarshalJSON() ([]byte, error) { - if src.ComponentHighlightMetricSection != nil { - return json.Marshal(&src.ComponentHighlightMetricSection) - } - - if src.MetricPerspectiveSection != nil { - return json.Marshal(&src.MetricPerspectiveSection) - } - - if src.MetricPerspectiveTab != nil { - return json.Marshal(&src.MetricPerspectiveTab) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *LayoutHint) GetActualInstance() interface{} { - if obj == nil { - return nil - } - if obj.ComponentHighlightMetricSection != nil { - return obj.ComponentHighlightMetricSection - } - - if obj.MetricPerspectiveSection != nil { - return obj.MetricPerspectiveSection - } - - if obj.MetricPerspectiveTab != nil { - return obj.MetricPerspectiveTab - } - - // all schemas are nil - return nil -} - -type NullableLayoutHint struct { - value *LayoutHint - isSet bool -} - -func (v NullableLayoutHint) Get() *LayoutHint { - return v.value -} - -func (v *NullableLayoutHint) Set(val *LayoutHint) { - v.value = val - v.isSet = true -} - -func (v NullableLayoutHint) IsSet() bool { - return v.isSet -} - -func (v *NullableLayoutHint) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLayoutHint(val *LayoutHint) *NullableLayoutHint { - return &NullableLayoutHint{value: val, isSet: true} -} - -func (v NullableLayoutHint) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLayoutHint) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_legacy_component_highlights.go b/generated/stackstate_api/model_legacy_component_highlights.go index b4f42dba..37627bae 100644 --- a/generated/stackstate_api/model_legacy_component_highlights.go +++ b/generated/stackstate_api/model_legacy_component_highlights.go @@ -17,20 +17,16 @@ import ( // LegacyComponentHighlights struct for LegacyComponentHighlights type LegacyComponentHighlights struct { - NamePlural string `json:"namePlural" yaml:"namePlural"` - ShowLogs bool `json:"showLogs" yaml:"showLogs"` - Metrics []ComponentHighlightMetrics `json:"metrics" yaml:"metrics"` + ShowLogs bool `json:"showLogs" yaml:"showLogs"` } // 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 NewLegacyComponentHighlights(namePlural string, showLogs bool, metrics []ComponentHighlightMetrics) *LegacyComponentHighlights { +func NewLegacyComponentHighlights(showLogs bool) *LegacyComponentHighlights { this := LegacyComponentHighlights{} - this.NamePlural = namePlural this.ShowLogs = showLogs - this.Metrics = metrics return &this } @@ -42,30 +38,6 @@ func NewLegacyComponentHighlightsWithDefaults() *LegacyComponentHighlights { return &this } -// GetNamePlural returns the NamePlural field value -func (o *LegacyComponentHighlights) GetNamePlural() string { - if o == nil { - var ret string - return ret - } - - return o.NamePlural -} - -// GetNamePluralOk returns a tuple with the NamePlural field value -// and a boolean to check if the value has been set. -func (o *LegacyComponentHighlights) GetNamePluralOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.NamePlural, true -} - -// SetNamePlural sets field value -func (o *LegacyComponentHighlights) SetNamePlural(v string) { - o.NamePlural = v -} - // GetShowLogs returns the ShowLogs field value func (o *LegacyComponentHighlights) GetShowLogs() bool { if o == nil { @@ -90,41 +62,11 @@ func (o *LegacyComponentHighlights) SetShowLogs(v bool) { o.ShowLogs = v } -// GetMetrics returns the Metrics field value -func (o *LegacyComponentHighlights) GetMetrics() []ComponentHighlightMetrics { - if o == nil { - var ret []ComponentHighlightMetrics - return ret - } - - return o.Metrics -} - -// GetMetricsOk returns a tuple with the Metrics field value -// and a boolean to check if the value has been set. -func (o *LegacyComponentHighlights) GetMetricsOk() ([]ComponentHighlightMetrics, bool) { - if o == nil { - return nil, false - } - return o.Metrics, true -} - -// SetMetrics sets field value -func (o *LegacyComponentHighlights) SetMetrics(v []ComponentHighlightMetrics) { - o.Metrics = v -} - func (o LegacyComponentHighlights) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} - if true { - toSerialize["namePlural"] = o.NamePlural - } if true { toSerialize["showLogs"] = o.ShowLogs } - if true { - toSerialize["metrics"] = o.Metrics - } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_main_menu_group.go b/generated/stackstate_api/model_main_menu_group.go index cd2bfb1a..3bcc49ba 100644 --- a/generated/stackstate_api/model_main_menu_group.go +++ b/generated/stackstate_api/model_main_menu_group.go @@ -21,7 +21,7 @@ type MainMenuGroup struct { Identifier *string `json:"identifier,omitempty" yaml:"identifier,omitempty"` Description *string `json:"description,omitempty" yaml:"description,omitempty"` DefaultOpen bool `json:"defaultOpen" yaml:"defaultOpen"` - Icon string `json:"icon" yaml:"icon"` + Icon *string `json:"icon,omitempty" yaml:"icon,omitempty"` Items []MainMenuViewItem `json:"items" yaml:"items"` } @@ -29,11 +29,10 @@ type MainMenuGroup struct { // 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 NewMainMenuGroup(name string, defaultOpen bool, icon string, items []MainMenuViewItem) *MainMenuGroup { +func NewMainMenuGroup(name string, defaultOpen bool, items []MainMenuViewItem) *MainMenuGroup { this := MainMenuGroup{} this.Name = name this.DefaultOpen = defaultOpen - this.Icon = icon this.Items = items return &this } @@ -158,28 +157,36 @@ func (o *MainMenuGroup) SetDefaultOpen(v bool) { o.DefaultOpen = v } -// GetIcon returns the Icon field value +// GetIcon returns the Icon field value if set, zero value otherwise. func (o *MainMenuGroup) GetIcon() string { - if o == nil { + if o == nil || o.Icon == nil { var ret string return ret } - - return o.Icon + return *o.Icon } -// GetIconOk returns a tuple with the Icon field value +// GetIconOk returns a tuple with the Icon field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *MainMenuGroup) GetIconOk() (*string, bool) { - if o == nil { + if o == nil || o.Icon == nil { return nil, false } - return &o.Icon, true + return o.Icon, true +} + +// HasIcon returns a boolean if a field has been set. +func (o *MainMenuGroup) HasIcon() bool { + if o != nil && o.Icon != nil { + return true + } + + return false } -// SetIcon sets field value +// SetIcon gets a reference to the given string and assigns it to the Icon field. func (o *MainMenuGroup) SetIcon(v string) { - o.Icon = v + o.Icon = &v } // GetItems returns the Items field value @@ -220,7 +227,7 @@ func (o MainMenuGroup) MarshalJSON() ([]byte, error) { if true { toSerialize["defaultOpen"] = o.DefaultOpen } - if true { + if o.Icon != nil { toSerialize["icon"] = o.Icon } if true { diff --git a/generated/stackstate_api/model_metric_binding_layout.go b/generated/stackstate_api/model_metric_binding_layout.go deleted file mode 100644 index 012d83f2..00000000 --- a/generated/stackstate_api/model_metric_binding_layout.go +++ /dev/null @@ -1,186 +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" -) - -// MetricBindingLayout struct for MetricBindingLayout -type MetricBindingLayout struct { - MetricPerspective *MetricPerspectiveLocation `json:"metricPerspective,omitempty" yaml:"metricPerspective,omitempty"` - ComponentHighlight *ComponentHighlightLocation `json:"componentHighlight,omitempty" yaml:"componentHighlight,omitempty"` - ComponentSummary *ComponentSummaryLocation `json:"componentSummary,omitempty" yaml:"componentSummary,omitempty"` -} - -// NewMetricBindingLayout instantiates a new MetricBindingLayout 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 NewMetricBindingLayout() *MetricBindingLayout { - this := MetricBindingLayout{} - return &this -} - -// NewMetricBindingLayoutWithDefaults instantiates a new MetricBindingLayout 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 NewMetricBindingLayoutWithDefaults() *MetricBindingLayout { - this := MetricBindingLayout{} - return &this -} - -// GetMetricPerspective returns the MetricPerspective field value if set, zero value otherwise. -func (o *MetricBindingLayout) GetMetricPerspective() MetricPerspectiveLocation { - if o == nil || o.MetricPerspective == nil { - var ret MetricPerspectiveLocation - return ret - } - return *o.MetricPerspective -} - -// GetMetricPerspectiveOk returns a tuple with the MetricPerspective field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricBindingLayout) GetMetricPerspectiveOk() (*MetricPerspectiveLocation, bool) { - if o == nil || o.MetricPerspective == nil { - return nil, false - } - return o.MetricPerspective, true -} - -// HasMetricPerspective returns a boolean if a field has been set. -func (o *MetricBindingLayout) HasMetricPerspective() bool { - if o != nil && o.MetricPerspective != nil { - return true - } - - return false -} - -// SetMetricPerspective gets a reference to the given MetricPerspectiveLocation and assigns it to the MetricPerspective field. -func (o *MetricBindingLayout) SetMetricPerspective(v MetricPerspectiveLocation) { - o.MetricPerspective = &v -} - -// GetComponentHighlight returns the ComponentHighlight field value if set, zero value otherwise. -func (o *MetricBindingLayout) GetComponentHighlight() ComponentHighlightLocation { - if o == nil || o.ComponentHighlight == nil { - var ret ComponentHighlightLocation - return ret - } - return *o.ComponentHighlight -} - -// GetComponentHighlightOk returns a tuple with the ComponentHighlight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricBindingLayout) GetComponentHighlightOk() (*ComponentHighlightLocation, bool) { - if o == nil || o.ComponentHighlight == nil { - return nil, false - } - return o.ComponentHighlight, true -} - -// HasComponentHighlight returns a boolean if a field has been set. -func (o *MetricBindingLayout) HasComponentHighlight() bool { - if o != nil && o.ComponentHighlight != nil { - return true - } - - return false -} - -// SetComponentHighlight gets a reference to the given ComponentHighlightLocation and assigns it to the ComponentHighlight field. -func (o *MetricBindingLayout) SetComponentHighlight(v ComponentHighlightLocation) { - o.ComponentHighlight = &v -} - -// GetComponentSummary returns the ComponentSummary field value if set, zero value otherwise. -func (o *MetricBindingLayout) GetComponentSummary() ComponentSummaryLocation { - if o == nil || o.ComponentSummary == nil { - var ret ComponentSummaryLocation - return ret - } - return *o.ComponentSummary -} - -// GetComponentSummaryOk returns a tuple with the ComponentSummary field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricBindingLayout) GetComponentSummaryOk() (*ComponentSummaryLocation, bool) { - if o == nil || o.ComponentSummary == nil { - return nil, false - } - return o.ComponentSummary, true -} - -// HasComponentSummary returns a boolean if a field has been set. -func (o *MetricBindingLayout) HasComponentSummary() bool { - if o != nil && o.ComponentSummary != nil { - return true - } - - return false -} - -// SetComponentSummary gets a reference to the given ComponentSummaryLocation and assigns it to the ComponentSummary field. -func (o *MetricBindingLayout) SetComponentSummary(v ComponentSummaryLocation) { - o.ComponentSummary = &v -} - -func (o MetricBindingLayout) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.MetricPerspective != nil { - toSerialize["metricPerspective"] = o.MetricPerspective - } - if o.ComponentHighlight != nil { - toSerialize["componentHighlight"] = o.ComponentHighlight - } - if o.ComponentSummary != nil { - toSerialize["componentSummary"] = o.ComponentSummary - } - return json.Marshal(toSerialize) -} - -type NullableMetricBindingLayout struct { - value *MetricBindingLayout - isSet bool -} - -func (v NullableMetricBindingLayout) Get() *MetricBindingLayout { - return v.value -} - -func (v *NullableMetricBindingLayout) Set(val *MetricBindingLayout) { - v.value = val - v.isSet = true -} - -func (v NullableMetricBindingLayout) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricBindingLayout) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricBindingLayout(val *MetricBindingLayout) *NullableMetricBindingLayout { - return &NullableMetricBindingLayout{value: val, isSet: true} -} - -func (v NullableMetricBindingLayout) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricBindingLayout) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_metric_meta_display.go b/generated/stackstate_api/model_metric_meta_display.go index f0e97176..0ac32322 100644 --- a/generated/stackstate_api/model_metric_meta_display.go +++ b/generated/stackstate_api/model_metric_meta_display.go @@ -17,12 +17,12 @@ import ( // 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"` + 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"` + BoundMetricId *BoundMetricId `json:"boundMetricId,omitempty" yaml:"boundMetricId,omitempty"` } // NewMetricMetaDisplay instantiates a new MetricMetaDisplay object @@ -221,36 +221,36 @@ func (o *MetricMetaDisplay) SetLocked(v bool) { o.Locked = v } -// 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 +// GetBoundMetricId returns the BoundMetricId field value if set, zero value otherwise. +func (o *MetricMetaDisplay) GetBoundMetricId() BoundMetricId { + if o == nil || o.BoundMetricId == nil { + var ret BoundMetricId return ret } - return *o.MetricId + return *o.BoundMetricId } -// GetMetricIdOk returns a tuple with the MetricId field value if set, nil otherwise +// GetBoundMetricIdOk returns a tuple with the BoundMetricId 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 { +func (o *MetricMetaDisplay) GetBoundMetricIdOk() (*BoundMetricId, bool) { + if o == nil || o.BoundMetricId == nil { return nil, false } - return o.MetricId, true + return o.BoundMetricId, true } -// HasMetricId returns a boolean if a field has been set. -func (o *MetricMetaDisplay) HasMetricId() bool { - if o != nil && o.MetricId != nil { +// HasBoundMetricId returns a boolean if a field has been set. +func (o *MetricMetaDisplay) HasBoundMetricId() bool { + if o != nil && o.BoundMetricId != 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 +// SetBoundMetricId gets a reference to the given BoundMetricId and assigns it to the BoundMetricId field. +func (o *MetricMetaDisplay) SetBoundMetricId(v BoundMetricId) { + o.BoundMetricId = &v } func (o MetricMetaDisplay) MarshalJSON() ([]byte, error) { @@ -270,8 +270,8 @@ func (o MetricMetaDisplay) MarshalJSON() ([]byte, error) { if true { toSerialize["locked"] = o.Locked } - if o.MetricId != nil { - toSerialize["metricId"] = o.MetricId + if o.BoundMetricId != nil { + toSerialize["boundMetricId"] = o.BoundMetricId } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_metric_perspective_data.go b/generated/stackstate_api/model_metric_perspective_data.go new file mode 100644 index 00000000..3d055aab --- /dev/null +++ b/generated/stackstate_api/model_metric_perspective_data.go @@ -0,0 +1,107 @@ +/* +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" +) + +// MetricPerspectiveData struct for MetricPerspectiveData +type MetricPerspectiveData struct { + Tabs []ComponentMetricTab `json:"tabs" yaml:"tabs"` +} + +// NewMetricPerspectiveData instantiates a new MetricPerspectiveData 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 NewMetricPerspectiveData(tabs []ComponentMetricTab) *MetricPerspectiveData { + this := MetricPerspectiveData{} + this.Tabs = tabs + return &this +} + +// NewMetricPerspectiveDataWithDefaults instantiates a new MetricPerspectiveData 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 NewMetricPerspectiveDataWithDefaults() *MetricPerspectiveData { + this := MetricPerspectiveData{} + return &this +} + +// GetTabs returns the Tabs field value +func (o *MetricPerspectiveData) GetTabs() []ComponentMetricTab { + if o == nil { + var ret []ComponentMetricTab + return ret + } + + return o.Tabs +} + +// GetTabsOk returns a tuple with the Tabs field value +// and a boolean to check if the value has been set. +func (o *MetricPerspectiveData) GetTabsOk() ([]ComponentMetricTab, bool) { + if o == nil { + return nil, false + } + return o.Tabs, true +} + +// SetTabs sets field value +func (o *MetricPerspectiveData) SetTabs(v []ComponentMetricTab) { + o.Tabs = v +} + +func (o MetricPerspectiveData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["tabs"] = o.Tabs + } + return json.Marshal(toSerialize) +} + +type NullableMetricPerspectiveData struct { + value *MetricPerspectiveData + isSet bool +} + +func (v NullableMetricPerspectiveData) Get() *MetricPerspectiveData { + return v.value +} + +func (v *NullableMetricPerspectiveData) Set(val *MetricPerspectiveData) { + v.value = val + v.isSet = true +} + +func (v NullableMetricPerspectiveData) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricPerspectiveData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricPerspectiveData(val *MetricPerspectiveData) *NullableMetricPerspectiveData { + return &NullableMetricPerspectiveData{value: val, isSet: true} +} + +func (v NullableMetricPerspectiveData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricPerspectiveData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_metric_perspective_location.go b/generated/stackstate_api/model_metric_perspective_location.go deleted file mode 100644 index 244fdc37..00000000 --- a/generated/stackstate_api/model_metric_perspective_location.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" -) - -// MetricPerspectiveLocation struct for MetricPerspectiveLocation -type MetricPerspectiveLocation struct { - Tab string `json:"tab" yaml:"tab"` - Section string `json:"section" yaml:"section"` - Weight *int32 `json:"weight,omitempty" yaml:"weight,omitempty"` -} - -// NewMetricPerspectiveLocation instantiates a new MetricPerspectiveLocation 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 NewMetricPerspectiveLocation(tab string, section string) *MetricPerspectiveLocation { - this := MetricPerspectiveLocation{} - this.Tab = tab - this.Section = section - return &this -} - -// NewMetricPerspectiveLocationWithDefaults instantiates a new MetricPerspectiveLocation 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 NewMetricPerspectiveLocationWithDefaults() *MetricPerspectiveLocation { - this := MetricPerspectiveLocation{} - return &this -} - -// GetTab returns the Tab field value -func (o *MetricPerspectiveLocation) GetTab() string { - if o == nil { - var ret string - return ret - } - - return o.Tab -} - -// GetTabOk returns a tuple with the Tab field value -// and a boolean to check if the value has been set. -func (o *MetricPerspectiveLocation) GetTabOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Tab, true -} - -// SetTab sets field value -func (o *MetricPerspectiveLocation) SetTab(v string) { - o.Tab = v -} - -// GetSection returns the Section field value -func (o *MetricPerspectiveLocation) GetSection() string { - if o == nil { - var ret string - return ret - } - - return o.Section -} - -// GetSectionOk returns a tuple with the Section field value -// and a boolean to check if the value has been set. -func (o *MetricPerspectiveLocation) GetSectionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Section, true -} - -// SetSection sets field value -func (o *MetricPerspectiveLocation) SetSection(v string) { - o.Section = v -} - -// GetWeight returns the Weight field value if set, zero value otherwise. -func (o *MetricPerspectiveLocation) GetWeight() int32 { - if o == nil || o.Weight == nil { - var ret int32 - return ret - } - return *o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MetricPerspectiveLocation) GetWeightOk() (*int32, bool) { - if o == nil || o.Weight == nil { - return nil, false - } - return o.Weight, true -} - -// HasWeight returns a boolean if a field has been set. -func (o *MetricPerspectiveLocation) HasWeight() bool { - if o != nil && o.Weight != nil { - return true - } - - return false -} - -// SetWeight gets a reference to the given int32 and assigns it to the Weight field. -func (o *MetricPerspectiveLocation) SetWeight(v int32) { - o.Weight = &v -} - -func (o MetricPerspectiveLocation) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["tab"] = o.Tab - } - if true { - toSerialize["section"] = o.Section - } - if o.Weight != nil { - toSerialize["weight"] = o.Weight - } - return json.Marshal(toSerialize) -} - -type NullableMetricPerspectiveLocation struct { - value *MetricPerspectiveLocation - isSet bool -} - -func (v NullableMetricPerspectiveLocation) Get() *MetricPerspectiveLocation { - return v.value -} - -func (v *NullableMetricPerspectiveLocation) Set(val *MetricPerspectiveLocation) { - v.value = val - v.isSet = true -} - -func (v NullableMetricPerspectiveLocation) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricPerspectiveLocation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricPerspectiveLocation(val *MetricPerspectiveLocation) *NullableMetricPerspectiveLocation { - return &NullableMetricPerspectiveLocation{value: val, isSet: true} -} - -func (v NullableMetricPerspectiveLocation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricPerspectiveLocation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_metric_perspective_section.go b/generated/stackstate_api/model_metric_perspective_section.go deleted file mode 100644 index 71515028..00000000 --- a/generated/stackstate_api/model_metric_perspective_section.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" -) - -// MetricPerspectiveSection struct for MetricPerspectiveSection -type MetricPerspectiveSection struct { - Name string `json:"name" yaml:"name"` - Weight float32 `json:"weight" yaml:"weight"` - Type string `json:"_type" yaml:"_type"` - Tab string `json:"tab" yaml:"tab"` -} - -// NewMetricPerspectiveSection instantiates a new MetricPerspectiveSection 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 NewMetricPerspectiveSection(name string, weight float32, type_ string, tab string) *MetricPerspectiveSection { - this := MetricPerspectiveSection{} - this.Name = name - this.Weight = weight - this.Type = type_ - this.Tab = tab - return &this -} - -// NewMetricPerspectiveSectionWithDefaults instantiates a new MetricPerspectiveSection 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 NewMetricPerspectiveSectionWithDefaults() *MetricPerspectiveSection { - this := MetricPerspectiveSection{} - return &this -} - -// GetName returns the Name field value -func (o *MetricPerspectiveSection) 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 *MetricPerspectiveSection) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *MetricPerspectiveSection) SetName(v string) { - o.Name = v -} - -// GetWeight returns the Weight field value -func (o *MetricPerspectiveSection) GetWeight() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value -// and a boolean to check if the value has been set. -func (o *MetricPerspectiveSection) GetWeightOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.Weight, true -} - -// SetWeight sets field value -func (o *MetricPerspectiveSection) SetWeight(v float32) { - o.Weight = v -} - -// GetType returns the Type field value -func (o *MetricPerspectiveSection) 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 *MetricPerspectiveSection) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *MetricPerspectiveSection) SetType(v string) { - o.Type = v -} - -// GetTab returns the Tab field value -func (o *MetricPerspectiveSection) GetTab() string { - if o == nil { - var ret string - return ret - } - - return o.Tab -} - -// GetTabOk returns a tuple with the Tab field value -// and a boolean to check if the value has been set. -func (o *MetricPerspectiveSection) GetTabOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Tab, true -} - -// SetTab sets field value -func (o *MetricPerspectiveSection) SetTab(v string) { - o.Tab = v -} - -func (o MetricPerspectiveSection) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["name"] = o.Name - } - if true { - toSerialize["weight"] = o.Weight - } - if true { - toSerialize["_type"] = o.Type - } - if true { - toSerialize["tab"] = o.Tab - } - return json.Marshal(toSerialize) -} - -type NullableMetricPerspectiveSection struct { - value *MetricPerspectiveSection - isSet bool -} - -func (v NullableMetricPerspectiveSection) Get() *MetricPerspectiveSection { - return v.value -} - -func (v *NullableMetricPerspectiveSection) Set(val *MetricPerspectiveSection) { - v.value = val - v.isSet = true -} - -func (v NullableMetricPerspectiveSection) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricPerspectiveSection) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricPerspectiveSection(val *MetricPerspectiveSection) *NullableMetricPerspectiveSection { - return &NullableMetricPerspectiveSection{value: val, isSet: true} -} - -func (v NullableMetricPerspectiveSection) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricPerspectiveSection) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_metric_perspective_section_all_of.go b/generated/stackstate_api/model_metric_perspective_section_all_of.go deleted file mode 100644 index d8c9c738..00000000 --- a/generated/stackstate_api/model_metric_perspective_section_all_of.go +++ /dev/null @@ -1,136 +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" -) - -// MetricPerspectiveSectionAllOf struct for MetricPerspectiveSectionAllOf -type MetricPerspectiveSectionAllOf struct { - Type string `json:"_type" yaml:"_type"` - Tab string `json:"tab" yaml:"tab"` -} - -// NewMetricPerspectiveSectionAllOf instantiates a new MetricPerspectiveSectionAllOf 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 NewMetricPerspectiveSectionAllOf(type_ string, tab string) *MetricPerspectiveSectionAllOf { - this := MetricPerspectiveSectionAllOf{} - this.Type = type_ - this.Tab = tab - return &this -} - -// NewMetricPerspectiveSectionAllOfWithDefaults instantiates a new MetricPerspectiveSectionAllOf 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 NewMetricPerspectiveSectionAllOfWithDefaults() *MetricPerspectiveSectionAllOf { - this := MetricPerspectiveSectionAllOf{} - return &this -} - -// GetType returns the Type field value -func (o *MetricPerspectiveSectionAllOf) 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 *MetricPerspectiveSectionAllOf) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *MetricPerspectiveSectionAllOf) SetType(v string) { - o.Type = v -} - -// GetTab returns the Tab field value -func (o *MetricPerspectiveSectionAllOf) GetTab() string { - if o == nil { - var ret string - return ret - } - - return o.Tab -} - -// GetTabOk returns a tuple with the Tab field value -// and a boolean to check if the value has been set. -func (o *MetricPerspectiveSectionAllOf) GetTabOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Tab, true -} - -// SetTab sets field value -func (o *MetricPerspectiveSectionAllOf) SetTab(v string) { - o.Tab = v -} - -func (o MetricPerspectiveSectionAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - if true { - toSerialize["tab"] = o.Tab - } - return json.Marshal(toSerialize) -} - -type NullableMetricPerspectiveSectionAllOf struct { - value *MetricPerspectiveSectionAllOf - isSet bool -} - -func (v NullableMetricPerspectiveSectionAllOf) Get() *MetricPerspectiveSectionAllOf { - return v.value -} - -func (v *NullableMetricPerspectiveSectionAllOf) Set(val *MetricPerspectiveSectionAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableMetricPerspectiveSectionAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricPerspectiveSectionAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricPerspectiveSectionAllOf(val *MetricPerspectiveSectionAllOf) *NullableMetricPerspectiveSectionAllOf { - return &NullableMetricPerspectiveSectionAllOf{value: val, isSet: true} -} - -func (v NullableMetricPerspectiveSectionAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricPerspectiveSectionAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_metric_perspective_tab.go b/generated/stackstate_api/model_metric_perspective_tab.go deleted file mode 100644 index 4b5aef46..00000000 --- a/generated/stackstate_api/model_metric_perspective_tab.go +++ /dev/null @@ -1,165 +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" -) - -// MetricPerspectiveTab struct for MetricPerspectiveTab -type MetricPerspectiveTab struct { - Name string `json:"name" yaml:"name"` - Weight float32 `json:"weight" yaml:"weight"` - Type string `json:"_type" yaml:"_type"` -} - -// NewMetricPerspectiveTab instantiates a new MetricPerspectiveTab 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 NewMetricPerspectiveTab(name string, weight float32, type_ string) *MetricPerspectiveTab { - this := MetricPerspectiveTab{} - this.Name = name - this.Weight = weight - this.Type = type_ - return &this -} - -// NewMetricPerspectiveTabWithDefaults instantiates a new MetricPerspectiveTab 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 NewMetricPerspectiveTabWithDefaults() *MetricPerspectiveTab { - this := MetricPerspectiveTab{} - return &this -} - -// GetName returns the Name field value -func (o *MetricPerspectiveTab) 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 *MetricPerspectiveTab) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *MetricPerspectiveTab) SetName(v string) { - o.Name = v -} - -// GetWeight returns the Weight field value -func (o *MetricPerspectiveTab) GetWeight() float32 { - if o == nil { - var ret float32 - return ret - } - - return o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value -// and a boolean to check if the value has been set. -func (o *MetricPerspectiveTab) GetWeightOk() (*float32, bool) { - if o == nil { - return nil, false - } - return &o.Weight, true -} - -// SetWeight sets field value -func (o *MetricPerspectiveTab) SetWeight(v float32) { - o.Weight = v -} - -// GetType returns the Type field value -func (o *MetricPerspectiveTab) 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 *MetricPerspectiveTab) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *MetricPerspectiveTab) SetType(v string) { - o.Type = v -} - -func (o MetricPerspectiveTab) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["name"] = o.Name - } - if true { - toSerialize["weight"] = o.Weight - } - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableMetricPerspectiveTab struct { - value *MetricPerspectiveTab - isSet bool -} - -func (v NullableMetricPerspectiveTab) Get() *MetricPerspectiveTab { - return v.value -} - -func (v *NullableMetricPerspectiveTab) Set(val *MetricPerspectiveTab) { - v.value = val - v.isSet = true -} - -func (v NullableMetricPerspectiveTab) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricPerspectiveTab) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricPerspectiveTab(val *MetricPerspectiveTab) *NullableMetricPerspectiveTab { - return &NullableMetricPerspectiveTab{value: val, isSet: true} -} - -func (v NullableMetricPerspectiveTab) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricPerspectiveTab) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_metric_perspective_tab_all_of.go b/generated/stackstate_api/model_metric_perspective_tab_all_of.go deleted file mode 100644 index 44382def..00000000 --- a/generated/stackstate_api/model_metric_perspective_tab_all_of.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" -) - -// MetricPerspectiveTabAllOf struct for MetricPerspectiveTabAllOf -type MetricPerspectiveTabAllOf struct { - Type string `json:"_type" yaml:"_type"` -} - -// NewMetricPerspectiveTabAllOf instantiates a new MetricPerspectiveTabAllOf 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 NewMetricPerspectiveTabAllOf(type_ string) *MetricPerspectiveTabAllOf { - this := MetricPerspectiveTabAllOf{} - this.Type = type_ - return &this -} - -// NewMetricPerspectiveTabAllOfWithDefaults instantiates a new MetricPerspectiveTabAllOf 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 NewMetricPerspectiveTabAllOfWithDefaults() *MetricPerspectiveTabAllOf { - this := MetricPerspectiveTabAllOf{} - return &this -} - -// GetType returns the Type field value -func (o *MetricPerspectiveTabAllOf) 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 *MetricPerspectiveTabAllOf) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *MetricPerspectiveTabAllOf) SetType(v string) { - o.Type = v -} - -func (o MetricPerspectiveTabAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } - return json.Marshal(toSerialize) -} - -type NullableMetricPerspectiveTabAllOf struct { - value *MetricPerspectiveTabAllOf - isSet bool -} - -func (v NullableMetricPerspectiveTabAllOf) Get() *MetricPerspectiveTabAllOf { - return v.value -} - -func (v *NullableMetricPerspectiveTabAllOf) Set(val *MetricPerspectiveTabAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableMetricPerspectiveTabAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricPerspectiveTabAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricPerspectiveTabAllOf(val *MetricPerspectiveTabAllOf) *NullableMetricPerspectiveTabAllOf { - return &NullableMetricPerspectiveTabAllOf{value: val, isSet: true} -} - -func (v NullableMetricPerspectiveTabAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricPerspectiveTabAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_metric_valuation.go b/generated/stackstate_api/model_metric_valuation.go deleted file mode 100644 index f4911c51..00000000 --- a/generated/stackstate_api/model_metric_valuation.go +++ /dev/null @@ -1,111 +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" -) - -// MetricValuation the model 'MetricValuation' -type MetricValuation string - -// List of MetricValuation -const ( - METRICVALUATION_HIGHER_IS_BETTER MetricValuation = "higher-is-better" - METRICVALUATION_LOWER_IS_BETTER MetricValuation = "lower-is-better" -) - -// All allowed values of MetricValuation enum -var AllowedMetricValuationEnumValues = []MetricValuation{ - "higher-is-better", - "lower-is-better", -} - -func (v *MetricValuation) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := MetricValuation(value) - for _, existing := range AllowedMetricValuationEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid MetricValuation", value) -} - -// NewMetricValuationFromValue returns a pointer to a valid MetricValuation -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewMetricValuationFromValue(v string) (*MetricValuation, error) { - ev := MetricValuation(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for MetricValuation: valid values are %v", v, AllowedMetricValuationEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v MetricValuation) IsValid() bool { - for _, existing := range AllowedMetricValuationEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to MetricValuation value -func (v MetricValuation) Ptr() *MetricValuation { - return &v -} - -type NullableMetricValuation struct { - value *MetricValuation - isSet bool -} - -func (v NullableMetricValuation) Get() *MetricValuation { - return v.value -} - -func (v *NullableMetricValuation) Set(val *MetricValuation) { - v.value = val - v.isSet = true -} - -func (v NullableMetricValuation) IsSet() bool { - return v.isSet -} - -func (v *NullableMetricValuation) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMetricValuation(val *MetricValuation) *NullableMetricValuation { - return &NullableMetricValuation{value: val, isSet: true} -} - -func (v NullableMetricValuation) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMetricValuation) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/generated/stackstate_api/model_ordered_component_presentation_metric.go b/generated/stackstate_api/model_ordered_component_presentation_metric.go new file mode 100644 index 00000000..00f79185 --- /dev/null +++ b/generated/stackstate_api/model_ordered_component_presentation_metric.go @@ -0,0 +1,359 @@ +/* +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" +) + +// OrderedComponentPresentationMetric struct for OrderedComponentPresentationMetric +type OrderedComponentPresentationMetric struct { + MetricId string `json:"metricId" yaml:"metricId"` + Name *string `json:"name,omitempty" yaml:"name,omitempty"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + MetricQueries []PresentationMetricQuery `json:"metricQueries,omitempty" yaml:"metricQueries,omitempty"` + Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` + ChartType *ChartType `json:"chartType,omitempty" yaml:"chartType,omitempty"` + Alias *string `json:"alias,omitempty" yaml:"alias,omitempty"` + Order *float64 `json:"order,omitempty" yaml:"order,omitempty"` +} + +// NewOrderedComponentPresentationMetric instantiates a new OrderedComponentPresentationMetric 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 NewOrderedComponentPresentationMetric(metricId string) *OrderedComponentPresentationMetric { + this := OrderedComponentPresentationMetric{} + this.MetricId = metricId + return &this +} + +// NewOrderedComponentPresentationMetricWithDefaults instantiates a new OrderedComponentPresentationMetric 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 NewOrderedComponentPresentationMetricWithDefaults() *OrderedComponentPresentationMetric { + this := OrderedComponentPresentationMetric{} + return &this +} + +// GetMetricId returns the MetricId field value +func (o *OrderedComponentPresentationMetric) GetMetricId() string { + if o == nil { + var ret string + return ret + } + + return o.MetricId +} + +// GetMetricIdOk returns a tuple with the MetricId field value +// and a boolean to check if the value has been set. +func (o *OrderedComponentPresentationMetric) GetMetricIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MetricId, true +} + +// SetMetricId sets field value +func (o *OrderedComponentPresentationMetric) SetMetricId(v string) { + o.MetricId = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OrderedComponentPresentationMetric) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderedComponentPresentationMetric) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *OrderedComponentPresentationMetric) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *OrderedComponentPresentationMetric) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) SetDescription(v string) { + o.Description = &v +} + +// GetMetricQueries returns the MetricQueries field value if set, zero value otherwise. +func (o *OrderedComponentPresentationMetric) GetMetricQueries() []PresentationMetricQuery { + if o == nil || o.MetricQueries == nil { + var ret []PresentationMetricQuery + return ret + } + return o.MetricQueries +} + +// GetMetricQueriesOk returns a tuple with the MetricQueries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderedComponentPresentationMetric) GetMetricQueriesOk() ([]PresentationMetricQuery, bool) { + if o == nil || o.MetricQueries == nil { + return nil, false + } + return o.MetricQueries, true +} + +// HasMetricQueries returns a boolean if a field has been set. +func (o *OrderedComponentPresentationMetric) HasMetricQueries() bool { + if o != nil && o.MetricQueries != nil { + return true + } + + return false +} + +// SetMetricQueries gets a reference to the given []PresentationMetricQuery and assigns it to the MetricQueries field. +func (o *OrderedComponentPresentationMetric) SetMetricQueries(v []PresentationMetricQuery) { + o.MetricQueries = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) 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 *OrderedComponentPresentationMetric) SetUnit(v string) { + o.Unit = &v +} + +// GetChartType returns the ChartType field value if set, zero value otherwise. +func (o *OrderedComponentPresentationMetric) GetChartType() ChartType { + if o == nil || o.ChartType == nil { + var ret ChartType + return ret + } + return *o.ChartType +} + +// GetChartTypeOk returns a tuple with the ChartType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderedComponentPresentationMetric) GetChartTypeOk() (*ChartType, bool) { + if o == nil || o.ChartType == nil { + return nil, false + } + return o.ChartType, true +} + +// HasChartType returns a boolean if a field has been set. +func (o *OrderedComponentPresentationMetric) HasChartType() bool { + if o != nil && o.ChartType != nil { + return true + } + + return false +} + +// SetChartType gets a reference to the given ChartType and assigns it to the ChartType field. +func (o *OrderedComponentPresentationMetric) SetChartType(v ChartType) { + o.ChartType = &v +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *OrderedComponentPresentationMetric) GetAlias() string { + if o == nil || o.Alias == nil { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderedComponentPresentationMetric) GetAliasOk() (*string, bool) { + if o == nil || o.Alias == nil { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *OrderedComponentPresentationMetric) HasAlias() bool { + if o != nil && o.Alias != nil { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *OrderedComponentPresentationMetric) SetAlias(v string) { + o.Alias = &v +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *OrderedComponentPresentationMetric) GetOrder() float64 { + if o == nil || o.Order == nil { + var ret float64 + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderedComponentPresentationMetric) GetOrderOk() (*float64, bool) { + if o == nil || o.Order == nil { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *OrderedComponentPresentationMetric) HasOrder() bool { + if o != nil && o.Order != nil { + return true + } + + return false +} + +// SetOrder gets a reference to the given float64 and assigns it to the Order field. +func (o *OrderedComponentPresentationMetric) SetOrder(v float64) { + o.Order = &v +} + +func (o OrderedComponentPresentationMetric) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["metricId"] = o.MetricId + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.MetricQueries != nil { + toSerialize["metricQueries"] = o.MetricQueries + } + if o.Unit != nil { + toSerialize["unit"] = o.Unit + } + if o.ChartType != nil { + toSerialize["chartType"] = o.ChartType + } + if o.Alias != nil { + toSerialize["alias"] = o.Alias + } + if o.Order != nil { + toSerialize["order"] = o.Order + } + return json.Marshal(toSerialize) +} + +type NullableOrderedComponentPresentationMetric struct { + value *OrderedComponentPresentationMetric + isSet bool +} + +func (v NullableOrderedComponentPresentationMetric) Get() *OrderedComponentPresentationMetric { + return v.value +} + +func (v *NullableOrderedComponentPresentationMetric) Set(val *OrderedComponentPresentationMetric) { + v.value = val + v.isSet = true +} + +func (v NullableOrderedComponentPresentationMetric) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderedComponentPresentationMetric) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderedComponentPresentationMetric(val *OrderedComponentPresentationMetric) *NullableOrderedComponentPresentationMetric { + return &NullableOrderedComponentPresentationMetric{value: val, isSet: true} +} + +func (v NullableOrderedComponentPresentationMetric) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderedComponentPresentationMetric) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_ordered_component_presentation_metric_all_of.go b/generated/stackstate_api/model_ordered_component_presentation_metric_all_of.go new file mode 100644 index 00000000..56a8ed84 --- /dev/null +++ b/generated/stackstate_api/model_ordered_component_presentation_metric_all_of.go @@ -0,0 +1,114 @@ +/* +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" +) + +// OrderedComponentPresentationMetricAllOf struct for OrderedComponentPresentationMetricAllOf +type OrderedComponentPresentationMetricAllOf struct { + Order *float64 `json:"order,omitempty" yaml:"order,omitempty"` +} + +// NewOrderedComponentPresentationMetricAllOf instantiates a new OrderedComponentPresentationMetricAllOf 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 NewOrderedComponentPresentationMetricAllOf() *OrderedComponentPresentationMetricAllOf { + this := OrderedComponentPresentationMetricAllOf{} + return &this +} + +// NewOrderedComponentPresentationMetricAllOfWithDefaults instantiates a new OrderedComponentPresentationMetricAllOf 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 NewOrderedComponentPresentationMetricAllOfWithDefaults() *OrderedComponentPresentationMetricAllOf { + this := OrderedComponentPresentationMetricAllOf{} + return &this +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *OrderedComponentPresentationMetricAllOf) GetOrder() float64 { + if o == nil || o.Order == nil { + var ret float64 + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderedComponentPresentationMetricAllOf) GetOrderOk() (*float64, bool) { + if o == nil || o.Order == nil { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *OrderedComponentPresentationMetricAllOf) HasOrder() bool { + if o != nil && o.Order != nil { + return true + } + + return false +} + +// SetOrder gets a reference to the given float64 and assigns it to the Order field. +func (o *OrderedComponentPresentationMetricAllOf) SetOrder(v float64) { + o.Order = &v +} + +func (o OrderedComponentPresentationMetricAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Order != nil { + toSerialize["order"] = o.Order + } + return json.Marshal(toSerialize) +} + +type NullableOrderedComponentPresentationMetricAllOf struct { + value *OrderedComponentPresentationMetricAllOf + isSet bool +} + +func (v NullableOrderedComponentPresentationMetricAllOf) Get() *OrderedComponentPresentationMetricAllOf { + return v.value +} + +func (v *NullableOrderedComponentPresentationMetricAllOf) Set(val *OrderedComponentPresentationMetricAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableOrderedComponentPresentationMetricAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderedComponentPresentationMetricAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderedComponentPresentationMetricAllOf(val *OrderedComponentPresentationMetricAllOf) *NullableOrderedComponentPresentationMetricAllOf { + return &NullableOrderedComponentPresentationMetricAllOf{value: val, isSet: true} +} + +func (v NullableOrderedComponentPresentationMetricAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderedComponentPresentationMetricAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_otel_component_mapping.go b/generated/stackstate_api/model_otel_component_mapping.go index c4be746c..8e6bb895 100644 --- a/generated/stackstate_api/model_otel_component_mapping.go +++ b/generated/stackstate_api/model_otel_component_mapping.go @@ -25,13 +25,15 @@ type OtelComponentMapping struct { Output OtelComponentMappingOutput `json:"output" yaml:"output"` Vars []OtelVariableMapping `json:"vars,omitempty" yaml:"vars,omitempty"` ExpireAfter int64 `json:"expireAfter" yaml:"expireAfter"` + // Determines how much of a \"specialization\" this mapping is. Higher number means more specific. Used during component merge to pick the winning typeName / name when multiple mappings contribute to the same component identifier. + Specificity float64 `json:"specificity" yaml:"specificity"` } // NewOtelComponentMapping instantiates a new OtelComponentMapping 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 NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64) *OtelComponentMapping { +func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, specificity float64) *OtelComponentMapping { this := OtelComponentMapping{} this.Type = type_ this.Identifier = identifier @@ -39,6 +41,7 @@ func NewOtelComponentMapping(type_ string, identifier string, name string, input this.Input = input this.Output = output this.ExpireAfter = expireAfter + this.Specificity = specificity return &this } @@ -258,6 +261,30 @@ func (o *OtelComponentMapping) SetExpireAfter(v int64) { o.ExpireAfter = v } +// GetSpecificity returns the Specificity field value +func (o *OtelComponentMapping) GetSpecificity() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Specificity +} + +// GetSpecificityOk returns a tuple with the Specificity field value +// and a boolean to check if the value has been set. +func (o *OtelComponentMapping) GetSpecificityOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Specificity, true +} + +// SetSpecificity sets field value +func (o *OtelComponentMapping) SetSpecificity(v float64) { + o.Specificity = v +} + func (o OtelComponentMapping) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -284,6 +311,9 @@ func (o OtelComponentMapping) MarshalJSON() ([]byte, error) { if true { toSerialize["expireAfter"] = o.ExpireAfter } + if true { + toSerialize["specificity"] = o.Specificity + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_otel_component_mapping_output.go b/generated/stackstate_api/model_otel_component_mapping_output.go index 033d5cc6..6f5ee5ca 100644 --- a/generated/stackstate_api/model_otel_component_mapping_output.go +++ b/generated/stackstate_api/model_otel_component_mapping_output.go @@ -22,32 +22,20 @@ 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 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 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 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 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 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 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 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"` + TypeName string `json:"typeName" yaml:"typeName"` + Required *OtelComponentMappingFieldMapping `json:"required,omitempty" yaml:"required,omitempty"` + Optional *OtelComponentMappingFieldMapping `json:"optional,omitempty" yaml:"optional,omitempty"` } // NewOtelComponentMappingOutput instantiates a new OtelComponentMappingOutput 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 NewOtelComponentMappingOutput(identifier string, name string, typeName string, layerName string, domainName string) *OtelComponentMappingOutput { +func NewOtelComponentMappingOutput(identifier string, name string, typeName string) *OtelComponentMappingOutput { this := OtelComponentMappingOutput{} this.Identifier = identifier this.Name = name this.TypeName = typeName - this.LayerName = layerName - this.DomainName = domainName return &this } @@ -131,150 +119,6 @@ func (o *OtelComponentMappingOutput) SetTypeName(v string) { o.TypeName = v } -// GetTypeIdentifier returns the TypeIdentifier field value if set, zero value otherwise. -func (o *OtelComponentMappingOutput) GetTypeIdentifier() string { - if o == nil || o.TypeIdentifier == nil { - var ret string - return ret - } - return *o.TypeIdentifier -} - -// GetTypeIdentifierOk returns a tuple with the TypeIdentifier field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OtelComponentMappingOutput) GetTypeIdentifierOk() (*string, bool) { - if o == nil || o.TypeIdentifier == nil { - return nil, false - } - return o.TypeIdentifier, true -} - -// HasTypeIdentifier returns a boolean if a field has been set. -func (o *OtelComponentMappingOutput) HasTypeIdentifier() bool { - if o != nil && o.TypeIdentifier != nil { - return true - } - - return false -} - -// SetTypeIdentifier gets a reference to the given string and assigns it to the TypeIdentifier field. -func (o *OtelComponentMappingOutput) SetTypeIdentifier(v string) { - o.TypeIdentifier = &v -} - -// GetLayerName returns the LayerName field value -func (o *OtelComponentMappingOutput) GetLayerName() string { - if o == nil { - var ret string - return ret - } - - return o.LayerName -} - -// GetLayerNameOk returns a tuple with the LayerName field value -// and a boolean to check if the value has been set. -func (o *OtelComponentMappingOutput) GetLayerNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.LayerName, true -} - -// SetLayerName sets field value -func (o *OtelComponentMappingOutput) SetLayerName(v string) { - o.LayerName = v -} - -// GetLayerIdentifier returns the LayerIdentifier field value if set, zero value otherwise. -func (o *OtelComponentMappingOutput) GetLayerIdentifier() string { - if o == nil || o.LayerIdentifier == nil { - var ret string - return ret - } - return *o.LayerIdentifier -} - -// GetLayerIdentifierOk returns a tuple with the LayerIdentifier field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OtelComponentMappingOutput) GetLayerIdentifierOk() (*string, bool) { - if o == nil || o.LayerIdentifier == nil { - return nil, false - } - return o.LayerIdentifier, true -} - -// HasLayerIdentifier returns a boolean if a field has been set. -func (o *OtelComponentMappingOutput) HasLayerIdentifier() bool { - if o != nil && o.LayerIdentifier != nil { - return true - } - - return false -} - -// SetLayerIdentifier gets a reference to the given string and assigns it to the LayerIdentifier field. -func (o *OtelComponentMappingOutput) SetLayerIdentifier(v string) { - o.LayerIdentifier = &v -} - -// GetDomainName returns the DomainName field value -func (o *OtelComponentMappingOutput) GetDomainName() string { - if o == nil { - var ret string - return ret - } - - return o.DomainName -} - -// GetDomainNameOk returns a tuple with the DomainName field value -// and a boolean to check if the value has been set. -func (o *OtelComponentMappingOutput) GetDomainNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DomainName, true -} - -// SetDomainName sets field value -func (o *OtelComponentMappingOutput) SetDomainName(v string) { - o.DomainName = v -} - -// GetDomainIdentifier returns the DomainIdentifier field value if set, zero value otherwise. -func (o *OtelComponentMappingOutput) GetDomainIdentifier() string { - if o == nil || o.DomainIdentifier == nil { - var ret string - return ret - } - return *o.DomainIdentifier -} - -// GetDomainIdentifierOk returns a tuple with the DomainIdentifier field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OtelComponentMappingOutput) GetDomainIdentifierOk() (*string, bool) { - if o == nil || o.DomainIdentifier == nil { - return nil, false - } - return o.DomainIdentifier, true -} - -// HasDomainIdentifier returns a boolean if a field has been set. -func (o *OtelComponentMappingOutput) HasDomainIdentifier() bool { - if o != nil && o.DomainIdentifier != nil { - return true - } - - return false -} - -// SetDomainIdentifier gets a reference to the given string and assigns it to the DomainIdentifier field. -func (o *OtelComponentMappingOutput) SetDomainIdentifier(v string) { - o.DomainIdentifier = &v -} - // GetRequired returns the Required field value if set, zero value otherwise. func (o *OtelComponentMappingOutput) GetRequired() OtelComponentMappingFieldMapping { if o == nil || o.Required == nil { @@ -350,21 +194,6 @@ func (o OtelComponentMappingOutput) MarshalJSON() ([]byte, error) { if true { toSerialize["typeName"] = o.TypeName } - if o.TypeIdentifier != nil { - toSerialize["typeIdentifier"] = o.TypeIdentifier - } - if true { - toSerialize["layerName"] = o.LayerName - } - if o.LayerIdentifier != nil { - toSerialize["layerIdentifier"] = o.LayerIdentifier - } - if true { - toSerialize["domainName"] = o.DomainName - } - if o.DomainIdentifier != nil { - toSerialize["domainIdentifier"] = o.DomainIdentifier - } if o.Required != nil { toSerialize["required"] = o.Required } diff --git a/generated/stackstate_api/model_perspectives.go b/generated/stackstate_api/model_perspectives.go new file mode 100644 index 00000000..30648f5a --- /dev/null +++ b/generated/stackstate_api/model_perspectives.go @@ -0,0 +1,246 @@ +/* +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" +) + +// Perspectives The set of perspectives the frontend needs to render a view page in one response. Each optional field carries the per-perspective config; absence means the perspective is not available for this view. +type Perspectives struct { + // The resolved URN (ComponentPresentation identifier or legacy QueryView/ViewType URN). + Identifier string `json:"identifier" yaml:"identifier"` + // STQL query for this view. Used by the shared timeline, the events perspective, and the topology perspective. + TopologyQuery string `json:"topologyQuery" yaml:"topologyQuery"` + Overview map[string]interface{} `json:"overview,omitempty" yaml:"overview,omitempty"` + Topology *TopologyPerspective `json:"topology,omitempty" yaml:"topology,omitempty"` + Events map[string]interface{} `json:"events,omitempty" yaml:"events,omitempty"` +} + +// NewPerspectives instantiates a new Perspectives 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 NewPerspectives(identifier string, topologyQuery string) *Perspectives { + this := Perspectives{} + this.Identifier = identifier + this.TopologyQuery = topologyQuery + return &this +} + +// NewPerspectivesWithDefaults instantiates a new Perspectives 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 NewPerspectivesWithDefaults() *Perspectives { + this := Perspectives{} + return &this +} + +// GetIdentifier returns the Identifier field value +func (o *Perspectives) 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 *Perspectives) GetIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Identifier, true +} + +// SetIdentifier sets field value +func (o *Perspectives) SetIdentifier(v string) { + o.Identifier = v +} + +// GetTopologyQuery returns the TopologyQuery field value +func (o *Perspectives) GetTopologyQuery() string { + if o == nil { + var ret string + return ret + } + + return o.TopologyQuery +} + +// GetTopologyQueryOk returns a tuple with the TopologyQuery field value +// and a boolean to check if the value has been set. +func (o *Perspectives) GetTopologyQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TopologyQuery, true +} + +// SetTopologyQuery sets field value +func (o *Perspectives) SetTopologyQuery(v string) { + o.TopologyQuery = v +} + +// GetOverview returns the Overview field value if set, zero value otherwise. +func (o *Perspectives) GetOverview() map[string]interface{} { + if o == nil || o.Overview == nil { + var ret map[string]interface{} + return ret + } + return o.Overview +} + +// GetOverviewOk returns a tuple with the Overview field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Perspectives) GetOverviewOk() (map[string]interface{}, bool) { + if o == nil || o.Overview == nil { + return nil, false + } + return o.Overview, true +} + +// HasOverview returns a boolean if a field has been set. +func (o *Perspectives) HasOverview() bool { + if o != nil && o.Overview != nil { + return true + } + + return false +} + +// SetOverview gets a reference to the given map[string]interface{} and assigns it to the Overview field. +func (o *Perspectives) SetOverview(v map[string]interface{}) { + o.Overview = v +} + +// GetTopology returns the Topology field value if set, zero value otherwise. +func (o *Perspectives) GetTopology() TopologyPerspective { + if o == nil || o.Topology == nil { + var ret TopologyPerspective + return ret + } + return *o.Topology +} + +// GetTopologyOk returns a tuple with the Topology field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Perspectives) GetTopologyOk() (*TopologyPerspective, bool) { + if o == nil || o.Topology == nil { + return nil, false + } + return o.Topology, true +} + +// HasTopology returns a boolean if a field has been set. +func (o *Perspectives) HasTopology() bool { + if o != nil && o.Topology != nil { + return true + } + + return false +} + +// SetTopology gets a reference to the given TopologyPerspective and assigns it to the Topology field. +func (o *Perspectives) SetTopology(v TopologyPerspective) { + o.Topology = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *Perspectives) GetEvents() map[string]interface{} { + if o == nil || o.Events == nil { + var ret map[string]interface{} + return ret + } + return o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Perspectives) GetEventsOk() (map[string]interface{}, bool) { + if o == nil || o.Events == nil { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *Perspectives) HasEvents() bool { + if o != nil && o.Events != nil { + return true + } + + return false +} + +// SetEvents gets a reference to the given map[string]interface{} and assigns it to the Events field. +func (o *Perspectives) SetEvents(v map[string]interface{}) { + o.Events = v +} + +func (o Perspectives) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["identifier"] = o.Identifier + } + if true { + toSerialize["topologyQuery"] = o.TopologyQuery + } + if o.Overview != nil { + toSerialize["overview"] = o.Overview + } + if o.Topology != nil { + toSerialize["topology"] = o.Topology + } + if o.Events != nil { + toSerialize["events"] = o.Events + } + return json.Marshal(toSerialize) +} + +type NullablePerspectives struct { + value *Perspectives + isSet bool +} + +func (v NullablePerspectives) Get() *Perspectives { + return v.value +} + +func (v *NullablePerspectives) Set(val *Perspectives) { + v.value = val + v.isSet = true +} + +func (v NullablePerspectives) IsSet() bool { + return v.isSet +} + +func (v *NullablePerspectives) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePerspectives(val *Perspectives) *NullablePerspectives { + return &NullablePerspectives{value: val, isSet: true} +} + +func (v NullablePerspectives) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePerspectives) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_layout_api_error.go b/generated/stackstate_api/model_perspectives_api_error.go similarity index 51% rename from generated/stackstate_api/model_layout_api_error.go rename to generated/stackstate_api/model_perspectives_api_error.go index 252b8c4b..0915ace7 100644 --- a/generated/stackstate_api/model_layout_api_error.go +++ b/generated/stackstate_api/model_perspectives_api_error.go @@ -15,57 +15,31 @@ import ( "encoding/json" ) -// LayoutApiError struct for LayoutApiError -type LayoutApiError struct { - StatusCode string `json:"statusCode" yaml:"statusCode"` - Message string `json:"message" yaml:"message"` +// PerspectivesApiError struct for PerspectivesApiError +type PerspectivesApiError struct { + Message string `json:"message" yaml:"message"` } -// NewLayoutApiError instantiates a new LayoutApiError object +// NewPerspectivesApiError instantiates a new PerspectivesApiError 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 NewLayoutApiError(statusCode string, message string) *LayoutApiError { - this := LayoutApiError{} - this.StatusCode = statusCode +func NewPerspectivesApiError(message string) *PerspectivesApiError { + this := PerspectivesApiError{} this.Message = message return &this } -// NewLayoutApiErrorWithDefaults instantiates a new LayoutApiError object +// NewPerspectivesApiErrorWithDefaults instantiates a new PerspectivesApiError 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 NewLayoutApiErrorWithDefaults() *LayoutApiError { - this := LayoutApiError{} +func NewPerspectivesApiErrorWithDefaults() *PerspectivesApiError { + this := PerspectivesApiError{} return &this } -// GetStatusCode returns the StatusCode field value -func (o *LayoutApiError) GetStatusCode() string { - if o == nil { - var ret string - return ret - } - - return o.StatusCode -} - -// GetStatusCodeOk returns a tuple with the StatusCode field value -// and a boolean to check if the value has been set. -func (o *LayoutApiError) GetStatusCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.StatusCode, true -} - -// SetStatusCode sets field value -func (o *LayoutApiError) SetStatusCode(v string) { - o.StatusCode = v -} - // GetMessage returns the Message field value -func (o *LayoutApiError) GetMessage() string { +func (o *PerspectivesApiError) GetMessage() string { if o == nil { var ret string return ret @@ -76,7 +50,7 @@ func (o *LayoutApiError) GetMessage() string { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. -func (o *LayoutApiError) GetMessageOk() (*string, bool) { +func (o *PerspectivesApiError) GetMessageOk() (*string, bool) { if o == nil { return nil, false } @@ -84,53 +58,50 @@ func (o *LayoutApiError) GetMessageOk() (*string, bool) { } // SetMessage sets field value -func (o *LayoutApiError) SetMessage(v string) { +func (o *PerspectivesApiError) SetMessage(v string) { o.Message = v } -func (o LayoutApiError) MarshalJSON() ([]byte, error) { +func (o PerspectivesApiError) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} - if true { - toSerialize["statusCode"] = o.StatusCode - } if true { toSerialize["message"] = o.Message } return json.Marshal(toSerialize) } -type NullableLayoutApiError struct { - value *LayoutApiError +type NullablePerspectivesApiError struct { + value *PerspectivesApiError isSet bool } -func (v NullableLayoutApiError) Get() *LayoutApiError { +func (v NullablePerspectivesApiError) Get() *PerspectivesApiError { return v.value } -func (v *NullableLayoutApiError) Set(val *LayoutApiError) { +func (v *NullablePerspectivesApiError) Set(val *PerspectivesApiError) { v.value = val v.isSet = true } -func (v NullableLayoutApiError) IsSet() bool { +func (v NullablePerspectivesApiError) IsSet() bool { return v.isSet } -func (v *NullableLayoutApiError) Unset() { +func (v *NullablePerspectivesApiError) Unset() { v.value = nil v.isSet = false } -func NewNullableLayoutApiError(val *LayoutApiError) *NullableLayoutApiError { - return &NullableLayoutApiError{value: val, isSet: true} +func NewNullablePerspectivesApiError(val *PerspectivesApiError) *NullablePerspectivesApiError { + return &NullablePerspectivesApiError{value: val, isSet: true} } -func (v NullableLayoutApiError) MarshalJSON() ([]byte, error) { +func (v NullablePerspectivesApiError) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableLayoutApiError) UnmarshalJSON(src []byte) error { +func (v *NullablePerspectivesApiError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_presentation_definition.go b/generated/stackstate_api/model_presentation_definition.go index 51c4e87d..64379fd5 100644 --- a/generated/stackstate_api/model_presentation_definition.go +++ b/generated/stackstate_api/model_presentation_definition.go @@ -15,12 +15,15 @@ import ( "encoding/json" ) -// 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. +// PresentationDefinition Component presentation definition. If multiple ComponentPresentations match, `filters` are merged by filter identity with the most specific presentation winning. Scalar fields like `icon` and `topology` follow most-specific-wins semantics across matching presentations. Absence of `topology` means the Topology perspective is not available for this presentation. 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"` - Highlight *PresentationHighlight `json:"highlight,omitempty" yaml:"highlight,omitempty"` - Filters []ComponentPresentationFilter `json:"filters,omitempty" yaml:"filters,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"` + Summary *PresentationSummary `json:"summary,omitempty" yaml:"summary,omitempty"` + Filters []ComponentPresentationFilter `json:"filters,omitempty" yaml:"filters,omitempty"` + MetricPerspective *PresentationMetricPerspective `json:"metricPerspective,omitempty" yaml:"metricPerspective,omitempty"` + Topology *TopologySettings `json:"topology,omitempty" yaml:"topology,omitempty"` } // NewPresentationDefinition instantiates a new PresentationDefinition object @@ -136,6 +139,38 @@ func (o *PresentationDefinition) SetHighlight(v PresentationHighlight) { o.Highlight = &v } +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *PresentationDefinition) GetSummary() PresentationSummary { + if o == nil || o.Summary == nil { + var ret PresentationSummary + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationDefinition) GetSummaryOk() (*PresentationSummary, bool) { + if o == nil || o.Summary == nil { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *PresentationDefinition) HasSummary() bool { + if o != nil && o.Summary != nil { + return true + } + + return false +} + +// SetSummary gets a reference to the given PresentationSummary and assigns it to the Summary field. +func (o *PresentationDefinition) SetSummary(v PresentationSummary) { + o.Summary = &v +} + // GetFilters returns the Filters field value if set, zero value otherwise. func (o *PresentationDefinition) GetFilters() []ComponentPresentationFilter { if o == nil || o.Filters == nil { @@ -168,6 +203,70 @@ func (o *PresentationDefinition) SetFilters(v []ComponentPresentationFilter) { o.Filters = v } +// GetMetricPerspective returns the MetricPerspective field value if set, zero value otherwise. +func (o *PresentationDefinition) GetMetricPerspective() PresentationMetricPerspective { + if o == nil || o.MetricPerspective == nil { + var ret PresentationMetricPerspective + return ret + } + return *o.MetricPerspective +} + +// GetMetricPerspectiveOk returns a tuple with the MetricPerspective field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationDefinition) GetMetricPerspectiveOk() (*PresentationMetricPerspective, bool) { + if o == nil || o.MetricPerspective == nil { + return nil, false + } + return o.MetricPerspective, true +} + +// HasMetricPerspective returns a boolean if a field has been set. +func (o *PresentationDefinition) HasMetricPerspective() bool { + if o != nil && o.MetricPerspective != nil { + return true + } + + return false +} + +// SetMetricPerspective gets a reference to the given PresentationMetricPerspective and assigns it to the MetricPerspective field. +func (o *PresentationDefinition) SetMetricPerspective(v PresentationMetricPerspective) { + o.MetricPerspective = &v +} + +// GetTopology returns the Topology field value if set, zero value otherwise. +func (o *PresentationDefinition) GetTopology() TopologySettings { + if o == nil || o.Topology == nil { + var ret TopologySettings + return ret + } + return *o.Topology +} + +// GetTopologyOk returns a tuple with the Topology field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationDefinition) GetTopologyOk() (*TopologySettings, bool) { + if o == nil || o.Topology == nil { + return nil, false + } + return o.Topology, true +} + +// HasTopology returns a boolean if a field has been set. +func (o *PresentationDefinition) HasTopology() bool { + if o != nil && o.Topology != nil { + return true + } + + return false +} + +// SetTopology gets a reference to the given TopologySettings and assigns it to the Topology field. +func (o *PresentationDefinition) SetTopology(v TopologySettings) { + o.Topology = &v +} + func (o PresentationDefinition) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Icon != nil { @@ -179,9 +278,18 @@ func (o PresentationDefinition) MarshalJSON() ([]byte, error) { if o.Highlight != nil { toSerialize["highlight"] = o.Highlight } + if o.Summary != nil { + toSerialize["summary"] = o.Summary + } if o.Filters != nil { toSerialize["filters"] = o.Filters } + if o.MetricPerspective != nil { + toSerialize["metricPerspective"] = o.MetricPerspective + } + if o.Topology != nil { + toSerialize["topology"] = o.Topology + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_presentation_filters_response.go b/generated/stackstate_api/model_presentation_filters_response.go index 79af4826..86f9b675 100644 --- a/generated/stackstate_api/model_presentation_filters_response.go +++ b/generated/stackstate_api/model_presentation_filters_response.go @@ -17,6 +17,8 @@ import ( // PresentationFiltersResponse struct for PresentationFiltersResponse type PresentationFiltersResponse struct { + // Whether topology filters are enabled for this presentation. + TopologyFilters bool `json:"topologyFilters" yaml:"topologyFilters"` // 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. @@ -27,8 +29,9 @@ type PresentationFiltersResponse struct { // 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 { +func NewPresentationFiltersResponse(topologyFilters bool, filters []PresentationFilter, menuSection string) *PresentationFiltersResponse { this := PresentationFiltersResponse{} + this.TopologyFilters = topologyFilters this.Filters = filters this.MenuSection = menuSection return &this @@ -42,6 +45,30 @@ func NewPresentationFiltersResponseWithDefaults() *PresentationFiltersResponse { return &this } +// GetTopologyFilters returns the TopologyFilters field value +func (o *PresentationFiltersResponse) GetTopologyFilters() bool { + if o == nil { + var ret bool + return ret + } + + return o.TopologyFilters +} + +// GetTopologyFiltersOk returns a tuple with the TopologyFilters field value +// and a boolean to check if the value has been set. +func (o *PresentationFiltersResponse) GetTopologyFiltersOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.TopologyFilters, true +} + +// SetTopologyFilters sets field value +func (o *PresentationFiltersResponse) SetTopologyFilters(v bool) { + o.TopologyFilters = v +} + // GetFilters returns the Filters field value func (o *PresentationFiltersResponse) GetFilters() []PresentationFilter { if o == nil { @@ -92,6 +119,9 @@ func (o *PresentationFiltersResponse) SetMenuSection(v string) { func (o PresentationFiltersResponse) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { + toSerialize["topologyFilters"] = o.TopologyFilters + } if true { toSerialize["filters"] = o.Filters } diff --git a/generated/stackstate_api/model_presentation_highlight.go b/generated/stackstate_api/model_presentation_highlight.go index f927807a..8be3b6af 100644 --- a/generated/stackstate_api/model_presentation_highlight.go +++ b/generated/stackstate_api/model_presentation_highlight.go @@ -17,11 +17,12 @@ import ( // PresentationHighlight Highlight presentation definition. The `fields` define the fields to show in the highlight page. If multiple ComponentPresentations match, fields are merged by `fieldId` according to binding rank. Related resources follow the same merge semantics using `resourceId` as the identity key. type PresentationHighlight struct { - Title string `json:"title" yaml:"title"` - Fields []PresentationHighlightField `json:"fields" yaml:"fields"` - Provisioning *PresentationHighlightProvisioning `json:"provisioning,omitempty" yaml:"provisioning,omitempty"` - RelatedResources []PresentationRelatedResource `json:"relatedResources,omitempty" yaml:"relatedResources,omitempty"` - Events *PresentationHighlightEvents `json:"events,omitempty" yaml:"events,omitempty"` + Title string `json:"title" yaml:"title"` + Fields []PresentationHighlightField `json:"fields" yaml:"fields"` + Provisioning *PresentationHighlightProvisioning `json:"provisioning,omitempty" yaml:"provisioning,omitempty"` + RelatedResources []PresentationRelatedResource `json:"relatedResources,omitempty" yaml:"relatedResources,omitempty"` + Events *PresentationHighlightEvents `json:"events,omitempty" yaml:"events,omitempty"` + Metrics []PresentationHighlightMetricsSection `json:"metrics,omitempty" yaml:"metrics,omitempty"` } // NewPresentationHighlight instantiates a new PresentationHighlight object @@ -187,6 +188,38 @@ func (o *PresentationHighlight) SetEvents(v PresentationHighlightEvents) { o.Events = &v } +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *PresentationHighlight) GetMetrics() []PresentationHighlightMetricsSection { + if o == nil || o.Metrics == nil { + var ret []PresentationHighlightMetricsSection + return ret + } + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationHighlight) GetMetricsOk() ([]PresentationHighlightMetricsSection, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *PresentationHighlight) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given []PresentationHighlightMetricsSection and assigns it to the Metrics field. +func (o *PresentationHighlight) SetMetrics(v []PresentationHighlightMetricsSection) { + o.Metrics = v +} + func (o PresentationHighlight) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -204,6 +237,9 @@ func (o PresentationHighlight) MarshalJSON() ([]byte, error) { if o.Events != nil { toSerialize["events"] = o.Events } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_presentation_highlight_metrics_section.go b/generated/stackstate_api/model_presentation_highlight_metrics_section.go new file mode 100644 index 00000000..c31dbd74 --- /dev/null +++ b/generated/stackstate_api/model_presentation_highlight_metrics_section.go @@ -0,0 +1,273 @@ +/* +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" +) + +// PresentationHighlightMetricsSection struct for PresentationHighlightMetricsSection +type PresentationHighlightMetricsSection struct { + SectionId string `json:"sectionId" yaml:"sectionId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + DefaultExpanded *bool `json:"defaultExpanded,omitempty" yaml:"defaultExpanded,omitempty"` + Order float64 `json:"order" yaml:"order"` + Metrics []OrderedComponentPresentationMetric `json:"metrics,omitempty" yaml:"metrics,omitempty"` +} + +// NewPresentationHighlightMetricsSection instantiates a new PresentationHighlightMetricsSection 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 NewPresentationHighlightMetricsSection(sectionId string, title string, order float64) *PresentationHighlightMetricsSection { + this := PresentationHighlightMetricsSection{} + this.SectionId = sectionId + this.Title = title + this.Order = order + return &this +} + +// NewPresentationHighlightMetricsSectionWithDefaults instantiates a new PresentationHighlightMetricsSection 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 NewPresentationHighlightMetricsSectionWithDefaults() *PresentationHighlightMetricsSection { + this := PresentationHighlightMetricsSection{} + return &this +} + +// GetSectionId returns the SectionId field value +func (o *PresentationHighlightMetricsSection) GetSectionId() string { + if o == nil { + var ret string + return ret + } + + return o.SectionId +} + +// GetSectionIdOk returns a tuple with the SectionId field value +// and a boolean to check if the value has been set. +func (o *PresentationHighlightMetricsSection) GetSectionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SectionId, true +} + +// SetSectionId sets field value +func (o *PresentationHighlightMetricsSection) SetSectionId(v string) { + o.SectionId = v +} + +// GetTitle returns the Title field value +func (o *PresentationHighlightMetricsSection) 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 *PresentationHighlightMetricsSection) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *PresentationHighlightMetricsSection) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PresentationHighlightMetricsSection) 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 *PresentationHighlightMetricsSection) 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 *PresentationHighlightMetricsSection) 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 *PresentationHighlightMetricsSection) SetDescription(v string) { + o.Description = &v +} + +// GetDefaultExpanded returns the DefaultExpanded field value if set, zero value otherwise. +func (o *PresentationHighlightMetricsSection) GetDefaultExpanded() bool { + if o == nil || o.DefaultExpanded == nil { + var ret bool + return ret + } + return *o.DefaultExpanded +} + +// GetDefaultExpandedOk returns a tuple with the DefaultExpanded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationHighlightMetricsSection) GetDefaultExpandedOk() (*bool, bool) { + if o == nil || o.DefaultExpanded == nil { + return nil, false + } + return o.DefaultExpanded, true +} + +// HasDefaultExpanded returns a boolean if a field has been set. +func (o *PresentationHighlightMetricsSection) HasDefaultExpanded() bool { + if o != nil && o.DefaultExpanded != nil { + return true + } + + return false +} + +// SetDefaultExpanded gets a reference to the given bool and assigns it to the DefaultExpanded field. +func (o *PresentationHighlightMetricsSection) SetDefaultExpanded(v bool) { + o.DefaultExpanded = &v +} + +// GetOrder returns the Order field value +func (o *PresentationHighlightMetricsSection) 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 *PresentationHighlightMetricsSection) GetOrderOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Order, true +} + +// SetOrder sets field value +func (o *PresentationHighlightMetricsSection) SetOrder(v float64) { + o.Order = v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *PresentationHighlightMetricsSection) GetMetrics() []OrderedComponentPresentationMetric { + if o == nil || o.Metrics == nil { + var ret []OrderedComponentPresentationMetric + return ret + } + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationHighlightMetricsSection) GetMetricsOk() ([]OrderedComponentPresentationMetric, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *PresentationHighlightMetricsSection) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given []OrderedComponentPresentationMetric and assigns it to the Metrics field. +func (o *PresentationHighlightMetricsSection) SetMetrics(v []OrderedComponentPresentationMetric) { + o.Metrics = v +} + +func (o PresentationHighlightMetricsSection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["sectionId"] = o.SectionId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.DefaultExpanded != nil { + toSerialize["defaultExpanded"] = o.DefaultExpanded + } + if true { + toSerialize["order"] = o.Order + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + return json.Marshal(toSerialize) +} + +type NullablePresentationHighlightMetricsSection struct { + value *PresentationHighlightMetricsSection + isSet bool +} + +func (v NullablePresentationHighlightMetricsSection) Get() *PresentationHighlightMetricsSection { + return v.value +} + +func (v *NullablePresentationHighlightMetricsSection) Set(val *PresentationHighlightMetricsSection) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationHighlightMetricsSection) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationHighlightMetricsSection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationHighlightMetricsSection(val *PresentationHighlightMetricsSection) *NullablePresentationHighlightMetricsSection { + return &NullablePresentationHighlightMetricsSection{value: val, isSet: true} +} + +func (v NullablePresentationHighlightMetricsSection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationHighlightMetricsSection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_highlight_provisioning.go b/generated/stackstate_api/model_presentation_highlight_provisioning.go index ff5cf900..f1463296 100644 --- a/generated/stackstate_api/model_presentation_highlight_provisioning.go +++ b/generated/stackstate_api/model_presentation_highlight_provisioning.go @@ -15,12 +15,12 @@ import ( "encoding/json" ) -// PresentationHighlightProvisioning Provisioning section of a component in the highlight presentation. The `externalComponentSelector` field is used to identify the external component with provisioning details for this component. +// PresentationHighlightProvisioning Provisioning section of a component in the highlight presentation. The `topologySourceSelector` field is used to identify the external component with provisioning details for this component. type PresentationHighlightProvisioning struct { // Cel expression that selects the external component with provisioning details - ExternalComponentSelector *string `json:"externalComponentSelector,omitempty" yaml:"externalComponentSelector,omitempty"` - ShowConfiguration *bool `json:"showConfiguration,omitempty" yaml:"showConfiguration,omitempty"` - ShowStatus *bool `json:"showStatus,omitempty" yaml:"showStatus,omitempty"` + TopologySourceSelector *string `json:"topologySourceSelector,omitempty" yaml:"topologySourceSelector,omitempty"` + ShowConfiguration *bool `json:"showConfiguration,omitempty" yaml:"showConfiguration,omitempty"` + ShowStatus *bool `json:"showStatus,omitempty" yaml:"showStatus,omitempty"` } // NewPresentationHighlightProvisioning instantiates a new PresentationHighlightProvisioning object @@ -40,36 +40,36 @@ func NewPresentationHighlightProvisioningWithDefaults() *PresentationHighlightPr return &this } -// GetExternalComponentSelector returns the ExternalComponentSelector field value if set, zero value otherwise. -func (o *PresentationHighlightProvisioning) GetExternalComponentSelector() string { - if o == nil || o.ExternalComponentSelector == nil { +// GetTopologySourceSelector returns the TopologySourceSelector field value if set, zero value otherwise. +func (o *PresentationHighlightProvisioning) GetTopologySourceSelector() string { + if o == nil || o.TopologySourceSelector == nil { var ret string return ret } - return *o.ExternalComponentSelector + return *o.TopologySourceSelector } -// GetExternalComponentSelectorOk returns a tuple with the ExternalComponentSelector field value if set, nil otherwise +// GetTopologySourceSelectorOk returns a tuple with the TopologySourceSelector field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PresentationHighlightProvisioning) GetExternalComponentSelectorOk() (*string, bool) { - if o == nil || o.ExternalComponentSelector == nil { +func (o *PresentationHighlightProvisioning) GetTopologySourceSelectorOk() (*string, bool) { + if o == nil || o.TopologySourceSelector == nil { return nil, false } - return o.ExternalComponentSelector, true + return o.TopologySourceSelector, true } -// HasExternalComponentSelector returns a boolean if a field has been set. -func (o *PresentationHighlightProvisioning) HasExternalComponentSelector() bool { - if o != nil && o.ExternalComponentSelector != nil { +// HasTopologySourceSelector returns a boolean if a field has been set. +func (o *PresentationHighlightProvisioning) HasTopologySourceSelector() bool { + if o != nil && o.TopologySourceSelector != nil { return true } return false } -// SetExternalComponentSelector gets a reference to the given string and assigns it to the ExternalComponentSelector field. -func (o *PresentationHighlightProvisioning) SetExternalComponentSelector(v string) { - o.ExternalComponentSelector = &v +// SetTopologySourceSelector gets a reference to the given string and assigns it to the TopologySourceSelector field. +func (o *PresentationHighlightProvisioning) SetTopologySourceSelector(v string) { + o.TopologySourceSelector = &v } // GetShowConfiguration returns the ShowConfiguration field value if set, zero value otherwise. @@ -138,8 +138,8 @@ func (o *PresentationHighlightProvisioning) SetShowStatus(v bool) { func (o PresentationHighlightProvisioning) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} - if o.ExternalComponentSelector != nil { - toSerialize["externalComponentSelector"] = o.ExternalComponentSelector + if o.TopologySourceSelector != nil { + toSerialize["topologySourceSelector"] = o.TopologySourceSelector } if o.ShowConfiguration != nil { toSerialize["showConfiguration"] = o.ShowConfiguration diff --git a/generated/stackstate_api/model_presentation_metric_perspective.go b/generated/stackstate_api/model_presentation_metric_perspective.go new file mode 100644 index 00000000..faaa4fc9 --- /dev/null +++ b/generated/stackstate_api/model_presentation_metric_perspective.go @@ -0,0 +1,107 @@ +/* +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" +) + +// PresentationMetricPerspective struct for PresentationMetricPerspective +type PresentationMetricPerspective struct { + Tabs []PresentationMetricPerspectiveTab `json:"tabs" yaml:"tabs"` +} + +// NewPresentationMetricPerspective instantiates a new PresentationMetricPerspective 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 NewPresentationMetricPerspective(tabs []PresentationMetricPerspectiveTab) *PresentationMetricPerspective { + this := PresentationMetricPerspective{} + this.Tabs = tabs + return &this +} + +// NewPresentationMetricPerspectiveWithDefaults instantiates a new PresentationMetricPerspective 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 NewPresentationMetricPerspectiveWithDefaults() *PresentationMetricPerspective { + this := PresentationMetricPerspective{} + return &this +} + +// GetTabs returns the Tabs field value +func (o *PresentationMetricPerspective) GetTabs() []PresentationMetricPerspectiveTab { + if o == nil { + var ret []PresentationMetricPerspectiveTab + return ret + } + + return o.Tabs +} + +// GetTabsOk returns a tuple with the Tabs field value +// and a boolean to check if the value has been set. +func (o *PresentationMetricPerspective) GetTabsOk() ([]PresentationMetricPerspectiveTab, bool) { + if o == nil { + return nil, false + } + return o.Tabs, true +} + +// SetTabs sets field value +func (o *PresentationMetricPerspective) SetTabs(v []PresentationMetricPerspectiveTab) { + o.Tabs = v +} + +func (o PresentationMetricPerspective) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["tabs"] = o.Tabs + } + return json.Marshal(toSerialize) +} + +type NullablePresentationMetricPerspective struct { + value *PresentationMetricPerspective + isSet bool +} + +func (v NullablePresentationMetricPerspective) Get() *PresentationMetricPerspective { + return v.value +} + +func (v *NullablePresentationMetricPerspective) Set(val *PresentationMetricPerspective) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationMetricPerspective) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationMetricPerspective) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationMetricPerspective(val *PresentationMetricPerspective) *NullablePresentationMetricPerspective { + return &NullablePresentationMetricPerspective{value: val, isSet: true} +} + +func (v NullablePresentationMetricPerspective) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationMetricPerspective) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_metric_perspective_section.go b/generated/stackstate_api/model_presentation_metric_perspective_section.go new file mode 100644 index 00000000..9617e57f --- /dev/null +++ b/generated/stackstate_api/model_presentation_metric_perspective_section.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" +) + +// PresentationMetricPerspectiveSection struct for PresentationMetricPerspectiveSection +type PresentationMetricPerspectiveSection struct { + SectionId string `json:"sectionId" yaml:"sectionId"` + Title string `json:"title" yaml:"title"` + Order float64 `json:"order" yaml:"order"` + Metrics []OrderedComponentPresentationMetric `json:"metrics,omitempty" yaml:"metrics,omitempty"` +} + +// NewPresentationMetricPerspectiveSection instantiates a new PresentationMetricPerspectiveSection 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 NewPresentationMetricPerspectiveSection(sectionId string, title string, order float64) *PresentationMetricPerspectiveSection { + this := PresentationMetricPerspectiveSection{} + this.SectionId = sectionId + this.Title = title + this.Order = order + return &this +} + +// NewPresentationMetricPerspectiveSectionWithDefaults instantiates a new PresentationMetricPerspectiveSection 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 NewPresentationMetricPerspectiveSectionWithDefaults() *PresentationMetricPerspectiveSection { + this := PresentationMetricPerspectiveSection{} + return &this +} + +// GetSectionId returns the SectionId field value +func (o *PresentationMetricPerspectiveSection) GetSectionId() string { + if o == nil { + var ret string + return ret + } + + return o.SectionId +} + +// GetSectionIdOk returns a tuple with the SectionId field value +// and a boolean to check if the value has been set. +func (o *PresentationMetricPerspectiveSection) GetSectionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SectionId, true +} + +// SetSectionId sets field value +func (o *PresentationMetricPerspectiveSection) SetSectionId(v string) { + o.SectionId = v +} + +// GetTitle returns the Title field value +func (o *PresentationMetricPerspectiveSection) 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 *PresentationMetricPerspectiveSection) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *PresentationMetricPerspectiveSection) SetTitle(v string) { + o.Title = v +} + +// GetOrder returns the Order field value +func (o *PresentationMetricPerspectiveSection) 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 *PresentationMetricPerspectiveSection) GetOrderOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Order, true +} + +// SetOrder sets field value +func (o *PresentationMetricPerspectiveSection) SetOrder(v float64) { + o.Order = v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *PresentationMetricPerspectiveSection) GetMetrics() []OrderedComponentPresentationMetric { + if o == nil || o.Metrics == nil { + var ret []OrderedComponentPresentationMetric + return ret + } + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationMetricPerspectiveSection) GetMetricsOk() ([]OrderedComponentPresentationMetric, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *PresentationMetricPerspectiveSection) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given []OrderedComponentPresentationMetric and assigns it to the Metrics field. +func (o *PresentationMetricPerspectiveSection) SetMetrics(v []OrderedComponentPresentationMetric) { + o.Metrics = v +} + +func (o PresentationMetricPerspectiveSection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["sectionId"] = o.SectionId + } + if true { + toSerialize["title"] = o.Title + } + if true { + toSerialize["order"] = o.Order + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + return json.Marshal(toSerialize) +} + +type NullablePresentationMetricPerspectiveSection struct { + value *PresentationMetricPerspectiveSection + isSet bool +} + +func (v NullablePresentationMetricPerspectiveSection) Get() *PresentationMetricPerspectiveSection { + return v.value +} + +func (v *NullablePresentationMetricPerspectiveSection) Set(val *PresentationMetricPerspectiveSection) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationMetricPerspectiveSection) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationMetricPerspectiveSection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationMetricPerspectiveSection(val *PresentationMetricPerspectiveSection) *NullablePresentationMetricPerspectiveSection { + return &NullablePresentationMetricPerspectiveSection{value: val, isSet: true} +} + +func (v NullablePresentationMetricPerspectiveSection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationMetricPerspectiveSection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_metric_perspective_tab.go b/generated/stackstate_api/model_presentation_metric_perspective_tab.go new file mode 100644 index 00000000..056d0940 --- /dev/null +++ b/generated/stackstate_api/model_presentation_metric_perspective_tab.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" +) + +// PresentationMetricPerspectiveTab struct for PresentationMetricPerspectiveTab +type PresentationMetricPerspectiveTab struct { + TabId string `json:"tabId" yaml:"tabId"` + Title string `json:"title" yaml:"title"` + Order float64 `json:"order" yaml:"order"` + Sections []PresentationMetricPerspectiveSection `json:"sections,omitempty" yaml:"sections,omitempty"` +} + +// NewPresentationMetricPerspectiveTab instantiates a new PresentationMetricPerspectiveTab 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 NewPresentationMetricPerspectiveTab(tabId string, title string, order float64) *PresentationMetricPerspectiveTab { + this := PresentationMetricPerspectiveTab{} + this.TabId = tabId + this.Title = title + this.Order = order + return &this +} + +// NewPresentationMetricPerspectiveTabWithDefaults instantiates a new PresentationMetricPerspectiveTab 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 NewPresentationMetricPerspectiveTabWithDefaults() *PresentationMetricPerspectiveTab { + this := PresentationMetricPerspectiveTab{} + return &this +} + +// GetTabId returns the TabId field value +func (o *PresentationMetricPerspectiveTab) GetTabId() string { + if o == nil { + var ret string + return ret + } + + return o.TabId +} + +// GetTabIdOk returns a tuple with the TabId field value +// and a boolean to check if the value has been set. +func (o *PresentationMetricPerspectiveTab) GetTabIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TabId, true +} + +// SetTabId sets field value +func (o *PresentationMetricPerspectiveTab) SetTabId(v string) { + o.TabId = v +} + +// GetTitle returns the Title field value +func (o *PresentationMetricPerspectiveTab) 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 *PresentationMetricPerspectiveTab) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *PresentationMetricPerspectiveTab) SetTitle(v string) { + o.Title = v +} + +// GetOrder returns the Order field value +func (o *PresentationMetricPerspectiveTab) 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 *PresentationMetricPerspectiveTab) GetOrderOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Order, true +} + +// SetOrder sets field value +func (o *PresentationMetricPerspectiveTab) SetOrder(v float64) { + o.Order = v +} + +// GetSections returns the Sections field value if set, zero value otherwise. +func (o *PresentationMetricPerspectiveTab) GetSections() []PresentationMetricPerspectiveSection { + if o == nil || o.Sections == nil { + var ret []PresentationMetricPerspectiveSection + return ret + } + return o.Sections +} + +// GetSectionsOk returns a tuple with the Sections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationMetricPerspectiveTab) GetSectionsOk() ([]PresentationMetricPerspectiveSection, bool) { + if o == nil || o.Sections == nil { + return nil, false + } + return o.Sections, true +} + +// HasSections returns a boolean if a field has been set. +func (o *PresentationMetricPerspectiveTab) HasSections() bool { + if o != nil && o.Sections != nil { + return true + } + + return false +} + +// SetSections gets a reference to the given []PresentationMetricPerspectiveSection and assigns it to the Sections field. +func (o *PresentationMetricPerspectiveTab) SetSections(v []PresentationMetricPerspectiveSection) { + o.Sections = v +} + +func (o PresentationMetricPerspectiveTab) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["tabId"] = o.TabId + } + if true { + toSerialize["title"] = o.Title + } + if true { + toSerialize["order"] = o.Order + } + if o.Sections != nil { + toSerialize["sections"] = o.Sections + } + return json.Marshal(toSerialize) +} + +type NullablePresentationMetricPerspectiveTab struct { + value *PresentationMetricPerspectiveTab + isSet bool +} + +func (v NullablePresentationMetricPerspectiveTab) Get() *PresentationMetricPerspectiveTab { + return v.value +} + +func (v *NullablePresentationMetricPerspectiveTab) Set(val *PresentationMetricPerspectiveTab) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationMetricPerspectiveTab) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationMetricPerspectiveTab) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationMetricPerspectiveTab(val *PresentationMetricPerspectiveTab) *NullablePresentationMetricPerspectiveTab { + return &NullablePresentationMetricPerspectiveTab{value: val, isSet: true} +} + +func (v NullablePresentationMetricPerspectiveTab) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationMetricPerspectiveTab) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_metric_query.go b/generated/stackstate_api/model_presentation_metric_query.go new file mode 100644 index 00000000..91cdc15d --- /dev/null +++ b/generated/stackstate_api/model_presentation_metric_query.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" +) + +// PresentationMetricQuery struct for PresentationMetricQuery +type PresentationMetricQuery struct { + Expression string `json:"expression" yaml:"expression"` + Alias string `json:"alias" yaml:"alias"` + ComponentIdentifierTemplate *string `json:"componentIdentifierTemplate,omitempty" yaml:"componentIdentifierTemplate,omitempty"` + Primary *bool `json:"primary,omitempty" yaml:"primary,omitempty"` +} + +// NewPresentationMetricQuery instantiates a new PresentationMetricQuery 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 NewPresentationMetricQuery(expression string, alias string) *PresentationMetricQuery { + this := PresentationMetricQuery{} + this.Expression = expression + this.Alias = alias + return &this +} + +// NewPresentationMetricQueryWithDefaults instantiates a new PresentationMetricQuery 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 NewPresentationMetricQueryWithDefaults() *PresentationMetricQuery { + this := PresentationMetricQuery{} + return &this +} + +// GetExpression returns the Expression field value +func (o *PresentationMetricQuery) GetExpression() string { + if o == nil { + var ret string + return ret + } + + return o.Expression +} + +// GetExpressionOk returns a tuple with the Expression field value +// and a boolean to check if the value has been set. +func (o *PresentationMetricQuery) GetExpressionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expression, true +} + +// SetExpression sets field value +func (o *PresentationMetricQuery) SetExpression(v string) { + o.Expression = v +} + +// GetAlias returns the Alias field value +func (o *PresentationMetricQuery) GetAlias() string { + if o == nil { + var ret string + return ret + } + + return o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value +// and a boolean to check if the value has been set. +func (o *PresentationMetricQuery) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Alias, true +} + +// SetAlias sets field value +func (o *PresentationMetricQuery) SetAlias(v string) { + o.Alias = v +} + +// GetComponentIdentifierTemplate returns the ComponentIdentifierTemplate field value if set, zero value otherwise. +func (o *PresentationMetricQuery) GetComponentIdentifierTemplate() string { + if o == nil || o.ComponentIdentifierTemplate == nil { + var ret string + return ret + } + return *o.ComponentIdentifierTemplate +} + +// GetComponentIdentifierTemplateOk returns a tuple with the ComponentIdentifierTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationMetricQuery) GetComponentIdentifierTemplateOk() (*string, bool) { + if o == nil || o.ComponentIdentifierTemplate == nil { + return nil, false + } + return o.ComponentIdentifierTemplate, true +} + +// HasComponentIdentifierTemplate returns a boolean if a field has been set. +func (o *PresentationMetricQuery) HasComponentIdentifierTemplate() bool { + if o != nil && o.ComponentIdentifierTemplate != nil { + return true + } + + return false +} + +// SetComponentIdentifierTemplate gets a reference to the given string and assigns it to the ComponentIdentifierTemplate field. +func (o *PresentationMetricQuery) SetComponentIdentifierTemplate(v string) { + o.ComponentIdentifierTemplate = &v +} + +// GetPrimary returns the Primary field value if set, zero value otherwise. +func (o *PresentationMetricQuery) GetPrimary() bool { + if o == nil || o.Primary == nil { + var ret bool + return ret + } + return *o.Primary +} + +// GetPrimaryOk returns a tuple with the Primary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationMetricQuery) GetPrimaryOk() (*bool, bool) { + if o == nil || o.Primary == nil { + return nil, false + } + return o.Primary, true +} + +// HasPrimary returns a boolean if a field has been set. +func (o *PresentationMetricQuery) HasPrimary() bool { + if o != nil && o.Primary != nil { + return true + } + + return false +} + +// SetPrimary gets a reference to the given bool and assigns it to the Primary field. +func (o *PresentationMetricQuery) SetPrimary(v bool) { + o.Primary = &v +} + +func (o PresentationMetricQuery) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["expression"] = o.Expression + } + if true { + toSerialize["alias"] = o.Alias + } + if o.ComponentIdentifierTemplate != nil { + toSerialize["componentIdentifierTemplate"] = o.ComponentIdentifierTemplate + } + if o.Primary != nil { + toSerialize["primary"] = o.Primary + } + return json.Marshal(toSerialize) +} + +type NullablePresentationMetricQuery struct { + value *PresentationMetricQuery + isSet bool +} + +func (v NullablePresentationMetricQuery) Get() *PresentationMetricQuery { + return v.value +} + +func (v *NullablePresentationMetricQuery) Set(val *PresentationMetricQuery) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationMetricQuery) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationMetricQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationMetricQuery(val *PresentationMetricQuery) *NullablePresentationMetricQuery { + return &NullablePresentationMetricQuery{value: val, isSet: true} +} + +func (v NullablePresentationMetricQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationMetricQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_overview.go b/generated/stackstate_api/model_presentation_overview.go index 9f3463c5..e3ae6f6f 100644 --- a/generated/stackstate_api/model_presentation_overview.go +++ b/generated/stackstate_api/model_presentation_overview.go @@ -17,10 +17,11 @@ import ( // PresentationOverview Overview presentation definition. The `columns` field defines the columns to show in the overview table. 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 PresentationOverview struct { - Name PresentationName `json:"name" yaml:"name"` - MainMenu *PresentationMainMenu `json:"mainMenu,omitempty" yaml:"mainMenu,omitempty"` - Columns []OverviewColumnDefinition `json:"columns" yaml:"columns"` - FixedColumns *int32 `json:"fixedColumns,omitempty" yaml:"fixedColumns,omitempty"` + Name PresentationName `json:"name" yaml:"name"` + MainMenu *PresentationMainMenu `json:"mainMenu,omitempty" yaml:"mainMenu,omitempty"` + Columns []OverviewColumnDefinition `json:"columns" yaml:"columns"` + FixedColumns *int32 `json:"fixedColumns,omitempty" yaml:"fixedColumns,omitempty"` + Sort []PresentationOverviewSorting `json:"sort,omitempty" yaml:"sort,omitempty"` } // NewPresentationOverview instantiates a new PresentationOverview object @@ -154,6 +155,38 @@ func (o *PresentationOverview) SetFixedColumns(v int32) { o.FixedColumns = &v } +// GetSort returns the Sort field value if set, zero value otherwise. +func (o *PresentationOverview) GetSort() []PresentationOverviewSorting { + if o == nil || o.Sort == nil { + var ret []PresentationOverviewSorting + return ret + } + return o.Sort +} + +// GetSortOk returns a tuple with the Sort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationOverview) GetSortOk() ([]PresentationOverviewSorting, bool) { + if o == nil || o.Sort == nil { + return nil, false + } + return o.Sort, true +} + +// HasSort returns a boolean if a field has been set. +func (o *PresentationOverview) HasSort() bool { + if o != nil && o.Sort != nil { + return true + } + + return false +} + +// SetSort gets a reference to the given []PresentationOverviewSorting and assigns it to the Sort field. +func (o *PresentationOverview) SetSort(v []PresentationOverviewSorting) { + o.Sort = v +} + func (o PresentationOverview) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -168,6 +201,9 @@ func (o PresentationOverview) MarshalJSON() ([]byte, error) { if o.FixedColumns != nil { toSerialize["fixedColumns"] = o.FixedColumns } + if o.Sort != nil { + toSerialize["sort"] = o.Sort + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_presentation_overview_sorting.go b/generated/stackstate_api/model_presentation_overview_sorting.go new file mode 100644 index 00000000..163da9d1 --- /dev/null +++ b/generated/stackstate_api/model_presentation_overview_sorting.go @@ -0,0 +1,143 @@ +/* +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" +) + +// PresentationOverviewSorting struct for PresentationOverviewSorting +type PresentationOverviewSorting struct { + ColumnId string `json:"columnId" yaml:"columnId"` + Direction *PresentationOverviewSortingDirection `json:"direction,omitempty" yaml:"direction,omitempty"` +} + +// NewPresentationOverviewSorting instantiates a new PresentationOverviewSorting 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 NewPresentationOverviewSorting(columnId string) *PresentationOverviewSorting { + this := PresentationOverviewSorting{} + this.ColumnId = columnId + return &this +} + +// NewPresentationOverviewSortingWithDefaults instantiates a new PresentationOverviewSorting 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 NewPresentationOverviewSortingWithDefaults() *PresentationOverviewSorting { + this := PresentationOverviewSorting{} + return &this +} + +// GetColumnId returns the ColumnId field value +func (o *PresentationOverviewSorting) GetColumnId() string { + if o == nil { + var ret string + return ret + } + + return o.ColumnId +} + +// GetColumnIdOk returns a tuple with the ColumnId field value +// and a boolean to check if the value has been set. +func (o *PresentationOverviewSorting) GetColumnIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ColumnId, true +} + +// SetColumnId sets field value +func (o *PresentationOverviewSorting) SetColumnId(v string) { + o.ColumnId = v +} + +// GetDirection returns the Direction field value if set, zero value otherwise. +func (o *PresentationOverviewSorting) GetDirection() PresentationOverviewSortingDirection { + if o == nil || o.Direction == nil { + var ret PresentationOverviewSortingDirection + return ret + } + return *o.Direction +} + +// GetDirectionOk returns a tuple with the Direction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationOverviewSorting) GetDirectionOk() (*PresentationOverviewSortingDirection, bool) { + if o == nil || o.Direction == nil { + return nil, false + } + return o.Direction, true +} + +// HasDirection returns a boolean if a field has been set. +func (o *PresentationOverviewSorting) HasDirection() bool { + if o != nil && o.Direction != nil { + return true + } + + return false +} + +// SetDirection gets a reference to the given PresentationOverviewSortingDirection and assigns it to the Direction field. +func (o *PresentationOverviewSorting) SetDirection(v PresentationOverviewSortingDirection) { + o.Direction = &v +} + +func (o PresentationOverviewSorting) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["columnId"] = o.ColumnId + } + if o.Direction != nil { + toSerialize["direction"] = o.Direction + } + return json.Marshal(toSerialize) +} + +type NullablePresentationOverviewSorting struct { + value *PresentationOverviewSorting + isSet bool +} + +func (v NullablePresentationOverviewSorting) Get() *PresentationOverviewSorting { + return v.value +} + +func (v *NullablePresentationOverviewSorting) Set(val *PresentationOverviewSorting) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationOverviewSorting) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationOverviewSorting) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationOverviewSorting(val *PresentationOverviewSorting) *NullablePresentationOverviewSorting { + return &NullablePresentationOverviewSorting{value: val, isSet: true} +} + +func (v NullablePresentationOverviewSorting) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationOverviewSorting) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_overview_sorting_direction.go b/generated/stackstate_api/model_presentation_overview_sorting_direction.go new file mode 100644 index 00000000..1875485e --- /dev/null +++ b/generated/stackstate_api/model_presentation_overview_sorting_direction.go @@ -0,0 +1,111 @@ +/* +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" +) + +// PresentationOverviewSortingDirection the model 'PresentationOverviewSortingDirection' +type PresentationOverviewSortingDirection string + +// List of PresentationOverviewSortingDirection +const ( + PRESENTATIONOVERVIEWSORTINGDIRECTION_ASCENDING PresentationOverviewSortingDirection = "Ascending" + PRESENTATIONOVERVIEWSORTINGDIRECTION_DESCENDING PresentationOverviewSortingDirection = "Descending" +) + +// All allowed values of PresentationOverviewSortingDirection enum +var AllowedPresentationOverviewSortingDirectionEnumValues = []PresentationOverviewSortingDirection{ + "Ascending", + "Descending", +} + +func (v *PresentationOverviewSortingDirection) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PresentationOverviewSortingDirection(value) + for _, existing := range AllowedPresentationOverviewSortingDirectionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PresentationOverviewSortingDirection", value) +} + +// NewPresentationOverviewSortingDirectionFromValue returns a pointer to a valid PresentationOverviewSortingDirection +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPresentationOverviewSortingDirectionFromValue(v string) (*PresentationOverviewSortingDirection, error) { + ev := PresentationOverviewSortingDirection(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PresentationOverviewSortingDirection: valid values are %v", v, AllowedPresentationOverviewSortingDirectionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PresentationOverviewSortingDirection) IsValid() bool { + for _, existing := range AllowedPresentationOverviewSortingDirectionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PresentationOverviewSortingDirection value +func (v PresentationOverviewSortingDirection) Ptr() *PresentationOverviewSortingDirection { + return &v +} + +type NullablePresentationOverviewSortingDirection struct { + value *PresentationOverviewSortingDirection + isSet bool +} + +func (v NullablePresentationOverviewSortingDirection) Get() *PresentationOverviewSortingDirection { + return v.value +} + +func (v *NullablePresentationOverviewSortingDirection) Set(val *PresentationOverviewSortingDirection) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationOverviewSortingDirection) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationOverviewSortingDirection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationOverviewSortingDirection(val *PresentationOverviewSortingDirection) *NullablePresentationOverviewSortingDirection { + return &NullablePresentationOverviewSortingDirection{value: val, isSet: true} +} + +func (v NullablePresentationOverviewSortingDirection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationOverviewSortingDirection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_presentation_summary.go b/generated/stackstate_api/model_presentation_summary.go new file mode 100644 index 00000000..ddf4cf27 --- /dev/null +++ b/generated/stackstate_api/model_presentation_summary.go @@ -0,0 +1,114 @@ +/* +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" +) + +// PresentationSummary struct for PresentationSummary +type PresentationSummary struct { + Metrics []OrderedComponentPresentationMetric `json:"metrics,omitempty" yaml:"metrics,omitempty"` +} + +// NewPresentationSummary instantiates a new PresentationSummary 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 NewPresentationSummary() *PresentationSummary { + this := PresentationSummary{} + return &this +} + +// NewPresentationSummaryWithDefaults instantiates a new PresentationSummary 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 NewPresentationSummaryWithDefaults() *PresentationSummary { + this := PresentationSummary{} + return &this +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *PresentationSummary) GetMetrics() []OrderedComponentPresentationMetric { + if o == nil || o.Metrics == nil { + var ret []OrderedComponentPresentationMetric + return ret + } + return o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationSummary) GetMetricsOk() ([]OrderedComponentPresentationMetric, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *PresentationSummary) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given []OrderedComponentPresentationMetric and assigns it to the Metrics field. +func (o *PresentationSummary) SetMetrics(v []OrderedComponentPresentationMetric) { + o.Metrics = v +} + +func (o PresentationSummary) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + return json.Marshal(toSerialize) +} + +type NullablePresentationSummary struct { + value *PresentationSummary + isSet bool +} + +func (v NullablePresentationSummary) Get() *PresentationSummary { + return v.value +} + +func (v *NullablePresentationSummary) Set(val *PresentationSummary) { + v.value = val + v.isSet = true +} + +func (v NullablePresentationSummary) IsSet() bool { + return v.isSet +} + +func (v *NullablePresentationSummary) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePresentationSummary(val *PresentationSummary) *NullablePresentationSummary { + return &NullablePresentationSummary{value: val, isSet: true} +} + +func (v NullablePresentationSummary) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePresentationSummary) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_query_view_flag.go b/generated/stackstate_api/model_query_view_flag.go new file mode 100644 index 00000000..1fc288a1 --- /dev/null +++ b/generated/stackstate_api/model_query_view_flag.go @@ -0,0 +1,111 @@ +/* +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" +) + +// QueryViewFlag the model 'QueryViewFlag' +type QueryViewFlag string + +// List of QueryViewFlag +const ( + QUERYVIEWFLAG_NOT_UNLOCKABLE QueryViewFlag = "NotUnlockable" + QUERYVIEWFLAG_HIDE_FROM_VIEWS_OVERVIEW QueryViewFlag = "HideFromViewsOverview" +) + +// All allowed values of QueryViewFlag enum +var AllowedQueryViewFlagEnumValues = []QueryViewFlag{ + "NotUnlockable", + "HideFromViewsOverview", +} + +func (v *QueryViewFlag) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := QueryViewFlag(value) + for _, existing := range AllowedQueryViewFlagEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid QueryViewFlag", value) +} + +// NewQueryViewFlagFromValue returns a pointer to a valid QueryViewFlag +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewQueryViewFlagFromValue(v string) (*QueryViewFlag, error) { + ev := QueryViewFlag(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for QueryViewFlag: valid values are %v", v, AllowedQueryViewFlagEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v QueryViewFlag) IsValid() bool { + for _, existing := range AllowedQueryViewFlagEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to QueryViewFlag value +func (v QueryViewFlag) Ptr() *QueryViewFlag { + return &v +} + +type NullableQueryViewFlag struct { + value *QueryViewFlag + isSet bool +} + +func (v NullableQueryViewFlag) Get() *QueryViewFlag { + return v.value +} + +func (v *NullableQueryViewFlag) Set(val *QueryViewFlag) { + v.value = val + v.isSet = true +} + +func (v NullableQueryViewFlag) IsSet() bool { + return v.isSet +} + +func (v *NullableQueryViewFlag) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableQueryViewFlag(val *QueryViewFlag) *NullableQueryViewFlag { + return &NullableQueryViewFlag{value: val, isSet: true} +} + +func (v NullableQueryViewFlag) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableQueryViewFlag) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_topology_domain.go b/generated/stackstate_api/model_topology_domain.go new file mode 100644 index 00000000..3cf50d21 --- /dev/null +++ b/generated/stackstate_api/model_topology_domain.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" +) + +// TopologyDomain Domain assigned to components matched by this presentation, used to bucket and order them in the topology view. At presentation time, the domain of the most-specific matching presentation wins. When multiple components share a domain name with different orders, the highest order wins. +type TopologyDomain struct { + Name string `json:"name" yaml:"name"` + Order float64 `json:"order" yaml:"order"` +} + +// NewTopologyDomain instantiates a new TopologyDomain 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 NewTopologyDomain(name string, order float64) *TopologyDomain { + this := TopologyDomain{} + this.Name = name + this.Order = order + return &this +} + +// NewTopologyDomainWithDefaults instantiates a new TopologyDomain 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 NewTopologyDomainWithDefaults() *TopologyDomain { + this := TopologyDomain{} + return &this +} + +// GetName returns the Name field value +func (o *TopologyDomain) 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 *TopologyDomain) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *TopologyDomain) SetName(v string) { + o.Name = v +} + +// GetOrder returns the Order field value +func (o *TopologyDomain) 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 *TopologyDomain) GetOrderOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Order, true +} + +// SetOrder sets field value +func (o *TopologyDomain) SetOrder(v float64) { + o.Order = v +} + +func (o TopologyDomain) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["order"] = o.Order + } + return json.Marshal(toSerialize) +} + +type NullableTopologyDomain struct { + value *TopologyDomain + isSet bool +} + +func (v NullableTopologyDomain) Get() *TopologyDomain { + return v.value +} + +func (v *NullableTopologyDomain) Set(val *TopologyDomain) { + v.value = val + v.isSet = true +} + +func (v NullableTopologyDomain) IsSet() bool { + return v.isSet +} + +func (v *NullableTopologyDomain) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopologyDomain(val *TopologyDomain) *NullableTopologyDomain { + return &NullableTopologyDomain{value: val, isSet: true} +} + +func (v NullableTopologyDomain) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopologyDomain) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_base_layout_hint.go b/generated/stackstate_api/model_topology_layer.go similarity index 53% rename from generated/stackstate_api/model_base_layout_hint.go rename to generated/stackstate_api/model_topology_layer.go index 6b440819..8a15e5d0 100644 --- a/generated/stackstate_api/model_base_layout_hint.go +++ b/generated/stackstate_api/model_topology_layer.go @@ -15,33 +15,33 @@ import ( "encoding/json" ) -// BaseLayoutHint struct for BaseLayoutHint -type BaseLayoutHint struct { - Name string `json:"name" yaml:"name"` - Weight float32 `json:"weight" yaml:"weight"` +// TopologyLayer Layer assigned to components matched by this presentation, used to bucket and order them in the topology view. At presentation time, the layer of the most-specific matching presentation wins. When multiple components share a layer name with different orders, the highest order wins. +type TopologyLayer struct { + Name string `json:"name" yaml:"name"` + Order float64 `json:"order" yaml:"order"` } -// NewBaseLayoutHint instantiates a new BaseLayoutHint object +// NewTopologyLayer instantiates a new TopologyLayer 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 NewBaseLayoutHint(name string, weight float32) *BaseLayoutHint { - this := BaseLayoutHint{} +func NewTopologyLayer(name string, order float64) *TopologyLayer { + this := TopologyLayer{} this.Name = name - this.Weight = weight + this.Order = order return &this } -// NewBaseLayoutHintWithDefaults instantiates a new BaseLayoutHint object +// NewTopologyLayerWithDefaults instantiates a new TopologyLayer 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 NewBaseLayoutHintWithDefaults() *BaseLayoutHint { - this := BaseLayoutHint{} +func NewTopologyLayerWithDefaults() *TopologyLayer { + this := TopologyLayer{} return &this } // GetName returns the Name field value -func (o *BaseLayoutHint) GetName() string { +func (o *TopologyLayer) GetName() string { if o == nil { var ret string return ret @@ -52,7 +52,7 @@ func (o *BaseLayoutHint) GetName() string { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *BaseLayoutHint) GetNameOk() (*string, bool) { +func (o *TopologyLayer) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -60,77 +60,77 @@ func (o *BaseLayoutHint) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *BaseLayoutHint) SetName(v string) { +func (o *TopologyLayer) SetName(v string) { o.Name = v } -// GetWeight returns the Weight field value -func (o *BaseLayoutHint) GetWeight() float32 { +// GetOrder returns the Order field value +func (o *TopologyLayer) GetOrder() float64 { if o == nil { - var ret float32 + var ret float64 return ret } - return o.Weight + return o.Order } -// GetWeightOk returns a tuple with the Weight field value +// GetOrderOk returns a tuple with the Order field value // and a boolean to check if the value has been set. -func (o *BaseLayoutHint) GetWeightOk() (*float32, bool) { +func (o *TopologyLayer) GetOrderOk() (*float64, bool) { if o == nil { return nil, false } - return &o.Weight, true + return &o.Order, true } -// SetWeight sets field value -func (o *BaseLayoutHint) SetWeight(v float32) { - o.Weight = v +// SetOrder sets field value +func (o *TopologyLayer) SetOrder(v float64) { + o.Order = v } -func (o BaseLayoutHint) MarshalJSON() ([]byte, error) { +func (o TopologyLayer) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["name"] = o.Name } if true { - toSerialize["weight"] = o.Weight + toSerialize["order"] = o.Order } return json.Marshal(toSerialize) } -type NullableBaseLayoutHint struct { - value *BaseLayoutHint +type NullableTopologyLayer struct { + value *TopologyLayer isSet bool } -func (v NullableBaseLayoutHint) Get() *BaseLayoutHint { +func (v NullableTopologyLayer) Get() *TopologyLayer { return v.value } -func (v *NullableBaseLayoutHint) Set(val *BaseLayoutHint) { +func (v *NullableTopologyLayer) Set(val *TopologyLayer) { v.value = val v.isSet = true } -func (v NullableBaseLayoutHint) IsSet() bool { +func (v NullableTopologyLayer) IsSet() bool { return v.isSet } -func (v *NullableBaseLayoutHint) Unset() { +func (v *NullableTopologyLayer) Unset() { v.value = nil v.isSet = false } -func NewNullableBaseLayoutHint(val *BaseLayoutHint) *NullableBaseLayoutHint { - return &NullableBaseLayoutHint{value: val, isSet: true} +func NewNullableTopologyLayer(val *TopologyLayer) *NullableTopologyLayer { + return &NullableTopologyLayer{value: val, isSet: true} } -func (v NullableBaseLayoutHint) MarshalJSON() ([]byte, error) { +func (v NullableTopologyLayer) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableBaseLayoutHint) UnmarshalJSON(src []byte) error { +func (v *NullableTopologyLayer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_topology_perspective.go b/generated/stackstate_api/model_topology_perspective.go new file mode 100644 index 00000000..2d61703b --- /dev/null +++ b/generated/stackstate_api/model_topology_perspective.go @@ -0,0 +1,107 @@ +/* +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" +) + +// TopologyPerspective Topology perspective config. Reuses QueryMetadata from the snapshot API as the rendering spec. +type TopologyPerspective struct { + QueryMetadata QueryMetadata `json:"queryMetadata" yaml:"queryMetadata"` +} + +// NewTopologyPerspective instantiates a new TopologyPerspective 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 NewTopologyPerspective(queryMetadata QueryMetadata) *TopologyPerspective { + this := TopologyPerspective{} + this.QueryMetadata = queryMetadata + return &this +} + +// NewTopologyPerspectiveWithDefaults instantiates a new TopologyPerspective 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 NewTopologyPerspectiveWithDefaults() *TopologyPerspective { + this := TopologyPerspective{} + return &this +} + +// GetQueryMetadata returns the QueryMetadata field value +func (o *TopologyPerspective) GetQueryMetadata() QueryMetadata { + if o == nil { + var ret QueryMetadata + return ret + } + + return o.QueryMetadata +} + +// GetQueryMetadataOk returns a tuple with the QueryMetadata field value +// and a boolean to check if the value has been set. +func (o *TopologyPerspective) GetQueryMetadataOk() (*QueryMetadata, bool) { + if o == nil { + return nil, false + } + return &o.QueryMetadata, true +} + +// SetQueryMetadata sets field value +func (o *TopologyPerspective) SetQueryMetadata(v QueryMetadata) { + o.QueryMetadata = v +} + +func (o TopologyPerspective) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["queryMetadata"] = o.QueryMetadata + } + return json.Marshal(toSerialize) +} + +type NullableTopologyPerspective struct { + value *TopologyPerspective + isSet bool +} + +func (v NullableTopologyPerspective) Get() *TopologyPerspective { + return v.value +} + +func (v *NullableTopologyPerspective) Set(val *TopologyPerspective) { + v.value = val + v.isSet = true +} + +func (v NullableTopologyPerspective) IsSet() bool { + return v.isSet +} + +func (v *NullableTopologyPerspective) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopologyPerspective(val *TopologyPerspective) *NullableTopologyPerspective { + return &NullableTopologyPerspective{value: val, isSet: true} +} + +func (v NullableTopologyPerspective) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopologyPerspective) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_topology_settings.go b/generated/stackstate_api/model_topology_settings.go new file mode 100644 index 00000000..d225cc3d --- /dev/null +++ b/generated/stackstate_api/model_topology_settings.go @@ -0,0 +1,474 @@ +/* +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" +) + +// TopologySettings Rendering settings for the topology perspective. Near-copy of QueryMetadata used for topology rendering today; differences: - `queryTime` is intentionally absent (request-time state, not a presentation setting). Most-specific-wins merge semantics across matching ComponentPresentations. +type TopologySettings struct { + GroupingEnabled *bool `json:"groupingEnabled,omitempty" yaml:"groupingEnabled,omitempty"` + ShowIndirectRelations *bool `json:"showIndirectRelations,omitempty" yaml:"showIndirectRelations,omitempty"` + MinimumGroupSize *int64 `json:"minimumGroupSize,omitempty" yaml:"minimumGroupSize,omitempty"` + GroupedByLayers *bool `json:"groupedByLayers,omitempty" yaml:"groupedByLayers,omitempty"` + GroupedByDomains *bool `json:"groupedByDomains,omitempty" yaml:"groupedByDomains,omitempty"` + GroupedByRelations *bool `json:"groupedByRelations,omitempty" yaml:"groupedByRelations,omitempty"` + AutoGrouping *bool `json:"autoGrouping,omitempty" yaml:"autoGrouping,omitempty"` + ConnectedComponents *bool `json:"connectedComponents,omitempty" yaml:"connectedComponents,omitempty"` + NeighboringComponents *bool `json:"neighboringComponents,omitempty" yaml:"neighboringComponents,omitempty"` + Layer *TopologyLayer `json:"layer,omitempty" yaml:"layer,omitempty"` + Domain *TopologyDomain `json:"domain,omitempty" yaml:"domain,omitempty"` +} + +// NewTopologySettings instantiates a new TopologySettings 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 NewTopologySettings() *TopologySettings { + this := TopologySettings{} + return &this +} + +// NewTopologySettingsWithDefaults instantiates a new TopologySettings 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 NewTopologySettingsWithDefaults() *TopologySettings { + this := TopologySettings{} + return &this +} + +// GetGroupingEnabled returns the GroupingEnabled field value if set, zero value otherwise. +func (o *TopologySettings) GetGroupingEnabled() bool { + if o == nil || o.GroupingEnabled == nil { + var ret bool + return ret + } + return *o.GroupingEnabled +} + +// GetGroupingEnabledOk returns a tuple with the GroupingEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetGroupingEnabledOk() (*bool, bool) { + if o == nil || o.GroupingEnabled == nil { + return nil, false + } + return o.GroupingEnabled, true +} + +// HasGroupingEnabled returns a boolean if a field has been set. +func (o *TopologySettings) HasGroupingEnabled() bool { + if o != nil && o.GroupingEnabled != nil { + return true + } + + return false +} + +// SetGroupingEnabled gets a reference to the given bool and assigns it to the GroupingEnabled field. +func (o *TopologySettings) SetGroupingEnabled(v bool) { + o.GroupingEnabled = &v +} + +// GetShowIndirectRelations returns the ShowIndirectRelations field value if set, zero value otherwise. +func (o *TopologySettings) GetShowIndirectRelations() bool { + if o == nil || o.ShowIndirectRelations == nil { + var ret bool + return ret + } + return *o.ShowIndirectRelations +} + +// GetShowIndirectRelationsOk returns a tuple with the ShowIndirectRelations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetShowIndirectRelationsOk() (*bool, bool) { + if o == nil || o.ShowIndirectRelations == nil { + return nil, false + } + return o.ShowIndirectRelations, true +} + +// HasShowIndirectRelations returns a boolean if a field has been set. +func (o *TopologySettings) HasShowIndirectRelations() bool { + if o != nil && o.ShowIndirectRelations != nil { + return true + } + + return false +} + +// SetShowIndirectRelations gets a reference to the given bool and assigns it to the ShowIndirectRelations field. +func (o *TopologySettings) SetShowIndirectRelations(v bool) { + o.ShowIndirectRelations = &v +} + +// GetMinimumGroupSize returns the MinimumGroupSize field value if set, zero value otherwise. +func (o *TopologySettings) GetMinimumGroupSize() int64 { + if o == nil || o.MinimumGroupSize == nil { + var ret int64 + return ret + } + return *o.MinimumGroupSize +} + +// GetMinimumGroupSizeOk returns a tuple with the MinimumGroupSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetMinimumGroupSizeOk() (*int64, bool) { + if o == nil || o.MinimumGroupSize == nil { + return nil, false + } + return o.MinimumGroupSize, true +} + +// HasMinimumGroupSize returns a boolean if a field has been set. +func (o *TopologySettings) HasMinimumGroupSize() bool { + if o != nil && o.MinimumGroupSize != nil { + return true + } + + return false +} + +// SetMinimumGroupSize gets a reference to the given int64 and assigns it to the MinimumGroupSize field. +func (o *TopologySettings) SetMinimumGroupSize(v int64) { + o.MinimumGroupSize = &v +} + +// GetGroupedByLayers returns the GroupedByLayers field value if set, zero value otherwise. +func (o *TopologySettings) GetGroupedByLayers() bool { + if o == nil || o.GroupedByLayers == nil { + var ret bool + return ret + } + return *o.GroupedByLayers +} + +// GetGroupedByLayersOk returns a tuple with the GroupedByLayers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetGroupedByLayersOk() (*bool, bool) { + if o == nil || o.GroupedByLayers == nil { + return nil, false + } + return o.GroupedByLayers, true +} + +// HasGroupedByLayers returns a boolean if a field has been set. +func (o *TopologySettings) HasGroupedByLayers() bool { + if o != nil && o.GroupedByLayers != nil { + return true + } + + return false +} + +// SetGroupedByLayers gets a reference to the given bool and assigns it to the GroupedByLayers field. +func (o *TopologySettings) SetGroupedByLayers(v bool) { + o.GroupedByLayers = &v +} + +// GetGroupedByDomains returns the GroupedByDomains field value if set, zero value otherwise. +func (o *TopologySettings) GetGroupedByDomains() bool { + if o == nil || o.GroupedByDomains == nil { + var ret bool + return ret + } + return *o.GroupedByDomains +} + +// GetGroupedByDomainsOk returns a tuple with the GroupedByDomains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetGroupedByDomainsOk() (*bool, bool) { + if o == nil || o.GroupedByDomains == nil { + return nil, false + } + return o.GroupedByDomains, true +} + +// HasGroupedByDomains returns a boolean if a field has been set. +func (o *TopologySettings) HasGroupedByDomains() bool { + if o != nil && o.GroupedByDomains != nil { + return true + } + + return false +} + +// SetGroupedByDomains gets a reference to the given bool and assigns it to the GroupedByDomains field. +func (o *TopologySettings) SetGroupedByDomains(v bool) { + o.GroupedByDomains = &v +} + +// GetGroupedByRelations returns the GroupedByRelations field value if set, zero value otherwise. +func (o *TopologySettings) GetGroupedByRelations() bool { + if o == nil || o.GroupedByRelations == nil { + var ret bool + return ret + } + return *o.GroupedByRelations +} + +// GetGroupedByRelationsOk returns a tuple with the GroupedByRelations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetGroupedByRelationsOk() (*bool, bool) { + if o == nil || o.GroupedByRelations == nil { + return nil, false + } + return o.GroupedByRelations, true +} + +// HasGroupedByRelations returns a boolean if a field has been set. +func (o *TopologySettings) HasGroupedByRelations() bool { + if o != nil && o.GroupedByRelations != nil { + return true + } + + return false +} + +// SetGroupedByRelations gets a reference to the given bool and assigns it to the GroupedByRelations field. +func (o *TopologySettings) SetGroupedByRelations(v bool) { + o.GroupedByRelations = &v +} + +// GetAutoGrouping returns the AutoGrouping field value if set, zero value otherwise. +func (o *TopologySettings) GetAutoGrouping() bool { + if o == nil || o.AutoGrouping == nil { + var ret bool + return ret + } + return *o.AutoGrouping +} + +// GetAutoGroupingOk returns a tuple with the AutoGrouping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetAutoGroupingOk() (*bool, bool) { + if o == nil || o.AutoGrouping == nil { + return nil, false + } + return o.AutoGrouping, true +} + +// HasAutoGrouping returns a boolean if a field has been set. +func (o *TopologySettings) HasAutoGrouping() bool { + if o != nil && o.AutoGrouping != nil { + return true + } + + return false +} + +// SetAutoGrouping gets a reference to the given bool and assigns it to the AutoGrouping field. +func (o *TopologySettings) SetAutoGrouping(v bool) { + o.AutoGrouping = &v +} + +// GetConnectedComponents returns the ConnectedComponents field value if set, zero value otherwise. +func (o *TopologySettings) GetConnectedComponents() bool { + if o == nil || o.ConnectedComponents == nil { + var ret bool + return ret + } + return *o.ConnectedComponents +} + +// GetConnectedComponentsOk returns a tuple with the ConnectedComponents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetConnectedComponentsOk() (*bool, bool) { + if o == nil || o.ConnectedComponents == nil { + return nil, false + } + return o.ConnectedComponents, true +} + +// HasConnectedComponents returns a boolean if a field has been set. +func (o *TopologySettings) HasConnectedComponents() bool { + if o != nil && o.ConnectedComponents != nil { + return true + } + + return false +} + +// SetConnectedComponents gets a reference to the given bool and assigns it to the ConnectedComponents field. +func (o *TopologySettings) SetConnectedComponents(v bool) { + o.ConnectedComponents = &v +} + +// GetNeighboringComponents returns the NeighboringComponents field value if set, zero value otherwise. +func (o *TopologySettings) GetNeighboringComponents() bool { + if o == nil || o.NeighboringComponents == nil { + var ret bool + return ret + } + return *o.NeighboringComponents +} + +// GetNeighboringComponentsOk returns a tuple with the NeighboringComponents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetNeighboringComponentsOk() (*bool, bool) { + if o == nil || o.NeighboringComponents == nil { + return nil, false + } + return o.NeighboringComponents, true +} + +// HasNeighboringComponents returns a boolean if a field has been set. +func (o *TopologySettings) HasNeighboringComponents() bool { + if o != nil && o.NeighboringComponents != nil { + return true + } + + return false +} + +// SetNeighboringComponents gets a reference to the given bool and assigns it to the NeighboringComponents field. +func (o *TopologySettings) SetNeighboringComponents(v bool) { + o.NeighboringComponents = &v +} + +// GetLayer returns the Layer field value if set, zero value otherwise. +func (o *TopologySettings) GetLayer() TopologyLayer { + if o == nil || o.Layer == nil { + var ret TopologyLayer + return ret + } + return *o.Layer +} + +// GetLayerOk returns a tuple with the Layer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetLayerOk() (*TopologyLayer, bool) { + if o == nil || o.Layer == nil { + return nil, false + } + return o.Layer, true +} + +// HasLayer returns a boolean if a field has been set. +func (o *TopologySettings) HasLayer() bool { + if o != nil && o.Layer != nil { + return true + } + + return false +} + +// SetLayer gets a reference to the given TopologyLayer and assigns it to the Layer field. +func (o *TopologySettings) SetLayer(v TopologyLayer) { + o.Layer = &v +} + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *TopologySettings) GetDomain() TopologyDomain { + if o == nil || o.Domain == nil { + var ret TopologyDomain + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TopologySettings) GetDomainOk() (*TopologyDomain, bool) { + if o == nil || o.Domain == nil { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *TopologySettings) HasDomain() bool { + if o != nil && o.Domain != nil { + return true + } + + return false +} + +// SetDomain gets a reference to the given TopologyDomain and assigns it to the Domain field. +func (o *TopologySettings) SetDomain(v TopologyDomain) { + o.Domain = &v +} + +func (o TopologySettings) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.GroupingEnabled != nil { + toSerialize["groupingEnabled"] = o.GroupingEnabled + } + if o.ShowIndirectRelations != nil { + toSerialize["showIndirectRelations"] = o.ShowIndirectRelations + } + if o.MinimumGroupSize != nil { + toSerialize["minimumGroupSize"] = o.MinimumGroupSize + } + if o.GroupedByLayers != nil { + toSerialize["groupedByLayers"] = o.GroupedByLayers + } + if o.GroupedByDomains != nil { + toSerialize["groupedByDomains"] = o.GroupedByDomains + } + if o.GroupedByRelations != nil { + toSerialize["groupedByRelations"] = o.GroupedByRelations + } + if o.AutoGrouping != nil { + toSerialize["autoGrouping"] = o.AutoGrouping + } + if o.ConnectedComponents != nil { + toSerialize["connectedComponents"] = o.ConnectedComponents + } + if o.NeighboringComponents != nil { + toSerialize["neighboringComponents"] = o.NeighboringComponents + } + if o.Layer != nil { + toSerialize["layer"] = o.Layer + } + if o.Domain != nil { + toSerialize["domain"] = o.Domain + } + return json.Marshal(toSerialize) +} + +type NullableTopologySettings struct { + value *TopologySettings + isSet bool +} + +func (v NullableTopologySettings) Get() *TopologySettings { + return v.value +} + +func (v *NullableTopologySettings) Set(val *TopologySettings) { + v.value = val + v.isSet = true +} + +func (v NullableTopologySettings) IsSet() bool { + return v.isSet +} + +func (v *NullableTopologySettings) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTopologySettings(val *TopologySettings) *NullableTopologySettings { + return &NullableTopologySettings{value: val, isSet: true} +} + +func (v NullableTopologySettings) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTopologySettings) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_upsert_otel_component_mappings_request.go b/generated/stackstate_api/model_upsert_otel_component_mappings_request.go index 317bf5a2..71677c2a 100644 --- a/generated/stackstate_api/model_upsert_otel_component_mappings_request.go +++ b/generated/stackstate_api/model_upsert_otel_component_mappings_request.go @@ -24,19 +24,22 @@ type UpsertOtelComponentMappingsRequest struct { Output OtelComponentMappingOutput `json:"output" yaml:"output"` Vars []OtelVariableMapping `json:"vars,omitempty" yaml:"vars,omitempty"` ExpireAfter int64 `json:"expireAfter" yaml:"expireAfter"` + // Determines how much of a \"specialization\" this mapping is. Higher number means more specific. Used during component merge to pick the winning typeName / name when multiple mappings contribute to the same component identifier. + Specificity float64 `json:"specificity" yaml:"specificity"` } // NewUpsertOtelComponentMappingsRequest instantiates a new UpsertOtelComponentMappingsRequest 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 NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64) *UpsertOtelComponentMappingsRequest { +func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, specificity float64) *UpsertOtelComponentMappingsRequest { this := UpsertOtelComponentMappingsRequest{} this.Identifier = identifier this.Name = name this.Input = input this.Output = output this.ExpireAfter = expireAfter + this.Specificity = specificity return &this } @@ -232,6 +235,30 @@ func (o *UpsertOtelComponentMappingsRequest) SetExpireAfter(v int64) { o.ExpireAfter = v } +// GetSpecificity returns the Specificity field value +func (o *UpsertOtelComponentMappingsRequest) GetSpecificity() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Specificity +} + +// GetSpecificityOk returns a tuple with the Specificity field value +// and a boolean to check if the value has been set. +func (o *UpsertOtelComponentMappingsRequest) GetSpecificityOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Specificity, true +} + +// SetSpecificity sets field value +func (o *UpsertOtelComponentMappingsRequest) SetSpecificity(v float64) { + o.Specificity = v +} + func (o UpsertOtelComponentMappingsRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -255,6 +282,9 @@ func (o UpsertOtelComponentMappingsRequest) MarshalJSON() ([]byte, error) { if true { toSerialize["expireAfter"] = o.ExpireAfter } + if true { + toSerialize["specificity"] = o.Specificity + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_view.go b/generated/stackstate_api/model_view.go new file mode 100644 index 00000000..53442851 --- /dev/null +++ b/generated/stackstate_api/model_view.go @@ -0,0 +1,563 @@ +/* +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" +) + +// View struct for View +type View struct { + Id int64 `json:"id" yaml:"id"` + Identifier *string `json:"identifier,omitempty" yaml:"identifier,omitempty"` + Name string `json:"name" yaml:"name"` + ViewType *string `json:"viewType,omitempty" yaml:"viewType,omitempty"` + TopologyQuery string `json:"topologyQuery" yaml:"topologyQuery"` + GroupingEnabled bool `json:"groupingEnabled" yaml:"groupingEnabled"` + GroupedByLayers bool `json:"groupedByLayers" yaml:"groupedByLayers"` + GroupedByDomains bool `json:"groupedByDomains" yaml:"groupedByDomains"` + GroupedByRelations bool `json:"groupedByRelations" yaml:"groupedByRelations"` + MinimumGroupSize int64 `json:"minimumGroupSize" yaml:"minimumGroupSize"` + ShowIndirectRelations bool `json:"showIndirectRelations" yaml:"showIndirectRelations"` + AutoGrouping bool `json:"autoGrouping" yaml:"autoGrouping"` + ConnectedComponents bool `json:"connectedComponents" yaml:"connectedComponents"` + NeighboringComponents bool `json:"neighboringComponents" yaml:"neighboringComponents"` + Flags []QueryViewFlag `json:"flags" yaml:"flags"` + OwnedBy *string `json:"ownedBy,omitempty" yaml:"ownedBy,omitempty"` +} + +// NewView instantiates a new View 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 NewView(id int64, name string, topologyQuery string, groupingEnabled bool, groupedByLayers bool, groupedByDomains bool, groupedByRelations bool, minimumGroupSize int64, showIndirectRelations bool, autoGrouping bool, connectedComponents bool, neighboringComponents bool, flags []QueryViewFlag) *View { + this := View{} + this.Id = id + this.Name = name + this.TopologyQuery = topologyQuery + this.GroupingEnabled = groupingEnabled + this.GroupedByLayers = groupedByLayers + this.GroupedByDomains = groupedByDomains + this.GroupedByRelations = groupedByRelations + this.MinimumGroupSize = minimumGroupSize + this.ShowIndirectRelations = showIndirectRelations + this.AutoGrouping = autoGrouping + this.ConnectedComponents = connectedComponents + this.NeighboringComponents = neighboringComponents + this.Flags = flags + return &this +} + +// NewViewWithDefaults instantiates a new View 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 NewViewWithDefaults() *View { + this := View{} + return &this +} + +// GetId returns the Id field value +func (o *View) GetId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *View) GetIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *View) SetId(v int64) { + o.Id = v +} + +// GetIdentifier returns the Identifier field value if set, zero value otherwise. +func (o *View) GetIdentifier() string { + if o == nil || o.Identifier == nil { + var ret string + return ret + } + return *o.Identifier +} + +// GetIdentifierOk returns a tuple with the Identifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *View) GetIdentifierOk() (*string, bool) { + if o == nil || o.Identifier == nil { + return nil, false + } + return o.Identifier, true +} + +// HasIdentifier returns a boolean if a field has been set. +func (o *View) HasIdentifier() bool { + if o != nil && o.Identifier != nil { + return true + } + + return false +} + +// SetIdentifier gets a reference to the given string and assigns it to the Identifier field. +func (o *View) SetIdentifier(v string) { + o.Identifier = &v +} + +// GetName returns the Name field value +func (o *View) 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 *View) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *View) SetName(v string) { + o.Name = v +} + +// GetViewType returns the ViewType field value if set, zero value otherwise. +func (o *View) GetViewType() string { + if o == nil || o.ViewType == nil { + var ret string + return ret + } + return *o.ViewType +} + +// GetViewTypeOk returns a tuple with the ViewType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *View) GetViewTypeOk() (*string, bool) { + if o == nil || o.ViewType == nil { + return nil, false + } + return o.ViewType, true +} + +// HasViewType returns a boolean if a field has been set. +func (o *View) HasViewType() bool { + if o != nil && o.ViewType != nil { + return true + } + + return false +} + +// SetViewType gets a reference to the given string and assigns it to the ViewType field. +func (o *View) SetViewType(v string) { + o.ViewType = &v +} + +// GetTopologyQuery returns the TopologyQuery field value +func (o *View) GetTopologyQuery() string { + if o == nil { + var ret string + return ret + } + + return o.TopologyQuery +} + +// GetTopologyQueryOk returns a tuple with the TopologyQuery field value +// and a boolean to check if the value has been set. +func (o *View) GetTopologyQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TopologyQuery, true +} + +// SetTopologyQuery sets field value +func (o *View) SetTopologyQuery(v string) { + o.TopologyQuery = v +} + +// GetGroupingEnabled returns the GroupingEnabled field value +func (o *View) GetGroupingEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.GroupingEnabled +} + +// GetGroupingEnabledOk returns a tuple with the GroupingEnabled field value +// and a boolean to check if the value has been set. +func (o *View) GetGroupingEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GroupingEnabled, true +} + +// SetGroupingEnabled sets field value +func (o *View) SetGroupingEnabled(v bool) { + o.GroupingEnabled = v +} + +// GetGroupedByLayers returns the GroupedByLayers field value +func (o *View) GetGroupedByLayers() bool { + if o == nil { + var ret bool + return ret + } + + return o.GroupedByLayers +} + +// GetGroupedByLayersOk returns a tuple with the GroupedByLayers field value +// and a boolean to check if the value has been set. +func (o *View) GetGroupedByLayersOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GroupedByLayers, true +} + +// SetGroupedByLayers sets field value +func (o *View) SetGroupedByLayers(v bool) { + o.GroupedByLayers = v +} + +// GetGroupedByDomains returns the GroupedByDomains field value +func (o *View) GetGroupedByDomains() bool { + if o == nil { + var ret bool + return ret + } + + return o.GroupedByDomains +} + +// GetGroupedByDomainsOk returns a tuple with the GroupedByDomains field value +// and a boolean to check if the value has been set. +func (o *View) GetGroupedByDomainsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GroupedByDomains, true +} + +// SetGroupedByDomains sets field value +func (o *View) SetGroupedByDomains(v bool) { + o.GroupedByDomains = v +} + +// GetGroupedByRelations returns the GroupedByRelations field value +func (o *View) GetGroupedByRelations() bool { + if o == nil { + var ret bool + return ret + } + + return o.GroupedByRelations +} + +// GetGroupedByRelationsOk returns a tuple with the GroupedByRelations field value +// and a boolean to check if the value has been set. +func (o *View) GetGroupedByRelationsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.GroupedByRelations, true +} + +// SetGroupedByRelations sets field value +func (o *View) SetGroupedByRelations(v bool) { + o.GroupedByRelations = v +} + +// GetMinimumGroupSize returns the MinimumGroupSize field value +func (o *View) GetMinimumGroupSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.MinimumGroupSize +} + +// GetMinimumGroupSizeOk returns a tuple with the MinimumGroupSize field value +// and a boolean to check if the value has been set. +func (o *View) GetMinimumGroupSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.MinimumGroupSize, true +} + +// SetMinimumGroupSize sets field value +func (o *View) SetMinimumGroupSize(v int64) { + o.MinimumGroupSize = v +} + +// GetShowIndirectRelations returns the ShowIndirectRelations field value +func (o *View) GetShowIndirectRelations() bool { + if o == nil { + var ret bool + return ret + } + + return o.ShowIndirectRelations +} + +// GetShowIndirectRelationsOk returns a tuple with the ShowIndirectRelations field value +// and a boolean to check if the value has been set. +func (o *View) GetShowIndirectRelationsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ShowIndirectRelations, true +} + +// SetShowIndirectRelations sets field value +func (o *View) SetShowIndirectRelations(v bool) { + o.ShowIndirectRelations = v +} + +// GetAutoGrouping returns the AutoGrouping field value +func (o *View) GetAutoGrouping() bool { + if o == nil { + var ret bool + return ret + } + + return o.AutoGrouping +} + +// GetAutoGroupingOk returns a tuple with the AutoGrouping field value +// and a boolean to check if the value has been set. +func (o *View) GetAutoGroupingOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AutoGrouping, true +} + +// SetAutoGrouping sets field value +func (o *View) SetAutoGrouping(v bool) { + o.AutoGrouping = v +} + +// GetConnectedComponents returns the ConnectedComponents field value +func (o *View) GetConnectedComponents() bool { + if o == nil { + var ret bool + return ret + } + + return o.ConnectedComponents +} + +// GetConnectedComponentsOk returns a tuple with the ConnectedComponents field value +// and a boolean to check if the value has been set. +func (o *View) GetConnectedComponentsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ConnectedComponents, true +} + +// SetConnectedComponents sets field value +func (o *View) SetConnectedComponents(v bool) { + o.ConnectedComponents = v +} + +// GetNeighboringComponents returns the NeighboringComponents field value +func (o *View) GetNeighboringComponents() bool { + if o == nil { + var ret bool + return ret + } + + return o.NeighboringComponents +} + +// GetNeighboringComponentsOk returns a tuple with the NeighboringComponents field value +// and a boolean to check if the value has been set. +func (o *View) GetNeighboringComponentsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.NeighboringComponents, true +} + +// SetNeighboringComponents sets field value +func (o *View) SetNeighboringComponents(v bool) { + o.NeighboringComponents = v +} + +// GetFlags returns the Flags field value +func (o *View) GetFlags() []QueryViewFlag { + if o == nil { + var ret []QueryViewFlag + return ret + } + + return o.Flags +} + +// GetFlagsOk returns a tuple with the Flags field value +// and a boolean to check if the value has been set. +func (o *View) GetFlagsOk() ([]QueryViewFlag, bool) { + if o == nil { + return nil, false + } + return o.Flags, true +} + +// SetFlags sets field value +func (o *View) SetFlags(v []QueryViewFlag) { + o.Flags = v +} + +// GetOwnedBy returns the OwnedBy field value if set, zero value otherwise. +func (o *View) GetOwnedBy() string { + if o == nil || o.OwnedBy == nil { + var ret string + return ret + } + return *o.OwnedBy +} + +// GetOwnedByOk returns a tuple with the OwnedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *View) GetOwnedByOk() (*string, bool) { + if o == nil || o.OwnedBy == nil { + return nil, false + } + return o.OwnedBy, true +} + +// HasOwnedBy returns a boolean if a field has been set. +func (o *View) HasOwnedBy() bool { + if o != nil && o.OwnedBy != nil { + return true + } + + return false +} + +// SetOwnedBy gets a reference to the given string and assigns it to the OwnedBy field. +func (o *View) SetOwnedBy(v string) { + o.OwnedBy = &v +} + +func (o View) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if o.Identifier != nil { + toSerialize["identifier"] = o.Identifier + } + if true { + toSerialize["name"] = o.Name + } + if o.ViewType != nil { + toSerialize["viewType"] = o.ViewType + } + if true { + toSerialize["topologyQuery"] = o.TopologyQuery + } + if true { + toSerialize["groupingEnabled"] = o.GroupingEnabled + } + if true { + toSerialize["groupedByLayers"] = o.GroupedByLayers + } + if true { + toSerialize["groupedByDomains"] = o.GroupedByDomains + } + if true { + toSerialize["groupedByRelations"] = o.GroupedByRelations + } + if true { + toSerialize["minimumGroupSize"] = o.MinimumGroupSize + } + if true { + toSerialize["showIndirectRelations"] = o.ShowIndirectRelations + } + if true { + toSerialize["autoGrouping"] = o.AutoGrouping + } + if true { + toSerialize["connectedComponents"] = o.ConnectedComponents + } + if true { + toSerialize["neighboringComponents"] = o.NeighboringComponents + } + if true { + toSerialize["flags"] = o.Flags + } + if o.OwnedBy != nil { + toSerialize["ownedBy"] = o.OwnedBy + } + return json.Marshal(toSerialize) +} + +type NullableView struct { + value *View + isSet bool +} + +func (v NullableView) Get() *View { + return v.value +} + +func (v *NullableView) Set(val *View) { + v.value = val + v.isSet = true +} + +func (v NullableView) IsSet() bool { + return v.isSet +} + +func (v *NullableView) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableView(val *View) *NullableView { + return &NullableView{value: val, isSet: true} +} + +func (v NullableView) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableView) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_layout_list.go b/generated/stackstate_api/model_view_list.go similarity index 55% rename from generated/stackstate_api/model_layout_list.go rename to generated/stackstate_api/model_view_list.go index f5affb78..59e7a35e 100644 --- a/generated/stackstate_api/model_layout_list.go +++ b/generated/stackstate_api/model_view_list.go @@ -15,93 +15,93 @@ import ( "encoding/json" ) -// LayoutList struct for LayoutList -type LayoutList struct { - Layouts []LayoutHint `json:"layouts" yaml:"layouts"` +// ViewList struct for ViewList +type ViewList struct { + Views []View `json:"views" yaml:"views"` } -// NewLayoutList instantiates a new LayoutList object +// NewViewList instantiates a new ViewList 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 NewLayoutList(layouts []LayoutHint) *LayoutList { - this := LayoutList{} - this.Layouts = layouts +func NewViewList(views []View) *ViewList { + this := ViewList{} + this.Views = views return &this } -// NewLayoutListWithDefaults instantiates a new LayoutList object +// NewViewListWithDefaults instantiates a new ViewList 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 NewLayoutListWithDefaults() *LayoutList { - this := LayoutList{} +func NewViewListWithDefaults() *ViewList { + this := ViewList{} return &this } -// GetLayouts returns the Layouts field value -func (o *LayoutList) GetLayouts() []LayoutHint { +// GetViews returns the Views field value +func (o *ViewList) GetViews() []View { if o == nil { - var ret []LayoutHint + var ret []View return ret } - return o.Layouts + return o.Views } -// GetLayoutsOk returns a tuple with the Layouts field value +// GetViewsOk returns a tuple with the Views field value // and a boolean to check if the value has been set. -func (o *LayoutList) GetLayoutsOk() ([]LayoutHint, bool) { +func (o *ViewList) GetViewsOk() ([]View, bool) { if o == nil { return nil, false } - return o.Layouts, true + return o.Views, true } -// SetLayouts sets field value -func (o *LayoutList) SetLayouts(v []LayoutHint) { - o.Layouts = v +// SetViews sets field value +func (o *ViewList) SetViews(v []View) { + o.Views = v } -func (o LayoutList) MarshalJSON() ([]byte, error) { +func (o ViewList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { - toSerialize["layouts"] = o.Layouts + toSerialize["views"] = o.Views } return json.Marshal(toSerialize) } -type NullableLayoutList struct { - value *LayoutList +type NullableViewList struct { + value *ViewList isSet bool } -func (v NullableLayoutList) Get() *LayoutList { +func (v NullableViewList) Get() *ViewList { return v.value } -func (v *NullableLayoutList) Set(val *LayoutList) { +func (v *NullableViewList) Set(val *ViewList) { v.value = val v.isSet = true } -func (v NullableLayoutList) IsSet() bool { +func (v NullableViewList) IsSet() bool { return v.isSet } -func (v *NullableLayoutList) Unset() { +func (v *NullableViewList) Unset() { v.value = nil v.isSet = false } -func NewNullableLayoutList(val *LayoutList) *NullableLayoutList { - return &NullableLayoutList{value: val, isSet: true} +func NewNullableViewList(val *ViewList) *NullableViewList { + return &NullableViewList{value: val, isSet: true} } -func (v NullableLayoutList) MarshalJSON() ([]byte, error) { +func (v NullableViewList) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableLayoutList) UnmarshalJSON(src []byte) error { +func (v *NullableViewList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_view_not_found_error.go b/generated/stackstate_api/model_view_not_found_error.go new file mode 100644 index 00000000..b69e99e0 --- /dev/null +++ b/generated/stackstate_api/model_view_not_found_error.go @@ -0,0 +1,137 @@ +/* +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" +) + +// ViewNotFoundError struct for ViewNotFoundError +type ViewNotFoundError struct { + // A detailed error message describing why the operation failed. + Message string `json:"message" yaml:"message"` + ViewIdOrIdentifier string `json:"viewIdOrIdentifier" yaml:"viewIdOrIdentifier"` +} + +// NewViewNotFoundError instantiates a new ViewNotFoundError 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 NewViewNotFoundError(message string, viewIdOrIdentifier string) *ViewNotFoundError { + this := ViewNotFoundError{} + this.Message = message + this.ViewIdOrIdentifier = viewIdOrIdentifier + return &this +} + +// NewViewNotFoundErrorWithDefaults instantiates a new ViewNotFoundError 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 NewViewNotFoundErrorWithDefaults() *ViewNotFoundError { + this := ViewNotFoundError{} + return &this +} + +// GetMessage returns the Message field value +func (o *ViewNotFoundError) 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 *ViewNotFoundError) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ViewNotFoundError) SetMessage(v string) { + o.Message = v +} + +// GetViewIdOrIdentifier returns the ViewIdOrIdentifier field value +func (o *ViewNotFoundError) GetViewIdOrIdentifier() string { + if o == nil { + var ret string + return ret + } + + return o.ViewIdOrIdentifier +} + +// GetViewIdOrIdentifierOk returns a tuple with the ViewIdOrIdentifier field value +// and a boolean to check if the value has been set. +func (o *ViewNotFoundError) GetViewIdOrIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ViewIdOrIdentifier, true +} + +// SetViewIdOrIdentifier sets field value +func (o *ViewNotFoundError) SetViewIdOrIdentifier(v string) { + o.ViewIdOrIdentifier = v +} + +func (o ViewNotFoundError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["message"] = o.Message + } + if true { + toSerialize["viewIdOrIdentifier"] = o.ViewIdOrIdentifier + } + return json.Marshal(toSerialize) +} + +type NullableViewNotFoundError struct { + value *ViewNotFoundError + isSet bool +} + +func (v NullableViewNotFoundError) Get() *ViewNotFoundError { + return v.value +} + +func (v *NullableViewNotFoundError) Set(val *ViewNotFoundError) { + v.value = val + v.isSet = true +} + +func (v NullableViewNotFoundError) IsSet() bool { + return v.isSet +} + +func (v *NullableViewNotFoundError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableViewNotFoundError(val *ViewNotFoundError) *NullableViewNotFoundError { + return &NullableViewNotFoundError{value: val, isSet: true} +} + +func (v NullableViewNotFoundError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableViewNotFoundError) 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 8ffdade9..1a271c00 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -e9e67639be1ffaa27d274d3d1902a6b5561772c7 \ No newline at end of file +3b5826ce2ae85987f99594a8fb8239dc79fdab01 \ No newline at end of file