diff --git a/cmd/topology/topology_inspect.go b/cmd/topology/topology_inspect.go index 9799096c..46979240 100644 --- a/cmd/topology/topology_inspect.go +++ b/cmd/topology/topology_inspect.go @@ -13,6 +13,8 @@ import ( "github.com/stackvista/stackstate-cli/internal/printer" ) +const UNKNOWN = "unknown" + type InspectArgs struct { ComponentType string Tags []string @@ -87,7 +89,6 @@ func RunInspectCommand( ) request := stackstate_api.NewViewSnapshotRequest( - "SnapshotRequest", query, "0.0.1", *metadata, @@ -155,15 +156,13 @@ type Component struct { Properties map[string]interface{} `json:"properties"` Layer map[string]interface{} `json:"layer"` Domain map[string]interface{} `json:"domain"` - Environment map[string]interface{} `json:"environment,omitempty"` Link string `json:"link"` } type ComponentMetadata struct { - ComponentTypes map[int64]string - Layers map[int64]string - Domains map[int64]string - Environments map[int64]string + ComponentTypes map[string]string + Layers map[string]string + Domains map[string]string } // handleSnapshotError checks if the response is a typed error by examining the _type discriminator @@ -256,22 +255,20 @@ func parseSnapshotResponse( // all metadata categories in a single loop. var metadataFieldMapping = []struct { field string - setter func(*ComponentMetadata) *map[int64]string + setter func(*ComponentMetadata, interface{}) }{ - {"componentTypes", func(m *ComponentMetadata) *map[int64]string { return &m.ComponentTypes }}, - {"layers", func(m *ComponentMetadata) *map[int64]string { return &m.Layers }}, - {"domains", func(m *ComponentMetadata) *map[int64]string { return &m.Domains }}, - {"environments", func(m *ComponentMetadata) *map[int64]string { return &m.Environments }}, + {"componentTypes", func(m *ComponentMetadata, val interface{}) { m.ComponentTypes = parseMetadataByIdentifier(val) }}, + {"layers", func(m *ComponentMetadata, val interface{}) { m.Layers = parseMetadataByIdentifier(val) }}, + {"domains", func(m *ComponentMetadata, val interface{}) { m.Domains = parseMetadataByIdentifier(val) }}, } -// parseMetadata extracts component type, layer, domain, and environment metadata +// parseMetadata extracts component type, layer, and domain metadata // from the opaque Snapshot response using a table-driven approach. func parseMetadata(respMap map[string]interface{}) ComponentMetadata { metadata := ComponentMetadata{ - ComponentTypes: make(map[int64]string), - Layers: make(map[int64]string), - Domains: make(map[int64]string), - Environments: make(map[int64]string), + ComponentTypes: make(map[string]string), + Layers: make(map[string]string), + Domains: make(map[string]string), } metadataMap, ok := respMap["metadata"].(map[string]interface{}) @@ -281,23 +278,21 @@ func parseMetadata(respMap map[string]interface{}) ComponentMetadata { for _, mapping := range metadataFieldMapping { if fieldValue, ok := metadataMap[mapping.field]; ok { - *mapping.setter(&metadata) = parseMetadataField(fieldValue) + mapping.setter(&metadata, fieldValue) } } return metadata } -// parseMetadataField extracts id/name pairs from a metadata field. -// Each item in the slice should have "id" and "name" fields. -func parseMetadataField(metadataValue interface{}) map[int64]string { - result := make(map[int64]string) +// parseMetadataByIdentifier extracts metadata items by identifier. +func parseMetadataByIdentifier(metadataValue interface{}) map[string]string { + result := make(map[string]string) if metadataValue == nil { return result } - // The JSON decoder produces []interface{} for arrays items, ok := metadataValue.([]interface{}) if !ok { return result @@ -305,10 +300,10 @@ func parseMetadataField(metadataValue interface{}) map[int64]string { for _, item := range items { if itemMap, ok := item.(map[string]interface{}); ok { - id, idOk := itemMap["id"].(float64) + identifier, idOk := itemMap["identifier"].(string) name, nameOk := itemMap["name"].(string) if idOk && nameOk { - result[int64(id)] = name + result[identifier] = name } } } @@ -331,12 +326,12 @@ func parseComponentFromMap(compMap map[string]interface{}, metadata ComponentMet comp.Name = name } - // Parse type (first id and then lookup from component type metadata) - if typeID, ok := compMap["type"].(float64); ok { - if typeName, found := metadata.ComponentTypes[int64(typeID)]; found { + // Parse type from typeIdentifier and lookup from component type metadata + if typeIdentifier, ok := compMap["typeIdentifier"].(string); ok { + if typeName, found := metadata.ComponentTypes[typeIdentifier]; found { comp.Type = typeName } else { - comp.Type = fmt.Sprintf("Unknown (%d)", int64(typeID)) + comp.Type = UNKNOWN } } @@ -363,10 +358,9 @@ func parseComponentFromMap(compMap map[string]interface{}, metadata ComponentMet comp.Properties = propertiesRaw } - // Parse layer, domain, and environment references - comp.Layer = parseComponentReference(compMap, "layer", metadata.Layers) - comp.Domain = parseComponentReference(compMap, "domain", metadata.Domains) - comp.Environment = parseComponentReference(compMap, "environment", metadata.Environments) + // Parse layer and domain references + comp.Layer = parseComponentReference(compMap, "layerIdentifier", metadata.Layers) + comp.Domain = parseComponentReference(compMap, "domainIdentifier", metadata.Domains) // Build link if len(comp.Identifiers) > 0 { @@ -376,19 +370,18 @@ func parseComponentFromMap(compMap map[string]interface{}, metadata ComponentMet return comp } -// parseComponentReference extracts a reference field (layer, domain, or environment) +// parseComponentReference extracts a reference field (layer or domain) // from a component and looks up its name in the provided metadata map. -// Returns a map with "id" and "name" keys, or nil if the field is not present. -func parseComponentReference(compMap map[string]interface{}, fieldName string, metadataMap map[int64]string) map[string]interface{} { - if refID, ok := compMap[fieldName].(float64); ok { - refIDInt := int64(refID) - refName := "Unknown" - if name, found := metadataMap[refIDInt]; found { +// Returns a map with "identifier" and "name" keys, or nil if the field is not present. +func parseComponentReference(compMap map[string]interface{}, identifierFieldName string, metadataMap map[string]string) map[string]interface{} { + if refIdentifier, ok := compMap[identifierFieldName].(string); ok { + refName := UNKNOWN + if name, found := metadataMap[refIdentifier]; found { refName = name } return map[string]interface{}{ - "id": refIDInt, - "name": refName, + "identifier": refIdentifier, + "name": refName, } } return nil diff --git a/cmd/topology/topology_state.go b/cmd/topology/topology_state.go index 9f1f1397..dcda10f6 100644 --- a/cmd/topology/topology_state.go +++ b/cmd/topology/topology_state.go @@ -84,7 +84,6 @@ func RunStateCommand( ) request := stackstate_api.NewViewSnapshotRequest( - "SnapshotRequest", query, "0.0.1", *metadata, @@ -174,12 +173,12 @@ func parseComponentStateFromMap(compMap map[string]interface{}, metadata Compone cs.Name = name } - // Parse type - if typeID, ok := compMap["type"].(float64); ok { - if typeName, found := metadata.ComponentTypes[int64(typeID)]; found { + // Parse type from typeIdentifier and lookup from component type metadata + if typeIdentifier, ok := compMap["typeIdentifier"].(string); ok { + if typeName, found := metadata.ComponentTypes[typeIdentifier]; found { cs.Type = typeName } else { - cs.Type = fmt.Sprintf("Unknown (%d)", int64(typeID)) + cs.Type = "Unknown" } } diff --git a/cmd/topology/topology_test_helper.go b/cmd/topology/topology_test_helper.go index 217dd3c6..f25d1932 100644 --- a/cmd/topology/topology_test_helper.go +++ b/cmd/topology/topology_test_helper.go @@ -12,13 +12,13 @@ func mockSnapshotResponse() sts.QuerySnapshotResult { "_type": "ViewSnapshot", "components": []interface{}{ map[string]interface{}{ - "id": float64(229404307680647), - "name": "test-component", - "type": float64(239975151751041), - "layer": float64(186771622698247), - "domain": float64(209616858431909), - "identifiers": []interface{}{"urn:test:component:1"}, - "tags": []interface{}{"service.namespace:test"}, + "id": float64(229404307680647), + "name": "test-component", + "typeIdentifier": "urn:test:component-type:test", + "layerIdentifier": "urn:test:layer:test", + "domainIdentifier": "urn:test:domain:test", + "identifiers": []interface{}{"urn:test:component:1"}, + "tags": []interface{}{"service.namespace:test"}, "state": map[string]interface{}{ "healthState": "CRITICAL", }, @@ -27,20 +27,20 @@ func mockSnapshotResponse() sts.QuerySnapshotResult { "metadata": map[string]interface{}{ "componentTypes": []interface{}{ map[string]interface{}{ - "id": float64(239975151751041), - "name": "test type", + "identifier": "urn:test:component-type:test", + "name": "test type", }, }, "layers": []interface{}{ map[string]interface{}{ - "id": float64(186771622698247), - "name": "Test Layer", + "identifier": "urn:test:layer:test", + "name": "Test Layer", }, }, "domains": []interface{}{ map[string]interface{}{ - "id": float64(209616858431909), - "name": "Test Domain", + "identifier": "urn:test:domain:test", + "name": "Test Domain", }, }, }, diff --git a/generated/stackstate_api/.openapi-generator/FILES b/generated/stackstate_api/.openapi-generator/FILES index f12d1805..80f3f607 100644 --- a/generated/stackstate_api/.openapi-generator/FILES +++ b/generated/stackstate_api/.openapi-generator/FILES @@ -24,6 +24,7 @@ api_node.go api_notification_channels.go api_notification_configurations.go api_otel_mapping.go +api_overview.go api_permissions.go api_problem.go api_relation.go @@ -52,6 +53,7 @@ docs/AgentRegistrations.md docs/AgentRegistrationsApi.md docs/ApiToken.md docs/ApiTokenApi.md +docs/ApplicationDomain.md docs/Argument.md docs/ArgumentBooleanVal.md docs/ArgumentComparatorWithoutEqualityVal.md @@ -79,6 +81,7 @@ docs/BoundMetrics.md docs/BoundTraces.md docs/CausingEventsAreNotAvailableForTheTime.md docs/CausingEventsResult.md +docs/CellValue.md docs/ChannelReferenceId.md docs/ChartType.md docs/CheckLeaseRequest.md @@ -94,10 +97,15 @@ docs/ComponentHighlightLocation.md docs/ComponentHighlightMetricSection.md docs/ComponentHighlightMetricSectionAllOf.md docs/ComponentHighlightMetrics.md +docs/ComponentLinkCell.md docs/ComponentLinkDisplay.md +docs/ComponentLinkMetaDisplay.md +docs/ComponentLinkProjection.md docs/ComponentPresentation.md docs/ComponentPresentationApi.md docs/ComponentPresentationApiError.md +docs/ComponentPresentationQueryBinding.md +docs/ComponentPresentationRank.md docs/ComponentQuery.md docs/ComponentSummaryLocation.md docs/ComponentTypeAbout.md @@ -113,6 +121,7 @@ docs/ComponentTypeValueExtractor.md docs/ComponentViewArguments.md docs/CompositeSource.md docs/ConstantSource.md +docs/ContainerImageProjection.md docs/CreateSubject.md docs/DashboardAuthorizationError.md docs/DashboardClientErrors.md @@ -134,9 +143,12 @@ docs/DashboardsApi.md docs/DataUnavailable.md docs/DependencyDirection.md docs/DummyApi.md +docs/DurationCell.md docs/DurationDisplay.md docs/DurationHistogram.md docs/DurationHistogramBucket.md +docs/DurationMetaDisplay.md +docs/DurationProjection.md docs/DurationQuantiles.md docs/EmailChannelRefId.md docs/EmailChannelWriteSchema.md @@ -202,7 +214,10 @@ docs/GetKubernetesLogsResult.md docs/GetTopologyTimeout.md docs/GrantPermission.md docs/HealthBadgeDisplay.md +docs/HealthCell.md docs/HealthCircleDisplay.md +docs/HealthMetaDisplay.md +docs/HealthProjection.md docs/HealthSource.md docs/HealthStateValue.md docs/HealthStreamError.md @@ -237,6 +252,8 @@ docs/LayoutHint.md docs/LayoutList.md docs/LicensedSubscription.md docs/LimitOutOfRange.md +docs/LinkCell.md +docs/LinkMetaDisplay.md docs/LockedResponse.md docs/LogLevel.md docs/LogSeverity.md @@ -250,6 +267,9 @@ docs/Messages.md docs/MetricApi.md docs/MetricBindingLayout.md docs/MetricBucketValue.md +docs/MetricCell.md +docs/MetricChartMetaDisplay.md +docs/MetricChartProjection.md docs/MetricPerspectiveLocation.md docs/MetricPerspectiveSection.md docs/MetricPerspectiveSectionAllOf.md @@ -331,6 +351,9 @@ docs/NotificationConfigurationStatusValue.md docs/NotificationConfigurationWriteSchema.md docs/NotificationConfigurationsApi.md docs/NotifyOnOptions.md +docs/NumericCell.md +docs/NumericMetaDisplay.md +docs/NumericProjection.md docs/OpsgenieChannelRefId.md docs/OpsgenieChannelWriteSchema.md docs/OpsgenieNotificationChannel.md @@ -361,6 +384,29 @@ docs/OtelRelationMapping.md docs/OtelRelationMappingOutput.md docs/OtelTagMapping.md docs/OtelVariableMapping.md +docs/OverviewApi.md +docs/OverviewColumnDefinition.md +docs/OverviewColumnFilter.md +docs/OverviewColumnMeta.md +docs/OverviewColumnMetaDisplay.md +docs/OverviewColumnProjection.md +docs/OverviewDataUnavailable.md +docs/OverviewErrorResponse.md +docs/OverviewFetchTimeout.md +docs/OverviewFilters.md +docs/OverviewMetadata.md +docs/OverviewPageResponse.md +docs/OverviewPageResult.md +docs/OverviewPaginationCursor.md +docs/OverviewPaginationDirection.md +docs/OverviewPaginationRequest.md +docs/OverviewRequest.md +docs/OverviewRow.md +docs/OverviewSorting.md +docs/OverviewSortingDirection.md +docs/OverviewTooManyActiveQueries.md +docs/OverviewTopologySizeOverflow.md +docs/PaginationResponse.md docs/PermissionDescription.md docs/Permissions.md docs/PermissionsApi.md @@ -399,6 +445,14 @@ docs/PresentationName.md docs/PresentationOverview.md docs/ProblemApi.md docs/ProblemNotFound.md +docs/PromBatchEnvelope.md +docs/PromBatchError.md +docs/PromBatchInstantQuery.md +docs/PromBatchQueryItem.md +docs/PromBatchQueryRequest.md +docs/PromBatchRangeQuery.md +docs/PromBatchResult.md +docs/PromBatchSuccess.md docs/PromData.md docs/PromDataResult.md docs/PromDataString.md @@ -409,13 +463,13 @@ docs/PromExemplarEnvelope.md docs/PromLabelsEnvelope.md docs/PromMatrix.md docs/PromMetadataEnvelope.md -docs/PromQLDisplay.md docs/PromQLMetric.md docs/PromSampleInner.md docs/PromScalar.md docs/PromSeriesEnvelope.md docs/PromVector.md docs/PromVectorResult.md +docs/PromqlDisplay.md docs/PropertySource.md docs/ProvisionResponse.md docs/QueryMetadata.md @@ -423,7 +477,10 @@ docs/QueryParsingFailure.md docs/QuerySnapshotResult.md docs/QueryViewArguments.md docs/RatioDisplay.md +docs/ReadyStatusCell.md docs/ReadyStatusDisplay.md +docs/ReadyStatusMetaDisplay.md +docs/ReadyStatusProjection.md docs/RelationApi.md docs/RelationData.md docs/ReleaseStatus.md @@ -495,7 +552,10 @@ docs/TeamsChannelRefId.md docs/TeamsChannelWriteSchema.md docs/TeamsNotificationChannel.md docs/TeamsNotificationChannelAllOf.md +docs/TextCell.md docs/TextDisplay.md +docs/TextMetaDisplay.md +docs/TextProjection.md docs/TimelineApi.md docs/TimelineSummary.md docs/TimelineSummaryError.md @@ -562,6 +622,7 @@ model_agent_lease.go model_agent_registration.go model_agent_registrations.go model_api_token.go +model_application_domain.go model_argument.go model_argument_boolean_val.go model_argument_comparator_without_equality_val.go @@ -589,6 +650,7 @@ model_bound_metrics.go model_bound_traces.go model_causing_events_are_not_available_for_the_time.go model_causing_events_result.go +model_cell_value.go model_channel_reference_id.go model_chart_type.go model_check_lease_request.go @@ -603,9 +665,14 @@ 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_link_cell.go model_component_link_display.go +model_component_link_meta_display.go +model_component_link_projection.go model_component_presentation.go model_component_presentation_api_error.go +model_component_presentation_query_binding.go +model_component_presentation_rank.go model_component_query.go model_component_summary_location.go model_component_type_about.go @@ -621,6 +688,7 @@ model_component_type_value_extractor.go model_component_view_arguments.go model_composite_source.go model_constant_source.go +model_container_image_projection.go model_create_subject.go model_dashboard_authorization_error.go model_dashboard_client_errors.go @@ -640,9 +708,12 @@ model_dashboard_validation_error.go model_dashboard_write_schema.go model_data_unavailable.go model_dependency_direction.go +model_duration_cell.go model_duration_display.go model_duration_histogram.go model_duration_histogram_bucket.go +model_duration_meta_display.go +model_duration_projection.go model_duration_quantiles.go model_email_channel_ref_id.go model_email_channel_write_schema.go @@ -706,7 +777,10 @@ model_get_kubernetes_logs_result.go model_get_topology_timeout.go model_grant_permission.go model_health_badge_display.go +model_health_cell.go model_health_circle_display.go +model_health_meta_display.go +model_health_projection.go model_health_source.go model_health_state_value.go model_health_stream_error.go @@ -737,6 +811,8 @@ model_layout_hint.go model_layout_list.go model_licensed_subscription.go model_limit_out_of_range.go +model_link_cell.go +model_link_meta_display.go model_locked_response.go model_log_level.go model_log_severity.go @@ -748,6 +824,9 @@ model_message_level.go model_messages.go model_metric_binding_layout.go model_metric_bucket_value.go +model_metric_cell.go +model_metric_chart_meta_display.go +model_metric_chart_projection.go model_metric_perspective_location.go model_metric_perspective_section.go model_metric_perspective_section_all_of.go @@ -824,6 +903,9 @@ model_notification_configuration_runtime_status_value.go model_notification_configuration_status_value.go model_notification_configuration_write_schema.go model_notify_on_options.go +model_numeric_cell.go +model_numeric_meta_display.go +model_numeric_projection.go model_opsgenie_channel_ref_id.go model_opsgenie_channel_write_schema.go model_opsgenie_notification_channel.go @@ -853,6 +935,28 @@ model_otel_relation_mapping.go model_otel_relation_mapping_output.go model_otel_tag_mapping.go model_otel_variable_mapping.go +model_overview_column_definition.go +model_overview_column_filter.go +model_overview_column_meta.go +model_overview_column_meta_display.go +model_overview_column_projection.go +model_overview_data_unavailable.go +model_overview_error_response.go +model_overview_fetch_timeout.go +model_overview_filters.go +model_overview_metadata.go +model_overview_page_response.go +model_overview_page_result.go +model_overview_pagination_cursor.go +model_overview_pagination_direction.go +model_overview_pagination_request.go +model_overview_request.go +model_overview_row.go +model_overview_sorting.go +model_overview_sorting_direction.go +model_overview_too_many_active_queries.go +model_overview_topology_size_overflow.go +model_pagination_response.go model_permission_description.go model_permissions.go model_perses_dashboard.go @@ -889,6 +993,14 @@ model_presentation_main_menu.go model_presentation_name.go model_presentation_overview.go model_problem_not_found.go +model_prom_batch_envelope.go +model_prom_batch_error.go +model_prom_batch_instant_query.go +model_prom_batch_query_item.go +model_prom_batch_query_request.go +model_prom_batch_range_query.go +model_prom_batch_result.go +model_prom_batch_success.go model_prom_data.go model_prom_data_result.go model_prom_data_string.go @@ -899,13 +1011,13 @@ model_prom_exemplar_envelope.go model_prom_labels_envelope.go model_prom_matrix.go model_prom_metadata_envelope.go -model_prom_ql_display.go model_prom_ql_metric.go model_prom_sample_inner.go model_prom_scalar.go model_prom_series_envelope.go model_prom_vector.go model_prom_vector_result.go +model_promql_display.go model_property_source.go model_provision_response.go model_query_metadata.go @@ -913,7 +1025,10 @@ model_query_parsing_failure.go model_query_snapshot_result.go model_query_view_arguments.go model_ratio_display.go +model_ready_status_cell.go model_ready_status_display.go +model_ready_status_meta_display.go +model_ready_status_projection.go model_relation_data.go model_release_status.go model_request_error.go @@ -976,7 +1091,10 @@ model_teams_channel_ref_id.go model_teams_channel_write_schema.go model_teams_notification_channel.go model_teams_notification_channel_all_of.go +model_text_cell.go model_text_display.go +model_text_meta_display.go +model_text_projection.go model_timeline_summary.go model_timeline_summary_error.go model_timeline_summary_event_bucket.go diff --git a/generated/stackstate_api/README.md b/generated/stackstate_api/README.md index a0f7b0cf..946bbb4f 100644 --- a/generated/stackstate_api/README.md +++ b/generated/stackstate_api/README.md @@ -139,6 +139,7 @@ Class | Method | HTTP request | Description *MetricApi* | [**PostLabelValues**](docs/MetricApi.md#postlabelvalues) | **Post** /metrics/label/{label}/values | List of label values for a provided label name *MetricApi* | [**PostLabels**](docs/MetricApi.md#postlabels) | **Post** /metrics/labels | List of label names *MetricApi* | [**PostMetadata**](docs/MetricApi.md#postmetadata) | **Post** /metrics/metadata | Metadata about metrics currently scraped from targets +*MetricApi* | [**PostQueryBatch**](docs/MetricApi.md#postquerybatch) | **Post** /metrics/query_batch | Batch execution of multiple PromQL queries *MetricApi* | [**PostRangeQuery**](docs/MetricApi.md#postrangequery) | **Post** /metrics/query_range | Query over a range of time *MetricApi* | [**PostSeries**](docs/MetricApi.md#postseries) | **Post** /metrics/series | List of time series that match a certain label set *MonitorApi* | [**DeleteMonitor**](docs/MonitorApi.md#deletemonitor) | **Delete** /monitors/{monitorIdOrUrn} | Delete a monitor @@ -210,6 +211,7 @@ Class | Method | HTTP request | Description *OtelMappingApi* | [**GetOtelRelationMappings**](docs/OtelMappingApi.md#getotelrelationmappings) | **Get** /otel-relation-mappings | Get all otel relation mappings. *OtelMappingApi* | [**UpsertOtelComponentMappings**](docs/OtelMappingApi.md#upsertotelcomponentmappings) | **Put** /otel-component-mappings | Upserts (creates/updates) an OTel Component Mappings. *OtelMappingApi* | [**UpsertOtelRelationMappings**](docs/OtelMappingApi.md#upsertotelrelationmappings) | **Put** /otel-relation-mappings | Upserts (creates/updates) an OTel Relation Mappings. +*OverviewApi* | [**GetOverview**](docs/OverviewApi.md#getoverview) | **Post** /overview/{presentationOrViewUrn} | Get overview data for components *PermissionsApi* | [**DescribePermissions**](docs/PermissionsApi.md#describepermissions) | **Get** /security/permissions/{subject} | Describe permissions *PermissionsApi* | [**GetPermissions**](docs/PermissionsApi.md#getpermissions) | **Get** /security/permissions/list | List permissions *PermissionsApi* | [**GrantPermissions**](docs/PermissionsApi.md#grantpermissions) | **Post** /security/permissions/{subject} | Grant permissions @@ -265,6 +267,7 @@ Class | Method | HTTP request | Description - [AgentRegistration](docs/AgentRegistration.md) - [AgentRegistrations](docs/AgentRegistrations.md) - [ApiToken](docs/ApiToken.md) + - [ApplicationDomain](docs/ApplicationDomain.md) - [Argument](docs/Argument.md) - [ArgumentBooleanVal](docs/ArgumentBooleanVal.md) - [ArgumentComparatorWithoutEqualityVal](docs/ArgumentComparatorWithoutEqualityVal.md) @@ -292,6 +295,7 @@ Class | Method | HTTP request | Description - [BoundTraces](docs/BoundTraces.md) - [CausingEventsAreNotAvailableForTheTime](docs/CausingEventsAreNotAvailableForTheTime.md) - [CausingEventsResult](docs/CausingEventsResult.md) + - [CellValue](docs/CellValue.md) - [ChannelReferenceId](docs/ChannelReferenceId.md) - [ChartType](docs/ChartType.md) - [CheckLeaseRequest](docs/CheckLeaseRequest.md) @@ -306,9 +310,14 @@ Class | Method | HTTP request | Description - [ComponentHighlightMetricSection](docs/ComponentHighlightMetricSection.md) - [ComponentHighlightMetricSectionAllOf](docs/ComponentHighlightMetricSectionAllOf.md) - [ComponentHighlightMetrics](docs/ComponentHighlightMetrics.md) + - [ComponentLinkCell](docs/ComponentLinkCell.md) - [ComponentLinkDisplay](docs/ComponentLinkDisplay.md) + - [ComponentLinkMetaDisplay](docs/ComponentLinkMetaDisplay.md) + - [ComponentLinkProjection](docs/ComponentLinkProjection.md) - [ComponentPresentation](docs/ComponentPresentation.md) - [ComponentPresentationApiError](docs/ComponentPresentationApiError.md) + - [ComponentPresentationQueryBinding](docs/ComponentPresentationQueryBinding.md) + - [ComponentPresentationRank](docs/ComponentPresentationRank.md) - [ComponentQuery](docs/ComponentQuery.md) - [ComponentSummaryLocation](docs/ComponentSummaryLocation.md) - [ComponentTypeAbout](docs/ComponentTypeAbout.md) @@ -324,6 +333,7 @@ Class | Method | HTTP request | Description - [ComponentViewArguments](docs/ComponentViewArguments.md) - [CompositeSource](docs/CompositeSource.md) - [ConstantSource](docs/ConstantSource.md) + - [ContainerImageProjection](docs/ContainerImageProjection.md) - [CreateSubject](docs/CreateSubject.md) - [DashboardAuthorizationError](docs/DashboardAuthorizationError.md) - [DashboardClientErrors](docs/DashboardClientErrors.md) @@ -343,9 +353,12 @@ Class | Method | HTTP request | Description - [DashboardWriteSchema](docs/DashboardWriteSchema.md) - [DataUnavailable](docs/DataUnavailable.md) - [DependencyDirection](docs/DependencyDirection.md) + - [DurationCell](docs/DurationCell.md) - [DurationDisplay](docs/DurationDisplay.md) - [DurationHistogram](docs/DurationHistogram.md) - [DurationHistogramBucket](docs/DurationHistogramBucket.md) + - [DurationMetaDisplay](docs/DurationMetaDisplay.md) + - [DurationProjection](docs/DurationProjection.md) - [DurationQuantiles](docs/DurationQuantiles.md) - [EmailChannelRefId](docs/EmailChannelRefId.md) - [EmailChannelWriteSchema](docs/EmailChannelWriteSchema.md) @@ -409,7 +422,10 @@ Class | Method | HTTP request | Description - [GetTopologyTimeout](docs/GetTopologyTimeout.md) - [GrantPermission](docs/GrantPermission.md) - [HealthBadgeDisplay](docs/HealthBadgeDisplay.md) + - [HealthCell](docs/HealthCell.md) - [HealthCircleDisplay](docs/HealthCircleDisplay.md) + - [HealthMetaDisplay](docs/HealthMetaDisplay.md) + - [HealthProjection](docs/HealthProjection.md) - [HealthSource](docs/HealthSource.md) - [HealthStateValue](docs/HealthStateValue.md) - [HealthStreamError](docs/HealthStreamError.md) @@ -440,6 +456,8 @@ Class | Method | HTTP request | Description - [LayoutList](docs/LayoutList.md) - [LicensedSubscription](docs/LicensedSubscription.md) - [LimitOutOfRange](docs/LimitOutOfRange.md) + - [LinkCell](docs/LinkCell.md) + - [LinkMetaDisplay](docs/LinkMetaDisplay.md) - [LockedResponse](docs/LockedResponse.md) - [LogLevel](docs/LogLevel.md) - [LogSeverity](docs/LogSeverity.md) @@ -451,6 +469,9 @@ Class | Method | HTTP request | Description - [Messages](docs/Messages.md) - [MetricBindingLayout](docs/MetricBindingLayout.md) - [MetricBucketValue](docs/MetricBucketValue.md) + - [MetricCell](docs/MetricCell.md) + - [MetricChartMetaDisplay](docs/MetricChartMetaDisplay.md) + - [MetricChartProjection](docs/MetricChartProjection.md) - [MetricPerspectiveLocation](docs/MetricPerspectiveLocation.md) - [MetricPerspectiveSection](docs/MetricPerspectiveSection.md) - [MetricPerspectiveSectionAllOf](docs/MetricPerspectiveSectionAllOf.md) @@ -527,6 +548,9 @@ Class | Method | HTTP request | Description - [NotificationConfigurationStatusValue](docs/NotificationConfigurationStatusValue.md) - [NotificationConfigurationWriteSchema](docs/NotificationConfigurationWriteSchema.md) - [NotifyOnOptions](docs/NotifyOnOptions.md) + - [NumericCell](docs/NumericCell.md) + - [NumericMetaDisplay](docs/NumericMetaDisplay.md) + - [NumericProjection](docs/NumericProjection.md) - [OpsgenieChannelRefId](docs/OpsgenieChannelRefId.md) - [OpsgenieChannelWriteSchema](docs/OpsgenieChannelWriteSchema.md) - [OpsgenieNotificationChannel](docs/OpsgenieNotificationChannel.md) @@ -556,6 +580,28 @@ Class | Method | HTTP request | Description - [OtelRelationMappingOutput](docs/OtelRelationMappingOutput.md) - [OtelTagMapping](docs/OtelTagMapping.md) - [OtelVariableMapping](docs/OtelVariableMapping.md) + - [OverviewColumnDefinition](docs/OverviewColumnDefinition.md) + - [OverviewColumnFilter](docs/OverviewColumnFilter.md) + - [OverviewColumnMeta](docs/OverviewColumnMeta.md) + - [OverviewColumnMetaDisplay](docs/OverviewColumnMetaDisplay.md) + - [OverviewColumnProjection](docs/OverviewColumnProjection.md) + - [OverviewDataUnavailable](docs/OverviewDataUnavailable.md) + - [OverviewErrorResponse](docs/OverviewErrorResponse.md) + - [OverviewFetchTimeout](docs/OverviewFetchTimeout.md) + - [OverviewFilters](docs/OverviewFilters.md) + - [OverviewMetadata](docs/OverviewMetadata.md) + - [OverviewPageResponse](docs/OverviewPageResponse.md) + - [OverviewPageResult](docs/OverviewPageResult.md) + - [OverviewPaginationCursor](docs/OverviewPaginationCursor.md) + - [OverviewPaginationDirection](docs/OverviewPaginationDirection.md) + - [OverviewPaginationRequest](docs/OverviewPaginationRequest.md) + - [OverviewRequest](docs/OverviewRequest.md) + - [OverviewRow](docs/OverviewRow.md) + - [OverviewSorting](docs/OverviewSorting.md) + - [OverviewSortingDirection](docs/OverviewSortingDirection.md) + - [OverviewTooManyActiveQueries](docs/OverviewTooManyActiveQueries.md) + - [OverviewTopologySizeOverflow](docs/OverviewTopologySizeOverflow.md) + - [PaginationResponse](docs/PaginationResponse.md) - [PermissionDescription](docs/PermissionDescription.md) - [Permissions](docs/Permissions.md) - [PersesDashboard](docs/PersesDashboard.md) @@ -592,6 +638,14 @@ Class | Method | HTTP request | Description - [PresentationName](docs/PresentationName.md) - [PresentationOverview](docs/PresentationOverview.md) - [ProblemNotFound](docs/ProblemNotFound.md) + - [PromBatchEnvelope](docs/PromBatchEnvelope.md) + - [PromBatchError](docs/PromBatchError.md) + - [PromBatchInstantQuery](docs/PromBatchInstantQuery.md) + - [PromBatchQueryItem](docs/PromBatchQueryItem.md) + - [PromBatchQueryRequest](docs/PromBatchQueryRequest.md) + - [PromBatchRangeQuery](docs/PromBatchRangeQuery.md) + - [PromBatchResult](docs/PromBatchResult.md) + - [PromBatchSuccess](docs/PromBatchSuccess.md) - [PromData](docs/PromData.md) - [PromDataResult](docs/PromDataResult.md) - [PromDataString](docs/PromDataString.md) @@ -602,13 +656,13 @@ Class | Method | HTTP request | Description - [PromLabelsEnvelope](docs/PromLabelsEnvelope.md) - [PromMatrix](docs/PromMatrix.md) - [PromMetadataEnvelope](docs/PromMetadataEnvelope.md) - - [PromQLDisplay](docs/PromQLDisplay.md) - [PromQLMetric](docs/PromQLMetric.md) - [PromSampleInner](docs/PromSampleInner.md) - [PromScalar](docs/PromScalar.md) - [PromSeriesEnvelope](docs/PromSeriesEnvelope.md) - [PromVector](docs/PromVector.md) - [PromVectorResult](docs/PromVectorResult.md) + - [PromqlDisplay](docs/PromqlDisplay.md) - [PropertySource](docs/PropertySource.md) - [ProvisionResponse](docs/ProvisionResponse.md) - [QueryMetadata](docs/QueryMetadata.md) @@ -616,7 +670,10 @@ Class | Method | HTTP request | Description - [QuerySnapshotResult](docs/QuerySnapshotResult.md) - [QueryViewArguments](docs/QueryViewArguments.md) - [RatioDisplay](docs/RatioDisplay.md) + - [ReadyStatusCell](docs/ReadyStatusCell.md) - [ReadyStatusDisplay](docs/ReadyStatusDisplay.md) + - [ReadyStatusMetaDisplay](docs/ReadyStatusMetaDisplay.md) + - [ReadyStatusProjection](docs/ReadyStatusProjection.md) - [RelationData](docs/RelationData.md) - [ReleaseStatus](docs/ReleaseStatus.md) - [RequestError](docs/RequestError.md) @@ -679,7 +736,10 @@ Class | Method | HTTP request | Description - [TeamsChannelWriteSchema](docs/TeamsChannelWriteSchema.md) - [TeamsNotificationChannel](docs/TeamsNotificationChannel.md) - [TeamsNotificationChannelAllOf](docs/TeamsNotificationChannelAllOf.md) + - [TextCell](docs/TextCell.md) - [TextDisplay](docs/TextDisplay.md) + - [TextMetaDisplay](docs/TextMetaDisplay.md) + - [TextProjection](docs/TextProjection.md) - [TimelineSummary](docs/TimelineSummary.md) - [TimelineSummaryError](docs/TimelineSummaryError.md) - [TimelineSummaryEventBucket](docs/TimelineSummaryEventBucket.md) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index 5f8522c4..f9b293fd 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -4295,6 +4295,47 @@ paths: summary: Query over a range of time tags: - metric + /metrics/query_batch: + post: + description: "Executes multiple PromQL queries in a single request to reduce\ + \ HTTP overhead. Each query is executed independently and results are returned\ + \ in a single response. Partial failures are supported: individual queries\ + \ may fail while others succeed.\n" + operationId: postQueryBatch + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PromBatchQueryRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/PromBatchEnvelope' + description: Batch query response + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/PromEnvelope' + description: Parameters are missing or incorrect + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/GenericErrorsResponse' + description: Error when handling the request on the server side. + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/PromEnvelope' + description: when queries time out or abort + summary: Batch execution of multiple PromQL queries + tags: + - metric /metrics/query_exemplars: get: description: "Experimental: The returns a list of exemplars for a valid PromQL\ @@ -6636,6 +6677,40 @@ paths: summary: Query topology snapshot tags: - snapshot + /overview/{presentationOrViewUrn}: + post: + operationId: getOverview + parameters: + - description: "A Component Presentation Identifier, legacy View (QueryView,\ + \ ViewType) URNs are be supported for backward compatibility" + in: path + name: presentationOrViewUrn + required: true + schema: + $ref: '#/components/schemas/PresentationOrViewIdentifier' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OverviewRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/OverviewPageResponse' + description: Overview data + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/OverviewErrorResponse' + description: Bad request. The request was invalid or cannot be otherwise + served. + summary: Get overview data for components + tags: + - overview /dummy/dummy: get: description: "" @@ -7167,6 +7242,12 @@ components: schema: $ref: '#/components/schemas/PromEnvelope' description: when queries time out or abort + successBatchEnvelope: + content: + application/json: + schema: + $ref: '#/components/schemas/PromBatchEnvelope' + description: Batch query response successExemplarEnvelope: content: application/json: @@ -11350,6 +11431,9 @@ components: ServerInfo: example: deploymentMode: Saas + applicationDomains: + - null + - null platformVersion: 1.2.3-alpha.1+build5678 version: patch: 1 @@ -11371,7 +11455,14 @@ components: \ Semantic Versioning spec (https://semver.org/)." example: 1.2.3-alpha.1+build5678 type: string + applicationDomains: + items: + $ref: '#/components/schemas/ApplicationDomain' + minItems: 1 + type: array + uniqueItems: true required: + - applicationDomains - deploymentMode - version type: object @@ -11409,6 +11500,11 @@ components: \ Semantic Versioning spec (https://semver.org/)." example: 1.2.3-alpha.1+build5678 type: string + ApplicationDomain: + enum: + - Observability + - Security + type: string ServiceTokenCreatedResponse: example: name: name @@ -12100,6 +12196,158 @@ components: type: object PromAligned: type: boolean + PromBatchQueryRequest: + description: "Executes multiple query items in one request. If both request-level\ + \ timeout and item-level timeout are set, item-level timeout takes precedence.\n" + example: + queries: + - null + - null + timeout: timeout + properties: + queries: + description: List of queries to execute. + items: + $ref: '#/components/schemas/PromBatchQueryItem' + minItems: 1 + type: array + timeout: + pattern: "^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$" + type: string + required: + - queries + type: object + PromBatchQueryItem: + discriminator: + mapping: + instant: '#/components/schemas/PromBatchInstantQuery' + range: '#/components/schemas/PromBatchRangeQuery' + propertyName: _type + oneOf: + - $ref: '#/components/schemas/PromBatchInstantQuery' + - $ref: '#/components/schemas/PromBatchRangeQuery' + PromBatchInstantQuery: + properties: + id: + type: string + _type: + enum: + - instant + type: string + query: + type: string + time: + pattern: "(^((?:(\\d{4}-\\d{2}-\\d{2})T(\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?))(Z|[\\\ + +-]\\d{2}:\\d{2})?)$)|(^[0-9]{10}$)" + type: string + step: + pattern: "(^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$)|(^[0-9]+$)" + type: string + timeout: + pattern: "^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$" + type: string + post_filter: + items: + type: string + type: array + required: + - _type + - id + - query + type: object + PromBatchRangeQuery: + properties: + id: + type: string + _type: + enum: + - range + type: string + query: + type: string + start: + pattern: "(^((?:(\\d{4}-\\d{2}-\\d{2})T(\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?))(Z|[\\\ + +-]\\d{2}:\\d{2})?)$)|(^[0-9]{10}$)" + type: string + end: + pattern: "(^((?:(\\d{4}-\\d{2}-\\d{2})T(\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?))(Z|[\\\ + +-]\\d{2}:\\d{2})?)$)|(^[0-9]{10}$)" + type: string + step: + pattern: "(^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$)|(^[0-9]+$)" + type: string + timeout: + pattern: "^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$" + type: string + aligned: + type: boolean + maxNumberOfDataPoints: + format: int64 + type: integer + post_filter: + items: + type: string + type: array + required: + - _type + - end + - id + - query + - start + - step + type: object + PromBatchEnvelope: + example: + results: + - null + - null + properties: + results: + items: + $ref: '#/components/schemas/PromBatchResult' + type: array + required: + - results + type: object + PromBatchResult: + discriminator: + mapping: + success: '#/components/schemas/PromBatchSuccess' + error: '#/components/schemas/PromBatchError' + propertyName: resultType + oneOf: + - $ref: '#/components/schemas/PromBatchSuccess' + - $ref: '#/components/schemas/PromBatchError' + PromBatchSuccess: + properties: + id: + type: string + resultType: + enum: + - success + type: string + data: + $ref: '#/components/schemas/PromEnvelope' + required: + - data + - id + - resultType + type: object + PromBatchError: + properties: + id: + type: string + resultType: + enum: + - error + type: string + error: + type: string + required: + - error + - id + - resultType + type: object PromExemplarEnvelope: example: data: @@ -14178,681 +14426,268 @@ components: - identifiers - sourceProperties - syncName - ComponentTypeHighlights: + ComponentAction: example: - showLastChange: true - namePlural: namePlural - externalComponent: - externalIdSelector: externalIdSelector - showConfiguration: true - showStatus: true - showLogs: true - about: - fields: - - fields - - fields - metrics: - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true - - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true - fields: - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - events: - showEvents: true - relatedResourcesTemplate: relatedResourcesTemplate - relatedResources: - - hint: hint - stql: stql - title: title - viewTypeIdentifier: viewTypeIdentifier - resourceType: resourceType - - hint: hint - stql: stql - title: title - viewTypeIdentifier: viewTypeIdentifier - resourceType: resourceType + name: name + description: description + id: 5 properties: - namePlural: + id: + format: int64 + type: integer + name: type: string - fields: - items: - $ref: '#/components/schemas/ComponentTypeField' - type: array - about: - $ref: '#/components/schemas/ComponentTypeAbout' - events: - $ref: '#/components/schemas/ComponentTypeEvents' - showLogs: - type: boolean - showLastChange: - type: boolean - externalComponent: - $ref: '#/components/schemas/ComponentTypeExternalComponent' - relatedResources: - items: - $ref: '#/components/schemas/ComponentTypeRelatedResources' - type: array - metrics: - items: - $ref: '#/components/schemas/ComponentHighlightMetrics' - type: array - required: - - about - - events - - externalComponent - - fields - - metrics - - namePlural - - relatedResources - - showLastChange - - showLogs - ComponentTypeField: - example: - valueExtractor: null - display: null - label: - helpBubbleText: helpBubbleText - title: title - fieldId: fieldId - properties: - fieldId: + description: type: string - label: - $ref: '#/components/schemas/ComponentTypeLabel' - valueExtractor: - $ref: '#/components/schemas/ComponentTypeValueExtractor' - display: - $ref: '#/components/schemas/ComponentTypeFieldDisplay' required: - - display - - fieldId - - label - - valueExtractor - ComponentTypeLabel: + - id + - name + BoundMetric: example: - helpBubbleText: helpBubbleText - title: title + 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: - title: + name: type: string - helpBubbleText: + identifier: type: string - required: - - title - ComponentTypeValueExtractor: - discriminator: - propertyName: _type - oneOf: - - $ref: '#/components/schemas/ComponentTypeSource' - - $ref: '#/components/schemas/CompositeSource' - - $ref: '#/components/schemas/ConstantSource' - - $ref: '#/components/schemas/HealthSource' - - $ref: '#/components/schemas/IdentifiersSource' - - $ref: '#/components/schemas/LastUpdatedTimestampSource' - - $ref: '#/components/schemas/NameSource' - - $ref: '#/components/schemas/PropertySource' - - $ref: '#/components/schemas/TagSource' - - $ref: '#/components/schemas/TagsSource' - ComponentTypeSource: - properties: - _type: - enum: - - ComponentTypeSource + boundQueries: + items: + $ref: '#/components/schemas/BoundMetricQuery' + type: array + description: type: string - required: - - _type - CompositeSource: - properties: - _type: - enum: - - CompositeSource + unit: type: string - sources: + chartType: + $ref: '#/components/schemas/ChartType' + alias: + type: string + valuation: + $ref: '#/components/schemas/MetricValuation' + tags: additionalProperties: - $ref: '#/components/schemas/ComponentTypeValueExtractor' + type: string type: object + layout: + $ref: '#/components/schemas/MetricBindingLayout' + dummy: + type: boolean required: - - _type - - sources - ConstantSource: - properties: - _type: - enum: - - ConstantSource - type: string - value: - type: string - required: - - _type - - value - HealthSource: + - boundQueries + - chartType + - name + - tags + BoundMetricQuery: + example: + expression: expression + componentIdentifierTemplate: componentIdentifierTemplate + alias: alias + primary: true properties: - _type: - enum: - - HealthSource + expression: type: string - required: - - _type - IdentifiersSource: - properties: - _type: - enum: - - IdentifiersSource + alias: type: string - required: - - _type - LastUpdatedTimestampSource: - properties: - _type: - enum: - - LastUpdatedTimestampSource + componentIdentifierTemplate: type: string + primary: + type: boolean required: - - _type - NameSource: + - 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: - _type: - enum: - - NameSource - type: string - required: - - _type - PropertySource: + metricPerspective: + $ref: '#/components/schemas/MetricPerspectiveLocation' + componentHighlight: + $ref: '#/components/schemas/ComponentHighlightLocation' + componentSummary: + $ref: '#/components/schemas/ComponentSummaryLocation' + MetricPerspectiveLocation: + example: + tab: tab + weight: 2 + section: section properties: - _type: - enum: - - PropertySource - type: string - key: + tab: type: string - defaultValue: + section: type: string + weight: + type: integer required: - - _type - - key - TagSource: + - section + - tab + ComponentHighlightLocation: + example: + weight: 7 + section: section properties: - _type: - enum: - - TagSource - type: string - tagName: + section: type: string + weight: + type: integer required: - - _type - - tagName - TagsSource: + - section + ComponentSummaryLocation: + example: + weight: 9 properties: - _type: - enum: - - TagsSource - type: string - required: - - _type - ComponentTypeFieldDisplay: - discriminator: - propertyName: _type - oneOf: - - $ref: '#/components/schemas/ComponentLinkDisplay' - - $ref: '#/components/schemas/DurationDisplay' - - $ref: '#/components/schemas/HealthBadgeDisplay' - - $ref: '#/components/schemas/HealthCircleDisplay' - - $ref: '#/components/schemas/PromQLDisplay' - - $ref: '#/components/schemas/RatioDisplay' - - $ref: '#/components/schemas/ReadyStatusDisplay' - - $ref: '#/components/schemas/TagDisplay' - - $ref: '#/components/schemas/TextDisplay' - - $ref: '#/components/schemas/ViewTimeLink' - required: - - _type - ComponentLinkDisplay: - properties: - _type: - enum: - - ComponentLinkDisplay - type: string - required: - - _type - DurationDisplay: - properties: - _type: - enum: - - DurationDisplay - type: string - required: - - _type - HealthBadgeDisplay: - properties: - _type: - enum: - - HealthBadgeDisplay - type: string - required: - - _type - HealthCircleDisplay: - properties: - _type: - enum: - - HealthCircleDisplay - type: string - required: - - _type - PromQLDisplay: - properties: - _type: - enum: - - PromQLDisplay - type: string - required: - - _type - RatioDisplay: - properties: - _type: - enum: - - RatioDisplay - type: string - required: - - _type - ReadyStatusDisplay: - properties: - _type: - enum: - - RatioDisplay - type: string - required: - - _type - TagDisplay: - properties: - _type: - enum: - - TagDisplay - type: string - singular: - type: string - required: - - _type - TextDisplay: - properties: - _type: - enum: - - TextDisplay - type: string - required: - - _type - ViewTimeLink: + weight: + type: integer + BoundTraces: + example: + filter: + traceId: + - 6942f450030e8c5f7411a23c26185aa2 + spanId: + - 1a607e3a97735e71 + durationFromNanos: 500000 + spanKind: + - Client + durationToNanos: 5000000 + scopeName: + - scopeName + - scopeName + attributes: + key: + - attributes + - attributes + spanParentType: + - External + serviceName: orderService + spanName: + - GET /orders + statusCode: + - Error + scopeVersion: + - scopeVersion + - scopeVersion properties: - _type: - enum: - - ViewTimeLink - type: string + filter: + $ref: '#/components/schemas/SpanFilter' required: - - _type - ComponentTypeAbout: + - filter + ComponentHealthHistory: example: - fields: - - fields - - fields + startTime: 0 + endTime: 6 + healthStateChanges: + - newHealth: null + timestamp: 1 + - newHealth: null + timestamp: 1 properties: - fields: + startTime: + format: instant + type: integer + endTime: + format: instant + type: integer + healthStateChanges: + description: List of health state changes ordered from most recent to oldest. items: - type: string + $ref: '#/components/schemas/ComponentHealthChange' type: array required: - - fields - ComponentTypeEvents: - example: - showEvents: true - relatedResourcesTemplate: relatedResourcesTemplate - properties: - showEvents: - type: boolean - relatedResourcesTemplate: - type: string - required: - - showEvents - ComponentTypeExternalComponent: - example: - externalIdSelector: externalIdSelector - showConfiguration: true - showStatus: true - properties: - showConfiguration: - type: boolean - showStatus: - type: boolean - externalIdSelector: - type: string - required: - - externalIdSelector - - showConfiguration - - showStatus - ComponentTypeRelatedResources: + - endTime + - healthStateChanges + - startTime + ComponentHealthChange: example: - hint: hint - stql: stql - title: title - viewTypeIdentifier: viewTypeIdentifier - resourceType: resourceType + newHealth: null + timestamp: 1 properties: - resourceType: - type: string - title: - type: string - stql: - type: string - hint: - type: string - viewTypeIdentifier: - type: string + timestamp: + format: int64 + type: integer + newHealth: + $ref: '#/components/schemas/HealthStateValue' required: - - resourceType - - stql - - title - ComponentHighlightMetrics: + - newHealth + - timestamp + ComponentCheckStates: example: - bindings: - - bindings - - bindings - name: name - description: description - defaultExpanded: true + checkStates: + - identifier: identifier + startTime: 0 + endTime: 6 + idOrIdentifier: idOrIdentifier + - identifier: identifier + startTime: 0 + endTime: 6 + idOrIdentifier: idOrIdentifier properties: - name: - type: string - description: - type: string - bindings: + checkStates: items: - type: string + $ref: '#/components/schemas/ComponentCheckState' type: array - defaultExpanded: - type: boolean required: - - bindings - - defaultExpanded - - name - ComponentAction: + - checkStates + ComponentCheckState: example: - name: name - description: description - id: 5 + identifier: identifier + startTime: 0 + endTime: 6 + idOrIdentifier: idOrIdentifier properties: - id: - format: int64 - type: integer - name: + identifier: type: string - description: + idOrIdentifier: type: string - required: - - id - - name - BoundMetric: - example: - 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: - name: - type: string - identifier: - type: string - boundQueries: - items: - $ref: '#/components/schemas/BoundMetricQuery' - type: array - description: - type: string - unit: - type: string - chartType: - $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 - BoundMetricQuery: - example: - expression: expression - componentIdentifierTemplate: componentIdentifierTemplate - alias: alias - primary: true - properties: - expression: - type: string - alias: - type: string - componentIdentifierTemplate: - type: string - primary: - type: boolean - 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: - example: - tab: tab - weight: 2 - section: section - properties: - tab: - type: string - section: - type: string - weight: - type: integer - required: - - section - - tab - ComponentHighlightLocation: - example: - weight: 7 - section: section - properties: - section: - type: string - weight: - type: integer - required: - - section - ComponentSummaryLocation: - example: - weight: 9 - properties: - weight: - type: integer - BoundTraces: - example: - filter: - traceId: - - 6942f450030e8c5f7411a23c26185aa2 - spanId: - - 1a607e3a97735e71 - durationFromNanos: 500000 - spanKind: - - Client - durationToNanos: 5000000 - scopeName: - - scopeName - - scopeName - attributes: - key: - - attributes - - attributes - spanParentType: - - External - serviceName: orderService - spanName: - - GET /orders - statusCode: - - Error - scopeVersion: - - scopeVersion - - scopeVersion - properties: - filter: - $ref: '#/components/schemas/SpanFilter' - required: - - filter - ComponentHealthHistory: - example: - startTime: 0 - endTime: 6 - healthStateChanges: - - newHealth: null - timestamp: 1 - - newHealth: null - timestamp: 1 - properties: - startTime: - format: instant - type: integer - endTime: - format: instant - type: integer - healthStateChanges: - description: List of health state changes ordered from most recent to oldest. - items: - $ref: '#/components/schemas/ComponentHealthChange' - type: array - required: - - endTime - - healthStateChanges - - startTime - ComponentHealthChange: - example: - newHealth: null - timestamp: 1 - properties: - timestamp: - format: int64 - type: integer - newHealth: - $ref: '#/components/schemas/HealthStateValue' - required: - - newHealth - - timestamp - ComponentCheckStates: - example: - checkStates: - - identifier: identifier - startTime: 0 - endTime: 6 - idOrIdentifier: idOrIdentifier - - identifier: identifier - startTime: 0 - endTime: 6 - idOrIdentifier: idOrIdentifier - properties: - checkStates: - items: - $ref: '#/components/schemas/ComponentCheckState' - type: array - required: - - checkStates - ComponentCheckState: - example: - identifier: identifier - startTime: 0 - endTime: 6 - idOrIdentifier: idOrIdentifier - properties: - identifier: - type: string - idOrIdentifier: - type: string - startTime: - format: instant - type: integer - endTime: - format: instant - type: integer + startTime: + format: instant + type: integer + endTime: + format: instant + type: integer required: - endTime - idOrIdentifier @@ -16493,1440 +16328,2334 @@ components: span: $ref: '#/components/schemas/OtelInputSpan' type: object - OtelInputMetric: - description: "Defines conditional mapping at the resource -> scope -> metric\ - \ level.\nIf omitted, `condition` defaults to `true` and `action` defaults\ - \ to `CONTINUE`." - example: - condition: condition - datapoint: - condition: condition - action: null - action: null + OtelInputMetric: + description: "Defines conditional mapping at the resource -> scope -> metric\ + \ level.\nIf omitted, `condition` defaults to `true` and `action` defaults\ + \ to `CONTINUE`." + example: + condition: condition + datapoint: + condition: condition + action: null + action: null + properties: + condition: + description: A Cel expression that must return a boolean + type: string + action: + $ref: '#/components/schemas/OtelInputConditionAction' + datapoint: + $ref: '#/components/schemas/OtelInputDatapoint' + type: object + OtelInputDatapoint: + description: "Defines conditional mapping at the resource -> scope -> metric\ + \ -> datapoint level.\nIf omitted, `condition` defaults to `true` and `action`\ + \ defaults to `CONTINUE`." + example: + condition: condition + action: null + properties: + condition: + description: A Cel expression that must return a boolean + type: string + action: + $ref: '#/components/schemas/OtelInputConditionAction' + type: object + OtelInputSpan: + description: "Defines conditional mapping at the resource -> scope -> span level.\n\ + If omitted, `condition` defaults to `true` and `action` defaults to `CONTINUE`." + example: + condition: condition + action: null + properties: + condition: + description: A Cel expression that must return a boolean + type: string + action: + $ref: '#/components/schemas/OtelInputConditionAction' + type: object + OtelComponentMappingOutput: + example: + identifier: identifier + domainIdentifier: domainIdentifier + domainName: domainName + name: name + typeName: typeName + typeIdentifier: typeIdentifier + layerIdentifier: layerIdentifier + optional: + additionalIdentifiers: + - null + - null + version: version + tags: + - pattern: pattern + source: source + target: target + - pattern: pattern + source: source + target: target + layerName: layerName + required: + additionalIdentifiers: + - null + - null + version: version + tags: + - pattern: pattern + source: source + target: target + - pattern: pattern + source: source + target: target + properties: + identifier: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + name: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + typeName: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + typeIdentifier: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + layerName: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + layerIdentifier: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + domainName: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + domainIdentifier: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + required: + $ref: '#/components/schemas/OtelComponentMappingFieldMapping' + optional: + $ref: '#/components/schemas/OtelComponentMappingFieldMapping' + required: + - domainName + - identifier + - layerName + - name + - typeName + type: object + OtelStringExpression: + description: "An expression that must produce a string. It must be one of these\ + \ formats:\n - A plain string, for example `\"this is a plain string\"`\n\ + \ - A string containing a CEL expression within curly braces `${}`, for example\ + \ \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is within\ + \ a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + OtelComponentMappingFieldMapping: + example: + additionalIdentifiers: + - null + - null + version: version + tags: + - pattern: pattern + source: source + target: target + - pattern: pattern + source: source + target: target + properties: + additionalIdentifiers: + items: + $ref: '#/components/schemas/OtelStringExpression' + type: array + version: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + tags: + items: + $ref: '#/components/schemas/OtelTagMapping' + type: array + type: object + OtelTagMapping: + description: "Defines how a tag should be mapped from an input source to an\ + \ output target, optionally using a regex pattern." + example: + pattern: pattern + source: source + target: target + properties: + source: + description: "An expression that can produce any type. It uses the CEL expression\ + \ within curly braces `${}` syntax.\nVariables use it to store any type\ + \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ + \ assign \nit the expression `\"${resource.attributes['service.namespace']\ + \ == 'test'}\"`. The variable can now be used directly in the conditions\ + \ like this: `vars.inTestNamespace`." + type: string + target: + description: Name of the target tag key to which the value should be mapped. + type: string + pattern: + description: "Optional regex pattern applied to the source value. Capturing\ + \ groups can be referenced in the target (e.g., ${1})." + type: string + required: + - source + - target + type: object + OtelAnyExpression: + description: "An expression that can produce any type. It uses the CEL expression\ + \ within curly braces `${}` syntax.\nVariables use it to store any type of\ + \ value. For example, to store a boolean in a variable named `inTestNamespace`\ + \ assign \nit the expression `\"${resource.attributes['service.namespace']\ + \ == 'test'}\"`. The variable can now be used directly in the conditions like\ + \ this: `vars.inTestNamespace`." + type: string + OtelVariableMapping: + example: + name: name + value: value + properties: + name: + type: string + value: + description: "An expression that can produce any type. It uses the CEL expression\ + \ within curly braces `${}` syntax.\nVariables use it to store any type\ + \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ + \ assign \nit the expression `\"${resource.attributes['service.namespace']\ + \ == 'test'}\"`. The variable can now be used directly in the conditions\ + \ like this: `vars.inTestNamespace`." + type: string + required: + - name + - value + type: object + OtelComponentMapping: + example: + output: + identifier: identifier + domainIdentifier: domainIdentifier + domainName: domainName + name: name + typeName: typeName + typeIdentifier: typeIdentifier + layerIdentifier: layerIdentifier + optional: + additionalIdentifiers: + - null + - null + version: version + tags: + - pattern: pattern + source: source + target: target + - pattern: pattern + source: source + target: target + layerName: layerName + required: + additionalIdentifiers: + - null + - null + version: version + tags: + - pattern: pattern + source: source + target: target + - pattern: pattern + source: source + target: target + identifier: identifier + input: + resource: + condition: condition + scope: + condition: condition + metric: + condition: condition + datapoint: + condition: condition + action: null + action: null + action: null + span: + condition: condition + action: null + action: null + signal: + - null + - null + _type: OtelComponentMapping + name: name + description: description + expireAfter: 0 + vars: + - name: name + value: value + - name: name + value: value + properties: + _type: + enum: + - OtelComponentMapping + type: string + identifier: + type: string + name: + type: string + description: + type: string + input: + $ref: '#/components/schemas/OtelInput' + output: + $ref: '#/components/schemas/OtelComponentMappingOutput' + vars: + items: + $ref: '#/components/schemas/OtelVariableMapping' + type: array + expireAfter: + format: int64 + type: integer + required: + - _type + - expireAfter + - identifier + - input + - name + - output + type: object + OtelMappingStatus: + example: + item: + identifier: identifier + componentCount: 6 + name: name + relationCount: 0 + metrics: + latencySeconds: + - value: 5.637376656633329 + - value: 5.637376656633329 + bucketSizeSeconds: 1 + errorDetails: + - issueId: issueId + level: null + message: message + - issueId: issueId + level: null + message: message + properties: + item: + $ref: '#/components/schemas/OtelMappingStatusItem' + errorDetails: + items: + $ref: '#/components/schemas/OtelMappingError' + type: array + metrics: + $ref: '#/components/schemas/OtelMappingMetrics' + required: + - errorDetails + - item + type: object + OtelMappingStatusItem: + example: + identifier: identifier + componentCount: 6 + name: name + relationCount: 0 + properties: + name: + type: string + identifier: + type: string + relationCount: + format: int64 + type: integer + componentCount: + format: int64 + type: integer + required: + - componentCount + - name + - relationCount + - status + type: object + OtelMappingErrors: + items: + $ref: '#/components/schemas/OtelMappingError' + type: array + OtelMappingError: + example: + issueId: issueId + level: null + message: message + properties: + level: + $ref: '#/components/schemas/MessageLevel' + message: + type: string + issueId: + type: string + required: + - level + - message + type: object + OtelMappingMetrics: + example: + latencySeconds: + - value: 5.637376656633329 + - value: 5.637376656633329 + bucketSizeSeconds: 1 + properties: + bucketSizeSeconds: + type: integer + latencySeconds: + items: + $ref: '#/components/schemas/MetricBucketValue' + type: array + required: + - bucketSizeSeconds + type: object + OtelRelationMappingOutput: + example: + sourceId: sourceId + targetId: targetId + typeName: typeName + typeIdentifier: typeIdentifier + properties: + sourceId: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + targetId: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + typeName: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + typeIdentifier: + description: "An expression that must produce a string. It must be one of\ + \ these formats:\n - A plain string, for example `\"this is a plain string\"\ + `\n - A string containing a CEL expression within curly braces `${}`,\ + \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ + `\nA string with only a cel expression is also valid as long as it is\ + \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ + `." + type: string + required: + - sourceId + - targetId + - typeName + type: object + OtelRelationMapping: + example: + output: + sourceId: sourceId + targetId: targetId + typeName: typeName + typeIdentifier: typeIdentifier + identifier: identifier + input: + resource: + condition: condition + scope: + condition: condition + metric: + condition: condition + datapoint: + condition: condition + action: null + action: null + action: null + span: + condition: condition + action: null + action: null + signal: + - null + - null + _type: OtelRelationMapping + name: name + description: description + expireAfter: 0 + vars: + - name: name + value: value + - name: name + value: value + properties: + _type: + enum: + - OtelRelationMapping + type: string + identifier: + type: string + name: + type: string + description: + type: string + input: + $ref: '#/components/schemas/OtelInput' + output: + $ref: '#/components/schemas/OtelRelationMappingOutput' + vars: + items: + $ref: '#/components/schemas/OtelVariableMapping' + type: array + expireAfter: + format: int64 + type: integer + required: + - _type + - expireAfter + - identifier + - input + - name + - output + type: object + ComponentPresentation: + example: + presentation: + overview: + fixedColumns: 1 + mainMenu: + icon: icon + group: group + order: 6.027456183070403 + columns: + - columnId: columnId + projection: null + title: title + - columnId: columnId + projection: null + title: title + name: + plural: plural + singular: singular + title: title + icon: icon + identifier: identifier + name: name + description: description + binding: + query: query + rank: + specificity: 0.8008281904610115 + properties: + identifier: + type: string + name: + type: string + description: + type: string + binding: + $ref: '#/components/schemas/ComponentPresentationQueryBinding' + rank: + $ref: '#/components/schemas/ComponentPresentationRank' + presentation: + $ref: '#/components/schemas/PresentationDefinition' + required: + - binding + - identifier + - name + - presentation + type: object + ComponentPresentationApiError: + properties: + message: + type: string + required: + - message + type: object + MainMenuGroup: + example: + identifier: identifier + name: name + icon: icon + description: description + defaultOpen: true + items: + - identifier: identifier + icon: icon + title: title + - identifier: identifier + icon: icon + title: title + properties: + name: + type: string + identifier: + type: string + description: + type: string + defaultOpen: + type: boolean + icon: + type: string + items: + items: + $ref: '#/components/schemas/MainMenuViewItem' + type: array + required: + - defaultOpen + - icon + - items + - name + MainMenuViewItem: + example: + identifier: identifier + icon: icon + title: title + properties: + identifier: + description: Either a viewIdentifier or a componentPresentationIdentifier + type: string + title: + type: string + icon: + type: string + required: + - identifier + - title + ViewSnapshotRequest: + example: + metadata: + minGroupSize: 0 + neighboringComponents: true + groupedByRelation: true + autoGrouping: true + groupedByLayer: true + queryTime: 6 + showFullComponent: true + showIndirectRelations: true + connectedComponents: true + groupingEnabled: true + groupedByDomain: true + viewId: 1 + query: query + queryVersion: 0.0.1 + properties: + query: + description: STQL query string + type: string + queryVersion: + example: 0.0.1 + pattern: ^\d+\.\d+\.\d+$ + type: string + metadata: + $ref: '#/components/schemas/QueryMetadata' + viewId: + description: View identifier that gets mapped back in the response. Preserved + for compatibility when this API got moved to OpenAPI. Not used for any + processing. + format: int64 + type: integer + required: + - _type + - metadata + - query + - queryVersion + type: object + QueryMetadata: + description: Query execution settings + example: + minGroupSize: 0 + neighboringComponents: true + groupedByRelation: true + autoGrouping: true + groupedByLayer: true + queryTime: 6 + showFullComponent: true + showIndirectRelations: true + connectedComponents: true + groupingEnabled: true + groupedByDomain: true + properties: + groupingEnabled: + type: boolean + showIndirectRelations: + type: boolean + minGroupSize: + format: int64 + type: integer + groupedByLayer: + type: boolean + groupedByDomain: + type: boolean + groupedByRelation: + type: boolean + queryTime: + description: Unix timestamp in milliseconds + format: int64 + nullable: true + type: integer + autoGrouping: + type: boolean + connectedComponents: + type: boolean + neighboringComponents: + type: boolean + showFullComponent: + type: boolean + required: + - autoGrouping + - connectedComponents + - groupedByDomain + - groupedByLayer + - groupedByRelation + - groupingEnabled + - minGroupSize + - neighboringComponents + - showFullComponent + - showIndirectRelations + type: object + QuerySnapshotResult: + description: | + Query succeeded (or encountered a runtime error that's part of the result). + The SnapshotResponse uses existing DTO types for nested structures. + example: + viewId: 0 + viewSnapshotResponse: "{}" + _type: QuerySnapshotResult + properties: + _type: + description: Discriminator field + enum: + - QuerySnapshotResult + type: string + viewSnapshotResponse: + description: | + The query result or error response. This is opaque at the API level but contains one of the following DTO types: + - ViewSnapshot (success) + - ViewSnapshotFetchTimeout (error) + - ViewSnapshotTooManyActiveQueries (error) + - ViewSnapshotTopologySizeOverflow (error) + - ViewSnapshotDataUnavailable (error) + Use the _type field to discriminate between types. + type: object + viewId: + description: View identifier that was provided in the ViewSnapshotRequest. + Preserved for compatibility when this API got moved to OpenAPI. Not used + for any processing. + format: int64 + type: integer + required: + - _type + - viewSnapshotResponse + type: object + QueryParsingFailure: + description: | + Query parsing failed. The reason field contains the error message. + properties: + _type: + description: Discriminator field + enum: + - QueryParsingFailure + type: string + reason: + description: Error message describing why the query failed to parse + type: string + required: + - _type + - reason + type: object + OverviewPageResponse: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/OverviewPageResult' + - $ref: '#/components/schemas/OverviewFetchTimeout' + - $ref: '#/components/schemas/OverviewTooManyActiveQueries' + - $ref: '#/components/schemas/OverviewTopologySizeOverflow' + - $ref: '#/components/schemas/OverviewDataUnavailable' + OverviewPageResult: + properties: + _type: + enum: + - OverviewPageResult + type: string + metadata: + $ref: '#/components/schemas/OverviewMetadata' + data: + items: + $ref: '#/components/schemas/OverviewRow' + type: array + pagination: + $ref: '#/components/schemas/PaginationResponse' + required: + - _type + - data + - metadata + - pagination + type: object + OverviewMetadata: + properties: + columns: + items: + $ref: '#/components/schemas/OverviewColumnMeta' + type: array + sorting: + description: | + The effective sorting applied to the overview results. + items: + $ref: '#/components/schemas/OverviewSorting' + type: array + fixedColumns: + type: integer + required: + - columns + - fixedColumns + - sorting + type: object + OverviewColumnMeta: properties: - condition: - description: A Cel expression that must return a boolean + columnId: type: string - action: - $ref: '#/components/schemas/OtelInputConditionAction' - datapoint: - $ref: '#/components/schemas/OtelInputDatapoint' + title: + type: string + display: + $ref: '#/components/schemas/OverviewColumnMetaDisplay' + sortable: + type: boolean + searchable: + type: boolean + order: + type: integer + required: + - columnId + - display + - order + - searchable + - sortable + - title type: object - OtelInputDatapoint: - description: "Defines conditional mapping at the resource -> scope -> metric\ - \ -> datapoint level.\nIf omitted, `condition` defaults to `true` and `action`\ - \ defaults to `CONTINUE`." - example: - condition: condition - action: null + OverviewColumnMetaDisplay: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/MetricChartMetaDisplay' + - $ref: '#/components/schemas/ComponentLinkMetaDisplay' + - $ref: '#/components/schemas/HealthMetaDisplay' + - $ref: '#/components/schemas/TextMetaDisplay' + - $ref: '#/components/schemas/NumericMetaDisplay' + - $ref: '#/components/schemas/DurationMetaDisplay' + - $ref: '#/components/schemas/ReadyStatusMetaDisplay' + - $ref: '#/components/schemas/LinkMetaDisplay' + MetricChartMetaDisplay: properties: - condition: - description: A Cel expression that must return a boolean + _type: + enum: + - MetricChartMetaDisplay type: string - action: - $ref: '#/components/schemas/OtelInputConditionAction' + unit: + nullable: true + type: string + decimalPlaces: + nullable: true + type: integer + showChart: + nullable: true + type: boolean + locked: + type: boolean + required: + - _type + - locked type: object - OtelInputSpan: - description: "Defines conditional mapping at the resource -> scope -> span level.\n\ - If omitted, `condition` defaults to `true` and `action` defaults to `CONTINUE`." - example: - condition: condition - action: null + ComponentLinkMetaDisplay: properties: - condition: - description: A Cel expression that must return a boolean + _type: + enum: + - ComponentLinkMetaDisplay type: string - action: - $ref: '#/components/schemas/OtelInputConditionAction' + required: + - _type type: object - OtelComponentMappingOutput: - example: - identifier: identifier - domainIdentifier: domainIdentifier - domainName: domainName - name: name - typeName: typeName - typeIdentifier: typeIdentifier - layerIdentifier: layerIdentifier - optional: - additionalIdentifiers: - - null - - null - version: version - tags: - - pattern: pattern - source: source - target: target - - pattern: pattern - source: source - target: target - layerName: layerName - required: - additionalIdentifiers: - - null - - null - version: version - tags: - - pattern: pattern - source: source - target: target - - pattern: pattern - source: source - target: target + HealthMetaDisplay: properties: - identifier: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + _type: + enum: + - HealthMetaDisplay type: string - name: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + required: + - _type + type: object + TextMetaDisplay: + properties: + _type: + enum: + - TextMetaDisplay type: string - typeName: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + required: + - _type + type: object + NumericMetaDisplay: + properties: + _type: + enum: + - NumericMetaDisplay type: string - typeIdentifier: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + unit: + nullable: true type: string - layerName: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + required: + - _type + type: object + DurationMetaDisplay: + properties: + _type: + enum: + - DurationMetaDisplay type: string - layerIdentifier: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + required: + - _type + type: object + ReadyStatusMetaDisplay: + properties: + _type: + enum: + - ReadyStatusMetaDisplay type: string - domainName: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + required: + - _type + type: object + LinkMetaDisplay: + properties: + _type: + enum: + - LinkMetaDisplay type: string - domainIdentifier: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + external: + type: boolean + required: + - _type + - external + type: object + OverviewSorting: + example: + columnId: columnId + direction: null + properties: + columnId: type: string - required: - $ref: '#/components/schemas/OtelComponentMappingFieldMapping' - optional: - $ref: '#/components/schemas/OtelComponentMappingFieldMapping' + direction: + $ref: '#/components/schemas/OverviewSortingDirection' required: - - domainName - - identifier - - layerName - - name - - typeName + - columnId + - direction type: object - OtelStringExpression: - description: "An expression that must produce a string. It must be one of these\ - \ formats:\n - A plain string, for example `\"this is a plain string\"`\n\ - \ - A string containing a CEL expression within curly braces `${}`, for example\ - \ \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is within\ - \ a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + OverviewSortingDirection: + enum: + - Ascending + - Descending type: string - OtelComponentMappingFieldMapping: - example: - additionalIdentifiers: - - null - - null - version: version - tags: - - pattern: pattern - source: source - target: target - - pattern: pattern - source: source - target: target + OverviewRow: properties: - additionalIdentifiers: - items: - $ref: '#/components/schemas/OtelStringExpression' - type: array - version: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + componentIdentifier: type: string - tags: - items: - $ref: '#/components/schemas/OtelTagMapping' - type: array + cells: + additionalProperties: + $ref: '#/components/schemas/CellValue' + type: object + required: + - cells + - componentIdentifier type: object - OtelTagMapping: - description: "Defines how a tag should be mapped from an input source to an\ - \ output target, optionally using a regex pattern." - example: - pattern: pattern - source: source - target: target + CellValue: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/MetricCell' + - $ref: '#/components/schemas/LinkCell' + - $ref: '#/components/schemas/ComponentLinkCell' + - $ref: '#/components/schemas/HealthCell' + - $ref: '#/components/schemas/TextCell' + - $ref: '#/components/schemas/NumericCell' + - $ref: '#/components/schemas/DurationCell' + - $ref: '#/components/schemas/ReadyStatusCell' + MetricCell: properties: - source: - description: "An expression that can produce any type. It uses the CEL expression\ - \ within curly braces `${}` syntax.\nVariables use it to store any type\ - \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ - \ assign \nit the expression `\"${resource.attributes['service.namespace']\ - \ == 'test'}\"`. The variable can now be used directly in the conditions\ - \ like this: `vars.inTestNamespace`." + _type: + enum: + - MetricCell type: string - target: - description: Name of the target tag key to which the value should be mapped. + individualQuery: + description: The frontend can use the individual query to refresh the metrics + (at interval). Allows to keep the current behaviour of making individual + calls for each row. type: string - pattern: - description: "Optional regex pattern applied to the source value. Capturing\ - \ groups can be referenced in the target (e.g., ${1})." + required: + - _type + - individualQuery + type: object + LinkCell: + properties: + _type: + enum: + - LinkCell + type: string + name: + type: string + url: type: string required: - - source - - target + - _type + - name + - url type: object - OtelAnyExpression: - description: "An expression that can produce any type. It uses the CEL expression\ - \ within curly braces `${}` syntax.\nVariables use it to store any type of\ - \ value. For example, to store a boolean in a variable named `inTestNamespace`\ - \ assign \nit the expression `\"${resource.attributes['service.namespace']\ - \ == 'test'}\"`. The variable can now be used directly in the conditions like\ - \ this: `vars.inTestNamespace`." - type: string - OtelVariableMapping: - example: - name: name - value: value + ComponentLinkCell: properties: + _type: + enum: + - ComponentLinkCell + type: string name: type: string - value: - description: "An expression that can produce any type. It uses the CEL expression\ - \ within curly braces `${}` syntax.\nVariables use it to store any type\ - \ of value. For example, to store a boolean in a variable named `inTestNamespace`\ - \ assign \nit the expression `\"${resource.attributes['service.namespace']\ - \ == 'test'}\"`. The variable can now be used directly in the conditions\ - \ like this: `vars.inTestNamespace`." + componentId: type: string required: + - _type + - componentId - name + type: object + HealthCell: + properties: + _type: + enum: + - HealthCell + type: string + state: + $ref: '#/components/schemas/HealthStateValue' + required: + - _type + - state + type: object + TextCell: + properties: + _type: + enum: + - TextCell + type: string + value: + type: string + required: + - _type - value type: object - OtelComponentMapping: - example: - output: - identifier: identifier - domainIdentifier: domainIdentifier - domainName: domainName - name: name - typeName: typeName - typeIdentifier: typeIdentifier - layerIdentifier: layerIdentifier - optional: - additionalIdentifiers: - - null - - null - version: version - tags: - - pattern: pattern - source: source - target: target - - pattern: pattern - source: source - target: target - layerName: layerName - required: - additionalIdentifiers: - - null - - null - version: version - tags: - - pattern: pattern - source: source - target: target - - pattern: pattern - source: source - target: target - identifier: identifier - input: - resource: - condition: condition - scope: - condition: condition - metric: - condition: condition - datapoint: - condition: condition - action: null - action: null - action: null - span: - condition: condition - action: null - action: null - signal: - - null - - null - _type: OtelComponentMapping - name: name - description: description - expireAfter: 0 - vars: - - name: name - value: value - - name: name - value: value + NumericCell: properties: _type: enum: - - OtelComponentMapping + - NumericCell type: string - identifier: + value: + type: number + required: + - _type + - value + type: object + DurationCell: + properties: + _type: + enum: + - DurationCell type: string - name: + startDate: + format: instant + type: integer + endDate: + format: instant + nullable: true + type: integer + required: + - _type + - startDate + type: object + ReadyStatusCell: + properties: + _type: + enum: + - ReadyStatusCell type: string - description: + ready: + type: integer + total: + type: integer + status: + $ref: '#/components/schemas/HealthStateValue' + required: + - _type + - ready + - total + type: object + PaginationResponse: + properties: + total: + description: | + Total number of items matching the ComponentPresentation + before applying column filters or search. + type: integer + filtered: + description: "Total number of items after filters/search are applied,\n\ + but before pagination.\n" + nullable: true + type: integer + elementName: type: string - input: - $ref: '#/components/schemas/OtelInput' - output: - $ref: '#/components/schemas/OtelComponentMappingOutput' - vars: - items: - $ref: '#/components/schemas/OtelVariableMapping' - type: array - expireAfter: + elementNamePlural: + type: string + startCursor: + nullable: true + type: string + endCursor: + nullable: true + type: string + required: + - elementName + - elementNamePlural + - total + type: object + OverviewFetchTimeout: + properties: + _type: + enum: + - OverviewFetchTimeout + type: string + usedTimeoutSeconds: + description: Timeout used for the overview request (seconds). format: int64 type: integer required: - _type - - expireAfter - - identifier - - input - - name - - output + - usedTimeoutSeconds type: object - OtelMappingStatus: - example: - item: - identifier: identifier - componentCount: 6 - name: name - relationCount: 0 - metrics: - latencySeconds: - - value: 5.637376656633329 - - value: 5.637376656633329 - bucketSizeSeconds: 1 - errorDetails: - - issueId: issueId - level: null - message: message - - issueId: issueId - level: null - message: message + OverviewTooManyActiveQueries: properties: - item: - $ref: '#/components/schemas/OtelMappingStatusItem' - errorDetails: - items: - $ref: '#/components/schemas/OtelMappingError' - type: array - metrics: - $ref: '#/components/schemas/OtelMappingMetrics' + _type: + enum: + - OverviewTooManyActiveQueries + type: string + required: + - _type + type: object + OverviewTopologySizeOverflow: + properties: + _type: + enum: + - OverviewTopologySizeOverflow + type: string + maxSize: + description: Maximum allowed topology size. + type: integer required: - - errorDetails - - item + - _type + - maxSize type: object - OtelMappingStatusItem: - example: - identifier: identifier - componentCount: 6 - name: name - relationCount: 0 + OverviewDataUnavailable: properties: - name: - type: string - identifier: + _type: + enum: + - OverviewDataUnavailable type: string - relationCount: + unavailableAtEpochMs: + description: Time when data became unavailable (epoch ms). format: int64 type: integer - componentCount: + availableSinceEpochMs: + description: Time when data became available again (epoch ms). format: int64 type: integer required: - - componentCount - - name - - relationCount - - status + - _type + - availableSinceEpochMs + - unavailableAtEpochMs type: object - OtelMappingErrors: - items: - $ref: '#/components/schemas/OtelMappingError' - type: array - OtelMappingError: - example: - issueId: issueId - level: null - message: message + OverviewErrorResponse: properties: - level: - $ref: '#/components/schemas/MessageLevel' - message: + _type: + enum: + - OverviewErrorResponse type: string - issueId: + errorMessage: + description: Error message describing why the overview request failed. type: string required: - - level - - message + - _type + - errorMessage type: object - OtelMappingMetrics: + OverviewRequest: example: - latencySeconds: - - value: 5.637376656633329 - - value: 5.637376656633329 - bucketSizeSeconds: 1 + topologyTime: 0 + pagination: + cursor: + cursor: cursor + direction: null + limit: 301 + query: query + sorting: + - columnId: columnId + direction: null + - columnId: columnId + direction: null + filters: + tagFilters: + - tagFilters + - tagFilters + columnFilters: + key: + search: search + columnId: columnId properties: - bucketSizeSeconds: + query: + description: STQL query string to retrieve and project using the presentationOrViewUrn + (helpful for related resources) + type: string + topologyTime: + description: A timestamp at which resources will be queried. If not given + the resources are queried at current time. + format: instant type: integer - latencySeconds: + filters: + $ref: '#/components/schemas/OverviewFilters' + pagination: + $ref: '#/components/schemas/OverviewPaginationRequest' + sorting: items: - $ref: '#/components/schemas/MetricBucketValue' + $ref: '#/components/schemas/OverviewSorting' type: array - required: - - bucketSizeSeconds type: object - OtelRelationMappingOutput: + OverviewFilters: example: - sourceId: sourceId - targetId: targetId - typeName: typeName - typeIdentifier: typeIdentifier + tagFilters: + - tagFilters + - tagFilters + columnFilters: + key: + search: search + columnId: columnId properties: - sourceId: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + tagFilters: + description: Tags are grouped by their key. For each key at least one of + the values matches. + items: + type: string + type: array + columnFilters: + additionalProperties: + $ref: '#/components/schemas/OverviewColumnFilter' + description: Map of columnId to filter + type: object + type: object + OverviewColumnFilter: + example: + search: search + columnId: columnId + properties: + columnId: type: string - targetId: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + search: type: string - typeName: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + required: + - columnId + - search + type: object + OverviewPaginationRequest: + example: + cursor: + cursor: cursor + direction: null + limit: 301 + properties: + cursor: + $ref: '#/components/schemas/OverviewPaginationCursor' + limit: + default: 50 + maximum: 500 + minimum: 1 + type: integer + type: object + OverviewPaginationCursor: + example: + cursor: cursor + direction: null + properties: + cursor: + description: Opaque cursor returned from previous request + nullable: true type: string - typeIdentifier: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A string containing a CEL expression within curly braces `${}`,\ - \ for example \"a string with a cel expression: `${resource.attributes['service.namespace']}\"\ - `\nA string with only a cel expression is also valid as long as it is\ - \ within a `${}` section, for example `\"${resource.attributes['service.namespace']}\"\ - `." + direction: + $ref: '#/components/schemas/OverviewPaginationDirection' + required: + - cursor + - direction + type: object + OverviewPaginationDirection: + enum: + - Back + - Forward + type: string + PresentationOrViewIdentifier: + pattern: ^urn.*$ + type: string + Argument: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/ArgumentBooleanVal' + - $ref: '#/components/schemas/ArgumentComponentTypeRef' + - $ref: '#/components/schemas/ArgumentRelationTypeRef' + - $ref: '#/components/schemas/ArgumentQueryViewRef' + - $ref: '#/components/schemas/ArgumentLongVal' + - $ref: '#/components/schemas/ArgumentStructTypeVal' + - $ref: '#/components/schemas/ArgumentDoubleVal' + - $ref: '#/components/schemas/ArgumentStateVal' + - $ref: '#/components/schemas/ArgumentNodeIdVal' + - $ref: '#/components/schemas/ArgumentDurationVal' + - $ref: '#/components/schemas/ArgumentStringVal' + - $ref: '#/components/schemas/ArgumentTimeWindowVal' + - $ref: '#/components/schemas/ArgumentComparatorWithoutEqualityVal' + - $ref: '#/components/schemas/ArgumentFailingHealthStateVal' + - $ref: '#/components/schemas/ArgumentPromQLMetricVal' + - $ref: '#/components/schemas/ArgumentTopologyQueryVal' + - $ref: '#/components/schemas/ArgumentTopologyPromQLMetricVal' + required: + - _type + type: object + ArgumentBooleanVal: + properties: + _type: + enum: + - ArgumentBooleanVal type: string + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: + type: boolean required: - - sourceId - - targetId - - typeName + - _type + - parameter + - value type: object - OtelRelationMapping: - example: - output: - sourceId: sourceId - targetId: targetId - typeName: typeName - typeIdentifier: typeIdentifier - identifier: identifier - input: - resource: - condition: condition - scope: - condition: condition - metric: - condition: condition - datapoint: - condition: condition - action: null - action: null - action: null - span: - condition: condition - action: null - action: null - signal: - - null - - null - _type: OtelRelationMapping - name: name - description: description - expireAfter: 0 - vars: - - name: name - value: value - - name: name - value: value + ArgumentComponentTypeRef: + properties: + _type: + enum: + - ArgumentComponentTypeRef + type: string + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + componentType: + format: int64 + type: integer + required: + - _type + - componentType + - parameter + type: object + ArgumentRelationTypeRef: + properties: + _type: + enum: + - ArgumentRelationTypeRef + type: string + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + relationType: + format: int64 + type: integer + required: + - _type + - parameter + - relationType + type: object + ArgumentQueryViewRef: properties: _type: enum: - - OtelRelationMapping - type: string - identifier: - type: string - name: + - ArgumentQueryViewRef type: string - description: + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + queryView: + format: int64 + type: integer + required: + - _type + - parameter + - queryView + type: object + ArgumentLongVal: + properties: + _type: + enum: + - ArgumentLongVal type: string - input: - $ref: '#/components/schemas/OtelInput' - output: - $ref: '#/components/schemas/OtelRelationMappingOutput' - vars: - items: - $ref: '#/components/schemas/OtelVariableMapping' - type: array - expireAfter: + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: format: int64 type: integer required: - _type - - expireAfter - - identifier - - input - - name - - output + - parameter + - value type: object - ComponentPresentation: - example: - presentation: - overview: - mainMenu: - icon: icon - group: group - order: 0.8008281904610115 - title: title - icon: icon - name: - plural: plural - singular: singular - identifier: identifier - name: name - description: description - expireAfterMs: 6 + ArgumentStructTypeVal: properties: - identifier: + _type: + enum: + - ArgumentStructTypeVal type: string - name: + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: type: string - description: + required: + - _type + - parameter + - value + type: object + ArgumentDoubleVal: + properties: + _type: + enum: + - ArgumentDoubleVal type: string - presentation: - $ref: '#/components/schemas/PresentationDefinition' - expireAfterMs: + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: format: int64 type: integer + value: + format: double + type: number required: - - identifier - - name - - presentation + - _type + - parameter + - value type: object - PresentationDefinition: - example: - overview: - mainMenu: - icon: icon - group: group - order: 0.8008281904610115 - title: title - icon: icon - name: - plural: plural - singular: singular + ArgumentStateVal: properties: - icon: + _type: + enum: + - ArgumentStateVal type: string - name: - $ref: '#/components/schemas/PresentationName' - overview: - $ref: '#/components/schemas/PresentationOverview' + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: + $ref: '#/components/schemas/HealthStateValue' + required: + - _type + - parameter + - value type: object - PresentationName: - example: - plural: plural - singular: singular + ArgumentNodeIdVal: properties: - singular: - type: string - plural: + _type: + enum: + - ArgumentNodeIdVal type: string + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: + format: int64 + type: integer required: - - plural - - singular + - _type + - parameter + - value type: object - PresentationOverview: - example: - mainMenu: - icon: icon - group: group - order: 0.8008281904610115 - title: title + ArgumentDurationVal: properties: - title: + _type: + enum: + - ArgumentDurationVal type: string - mainMenu: - $ref: '#/components/schemas/PresentationMainMenu' + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: + format: int64 + type: integer required: - - title + - _type + - parameter + - value type: object - PresentationMainMenu: - example: - icon: icon - group: group - order: 0.8008281904610115 + ArgumentStringVal: properties: - group: + _type: + enum: + - ArgumentStringVal type: string - icon: + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: type: string - order: - format: double - type: number required: - - group - - order + - _type + - parameter + - value + type: object + ArgumentTimeWindowVal: + properties: + _type: + enum: + - ArgumentTimeWindowVal + type: string + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + valueMs: + format: int64 + minimum: 0 + type: integer + required: + - _type + - parameter + - valueMs type: object - ComponentPresentationApiError: + ArgumentComparatorWithoutEqualityVal: properties: - message: + _type: + enum: + - ArgumentComparatorWithoutEqualityVal type: string + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: + $ref: '#/components/schemas/ComparatorWithoutEquality' required: - - message + - _type + - parameter + - value type: object - MainMenuGroup: - example: - identifier: identifier - name: name - icon: icon - description: description - defaultOpen: true - items: - - identifier: identifier - icon: icon - title: title - - identifier: identifier - icon: icon - title: title + ComparatorWithoutEquality: + enum: + - GTE + - GT + - LT + - LTE + type: string + ArgumentFailingHealthStateVal: properties: - name: - type: string - identifier: - type: string - description: - type: string - defaultOpen: - type: boolean - icon: + _type: + enum: + - ArgumentFailingHealthStateVal type: string - items: - items: - $ref: '#/components/schemas/MainMenuViewItem' - type: array + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: + $ref: '#/components/schemas/FailingHealthStateValue' required: - - defaultOpen - - icon - - items - - name - MainMenuViewItem: - example: - identifier: identifier - icon: icon - title: title + - _type + - parameter + - value + type: object + FailingHealthStateValue: + enum: + - DEVIATING + - CRITICAL + - UNKNOWN + type: string + ArgumentPromQLMetricVal: properties: - identifier: - description: Either a viewIdentifier or a componentPresentationIdentifier - type: string - title: - type: string - icon: + _type: + enum: + - ArgumentPromQLMetricVal type: string + id: + format: int64 + type: integer + lastUpdateTimestamp: + format: int64 + type: integer + parameter: + format: int64 + type: integer + value: + $ref: '#/components/schemas/PromQLMetric' required: - - identifier - - title - ViewSnapshotRequest: - example: - metadata: - minGroupSize: 0 - neighboringComponents: true - groupedByRelation: true - autoGrouping: true - groupedByLayer: true - queryTime: 6 - showFullComponent: true - showIndirectRelations: true - connectedComponents: true - groupingEnabled: true - groupedByDomain: true - viewId: 1 - query: query - _type: ViewSnapshotRequest - queryVersion: 0.0.1 + - _type + - parameter + - value + type: object + PromQLMetric: + discriminator: + propertyName: _type properties: _type: enum: - - ViewSnapshotRequest + - PromQLMetric type: string + id: + format: int64 + type: integer query: - description: STQL query string type: string - queryVersion: - example: 0.0.1 - pattern: ^\d+\.\d+\.\d+$ + unit: + type: string + aliasTemplate: type: string - metadata: - $ref: '#/components/schemas/QueryMetadata' - viewId: - description: View identifier that gets mapped back in the response. Preserved - for compatibility when this API got moved to OpenAPI. Not used for any - processing. - format: int64 - type: integer required: - _type - - metadata + - aliasTemplate - query - - queryVersion + - unit type: object - QueryMetadata: - description: Query execution settings - example: - minGroupSize: 0 - neighboringComponents: true - groupedByRelation: true - autoGrouping: true - groupedByLayer: true - queryTime: 6 - showFullComponent: true - showIndirectRelations: true - connectedComponents: true - groupingEnabled: true - groupedByDomain: true + ArgumentTopologyQueryVal: properties: - groupingEnabled: - type: boolean - showIndirectRelations: - type: boolean - minGroupSize: + _type: + enum: + - ArgumentTopologyQueryVal + type: string + id: format: int64 type: integer - groupedByLayer: - type: boolean - groupedByDomain: - type: boolean - groupedByRelation: - type: boolean - queryTime: - description: Unix timestamp in milliseconds + lastUpdateTimestamp: format: int64 - nullable: true type: integer - autoGrouping: - type: boolean - connectedComponents: - type: boolean - neighboringComponents: - type: boolean - showFullComponent: - type: boolean + parameter: + format: int64 + type: integer + query: + type: string required: - - autoGrouping - - connectedComponents - - groupedByDomain - - groupedByLayer - - groupedByRelation - - groupingEnabled - - minGroupSize - - neighboringComponents - - showFullComponent - - showIndirectRelations + - _type + - parameter + - query type: object - QuerySnapshotResult: - description: | - Query succeeded (or encountered a runtime error that's part of the result). - The SnapshotResponse uses existing DTO types for nested structures. - example: - viewId: 0 - viewSnapshotResponse: "{}" - _type: QuerySnapshotResult + ArgumentTopologyPromQLMetricVal: properties: _type: - description: Discriminator field enum: - - QuerySnapshotResult + - ArgumentTopologyPromQLMetricVal type: string - viewSnapshotResponse: - description: | - The query result or error response. This is opaque at the API level but contains one of the following DTO types: - - ViewSnapshot (success) - - ViewSnapshotFetchTimeout (error) - - ViewSnapshotTooManyActiveQueries (error) - - ViewSnapshotTopologySizeOverflow (error) - - ViewSnapshotDataUnavailable (error) - Use the _type field to discriminate between types. - type: object - viewId: - description: View identifier that was provided in the ViewSnapshotRequest. - Preserved for compatibility when this API got moved to OpenAPI. Not used - for any processing. + id: + format: int64 + type: integer + lastUpdateTimestamp: format: int64 type: integer + parameter: + format: int64 + type: integer + value: + $ref: '#/components/schemas/TopologyPromQLMetric' required: - _type - - viewSnapshotResponse + - parameter + - value type: object - QueryParsingFailure: - description: | - Query parsing failed. The reason field contains the error message. + TopologyPromQLMetric: + discriminator: + propertyName: _type properties: _type: - description: Discriminator field enum: - - QueryParsingFailure + - TopologyPromQLMetric type: string - reason: - description: Error message describing why the query failed to parse + id: + format: int64 + type: integer + promQLQuery: + type: string + unit: + type: string + aliasTemplate: + type: string + topologyQuery: type: string required: - _type - - reason + - aliasTemplate + - promQLQuery + - topologyQuery + - unit type: object - Argument: + ViewCheckState: + example: + componentType: componentType + lastUpdateTimestamp: 0 + healthState: null + checkStateId: checkStateId + componentName: componentName + componentIdentifier: componentIdentifier + properties: + checkStateId: + type: string + healthState: + $ref: '#/components/schemas/HealthStateValue' + componentName: + type: string + componentIdentifier: + type: string + componentType: + type: string + lastUpdateTimestamp: + format: int64 + type: integer + required: + - checkStateId + - componentIdentifier + - healthState + - lastUpdateTimestamp + type: object + MessageLevel: + enum: + - WARN + - ERROR + - INFO + type: string + MonitorReferenceId: discriminator: propertyName: _type oneOf: - - $ref: '#/components/schemas/ArgumentBooleanVal' - - $ref: '#/components/schemas/ArgumentComponentTypeRef' - - $ref: '#/components/schemas/ArgumentRelationTypeRef' - - $ref: '#/components/schemas/ArgumentQueryViewRef' - - $ref: '#/components/schemas/ArgumentLongVal' - - $ref: '#/components/schemas/ArgumentStructTypeVal' - - $ref: '#/components/schemas/ArgumentDoubleVal' - - $ref: '#/components/schemas/ArgumentStateVal' - - $ref: '#/components/schemas/ArgumentNodeIdVal' - - $ref: '#/components/schemas/ArgumentDurationVal' - - $ref: '#/components/schemas/ArgumentStringVal' - - $ref: '#/components/schemas/ArgumentTimeWindowVal' - - $ref: '#/components/schemas/ArgumentComparatorWithoutEqualityVal' - - $ref: '#/components/schemas/ArgumentFailingHealthStateVal' - - $ref: '#/components/schemas/ArgumentPromQLMetricVal' - - $ref: '#/components/schemas/ArgumentTopologyQueryVal' - - $ref: '#/components/schemas/ArgumentTopologyPromQLMetricVal' + - $ref: '#/components/schemas/MonitorDefId' + - $ref: '#/components/schemas/ExternalMonitorDefId' + type: object + MonitorDefId: + properties: + _type: + enum: + - MonitorDefId + type: string + id: + format: int64 + type: integer required: - _type + - id type: object - ArgumentBooleanVal: + ExternalMonitorDefId: properties: _type: enum: - - ArgumentBooleanVal + - ExternalMonitorDefId type: string id: format: int64 type: integer - lastUpdateTimestamp: - format: int64 + required: + - _type + - id + type: object + NotificationChannel: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/SlackNotificationChannel' + - $ref: '#/components/schemas/WebhookNotificationChannel' + - $ref: '#/components/schemas/OpsgenieNotificationChannel' + - $ref: '#/components/schemas/TeamsNotificationChannel' + - $ref: '#/components/schemas/EmailNotificationChannel' + InstantNanoPrecision: + description: A custom representation for a date/time that needs better than + milliseconds precision. Simply using nanoseconds since epoch results in integers + that are too big to be represented correctly in Javascript (which is limited + to 2^53-1). Instead this uses the standard representation of milliseconds + since epoch with a nanosecond offset. Calculate nanoseconds since epoch like + this `nanosSinceEpoch = timestamp * 1000000 + offsetNanos`. + example: + offsetNanos: 602745 + timestamp: 0 + properties: + timestamp: + description: Date/time representation in milliseconds since epoch (1970-01-01 + 00:00:00) + format: instant type: integer - parameter: - format: int64 + offsetNanos: + description: "Offset in nanoseconds (relative to the timestamp). Especially\ + \ useful when comparing start and/or end times of spans, for example when\ + \ rendering a trace chart." + format: int32 + maximum: 999999 + minimum: 0 type: integer - value: - type: boolean required: - - _type - - parameter - - value + - offsetNanos + - timestamp type: object - ArgumentComponentTypeRef: + ComponentTypeHighlights: + example: + showLastChange: true + namePlural: namePlural + externalComponent: + externalIdSelector: externalIdSelector + showConfiguration: true + showStatus: true + showLogs: true + about: + fields: + - fields + - fields + metrics: + - bindings: + - bindings + - bindings + name: name + description: description + defaultExpanded: true + - bindings: + - bindings + - bindings + name: name + description: description + defaultExpanded: true + fields: + - valueExtractor: null + display: null + label: + helpBubbleText: helpBubbleText + title: title + fieldId: fieldId + - valueExtractor: null + display: null + label: + helpBubbleText: helpBubbleText + title: title + fieldId: fieldId + events: + showEvents: true + relatedResourcesTemplate: relatedResourcesTemplate + relatedResources: + - hint: hint + stql: stql + title: title + viewTypeIdentifier: viewTypeIdentifier + resourceType: resourceType + - hint: hint + stql: stql + title: title + viewTypeIdentifier: viewTypeIdentifier + resourceType: resourceType + properties: + namePlural: + type: string + fields: + items: + $ref: '#/components/schemas/ComponentTypeField' + type: array + about: + $ref: '#/components/schemas/ComponentTypeAbout' + events: + $ref: '#/components/schemas/ComponentTypeEvents' + showLogs: + type: boolean + showLastChange: + type: boolean + externalComponent: + $ref: '#/components/schemas/ComponentTypeExternalComponent' + relatedResources: + items: + $ref: '#/components/schemas/ComponentTypeRelatedResources' + type: array + metrics: + items: + $ref: '#/components/schemas/ComponentHighlightMetrics' + type: array + required: + - about + - events + - externalComponent + - fields + - metrics + - namePlural + - relatedResources + - showLastChange + - showLogs + ComponentTypeField: + example: + valueExtractor: null + display: null + label: + helpBubbleText: helpBubbleText + title: title + fieldId: fieldId + properties: + fieldId: + type: string + label: + $ref: '#/components/schemas/ComponentTypeLabel' + valueExtractor: + $ref: '#/components/schemas/ComponentTypeValueExtractor' + display: + $ref: '#/components/schemas/ComponentTypeFieldDisplay' + required: + - display + - fieldId + - label + - valueExtractor + ComponentTypeLabel: + example: + helpBubbleText: helpBubbleText + title: title properties: - _type: - enum: - - ArgumentComponentTypeRef + title: + type: string + helpBubbleText: type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - componentType: - format: int64 - type: integer required: - - _type - - componentType - - parameter - type: object - ArgumentRelationTypeRef: + - title + ComponentTypeValueExtractor: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/ComponentTypeSource' + - $ref: '#/components/schemas/CompositeSource' + - $ref: '#/components/schemas/ConstantSource' + - $ref: '#/components/schemas/HealthSource' + - $ref: '#/components/schemas/IdentifiersSource' + - $ref: '#/components/schemas/LastUpdatedTimestampSource' + - $ref: '#/components/schemas/NameSource' + - $ref: '#/components/schemas/PropertySource' + - $ref: '#/components/schemas/TagSource' + - $ref: '#/components/schemas/TagsSource' + ComponentTypeSource: properties: _type: enum: - - ArgumentRelationTypeRef + - ComponentTypeSource type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - relationType: - format: int64 - type: integer required: - _type - - parameter - - relationType - type: object - ArgumentQueryViewRef: + CompositeSource: properties: _type: enum: - - ArgumentQueryViewRef + - CompositeSource type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - queryView: - format: int64 - type: integer + sources: + additionalProperties: + $ref: '#/components/schemas/ComponentTypeValueExtractor' + type: object required: - _type - - parameter - - queryView - type: object - ArgumentLongVal: + - sources + ConstantSource: properties: _type: enum: - - ArgumentLongVal + - ConstantSource type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer value: - format: int64 - type: integer + type: string required: - _type - - parameter - value - type: object - ArgumentStructTypeVal: + HealthSource: properties: _type: enum: - - ArgumentStructTypeVal - type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: + - HealthSource type: string required: - _type - - parameter - - value - type: object - ArgumentDoubleVal: + IdentifiersSource: properties: _type: enum: - - ArgumentDoubleVal + - IdentifiersSource type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: - format: double - type: number required: - _type - - parameter - - value - type: object - ArgumentStateVal: + LastUpdatedTimestampSource: properties: _type: enum: - - ArgumentStateVal + - LastUpdatedTimestampSource type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: - $ref: '#/components/schemas/HealthStateValue' required: - _type - - parameter - - value - type: object - ArgumentNodeIdVal: + NameSource: properties: _type: enum: - - ArgumentNodeIdVal + - NameSource type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: - format: int64 - type: integer required: - _type - - parameter - - value - type: object - ArgumentDurationVal: + PropertySource: properties: _type: enum: - - ArgumentDurationVal + - PropertySource + type: string + key: + type: string + defaultValue: type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: - format: int64 - type: integer required: - _type - - parameter - - value - type: object - ArgumentStringVal: + - key + TagSource: properties: _type: enum: - - ArgumentStringVal + - TagSource type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: + tagName: type: string required: - _type - - parameter - - value - type: object - ArgumentTimeWindowVal: + - tagName + TagsSource: properties: _type: enum: - - ArgumentTimeWindowVal + - TagsSource type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - valueMs: - format: int64 - minimum: 0 - type: integer required: - _type - - parameter - - valueMs - type: object - ArgumentComparatorWithoutEqualityVal: + ComponentTypeFieldDisplay: + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/ComponentLinkDisplay' + - $ref: '#/components/schemas/DurationDisplay' + - $ref: '#/components/schemas/HealthBadgeDisplay' + - $ref: '#/components/schemas/HealthCircleDisplay' + - $ref: '#/components/schemas/PromqlDisplay' + - $ref: '#/components/schemas/RatioDisplay' + - $ref: '#/components/schemas/ReadyStatusDisplay' + - $ref: '#/components/schemas/TagDisplay' + - $ref: '#/components/schemas/TextDisplay' + - $ref: '#/components/schemas/ViewTimeLink' + required: + - _type + ComponentLinkDisplay: properties: _type: enum: - - ArgumentComparatorWithoutEqualityVal + - ComponentLinkDisplay type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: - $ref: '#/components/schemas/ComparatorWithoutEquality' required: - _type - - parameter - - value - type: object - ComparatorWithoutEquality: - enum: - - GTE - - GT - - LT - - LTE - type: string - ArgumentFailingHealthStateVal: + DurationDisplay: properties: _type: enum: - - ArgumentFailingHealthStateVal + - DurationDisplay type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: - $ref: '#/components/schemas/FailingHealthStateValue' required: - _type - - parameter - - value - type: object - FailingHealthStateValue: - enum: - - DEVIATING - - CRITICAL - - UNKNOWN - type: string - ArgumentPromQLMetricVal: + HealthBadgeDisplay: properties: _type: enum: - - ArgumentPromQLMetricVal + - HealthBadgeDisplay type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: - $ref: '#/components/schemas/PromQLMetric' required: - _type - - parameter - - value - type: object - PromQLMetric: - discriminator: - propertyName: _type + HealthCircleDisplay: properties: _type: enum: - - PromQLMetric - type: string - id: - format: int64 - type: integer - query: - type: string - unit: - type: string - aliasTemplate: + - HealthCircleDisplay type: string required: - _type - - aliasTemplate - - query - - unit - type: object - ArgumentTopologyQueryVal: + PromqlDisplay: properties: _type: enum: - - ArgumentTopologyQueryVal - type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - query: + - PromqlDisplay type: string required: - _type - - parameter - - query - type: object - ArgumentTopologyPromQLMetricVal: + RatioDisplay: properties: _type: enum: - - ArgumentTopologyPromQLMetricVal + - RatioDisplay type: string - id: - format: int64 - type: integer - lastUpdateTimestamp: - format: int64 - type: integer - parameter: - format: int64 - type: integer - value: - $ref: '#/components/schemas/TopologyPromQLMetric' required: - _type - - parameter - - value - type: object - TopologyPromQLMetric: - discriminator: - propertyName: _type + ReadyStatusDisplay: properties: _type: enum: - - TopologyPromQLMetric - type: string - id: - format: int64 - type: integer - promQLQuery: - type: string - unit: - type: string - aliasTemplate: - type: string - topologyQuery: + - RatioDisplay type: string required: - _type - - aliasTemplate - - promQLQuery - - topologyQuery - - unit - type: object - ViewCheckState: - example: - componentType: componentType - lastUpdateTimestamp: 0 - healthState: null - checkStateId: checkStateId - componentName: componentName - componentIdentifier: componentIdentifier + TagDisplay: properties: - checkStateId: - type: string - healthState: - $ref: '#/components/schemas/HealthStateValue' - componentName: - type: string - componentIdentifier: + _type: + enum: + - TagDisplay type: string - componentType: + singular: type: string - lastUpdateTimestamp: - format: int64 - type: integer required: - - checkStateId - - componentIdentifier - - healthState - - lastUpdateTimestamp - type: object - MessageLevel: - enum: - - WARN - - ERROR - - INFO - type: string - MonitorReferenceId: - discriminator: - propertyName: _type - oneOf: - - $ref: '#/components/schemas/MonitorDefId' - - $ref: '#/components/schemas/ExternalMonitorDefId' - type: object - MonitorDefId: + - _type + TextDisplay: properties: _type: enum: - - MonitorDefId + - TextDisplay type: string - id: - format: int64 - type: integer required: - _type - - id - type: object - ExternalMonitorDefId: + ViewTimeLink: properties: _type: enum: - - ExternalMonitorDefId + - ViewTimeLink + type: string + required: + - _type + ComponentTypeAbout: + example: + fields: + - fields + - fields + properties: + fields: + items: + type: string + type: array + required: + - fields + ComponentTypeEvents: + example: + showEvents: true + relatedResourcesTemplate: relatedResourcesTemplate + properties: + showEvents: + type: boolean + relatedResourcesTemplate: + type: string + required: + - showEvents + ComponentTypeExternalComponent: + example: + externalIdSelector: externalIdSelector + showConfiguration: true + showStatus: true + properties: + showConfiguration: + type: boolean + showStatus: + type: boolean + externalIdSelector: + type: string + required: + - externalIdSelector + - showConfiguration + - showStatus + ComponentTypeRelatedResources: + example: + hint: hint + stql: stql + title: title + viewTypeIdentifier: viewTypeIdentifier + resourceType: resourceType + properties: + resourceType: + type: string + title: + type: string + stql: + type: string + hint: + type: string + viewTypeIdentifier: type: string - id: - format: int64 - type: integer required: - - _type - - id - type: object - NotificationChannel: - discriminator: - propertyName: _type - oneOf: - - $ref: '#/components/schemas/SlackNotificationChannel' - - $ref: '#/components/schemas/WebhookNotificationChannel' - - $ref: '#/components/schemas/OpsgenieNotificationChannel' - - $ref: '#/components/schemas/TeamsNotificationChannel' - - $ref: '#/components/schemas/EmailNotificationChannel' - InstantNanoPrecision: - description: A custom representation for a date/time that needs better than - milliseconds precision. Simply using nanoseconds since epoch results in integers - that are too big to be represented correctly in Javascript (which is limited - to 2^53-1). Instead this uses the standard representation of milliseconds - since epoch with a nanosecond offset. Calculate nanoseconds since epoch like - this `nanosSinceEpoch = timestamp * 1000000 + offsetNanos`. + - resourceType + - stql + - title + ComponentHighlightMetrics: example: - offsetNanos: 602745 - timestamp: 0 + bindings: + - bindings + - bindings + name: name + description: description + defaultExpanded: true properties: - timestamp: - description: Date/time representation in milliseconds since epoch (1970-01-01 - 00:00:00) - format: instant - type: integer - offsetNanos: - description: "Offset in nanoseconds (relative to the timestamp). Especially\ - \ useful when comparing start and/or end times of spans, for example when\ - \ rendering a trace chart." - format: int32 - maximum: 999999 - minimum: 0 - type: integer + name: + type: string + description: + type: string + bindings: + items: + type: string + type: array + defaultExpanded: + type: boolean required: - - offsetNanos - - timestamp - type: object + - bindings + - defaultExpanded + - name PersesDashboard: example: metadata: @@ -18608,6 +19337,302 @@ components: - alphabetical-ci-asc - alphabetical-ci-desc type: string + ComponentPresentationQueryBinding: + example: + query: query + properties: + query: + description: Stq query that defines to which components does the presentation + applies to. + type: string + required: + - query + type: object + ComponentPresentationRank: + example: + specificity: 0.8008281904610115 + properties: + specificity: + description: Determines how much of a "specialization" this presentation + is. Higher number means more specific. This is used to determine which + presentation to use when multiple presentations match. + format: double + type: number + required: + - specificity + type: object + PresentationDefinition: + example: + overview: + fixedColumns: 1 + mainMenu: + icon: icon + group: group + order: 6.027456183070403 + columns: + - columnId: columnId + projection: null + title: title + - columnId: columnId + projection: null + title: title + name: + plural: plural + singular: singular + title: title + icon: icon + properties: + icon: + type: string + overview: + $ref: '#/components/schemas/PresentationOverview' + type: object + PresentationOverview: + description: "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.\nIf multiple ComponentPresentations match,\ + \ columns are merged by `columnId` according to binding rank. Absence of the\ + \ field means no overview is shown.\n" + example: + fixedColumns: 1 + mainMenu: + icon: icon + group: group + order: 6.027456183070403 + columns: + - columnId: columnId + projection: null + title: title + - columnId: columnId + projection: null + title: title + name: + plural: plural + singular: singular + title: title + properties: + name: + $ref: '#/components/schemas/PresentationName' + mainMenu: + $ref: '#/components/schemas/PresentationMainMenu' + columns: + items: + $ref: '#/components/schemas/OverviewColumnDefinition' + type: array + fixedColumns: + type: integer + required: + - columns + - name + - title + type: object + PresentationName: + example: + plural: plural + singular: singular + title: title + properties: + singular: + type: string + plural: + type: string + title: + type: string + required: + - plural + - singular + - title + type: object + PresentationMainMenu: + example: + icon: icon + group: group + order: 6.027456183070403 + properties: + group: + type: string + icon: + type: string + order: + format: double + type: number + required: + - group + - order + type: object + OverviewColumnDefinition: + description: "Definition of a column in the overview presentation. The `columnId`\ + \ field is used to identify the column and merge columns from different presentations.\ + \ If only the `columnId` is provided, the column will be rendered from the\ + \ next more specific presentation definition." + example: + columnId: columnId + projection: null + title: title + properties: + columnId: + type: string + title: + type: string + projection: + $ref: '#/components/schemas/OverviewColumnProjection' + required: + - columnId + type: object + OverviewColumnProjection: + description: Display type and value for the column. + discriminator: + propertyName: _type + oneOf: + - $ref: '#/components/schemas/MetricChartProjection' + - $ref: '#/components/schemas/ComponentLinkProjection' + - $ref: '#/components/schemas/HealthProjection' + - $ref: '#/components/schemas/TextProjection' + - $ref: '#/components/schemas/NumericProjection' + - $ref: '#/components/schemas/DurationProjection' + - $ref: '#/components/schemas/ReadyStatusProjection' + - $ref: '#/components/schemas/ContainerImageProjection' + MetricChartProjection: + properties: + _type: + enum: + - MetricChartProjection + type: string + showChart: + type: boolean + decimalPlaces: + type: integer + unit: + type: string + query: + description: Individual metric query that returns a timeseries for a specific + cell. + type: string + required: + - _type + - query + type: object + ComponentLinkProjection: + properties: + _type: + enum: + - ComponentLinkProjection + type: string + name: + description: Cel expression that returns a string that represents the name + of the component to link to + type: string + componentIdentifier: + description: Cel expression that returns a string that represents the componentIdentifier + in order to build the link + type: string + required: + - _type + - componentIdentifier + - name + type: object + HealthProjection: + properties: + _type: + enum: + - HealthProjection + type: string + value: + description: Cel expression that returns a string that represents a valid + HealthState + type: string + required: + - _type + - value + type: object + TextProjection: + properties: + _type: + enum: + - TextProjection + type: string + value: + description: Cel expression that returns a string + type: string + required: + - _type + - value + type: object + NumericProjection: + properties: + _type: + enum: + - NumericProjection + type: string + value: + description: Cel expression that returns a number + type: string + unit: + nullable: true + type: string + decimalPlaces: + type: integer + required: + - _type + - value + type: object + DurationProjection: + properties: + _type: + enum: + - DurationProjection + type: string + startDate: + description: Cel expression that returns a date + type: string + endDate: + description: Cel expression that returns a date + type: string + required: + - _type + - startDate + type: object + ReadyStatusProjection: + description: Helps rendering columns as Ready containers for K8s pods or Completions + for K8s jobs + properties: + _type: + enum: + - ReadyStatusProjection + type: string + readyNumber: + description: Cel expression that returns a number + type: string + totalNumber: + description: Cel expression that returns a number + type: string + readyStatus: + description: Cel expression that returns a string that represents a valid + HealthState + type: string + required: + - _type + - readyNumber + - totalNumber + type: object + ContainerImageProjection: + description: Helps rendering links for docker images + properties: + _type: + enum: + - ContainerImageProjection + type: string + imageId: + description: Cel expression that returns a string + type: string + imageName: + description: Cel expression that returns a string + type: string + required: + - _type + - imageId + - imageName + type: object upsertOtelComponentMappings_request: properties: identifier: diff --git a/generated/stackstate_api/api_metric.go b/generated/stackstate_api/api_metric.go index 96001824..9aedae96 100644 --- a/generated/stackstate_api/api_metric.go +++ b/generated/stackstate_api/api_metric.go @@ -192,6 +192,21 @@ type MetricApi interface { // @return PromMetadataEnvelope PostMetadataExecute(r ApiPostMetadataRequest) (*PromMetadataEnvelope, *http.Response, error) + /* + PostQueryBatch Batch execution of multiple PromQL queries + + Executes multiple PromQL queries in a single request to reduce HTTP overhead. Each query is executed independently and results are returned in a single response. Partial failures are supported: individual queries may fail while others succeed. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostQueryBatchRequest + */ + PostQueryBatch(ctx context.Context) ApiPostQueryBatchRequest + + // PostQueryBatchExecute executes the request + // @return PromBatchEnvelope + PostQueryBatchExecute(r ApiPostQueryBatchRequest) (*PromBatchEnvelope, *http.Response, error) + /* PostRangeQuery Query over a range of time @@ -2830,6 +2845,188 @@ func (a *MetricApiService) PostMetadataExecute(r ApiPostMetadataRequest) (*PromM return localVarReturnValue, localVarHTTPResponse, nil } +type ApiPostQueryBatchRequest struct { + ctx context.Context + ApiService MetricApi + promBatchQueryRequest *PromBatchQueryRequest +} + +func (r ApiPostQueryBatchRequest) PromBatchQueryRequest(promBatchQueryRequest PromBatchQueryRequest) ApiPostQueryBatchRequest { + r.promBatchQueryRequest = &promBatchQueryRequest + return r +} + +func (r ApiPostQueryBatchRequest) Execute() (*PromBatchEnvelope, *http.Response, error) { + return r.ApiService.PostQueryBatchExecute(r) +} + +/* +PostQueryBatch Batch execution of multiple PromQL queries + +Executes multiple PromQL queries in a single request to reduce HTTP overhead. Each query is executed independently and results are returned in a single response. Partial failures are supported: individual queries may fail while others succeed. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostQueryBatchRequest +*/ +func (a *MetricApiService) PostQueryBatch(ctx context.Context) ApiPostQueryBatchRequest { + return ApiPostQueryBatchRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PromBatchEnvelope +func (a *MetricApiService) PostQueryBatchExecute(r ApiPostQueryBatchRequest) (*PromBatchEnvelope, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PromBatchEnvelope + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetricApiService.PostQueryBatch") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/metrics/query_batch" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.promBatchQueryRequest == nil { + return localVarReturnValue, nil, reportError("promBatchQueryRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.promBatchQueryRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ServiceBearer"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-ServiceBearer"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ServiceToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v PromEnvelope + 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 + } + if localVarHTTPResponse.StatusCode == 503 { + var v PromEnvelope + 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 ApiPostRangeQueryRequest struct { ctx context.Context ApiService MetricApi @@ -3328,6 +3525,8 @@ type MetricApiMock struct { PostLabelsResponse PostLabelsMockResponse PostMetadataCalls *[]PostMetadataCall PostMetadataResponse PostMetadataMockResponse + PostQueryBatchCalls *[]PostQueryBatchCall + PostQueryBatchResponse PostQueryBatchMockResponse PostRangeQueryCalls *[]PostRangeQueryCall PostRangeQueryResponse PostRangeQueryMockResponse PostSeriesCalls *[]PostSeriesCall @@ -3347,6 +3546,7 @@ func NewMetricApiMock() MetricApiMock { xPostLabelValuesCalls := make([]PostLabelValuesCall, 0) xPostLabelsCalls := make([]PostLabelsCall, 0) xPostMetadataCalls := make([]PostMetadataCall, 0) + xPostQueryBatchCalls := make([]PostQueryBatchCall, 0) xPostRangeQueryCalls := make([]PostRangeQueryCall, 0) xPostSeriesCalls := make([]PostSeriesCall, 0) return MetricApiMock{ @@ -3362,6 +3562,7 @@ func NewMetricApiMock() MetricApiMock { PostLabelValuesCalls: &xPostLabelValuesCalls, PostLabelsCalls: &xPostLabelsCalls, PostMetadataCalls: &xPostMetadataCalls, + PostQueryBatchCalls: &xPostQueryBatchCalls, PostRangeQueryCalls: &xPostRangeQueryCalls, PostSeriesCalls: &xPostSeriesCalls, } @@ -3735,6 +3936,31 @@ func (mock MetricApiMock) PostMetadataExecute(r ApiPostMetadataRequest) (*PromMe return &mock.PostMetadataResponse.Result, mock.PostMetadataResponse.Response, mock.PostMetadataResponse.Error } +type PostQueryBatchMockResponse struct { + Result PromBatchEnvelope + Response *http.Response + Error error +} + +type PostQueryBatchCall struct { + PpromBatchQueryRequest *PromBatchQueryRequest +} + +func (mock MetricApiMock) PostQueryBatch(ctx context.Context) ApiPostQueryBatchRequest { + return ApiPostQueryBatchRequest{ + ApiService: mock, + ctx: ctx, + } +} + +func (mock MetricApiMock) PostQueryBatchExecute(r ApiPostQueryBatchRequest) (*PromBatchEnvelope, *http.Response, error) { + p := PostQueryBatchCall{ + PpromBatchQueryRequest: r.promBatchQueryRequest, + } + *mock.PostQueryBatchCalls = append(*mock.PostQueryBatchCalls, p) + return &mock.PostQueryBatchResponse.Result, mock.PostQueryBatchResponse.Response, mock.PostQueryBatchResponse.Error +} + type PostRangeQueryMockResponse struct { Result PromEnvelope Response *http.Response diff --git a/generated/stackstate_api/api_overview.go b/generated/stackstate_api/api_overview.go new file mode 100644 index 00000000..f2ad60c8 --- /dev/null +++ b/generated/stackstate_api/api_overview.go @@ -0,0 +1,248 @@ +/* +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 OverviewApi interface { + + /* + GetOverview Get overview data for components + + @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 be supported for backward compatibility + @return ApiGetOverviewRequest + */ + GetOverview(ctx context.Context, presentationOrViewUrn string) ApiGetOverviewRequest + + // GetOverviewExecute executes the request + // @return OverviewPageResponse + GetOverviewExecute(r ApiGetOverviewRequest) (*OverviewPageResponse, *http.Response, error) +} + +// OverviewApiService OverviewApi service +type OverviewApiService service + +type ApiGetOverviewRequest struct { + ctx context.Context + ApiService OverviewApi + presentationOrViewUrn string + overviewRequest *OverviewRequest +} + +func (r ApiGetOverviewRequest) OverviewRequest(overviewRequest OverviewRequest) ApiGetOverviewRequest { + r.overviewRequest = &overviewRequest + return r +} + +func (r ApiGetOverviewRequest) Execute() (*OverviewPageResponse, *http.Response, error) { + return r.ApiService.GetOverviewExecute(r) +} + +/* +GetOverview Get overview data for components + + @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 be supported for backward compatibility + @return ApiGetOverviewRequest +*/ +func (a *OverviewApiService) GetOverview(ctx context.Context, presentationOrViewUrn string) ApiGetOverviewRequest { + return ApiGetOverviewRequest{ + ApiService: a, + ctx: ctx, + presentationOrViewUrn: presentationOrViewUrn, + } +} + +// Execute executes the request +// +// @return OverviewPageResponse +func (a *OverviewApiService) GetOverviewExecute(r ApiGetOverviewRequest) (*OverviewPageResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OverviewPageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OverviewApiService.GetOverview") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/overview/{presentationOrViewUrn}" + localVarPath = strings.Replace(localVarPath, "{"+"presentationOrViewUrn"+"}", url.PathEscape(parameterToString(r.presentationOrViewUrn, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.overviewRequest == nil { + return localVarReturnValue, nil, reportError("overviewRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.overviewRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ServiceBearer"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-ServiceBearer"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ServiceToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["X-API-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v 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 + } + + 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 OverviewApiMock struct { + GetOverviewCalls *[]GetOverviewCall + GetOverviewResponse GetOverviewMockResponse +} + +func NewOverviewApiMock() OverviewApiMock { + xGetOverviewCalls := make([]GetOverviewCall, 0) + return OverviewApiMock{ + GetOverviewCalls: &xGetOverviewCalls, + } +} + +type GetOverviewMockResponse struct { + Result OverviewPageResponse + Response *http.Response + Error error +} + +type GetOverviewCall struct { + PpresentationOrViewUrn string + PoverviewRequest *OverviewRequest +} + +func (mock OverviewApiMock) GetOverview(ctx context.Context, presentationOrViewUrn string) ApiGetOverviewRequest { + return ApiGetOverviewRequest{ + ApiService: mock, + ctx: ctx, + presentationOrViewUrn: presentationOrViewUrn, + } +} + +func (mock OverviewApiMock) GetOverviewExecute(r ApiGetOverviewRequest) (*OverviewPageResponse, *http.Response, error) { + p := GetOverviewCall{ + PpresentationOrViewUrn: r.presentationOrViewUrn, + PoverviewRequest: r.overviewRequest, + } + *mock.GetOverviewCalls = append(*mock.GetOverviewCalls, p) + return &mock.GetOverviewResponse.Result, mock.GetOverviewResponse.Response, mock.GetOverviewResponse.Error +} diff --git a/generated/stackstate_api/client.go b/generated/stackstate_api/client.go index 156c60b0..2c4b740d 100644 --- a/generated/stackstate_api/client.go +++ b/generated/stackstate_api/client.go @@ -92,6 +92,8 @@ type APIClient struct { OtelMappingApi OtelMappingApi + OverviewApi OverviewApi + PermissionsApi PermissionsApi ProblemApi ProblemApi @@ -166,6 +168,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.NotificationChannelsApi = (*NotificationChannelsApiService)(&c.common) c.NotificationConfigurationsApi = (*NotificationConfigurationsApiService)(&c.common) c.OtelMappingApi = (*OtelMappingApiService)(&c.common) + c.OverviewApi = (*OverviewApiService)(&c.common) c.PermissionsApi = (*PermissionsApiService)(&c.common) c.ProblemApi = (*ProblemApiService)(&c.common) c.RelationApi = (*RelationApiService)(&c.common) diff --git a/generated/stackstate_api/docs/ApplicationDomain.md b/generated/stackstate_api/docs/ApplicationDomain.md new file mode 100644 index 00000000..504b8079 --- /dev/null +++ b/generated/stackstate_api/docs/ApplicationDomain.md @@ -0,0 +1,13 @@ +# ApplicationDomain + +## Enum + + +* `OBSERVABILITY` (value: `"Observability"`) + +* `SECURITY` (value: `"Security"`) + + +[[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/CellValue.md b/generated/stackstate_api/docs/CellValue.md new file mode 100644 index 00000000..569e0935 --- /dev/null +++ b/generated/stackstate_api/docs/CellValue.md @@ -0,0 +1,302 @@ +# CellValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**IndividualQuery** | **string** | The frontend can use the individual query to refresh the metrics (at interval). Allows to keep the current behaviour of making individual calls for each row. | +**Name** | **string** | | +**Url** | **string** | | +**ComponentId** | **string** | | +**State** | [**HealthStateValue**](HealthStateValue.md) | | +**Value** | **float32** | | +**StartDate** | **int32** | | +**EndDate** | Pointer to **NullableInt32** | | [optional] +**Ready** | **int32** | | +**Total** | **int32** | | +**Status** | Pointer to [**HealthStateValue**](HealthStateValue.md) | | [optional] + +## Methods + +### NewCellValue + +`func NewCellValue(type_ string, individualQuery string, name string, url string, componentId string, state HealthStateValue, value float32, startDate int32, ready int32, total int32, ) *CellValue` + +NewCellValue instantiates a new CellValue 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 + +### NewCellValueWithDefaults + +`func NewCellValueWithDefaults() *CellValue` + +NewCellValueWithDefaults instantiates a new CellValue 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 *CellValue) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CellValue) 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 *CellValue) SetType(v string)` + +SetType sets Type field to given value. + + +### GetIndividualQuery + +`func (o *CellValue) GetIndividualQuery() string` + +GetIndividualQuery returns the IndividualQuery field if non-nil, zero value otherwise. + +### GetIndividualQueryOk + +`func (o *CellValue) GetIndividualQueryOk() (*string, bool)` + +GetIndividualQueryOk returns a tuple with the IndividualQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndividualQuery + +`func (o *CellValue) SetIndividualQuery(v string)` + +SetIndividualQuery sets IndividualQuery field to given value. + + +### GetName + +`func (o *CellValue) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CellValue) 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 *CellValue) SetName(v string)` + +SetName sets Name field to given value. + + +### GetUrl + +`func (o *CellValue) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CellValue) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CellValue) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetComponentId + +`func (o *CellValue) GetComponentId() string` + +GetComponentId returns the ComponentId field if non-nil, zero value otherwise. + +### GetComponentIdOk + +`func (o *CellValue) GetComponentIdOk() (*string, bool)` + +GetComponentIdOk returns a tuple with the ComponentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponentId + +`func (o *CellValue) SetComponentId(v string)` + +SetComponentId sets ComponentId field to given value. + + +### GetState + +`func (o *CellValue) GetState() HealthStateValue` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *CellValue) GetStateOk() (*HealthStateValue, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *CellValue) SetState(v HealthStateValue)` + +SetState sets State field to given value. + + +### GetValue + +`func (o *CellValue) GetValue() float32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CellValue) GetValueOk() (*float32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CellValue) SetValue(v float32)` + +SetValue sets Value field to given value. + + +### GetStartDate + +`func (o *CellValue) GetStartDate() int32` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *CellValue) GetStartDateOk() (*int32, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *CellValue) SetStartDate(v int32)` + +SetStartDate sets StartDate field to given value. + + +### GetEndDate + +`func (o *CellValue) GetEndDate() int32` + +GetEndDate returns the EndDate field if non-nil, zero value otherwise. + +### GetEndDateOk + +`func (o *CellValue) GetEndDateOk() (*int32, bool)` + +GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDate + +`func (o *CellValue) SetEndDate(v int32)` + +SetEndDate sets EndDate field to given value. + +### HasEndDate + +`func (o *CellValue) HasEndDate() bool` + +HasEndDate returns a boolean if a field has been set. + +### SetEndDateNil + +`func (o *CellValue) SetEndDateNil(b bool)` + + SetEndDateNil sets the value for EndDate to be an explicit nil + +### UnsetEndDate +`func (o *CellValue) UnsetEndDate()` + +UnsetEndDate ensures that no value is present for EndDate, not even an explicit nil +### GetReady + +`func (o *CellValue) GetReady() int32` + +GetReady returns the Ready field if non-nil, zero value otherwise. + +### GetReadyOk + +`func (o *CellValue) GetReadyOk() (*int32, bool)` + +GetReadyOk returns a tuple with the Ready field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReady + +`func (o *CellValue) SetReady(v int32)` + +SetReady sets Ready field to given value. + + +### GetTotal + +`func (o *CellValue) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *CellValue) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *CellValue) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetStatus + +`func (o *CellValue) GetStatus() HealthStateValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CellValue) GetStatusOk() (*HealthStateValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CellValue) SetStatus(v HealthStateValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CellValue) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ComponentLinkCell.md b/generated/stackstate_api/docs/ComponentLinkCell.md new file mode 100644 index 00000000..073cba69 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentLinkCell.md @@ -0,0 +1,93 @@ +# ComponentLinkCell + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Name** | **string** | | +**ComponentId** | **string** | | + +## Methods + +### NewComponentLinkCell + +`func NewComponentLinkCell(type_ string, name string, componentId string, ) *ComponentLinkCell` + +NewComponentLinkCell instantiates a new ComponentLinkCell 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 + +### NewComponentLinkCellWithDefaults + +`func NewComponentLinkCellWithDefaults() *ComponentLinkCell` + +NewComponentLinkCellWithDefaults instantiates a new ComponentLinkCell 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 *ComponentLinkCell) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentLinkCell) 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 *ComponentLinkCell) SetType(v string)` + +SetType sets Type field to given value. + + +### GetName + +`func (o *ComponentLinkCell) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentLinkCell) 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 *ComponentLinkCell) SetName(v string)` + +SetName sets Name field to given value. + + +### GetComponentId + +`func (o *ComponentLinkCell) GetComponentId() string` + +GetComponentId returns the ComponentId field if non-nil, zero value otherwise. + +### GetComponentIdOk + +`func (o *ComponentLinkCell) GetComponentIdOk() (*string, bool)` + +GetComponentIdOk returns a tuple with the ComponentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponentId + +`func (o *ComponentLinkCell) SetComponentId(v string)` + +SetComponentId sets ComponentId 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/ComponentLinkMetaDisplay.md b/generated/stackstate_api/docs/ComponentLinkMetaDisplay.md new file mode 100644 index 00000000..62e43fbb --- /dev/null +++ b/generated/stackstate_api/docs/ComponentLinkMetaDisplay.md @@ -0,0 +1,51 @@ +# ComponentLinkMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | + +## Methods + +### NewComponentLinkMetaDisplay + +`func NewComponentLinkMetaDisplay(type_ string, ) *ComponentLinkMetaDisplay` + +NewComponentLinkMetaDisplay instantiates a new ComponentLinkMetaDisplay 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 + +### NewComponentLinkMetaDisplayWithDefaults + +`func NewComponentLinkMetaDisplayWithDefaults() *ComponentLinkMetaDisplay` + +NewComponentLinkMetaDisplayWithDefaults instantiates a new ComponentLinkMetaDisplay 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 *ComponentLinkMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentLinkMetaDisplay) 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 *ComponentLinkMetaDisplay) 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/ComponentLinkProjection.md b/generated/stackstate_api/docs/ComponentLinkProjection.md new file mode 100644 index 00000000..b1f61d08 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentLinkProjection.md @@ -0,0 +1,93 @@ +# ComponentLinkProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Name** | **string** | Cel expression that returns a string that represents the name of the component to link to | +**ComponentIdentifier** | **string** | Cel expression that returns a string that represents the componentIdentifier in order to build the link | + +## Methods + +### NewComponentLinkProjection + +`func NewComponentLinkProjection(type_ string, name string, componentIdentifier string, ) *ComponentLinkProjection` + +NewComponentLinkProjection instantiates a new ComponentLinkProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComponentLinkProjectionWithDefaults + +`func NewComponentLinkProjectionWithDefaults() *ComponentLinkProjection` + +NewComponentLinkProjectionWithDefaults instantiates a new ComponentLinkProjection 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 *ComponentLinkProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComponentLinkProjection) 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 *ComponentLinkProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetName + +`func (o *ComponentLinkProjection) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComponentLinkProjection) 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 *ComponentLinkProjection) SetName(v string)` + +SetName sets Name field to given value. + + +### GetComponentIdentifier + +`func (o *ComponentLinkProjection) GetComponentIdentifier() string` + +GetComponentIdentifier returns the ComponentIdentifier field if non-nil, zero value otherwise. + +### GetComponentIdentifierOk + +`func (o *ComponentLinkProjection) GetComponentIdentifierOk() (*string, bool)` + +GetComponentIdentifierOk returns a tuple with the ComponentIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponentIdentifier + +`func (o *ComponentLinkProjection) SetComponentIdentifier(v string)` + +SetComponentIdentifier sets ComponentIdentifier 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/ComponentPresentation.md b/generated/stackstate_api/docs/ComponentPresentation.md index 7d10f9d8..2d952632 100644 --- a/generated/stackstate_api/docs/ComponentPresentation.md +++ b/generated/stackstate_api/docs/ComponentPresentation.md @@ -7,14 +7,15 @@ Name | Type | Description | Notes **Identifier** | **string** | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Binding** | [**ComponentPresentationQueryBinding**](ComponentPresentationQueryBinding.md) | | +**Rank** | Pointer to [**ComponentPresentationRank**](ComponentPresentationRank.md) | | [optional] **Presentation** | [**PresentationDefinition**](PresentationDefinition.md) | | -**ExpireAfterMs** | Pointer to **int64** | | [optional] ## Methods ### NewComponentPresentation -`func NewComponentPresentation(identifier string, name string, presentation PresentationDefinition, ) *ComponentPresentation` +`func NewComponentPresentation(identifier string, name string, binding ComponentPresentationQueryBinding, presentation PresentationDefinition, ) *ComponentPresentation` NewComponentPresentation instantiates a new ComponentPresentation object This constructor will assign default values to properties that have it defined, @@ -94,50 +95,70 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetPresentation +### GetBinding -`func (o *ComponentPresentation) GetPresentation() PresentationDefinition` +`func (o *ComponentPresentation) GetBinding() ComponentPresentationQueryBinding` -GetPresentation returns the Presentation field if non-nil, zero value otherwise. +GetBinding returns the Binding field if non-nil, zero value otherwise. -### GetPresentationOk +### GetBindingOk -`func (o *ComponentPresentation) GetPresentationOk() (*PresentationDefinition, bool)` +`func (o *ComponentPresentation) GetBindingOk() (*ComponentPresentationQueryBinding, bool)` -GetPresentationOk returns a tuple with the Presentation field if it's non-nil, zero value otherwise +GetBindingOk returns a tuple with the Binding field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPresentation +### SetBinding -`func (o *ComponentPresentation) SetPresentation(v PresentationDefinition)` +`func (o *ComponentPresentation) SetBinding(v ComponentPresentationQueryBinding)` -SetPresentation sets Presentation field to given value. +SetBinding sets Binding field to given value. -### GetExpireAfterMs +### GetRank -`func (o *ComponentPresentation) GetExpireAfterMs() int64` +`func (o *ComponentPresentation) GetRank() ComponentPresentationRank` -GetExpireAfterMs returns the ExpireAfterMs field if non-nil, zero value otherwise. +GetRank returns the Rank field if non-nil, zero value otherwise. -### GetExpireAfterMsOk +### GetRankOk -`func (o *ComponentPresentation) GetExpireAfterMsOk() (*int64, bool)` +`func (o *ComponentPresentation) GetRankOk() (*ComponentPresentationRank, bool)` -GetExpireAfterMsOk returns a tuple with the ExpireAfterMs field if it's non-nil, zero value otherwise +GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetExpireAfterMs +### SetRank + +`func (o *ComponentPresentation) SetRank(v ComponentPresentationRank)` + +SetRank sets Rank field to given value. + +### HasRank -`func (o *ComponentPresentation) SetExpireAfterMs(v int64)` +`func (o *ComponentPresentation) HasRank() bool` -SetExpireAfterMs sets ExpireAfterMs field to given value. +HasRank returns a boolean if a field has been set. -### HasExpireAfterMs +### GetPresentation + +`func (o *ComponentPresentation) GetPresentation() PresentationDefinition` -`func (o *ComponentPresentation) HasExpireAfterMs() bool` +GetPresentation returns the Presentation field if non-nil, zero value otherwise. + +### GetPresentationOk + +`func (o *ComponentPresentation) GetPresentationOk() (*PresentationDefinition, bool)` + +GetPresentationOk returns a tuple with the Presentation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPresentation + +`func (o *ComponentPresentation) SetPresentation(v PresentationDefinition)` + +SetPresentation sets Presentation field to given value. -HasExpireAfterMs 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/ComponentPresentationApi.md b/generated/stackstate_api/docs/ComponentPresentationApi.md index eef78a0d..560a17f7 100644 --- a/generated/stackstate_api/docs/ComponentPresentationApi.md +++ b/generated/stackstate_api/docs/ComponentPresentationApi.md @@ -223,7 +223,7 @@ import ( ) func main() { - componentPresentation := *openapiclient.NewComponentPresentation("Identifier_example", "Name_example", *openapiclient.NewPresentationDefinition()) // ComponentPresentation | + componentPresentation := *openapiclient.NewComponentPresentation("Identifier_example", "Name_example", *openapiclient.NewComponentPresentationQueryBinding("Query_example"), *openapiclient.NewPresentationDefinition()) // ComponentPresentation | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/generated/stackstate_api/docs/ComponentPresentationQueryBinding.md b/generated/stackstate_api/docs/ComponentPresentationQueryBinding.md new file mode 100644 index 00000000..3a217791 --- /dev/null +++ b/generated/stackstate_api/docs/ComponentPresentationQueryBinding.md @@ -0,0 +1,51 @@ +# ComponentPresentationQueryBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | **string** | Stq query that defines to which components does the presentation applies to. | + +## Methods + +### NewComponentPresentationQueryBinding + +`func NewComponentPresentationQueryBinding(query string, ) *ComponentPresentationQueryBinding` + +NewComponentPresentationQueryBinding instantiates a new ComponentPresentationQueryBinding 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 + +### NewComponentPresentationQueryBindingWithDefaults + +`func NewComponentPresentationQueryBindingWithDefaults() *ComponentPresentationQueryBinding` + +NewComponentPresentationQueryBindingWithDefaults instantiates a new ComponentPresentationQueryBinding 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 + +### GetQuery + +`func (o *ComponentPresentationQueryBinding) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *ComponentPresentationQueryBinding) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *ComponentPresentationQueryBinding) SetQuery(v string)` + +SetQuery sets Query 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/ComponentPresentationRank.md b/generated/stackstate_api/docs/ComponentPresentationRank.md new file mode 100644 index 00000000..0772854b --- /dev/null +++ b/generated/stackstate_api/docs/ComponentPresentationRank.md @@ -0,0 +1,51 @@ +# ComponentPresentationRank + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Specificity** | **float64** | Determines how much of a \"specialization\" this presentation is. Higher number means more specific. This is used to determine which presentation to use when multiple presentations match. | + +## Methods + +### NewComponentPresentationRank + +`func NewComponentPresentationRank(specificity float64, ) *ComponentPresentationRank` + +NewComponentPresentationRank instantiates a new ComponentPresentationRank 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 + +### NewComponentPresentationRankWithDefaults + +`func NewComponentPresentationRankWithDefaults() *ComponentPresentationRank` + +NewComponentPresentationRankWithDefaults instantiates a new ComponentPresentationRank 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 + +### GetSpecificity + +`func (o *ComponentPresentationRank) GetSpecificity() float64` + +GetSpecificity returns the Specificity field if non-nil, zero value otherwise. + +### GetSpecificityOk + +`func (o *ComponentPresentationRank) 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 *ComponentPresentationRank) 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/ContainerImageProjection.md b/generated/stackstate_api/docs/ContainerImageProjection.md new file mode 100644 index 00000000..472a7640 --- /dev/null +++ b/generated/stackstate_api/docs/ContainerImageProjection.md @@ -0,0 +1,93 @@ +# ContainerImageProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**ImageId** | **string** | Cel expression that returns a string | +**ImageName** | **string** | Cel expression that returns a string | + +## Methods + +### NewContainerImageProjection + +`func NewContainerImageProjection(type_ string, imageId string, imageName string, ) *ContainerImageProjection` + +NewContainerImageProjection instantiates a new ContainerImageProjection 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 + +### NewContainerImageProjectionWithDefaults + +`func NewContainerImageProjectionWithDefaults() *ContainerImageProjection` + +NewContainerImageProjectionWithDefaults instantiates a new ContainerImageProjection 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 *ContainerImageProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ContainerImageProjection) 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 *ContainerImageProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetImageId + +`func (o *ContainerImageProjection) GetImageId() string` + +GetImageId returns the ImageId field if non-nil, zero value otherwise. + +### GetImageIdOk + +`func (o *ContainerImageProjection) GetImageIdOk() (*string, bool)` + +GetImageIdOk returns a tuple with the ImageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageId + +`func (o *ContainerImageProjection) SetImageId(v string)` + +SetImageId sets ImageId field to given value. + + +### GetImageName + +`func (o *ContainerImageProjection) GetImageName() string` + +GetImageName returns the ImageName field if non-nil, zero value otherwise. + +### GetImageNameOk + +`func (o *ContainerImageProjection) GetImageNameOk() (*string, bool)` + +GetImageNameOk returns a tuple with the ImageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageName + +`func (o *ContainerImageProjection) SetImageName(v string)` + +SetImageName sets ImageName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/DurationCell.md b/generated/stackstate_api/docs/DurationCell.md new file mode 100644 index 00000000..ebf26b39 --- /dev/null +++ b/generated/stackstate_api/docs/DurationCell.md @@ -0,0 +1,108 @@ +# DurationCell + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**StartDate** | **int32** | | +**EndDate** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewDurationCell + +`func NewDurationCell(type_ string, startDate int32, ) *DurationCell` + +NewDurationCell instantiates a new DurationCell 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 + +### NewDurationCellWithDefaults + +`func NewDurationCellWithDefaults() *DurationCell` + +NewDurationCellWithDefaults instantiates a new DurationCell 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 *DurationCell) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DurationCell) 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 *DurationCell) SetType(v string)` + +SetType sets Type field to given value. + + +### GetStartDate + +`func (o *DurationCell) GetStartDate() int32` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *DurationCell) GetStartDateOk() (*int32, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *DurationCell) SetStartDate(v int32)` + +SetStartDate sets StartDate field to given value. + + +### GetEndDate + +`func (o *DurationCell) GetEndDate() int32` + +GetEndDate returns the EndDate field if non-nil, zero value otherwise. + +### GetEndDateOk + +`func (o *DurationCell) GetEndDateOk() (*int32, bool)` + +GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDate + +`func (o *DurationCell) SetEndDate(v int32)` + +SetEndDate sets EndDate field to given value. + +### HasEndDate + +`func (o *DurationCell) HasEndDate() bool` + +HasEndDate returns a boolean if a field has been set. + +### SetEndDateNil + +`func (o *DurationCell) SetEndDateNil(b bool)` + + SetEndDateNil sets the value for EndDate to be an explicit nil + +### UnsetEndDate +`func (o *DurationCell) UnsetEndDate()` + +UnsetEndDate ensures that no value is present for EndDate, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/DurationMetaDisplay.md b/generated/stackstate_api/docs/DurationMetaDisplay.md new file mode 100644 index 00000000..2cb73cd3 --- /dev/null +++ b/generated/stackstate_api/docs/DurationMetaDisplay.md @@ -0,0 +1,51 @@ +# DurationMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | + +## Methods + +### NewDurationMetaDisplay + +`func NewDurationMetaDisplay(type_ string, ) *DurationMetaDisplay` + +NewDurationMetaDisplay instantiates a new DurationMetaDisplay 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 + +### NewDurationMetaDisplayWithDefaults + +`func NewDurationMetaDisplayWithDefaults() *DurationMetaDisplay` + +NewDurationMetaDisplayWithDefaults instantiates a new DurationMetaDisplay 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 *DurationMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DurationMetaDisplay) 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 *DurationMetaDisplay) 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/DurationProjection.md b/generated/stackstate_api/docs/DurationProjection.md new file mode 100644 index 00000000..c7448ac8 --- /dev/null +++ b/generated/stackstate_api/docs/DurationProjection.md @@ -0,0 +1,98 @@ +# DurationProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**StartDate** | **string** | Cel expression that returns a date | +**EndDate** | Pointer to **string** | Cel expression that returns a date | [optional] + +## Methods + +### NewDurationProjection + +`func NewDurationProjection(type_ string, startDate string, ) *DurationProjection` + +NewDurationProjection instantiates a new DurationProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDurationProjectionWithDefaults + +`func NewDurationProjectionWithDefaults() *DurationProjection` + +NewDurationProjectionWithDefaults instantiates a new DurationProjection 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 *DurationProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DurationProjection) 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 *DurationProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetStartDate + +`func (o *DurationProjection) GetStartDate() string` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *DurationProjection) GetStartDateOk() (*string, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *DurationProjection) SetStartDate(v string)` + +SetStartDate sets StartDate field to given value. + + +### GetEndDate + +`func (o *DurationProjection) GetEndDate() string` + +GetEndDate returns the EndDate field if non-nil, zero value otherwise. + +### GetEndDateOk + +`func (o *DurationProjection) GetEndDateOk() (*string, bool)` + +GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDate + +`func (o *DurationProjection) SetEndDate(v string)` + +SetEndDate sets EndDate field to given value. + +### HasEndDate + +`func (o *DurationProjection) HasEndDate() bool` + +HasEndDate 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/HealthCell.md b/generated/stackstate_api/docs/HealthCell.md new file mode 100644 index 00000000..60e6347c --- /dev/null +++ b/generated/stackstate_api/docs/HealthCell.md @@ -0,0 +1,72 @@ +# HealthCell + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**State** | [**HealthStateValue**](HealthStateValue.md) | | + +## Methods + +### NewHealthCell + +`func NewHealthCell(type_ string, state HealthStateValue, ) *HealthCell` + +NewHealthCell instantiates a new HealthCell 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 + +### NewHealthCellWithDefaults + +`func NewHealthCellWithDefaults() *HealthCell` + +NewHealthCellWithDefaults instantiates a new HealthCell 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 *HealthCell) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *HealthCell) 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 *HealthCell) SetType(v string)` + +SetType sets Type field to given value. + + +### GetState + +`func (o *HealthCell) GetState() HealthStateValue` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *HealthCell) GetStateOk() (*HealthStateValue, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *HealthCell) SetState(v HealthStateValue)` + +SetState sets State field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/HealthMetaDisplay.md b/generated/stackstate_api/docs/HealthMetaDisplay.md new file mode 100644 index 00000000..0ed594cc --- /dev/null +++ b/generated/stackstate_api/docs/HealthMetaDisplay.md @@ -0,0 +1,51 @@ +# HealthMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | + +## Methods + +### NewHealthMetaDisplay + +`func NewHealthMetaDisplay(type_ string, ) *HealthMetaDisplay` + +NewHealthMetaDisplay instantiates a new HealthMetaDisplay 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 + +### NewHealthMetaDisplayWithDefaults + +`func NewHealthMetaDisplayWithDefaults() *HealthMetaDisplay` + +NewHealthMetaDisplayWithDefaults instantiates a new HealthMetaDisplay 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 *HealthMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *HealthMetaDisplay) 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 *HealthMetaDisplay) 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/HealthProjection.md b/generated/stackstate_api/docs/HealthProjection.md new file mode 100644 index 00000000..964e23da --- /dev/null +++ b/generated/stackstate_api/docs/HealthProjection.md @@ -0,0 +1,72 @@ +# HealthProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **string** | Cel expression that returns a string that represents a valid HealthState | + +## Methods + +### NewHealthProjection + +`func NewHealthProjection(type_ string, value string, ) *HealthProjection` + +NewHealthProjection instantiates a new HealthProjection 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 + +### NewHealthProjectionWithDefaults + +`func NewHealthProjectionWithDefaults() *HealthProjection` + +NewHealthProjectionWithDefaults instantiates a new HealthProjection 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 *HealthProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *HealthProjection) 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 *HealthProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *HealthProjection) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *HealthProjection) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *HealthProjection) SetValue(v string)` + +SetValue sets Value 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/LinkCell.md b/generated/stackstate_api/docs/LinkCell.md new file mode 100644 index 00000000..e3a11a1b --- /dev/null +++ b/generated/stackstate_api/docs/LinkCell.md @@ -0,0 +1,93 @@ +# LinkCell + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Name** | **string** | | +**Url** | **string** | | + +## Methods + +### NewLinkCell + +`func NewLinkCell(type_ string, name string, url string, ) *LinkCell` + +NewLinkCell instantiates a new LinkCell 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 + +### NewLinkCellWithDefaults + +`func NewLinkCellWithDefaults() *LinkCell` + +NewLinkCellWithDefaults instantiates a new LinkCell 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 *LinkCell) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LinkCell) 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 *LinkCell) SetType(v string)` + +SetType sets Type field to given value. + + +### GetName + +`func (o *LinkCell) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LinkCell) 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 *LinkCell) SetName(v string)` + +SetName sets Name field to given value. + + +### GetUrl + +`func (o *LinkCell) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *LinkCell) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *LinkCell) SetUrl(v string)` + +SetUrl sets Url field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/LinkMetaDisplay.md b/generated/stackstate_api/docs/LinkMetaDisplay.md new file mode 100644 index 00000000..16fbf354 --- /dev/null +++ b/generated/stackstate_api/docs/LinkMetaDisplay.md @@ -0,0 +1,72 @@ +# LinkMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**External** | **bool** | | + +## Methods + +### NewLinkMetaDisplay + +`func NewLinkMetaDisplay(type_ string, external bool, ) *LinkMetaDisplay` + +NewLinkMetaDisplay instantiates a new LinkMetaDisplay 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 + +### NewLinkMetaDisplayWithDefaults + +`func NewLinkMetaDisplayWithDefaults() *LinkMetaDisplay` + +NewLinkMetaDisplayWithDefaults instantiates a new LinkMetaDisplay 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 *LinkMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LinkMetaDisplay) 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 *LinkMetaDisplay) SetType(v string)` + +SetType sets Type field to given value. + + +### GetExternal + +`func (o *LinkMetaDisplay) GetExternal() bool` + +GetExternal returns the External field if non-nil, zero value otherwise. + +### GetExternalOk + +`func (o *LinkMetaDisplay) GetExternalOk() (*bool, bool)` + +GetExternalOk returns a tuple with the External field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternal + +`func (o *LinkMetaDisplay) SetExternal(v bool)` + +SetExternal sets External 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/MetricApi.md b/generated/stackstate_api/docs/MetricApi.md index 3d7c2ebe..ed872fc8 100644 --- a/generated/stackstate_api/docs/MetricApi.md +++ b/generated/stackstate_api/docs/MetricApi.md @@ -16,6 +16,7 @@ Method | HTTP request | Description [**PostLabelValues**](MetricApi.md#PostLabelValues) | **Post** /metrics/label/{label}/values | List of label values for a provided label name [**PostLabels**](MetricApi.md#PostLabels) | **Post** /metrics/labels | List of label names [**PostMetadata**](MetricApi.md#PostMetadata) | **Post** /metrics/metadata | Metadata about metrics currently scraped from targets +[**PostQueryBatch**](MetricApi.md#PostQueryBatch) | **Post** /metrics/query_batch | Batch execution of multiple PromQL queries [**PostRangeQuery**](MetricApi.md#PostRangeQuery) | **Post** /metrics/query_range | Query over a range of time [**PostSeries**](MetricApi.md#PostSeries) | **Post** /metrics/series | List of time series that match a certain label set @@ -887,6 +888,72 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PostQueryBatch + +> PromBatchEnvelope PostQueryBatch(ctx).PromBatchQueryRequest(promBatchQueryRequest).Execute() + +Batch execution of multiple PromQL queries + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + promBatchQueryRequest := *openapiclient.NewPromBatchQueryRequest([]openapiclient.PromBatchQueryItem{openapiclient.PromBatchQueryItem{PromBatchInstantQuery: openapiclient.NewPromBatchInstantQuery("Id_example", "Type_example", "Query_example")}}) // PromBatchQueryRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MetricApi.PostQueryBatch(context.Background()).PromBatchQueryRequest(promBatchQueryRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MetricApi.PostQueryBatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostQueryBatch`: PromBatchEnvelope + fmt.Fprintf(os.Stdout, "Response from `MetricApi.PostQueryBatch`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPostQueryBatchRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **promBatchQueryRequest** | [**PromBatchQueryRequest**](PromBatchQueryRequest.md) | | + +### Return type + +[**PromBatchEnvelope**](PromBatchEnvelope.md) + +### Authorization + +[ApiToken](../README.md#ApiToken), [ServiceBearer](../README.md#ServiceBearer), [ServiceToken](../README.md#ServiceToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## PostRangeQuery > PromEnvelope PostRangeQuery(ctx).Query(query).Start(start).End(end).Step(step).Timeout(timeout).Aligned(aligned).MaxNumberOfDataPoints(maxNumberOfDataPoints).PostFilter(postFilter).Execute() diff --git a/generated/stackstate_api/docs/MetricCell.md b/generated/stackstate_api/docs/MetricCell.md new file mode 100644 index 00000000..4e7564fb --- /dev/null +++ b/generated/stackstate_api/docs/MetricCell.md @@ -0,0 +1,72 @@ +# MetricCell + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**IndividualQuery** | **string** | The frontend can use the individual query to refresh the metrics (at interval). Allows to keep the current behaviour of making individual calls for each row. | + +## Methods + +### NewMetricCell + +`func NewMetricCell(type_ string, individualQuery string, ) *MetricCell` + +NewMetricCell instantiates a new MetricCell 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 + +### NewMetricCellWithDefaults + +`func NewMetricCellWithDefaults() *MetricCell` + +NewMetricCellWithDefaults instantiates a new MetricCell 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 *MetricCell) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MetricCell) 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 *MetricCell) SetType(v string)` + +SetType sets Type field to given value. + + +### GetIndividualQuery + +`func (o *MetricCell) GetIndividualQuery() string` + +GetIndividualQuery returns the IndividualQuery field if non-nil, zero value otherwise. + +### GetIndividualQueryOk + +`func (o *MetricCell) GetIndividualQueryOk() (*string, bool)` + +GetIndividualQueryOk returns a tuple with the IndividualQuery field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndividualQuery + +`func (o *MetricCell) SetIndividualQuery(v string)` + +SetIndividualQuery sets IndividualQuery 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/MetricChartMetaDisplay.md b/generated/stackstate_api/docs/MetricChartMetaDisplay.md new file mode 100644 index 00000000..8eef0fc5 --- /dev/null +++ b/generated/stackstate_api/docs/MetricChartMetaDisplay.md @@ -0,0 +1,180 @@ +# MetricChartMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Unit** | Pointer to **NullableString** | | [optional] +**DecimalPlaces** | Pointer to **NullableInt32** | | [optional] +**ShowChart** | Pointer to **NullableBool** | | [optional] +**Locked** | **bool** | | + +## Methods + +### NewMetricChartMetaDisplay + +`func NewMetricChartMetaDisplay(type_ string, locked bool, ) *MetricChartMetaDisplay` + +NewMetricChartMetaDisplay instantiates a new MetricChartMetaDisplay object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetricChartMetaDisplayWithDefaults + +`func NewMetricChartMetaDisplayWithDefaults() *MetricChartMetaDisplay` + +NewMetricChartMetaDisplayWithDefaults instantiates a new MetricChartMetaDisplay object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *MetricChartMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MetricChartMetaDisplay) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MetricChartMetaDisplay) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUnit + +`func (o *MetricChartMetaDisplay) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *MetricChartMetaDisplay) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *MetricChartMetaDisplay) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *MetricChartMetaDisplay) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### SetUnitNil + +`func (o *MetricChartMetaDisplay) SetUnitNil(b bool)` + + SetUnitNil sets the value for Unit to be an explicit nil + +### UnsetUnit +`func (o *MetricChartMetaDisplay) UnsetUnit()` + +UnsetUnit ensures that no value is present for Unit, not even an explicit nil +### GetDecimalPlaces + +`func (o *MetricChartMetaDisplay) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *MetricChartMetaDisplay) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *MetricChartMetaDisplay) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *MetricChartMetaDisplay) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + +### SetDecimalPlacesNil + +`func (o *MetricChartMetaDisplay) SetDecimalPlacesNil(b bool)` + + SetDecimalPlacesNil sets the value for DecimalPlaces to be an explicit nil + +### UnsetDecimalPlaces +`func (o *MetricChartMetaDisplay) UnsetDecimalPlaces()` + +UnsetDecimalPlaces ensures that no value is present for DecimalPlaces, not even an explicit nil +### GetShowChart + +`func (o *MetricChartMetaDisplay) GetShowChart() bool` + +GetShowChart returns the ShowChart field if non-nil, zero value otherwise. + +### GetShowChartOk + +`func (o *MetricChartMetaDisplay) GetShowChartOk() (*bool, bool)` + +GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowChart + +`func (o *MetricChartMetaDisplay) SetShowChart(v bool)` + +SetShowChart sets ShowChart field to given value. + +### HasShowChart + +`func (o *MetricChartMetaDisplay) HasShowChart() bool` + +HasShowChart returns a boolean if a field has been set. + +### SetShowChartNil + +`func (o *MetricChartMetaDisplay) SetShowChartNil(b bool)` + + SetShowChartNil sets the value for ShowChart to be an explicit nil + +### UnsetShowChart +`func (o *MetricChartMetaDisplay) UnsetShowChart()` + +UnsetShowChart ensures that no value is present for ShowChart, not even an explicit nil +### GetLocked + +`func (o *MetricChartMetaDisplay) GetLocked() bool` + +GetLocked returns the Locked field if non-nil, zero value otherwise. + +### GetLockedOk + +`func (o *MetricChartMetaDisplay) GetLockedOk() (*bool, bool)` + +GetLockedOk returns a tuple with the Locked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocked + +`func (o *MetricChartMetaDisplay) SetLocked(v bool)` + +SetLocked sets Locked 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/MetricChartProjection.md b/generated/stackstate_api/docs/MetricChartProjection.md new file mode 100644 index 00000000..06b68b12 --- /dev/null +++ b/generated/stackstate_api/docs/MetricChartProjection.md @@ -0,0 +1,150 @@ +# MetricChartProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**ShowChart** | Pointer to **bool** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] +**Unit** | Pointer to **string** | | [optional] +**Query** | **string** | Individual metric query that returns a timeseries for a specific cell. | + +## Methods + +### NewMetricChartProjection + +`func NewMetricChartProjection(type_ string, query string, ) *MetricChartProjection` + +NewMetricChartProjection instantiates a new MetricChartProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMetricChartProjectionWithDefaults + +`func NewMetricChartProjectionWithDefaults() *MetricChartProjection` + +NewMetricChartProjectionWithDefaults instantiates a new MetricChartProjection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *MetricChartProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MetricChartProjection) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MetricChartProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetShowChart + +`func (o *MetricChartProjection) GetShowChart() bool` + +GetShowChart returns the ShowChart field if non-nil, zero value otherwise. + +### GetShowChartOk + +`func (o *MetricChartProjection) GetShowChartOk() (*bool, bool)` + +GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowChart + +`func (o *MetricChartProjection) SetShowChart(v bool)` + +SetShowChart sets ShowChart field to given value. + +### HasShowChart + +`func (o *MetricChartProjection) HasShowChart() bool` + +HasShowChart returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *MetricChartProjection) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *MetricChartProjection) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *MetricChartProjection) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *MetricChartProjection) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + +### GetUnit + +`func (o *MetricChartProjection) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *MetricChartProjection) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *MetricChartProjection) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *MetricChartProjection) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetQuery + +`func (o *MetricChartProjection) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *MetricChartProjection) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *MetricChartProjection) SetQuery(v string)` + +SetQuery sets Query 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/NumericCell.md b/generated/stackstate_api/docs/NumericCell.md new file mode 100644 index 00000000..5c1a5fbf --- /dev/null +++ b/generated/stackstate_api/docs/NumericCell.md @@ -0,0 +1,72 @@ +# NumericCell + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **float32** | | + +## Methods + +### NewNumericCell + +`func NewNumericCell(type_ string, value float32, ) *NumericCell` + +NewNumericCell instantiates a new NumericCell 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 + +### NewNumericCellWithDefaults + +`func NewNumericCellWithDefaults() *NumericCell` + +NewNumericCellWithDefaults instantiates a new NumericCell 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 *NumericCell) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *NumericCell) 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 *NumericCell) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *NumericCell) GetValue() float32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *NumericCell) GetValueOk() (*float32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *NumericCell) SetValue(v float32)` + +SetValue sets Value 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/NumericMetaDisplay.md b/generated/stackstate_api/docs/NumericMetaDisplay.md new file mode 100644 index 00000000..81a17a8f --- /dev/null +++ b/generated/stackstate_api/docs/NumericMetaDisplay.md @@ -0,0 +1,87 @@ +# NumericMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Unit** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewNumericMetaDisplay + +`func NewNumericMetaDisplay(type_ string, ) *NumericMetaDisplay` + +NewNumericMetaDisplay instantiates a new NumericMetaDisplay 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 + +### NewNumericMetaDisplayWithDefaults + +`func NewNumericMetaDisplayWithDefaults() *NumericMetaDisplay` + +NewNumericMetaDisplayWithDefaults instantiates a new NumericMetaDisplay 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 *NumericMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *NumericMetaDisplay) 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 *NumericMetaDisplay) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUnit + +`func (o *NumericMetaDisplay) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *NumericMetaDisplay) 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 *NumericMetaDisplay) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *NumericMetaDisplay) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### SetUnitNil + +`func (o *NumericMetaDisplay) SetUnitNil(b bool)` + + SetUnitNil sets the value for Unit to be an explicit nil + +### UnsetUnit +`func (o *NumericMetaDisplay) UnsetUnit()` + +UnsetUnit ensures that no value is present for Unit, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/NumericProjection.md b/generated/stackstate_api/docs/NumericProjection.md new file mode 100644 index 00000000..64f7db75 --- /dev/null +++ b/generated/stackstate_api/docs/NumericProjection.md @@ -0,0 +1,134 @@ +# NumericProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **string** | Cel expression that returns a number | +**Unit** | Pointer to **NullableString** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] + +## Methods + +### NewNumericProjection + +`func NewNumericProjection(type_ string, value string, ) *NumericProjection` + +NewNumericProjection instantiates a new NumericProjection 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 + +### NewNumericProjectionWithDefaults + +`func NewNumericProjectionWithDefaults() *NumericProjection` + +NewNumericProjectionWithDefaults instantiates a new NumericProjection 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 *NumericProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *NumericProjection) 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 *NumericProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *NumericProjection) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *NumericProjection) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *NumericProjection) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetUnit + +`func (o *NumericProjection) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *NumericProjection) 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 *NumericProjection) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *NumericProjection) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### SetUnitNil + +`func (o *NumericProjection) SetUnitNil(b bool)` + + SetUnitNil sets the value for Unit to be an explicit nil + +### UnsetUnit +`func (o *NumericProjection) UnsetUnit()` + +UnsetUnit ensures that no value is present for Unit, not even an explicit nil +### GetDecimalPlaces + +`func (o *NumericProjection) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *NumericProjection) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *NumericProjection) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *NumericProjection) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/OverviewApi.md b/generated/stackstate_api/docs/OverviewApi.md new file mode 100644 index 00000000..40437ca9 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewApi.md @@ -0,0 +1,79 @@ +# \OverviewApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetOverview**](OverviewApi.md#GetOverview) | **Post** /overview/{presentationOrViewUrn} | Get overview data for components + + + +## GetOverview + +> OverviewPageResponse GetOverview(ctx, presentationOrViewUrn).OverviewRequest(overviewRequest).Execute() + +Get overview data for components + +### 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 be supported for backward compatibility + overviewRequest := *openapiclient.NewOverviewRequest() // OverviewRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OverviewApi.GetOverview(context.Background(), presentationOrViewUrn).OverviewRequest(overviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OverviewApi.GetOverview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOverview`: OverviewPageResponse + fmt.Fprintf(os.Stdout, "Response from `OverviewApi.GetOverview`: %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 be supported for backward compatibility | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOverviewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **overviewRequest** | [**OverviewRequest**](OverviewRequest.md) | | + +### Return type + +[**OverviewPageResponse**](OverviewPageResponse.md) + +### Authorization + +[ApiToken](../README.md#ApiToken), [ServiceBearer](../README.md#ServiceBearer), [ServiceToken](../README.md#ServiceToken) + +### HTTP request headers + +- **Content-Type**: application/json +- **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/OverviewColumnDefinition.md b/generated/stackstate_api/docs/OverviewColumnDefinition.md new file mode 100644 index 00000000..8e496fb0 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewColumnDefinition.md @@ -0,0 +1,103 @@ +# OverviewColumnDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ColumnId** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Projection** | Pointer to [**OverviewColumnProjection**](OverviewColumnProjection.md) | | [optional] + +## Methods + +### NewOverviewColumnDefinition + +`func NewOverviewColumnDefinition(columnId string, ) *OverviewColumnDefinition` + +NewOverviewColumnDefinition instantiates a new OverviewColumnDefinition 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 + +### NewOverviewColumnDefinitionWithDefaults + +`func NewOverviewColumnDefinitionWithDefaults() *OverviewColumnDefinition` + +NewOverviewColumnDefinitionWithDefaults instantiates a new OverviewColumnDefinition 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 *OverviewColumnDefinition) GetColumnId() string` + +GetColumnId returns the ColumnId field if non-nil, zero value otherwise. + +### GetColumnIdOk + +`func (o *OverviewColumnDefinition) 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 *OverviewColumnDefinition) SetColumnId(v string)` + +SetColumnId sets ColumnId field to given value. + + +### GetTitle + +`func (o *OverviewColumnDefinition) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *OverviewColumnDefinition) 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 *OverviewColumnDefinition) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *OverviewColumnDefinition) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetProjection + +`func (o *OverviewColumnDefinition) GetProjection() OverviewColumnProjection` + +GetProjection returns the Projection field if non-nil, zero value otherwise. + +### GetProjectionOk + +`func (o *OverviewColumnDefinition) GetProjectionOk() (*OverviewColumnProjection, bool)` + +GetProjectionOk returns a tuple with the Projection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjection + +`func (o *OverviewColumnDefinition) SetProjection(v OverviewColumnProjection)` + +SetProjection sets Projection field to given value. + +### HasProjection + +`func (o *OverviewColumnDefinition) HasProjection() bool` + +HasProjection returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/OverviewColumnFilter.md b/generated/stackstate_api/docs/OverviewColumnFilter.md new file mode 100644 index 00000000..5890619c --- /dev/null +++ b/generated/stackstate_api/docs/OverviewColumnFilter.md @@ -0,0 +1,72 @@ +# OverviewColumnFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ColumnId** | **string** | | +**Search** | **string** | | + +## Methods + +### NewOverviewColumnFilter + +`func NewOverviewColumnFilter(columnId string, search string, ) *OverviewColumnFilter` + +NewOverviewColumnFilter instantiates a new OverviewColumnFilter 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 + +### NewOverviewColumnFilterWithDefaults + +`func NewOverviewColumnFilterWithDefaults() *OverviewColumnFilter` + +NewOverviewColumnFilterWithDefaults instantiates a new OverviewColumnFilter 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 *OverviewColumnFilter) GetColumnId() string` + +GetColumnId returns the ColumnId field if non-nil, zero value otherwise. + +### GetColumnIdOk + +`func (o *OverviewColumnFilter) 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 *OverviewColumnFilter) SetColumnId(v string)` + +SetColumnId sets ColumnId field to given value. + + +### GetSearch + +`func (o *OverviewColumnFilter) GetSearch() string` + +GetSearch returns the Search field if non-nil, zero value otherwise. + +### GetSearchOk + +`func (o *OverviewColumnFilter) GetSearchOk() (*string, bool)` + +GetSearchOk returns a tuple with the Search field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearch + +`func (o *OverviewColumnFilter) SetSearch(v string)` + +SetSearch sets Search 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/OverviewColumnMeta.md b/generated/stackstate_api/docs/OverviewColumnMeta.md new file mode 100644 index 00000000..5dcc1d97 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewColumnMeta.md @@ -0,0 +1,156 @@ +# OverviewColumnMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ColumnId** | **string** | | +**Title** | **string** | | +**Display** | [**OverviewColumnMetaDisplay**](OverviewColumnMetaDisplay.md) | | +**Sortable** | **bool** | | +**Searchable** | **bool** | | +**Order** | **int32** | | + +## Methods + +### NewOverviewColumnMeta + +`func NewOverviewColumnMeta(columnId string, title string, display OverviewColumnMetaDisplay, sortable bool, searchable bool, order int32, ) *OverviewColumnMeta` + +NewOverviewColumnMeta instantiates a new OverviewColumnMeta 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 + +### NewOverviewColumnMetaWithDefaults + +`func NewOverviewColumnMetaWithDefaults() *OverviewColumnMeta` + +NewOverviewColumnMetaWithDefaults instantiates a new OverviewColumnMeta 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 *OverviewColumnMeta) GetColumnId() string` + +GetColumnId returns the ColumnId field if non-nil, zero value otherwise. + +### GetColumnIdOk + +`func (o *OverviewColumnMeta) 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 *OverviewColumnMeta) SetColumnId(v string)` + +SetColumnId sets ColumnId field to given value. + + +### GetTitle + +`func (o *OverviewColumnMeta) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *OverviewColumnMeta) 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 *OverviewColumnMeta) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDisplay + +`func (o *OverviewColumnMeta) GetDisplay() OverviewColumnMetaDisplay` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *OverviewColumnMeta) GetDisplayOk() (*OverviewColumnMetaDisplay, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *OverviewColumnMeta) SetDisplay(v OverviewColumnMetaDisplay)` + +SetDisplay sets Display field to given value. + + +### GetSortable + +`func (o *OverviewColumnMeta) GetSortable() bool` + +GetSortable returns the Sortable field if non-nil, zero value otherwise. + +### GetSortableOk + +`func (o *OverviewColumnMeta) GetSortableOk() (*bool, bool)` + +GetSortableOk returns a tuple with the Sortable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSortable + +`func (o *OverviewColumnMeta) SetSortable(v bool)` + +SetSortable sets Sortable field to given value. + + +### GetSearchable + +`func (o *OverviewColumnMeta) GetSearchable() bool` + +GetSearchable returns the Searchable field if non-nil, zero value otherwise. + +### GetSearchableOk + +`func (o *OverviewColumnMeta) GetSearchableOk() (*bool, bool)` + +GetSearchableOk returns a tuple with the Searchable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSearchable + +`func (o *OverviewColumnMeta) SetSearchable(v bool)` + +SetSearchable sets Searchable field to given value. + + +### GetOrder + +`func (o *OverviewColumnMeta) GetOrder() int32` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *OverviewColumnMeta) GetOrderOk() (*int32, 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 *OverviewColumnMeta) SetOrder(v int32)` + +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/OverviewColumnMetaDisplay.md b/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md new file mode 100644 index 00000000..47bb337b --- /dev/null +++ b/generated/stackstate_api/docs/OverviewColumnMetaDisplay.md @@ -0,0 +1,201 @@ +# OverviewColumnMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Unit** | Pointer to **NullableString** | | [optional] +**DecimalPlaces** | Pointer to **NullableInt32** | | [optional] +**ShowChart** | Pointer to **NullableBool** | | [optional] +**Locked** | **bool** | | +**External** | **bool** | | + +## Methods + +### NewOverviewColumnMetaDisplay + +`func NewOverviewColumnMetaDisplay(type_ string, locked bool, external bool, ) *OverviewColumnMetaDisplay` + +NewOverviewColumnMetaDisplay instantiates a new OverviewColumnMetaDisplay 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 + +### NewOverviewColumnMetaDisplayWithDefaults + +`func NewOverviewColumnMetaDisplayWithDefaults() *OverviewColumnMetaDisplay` + +NewOverviewColumnMetaDisplayWithDefaults instantiates a new OverviewColumnMetaDisplay 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 *OverviewColumnMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewColumnMetaDisplay) 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 *OverviewColumnMetaDisplay) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUnit + +`func (o *OverviewColumnMetaDisplay) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *OverviewColumnMetaDisplay) 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 *OverviewColumnMetaDisplay) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *OverviewColumnMetaDisplay) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### SetUnitNil + +`func (o *OverviewColumnMetaDisplay) SetUnitNil(b bool)` + + SetUnitNil sets the value for Unit to be an explicit nil + +### UnsetUnit +`func (o *OverviewColumnMetaDisplay) UnsetUnit()` + +UnsetUnit ensures that no value is present for Unit, not even an explicit nil +### GetDecimalPlaces + +`func (o *OverviewColumnMetaDisplay) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *OverviewColumnMetaDisplay) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *OverviewColumnMetaDisplay) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *OverviewColumnMetaDisplay) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + +### SetDecimalPlacesNil + +`func (o *OverviewColumnMetaDisplay) SetDecimalPlacesNil(b bool)` + + SetDecimalPlacesNil sets the value for DecimalPlaces to be an explicit nil + +### UnsetDecimalPlaces +`func (o *OverviewColumnMetaDisplay) UnsetDecimalPlaces()` + +UnsetDecimalPlaces ensures that no value is present for DecimalPlaces, not even an explicit nil +### GetShowChart + +`func (o *OverviewColumnMetaDisplay) GetShowChart() bool` + +GetShowChart returns the ShowChart field if non-nil, zero value otherwise. + +### GetShowChartOk + +`func (o *OverviewColumnMetaDisplay) GetShowChartOk() (*bool, bool)` + +GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowChart + +`func (o *OverviewColumnMetaDisplay) SetShowChart(v bool)` + +SetShowChart sets ShowChart field to given value. + +### HasShowChart + +`func (o *OverviewColumnMetaDisplay) HasShowChart() bool` + +HasShowChart returns a boolean if a field has been set. + +### SetShowChartNil + +`func (o *OverviewColumnMetaDisplay) SetShowChartNil(b bool)` + + SetShowChartNil sets the value for ShowChart to be an explicit nil + +### UnsetShowChart +`func (o *OverviewColumnMetaDisplay) UnsetShowChart()` + +UnsetShowChart ensures that no value is present for ShowChart, not even an explicit nil +### GetLocked + +`func (o *OverviewColumnMetaDisplay) GetLocked() bool` + +GetLocked returns the Locked field if non-nil, zero value otherwise. + +### GetLockedOk + +`func (o *OverviewColumnMetaDisplay) GetLockedOk() (*bool, bool)` + +GetLockedOk returns a tuple with the Locked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocked + +`func (o *OverviewColumnMetaDisplay) SetLocked(v bool)` + +SetLocked sets Locked field to given value. + + +### GetExternal + +`func (o *OverviewColumnMetaDisplay) GetExternal() bool` + +GetExternal returns the External field if non-nil, zero value otherwise. + +### GetExternalOk + +`func (o *OverviewColumnMetaDisplay) GetExternalOk() (*bool, bool)` + +GetExternalOk returns a tuple with the External field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternal + +`func (o *OverviewColumnMetaDisplay) SetExternal(v bool)` + +SetExternal sets External 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/OverviewColumnProjection.md b/generated/stackstate_api/docs/OverviewColumnProjection.md new file mode 100644 index 00000000..f95b224f --- /dev/null +++ b/generated/stackstate_api/docs/OverviewColumnProjection.md @@ -0,0 +1,380 @@ +# OverviewColumnProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**ShowChart** | Pointer to **bool** | | [optional] +**DecimalPlaces** | Pointer to **int32** | | [optional] +**Unit** | Pointer to **NullableString** | | [optional] +**Query** | **string** | Individual metric query that returns a timeseries for a specific cell. | +**Name** | **string** | Cel expression that returns a string that represents the name of the component to link to | +**ComponentIdentifier** | **string** | Cel expression that returns a string that represents the componentIdentifier in order to build the link | +**Value** | **string** | Cel expression that returns a number | +**StartDate** | **string** | Cel expression that returns a date | +**EndDate** | Pointer to **string** | Cel expression that returns a date | [optional] +**ReadyNumber** | **string** | Cel expression that returns a number | +**TotalNumber** | **string** | Cel expression that returns a number | +**ReadyStatus** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] +**ImageId** | **string** | Cel expression that returns a string | +**ImageName** | **string** | Cel expression that returns a string | + +## Methods + +### NewOverviewColumnProjection + +`func NewOverviewColumnProjection(type_ string, query string, name string, componentIdentifier string, value string, startDate string, readyNumber string, totalNumber string, imageId string, imageName string, ) *OverviewColumnProjection` + +NewOverviewColumnProjection instantiates a new OverviewColumnProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOverviewColumnProjectionWithDefaults + +`func NewOverviewColumnProjectionWithDefaults() *OverviewColumnProjection` + +NewOverviewColumnProjectionWithDefaults instantiates a new OverviewColumnProjection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *OverviewColumnProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewColumnProjection) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OverviewColumnProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetShowChart + +`func (o *OverviewColumnProjection) GetShowChart() bool` + +GetShowChart returns the ShowChart field if non-nil, zero value otherwise. + +### GetShowChartOk + +`func (o *OverviewColumnProjection) GetShowChartOk() (*bool, bool)` + +GetShowChartOk returns a tuple with the ShowChart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShowChart + +`func (o *OverviewColumnProjection) SetShowChart(v bool)` + +SetShowChart sets ShowChart field to given value. + +### HasShowChart + +`func (o *OverviewColumnProjection) HasShowChart() bool` + +HasShowChart returns a boolean if a field has been set. + +### GetDecimalPlaces + +`func (o *OverviewColumnProjection) GetDecimalPlaces() int32` + +GetDecimalPlaces returns the DecimalPlaces field if non-nil, zero value otherwise. + +### GetDecimalPlacesOk + +`func (o *OverviewColumnProjection) GetDecimalPlacesOk() (*int32, bool)` + +GetDecimalPlacesOk returns a tuple with the DecimalPlaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecimalPlaces + +`func (o *OverviewColumnProjection) SetDecimalPlaces(v int32)` + +SetDecimalPlaces sets DecimalPlaces field to given value. + +### HasDecimalPlaces + +`func (o *OverviewColumnProjection) HasDecimalPlaces() bool` + +HasDecimalPlaces returns a boolean if a field has been set. + +### GetUnit + +`func (o *OverviewColumnProjection) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *OverviewColumnProjection) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *OverviewColumnProjection) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *OverviewColumnProjection) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### SetUnitNil + +`func (o *OverviewColumnProjection) SetUnitNil(b bool)` + + SetUnitNil sets the value for Unit to be an explicit nil + +### UnsetUnit +`func (o *OverviewColumnProjection) UnsetUnit()` + +UnsetUnit ensures that no value is present for Unit, not even an explicit nil +### GetQuery + +`func (o *OverviewColumnProjection) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *OverviewColumnProjection) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *OverviewColumnProjection) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetName + +`func (o *OverviewColumnProjection) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OverviewColumnProjection) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OverviewColumnProjection) SetName(v string)` + +SetName sets Name field to given value. + + +### GetComponentIdentifier + +`func (o *OverviewColumnProjection) GetComponentIdentifier() string` + +GetComponentIdentifier returns the ComponentIdentifier field if non-nil, zero value otherwise. + +### GetComponentIdentifierOk + +`func (o *OverviewColumnProjection) GetComponentIdentifierOk() (*string, bool)` + +GetComponentIdentifierOk returns a tuple with the ComponentIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponentIdentifier + +`func (o *OverviewColumnProjection) SetComponentIdentifier(v string)` + +SetComponentIdentifier sets ComponentIdentifier field to given value. + + +### GetValue + +`func (o *OverviewColumnProjection) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *OverviewColumnProjection) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *OverviewColumnProjection) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetStartDate + +`func (o *OverviewColumnProjection) GetStartDate() string` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *OverviewColumnProjection) GetStartDateOk() (*string, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *OverviewColumnProjection) SetStartDate(v string)` + +SetStartDate sets StartDate field to given value. + + +### GetEndDate + +`func (o *OverviewColumnProjection) GetEndDate() string` + +GetEndDate returns the EndDate field if non-nil, zero value otherwise. + +### GetEndDateOk + +`func (o *OverviewColumnProjection) GetEndDateOk() (*string, bool)` + +GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDate + +`func (o *OverviewColumnProjection) SetEndDate(v string)` + +SetEndDate sets EndDate field to given value. + +### HasEndDate + +`func (o *OverviewColumnProjection) HasEndDate() bool` + +HasEndDate returns a boolean if a field has been set. + +### GetReadyNumber + +`func (o *OverviewColumnProjection) GetReadyNumber() string` + +GetReadyNumber returns the ReadyNumber field if non-nil, zero value otherwise. + +### GetReadyNumberOk + +`func (o *OverviewColumnProjection) GetReadyNumberOk() (*string, bool)` + +GetReadyNumberOk returns a tuple with the ReadyNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadyNumber + +`func (o *OverviewColumnProjection) SetReadyNumber(v string)` + +SetReadyNumber sets ReadyNumber field to given value. + + +### GetTotalNumber + +`func (o *OverviewColumnProjection) GetTotalNumber() string` + +GetTotalNumber returns the TotalNumber field if non-nil, zero value otherwise. + +### GetTotalNumberOk + +`func (o *OverviewColumnProjection) GetTotalNumberOk() (*string, bool)` + +GetTotalNumberOk returns a tuple with the TotalNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalNumber + +`func (o *OverviewColumnProjection) SetTotalNumber(v string)` + +SetTotalNumber sets TotalNumber field to given value. + + +### GetReadyStatus + +`func (o *OverviewColumnProjection) GetReadyStatus() string` + +GetReadyStatus returns the ReadyStatus field if non-nil, zero value otherwise. + +### GetReadyStatusOk + +`func (o *OverviewColumnProjection) GetReadyStatusOk() (*string, bool)` + +GetReadyStatusOk returns a tuple with the ReadyStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadyStatus + +`func (o *OverviewColumnProjection) SetReadyStatus(v string)` + +SetReadyStatus sets ReadyStatus field to given value. + +### HasReadyStatus + +`func (o *OverviewColumnProjection) HasReadyStatus() bool` + +HasReadyStatus returns a boolean if a field has been set. + +### GetImageId + +`func (o *OverviewColumnProjection) GetImageId() string` + +GetImageId returns the ImageId field if non-nil, zero value otherwise. + +### GetImageIdOk + +`func (o *OverviewColumnProjection) GetImageIdOk() (*string, bool)` + +GetImageIdOk returns a tuple with the ImageId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageId + +`func (o *OverviewColumnProjection) SetImageId(v string)` + +SetImageId sets ImageId field to given value. + + +### GetImageName + +`func (o *OverviewColumnProjection) GetImageName() string` + +GetImageName returns the ImageName field if non-nil, zero value otherwise. + +### GetImageNameOk + +`func (o *OverviewColumnProjection) GetImageNameOk() (*string, bool)` + +GetImageNameOk returns a tuple with the ImageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageName + +`func (o *OverviewColumnProjection) SetImageName(v string)` + +SetImageName sets ImageName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/OverviewDataUnavailable.md b/generated/stackstate_api/docs/OverviewDataUnavailable.md new file mode 100644 index 00000000..83f99a54 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewDataUnavailable.md @@ -0,0 +1,93 @@ +# OverviewDataUnavailable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**UnavailableAtEpochMs** | **int64** | Time when data became unavailable (epoch ms). | +**AvailableSinceEpochMs** | **int64** | Time when data became available again (epoch ms). | + +## Methods + +### NewOverviewDataUnavailable + +`func NewOverviewDataUnavailable(type_ string, unavailableAtEpochMs int64, availableSinceEpochMs int64, ) *OverviewDataUnavailable` + +NewOverviewDataUnavailable instantiates a new OverviewDataUnavailable 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 + +### NewOverviewDataUnavailableWithDefaults + +`func NewOverviewDataUnavailableWithDefaults() *OverviewDataUnavailable` + +NewOverviewDataUnavailableWithDefaults instantiates a new OverviewDataUnavailable 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 *OverviewDataUnavailable) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewDataUnavailable) 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 *OverviewDataUnavailable) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUnavailableAtEpochMs + +`func (o *OverviewDataUnavailable) GetUnavailableAtEpochMs() int64` + +GetUnavailableAtEpochMs returns the UnavailableAtEpochMs field if non-nil, zero value otherwise. + +### GetUnavailableAtEpochMsOk + +`func (o *OverviewDataUnavailable) GetUnavailableAtEpochMsOk() (*int64, bool)` + +GetUnavailableAtEpochMsOk returns a tuple with the UnavailableAtEpochMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnavailableAtEpochMs + +`func (o *OverviewDataUnavailable) SetUnavailableAtEpochMs(v int64)` + +SetUnavailableAtEpochMs sets UnavailableAtEpochMs field to given value. + + +### GetAvailableSinceEpochMs + +`func (o *OverviewDataUnavailable) GetAvailableSinceEpochMs() int64` + +GetAvailableSinceEpochMs returns the AvailableSinceEpochMs field if non-nil, zero value otherwise. + +### GetAvailableSinceEpochMsOk + +`func (o *OverviewDataUnavailable) GetAvailableSinceEpochMsOk() (*int64, bool)` + +GetAvailableSinceEpochMsOk returns a tuple with the AvailableSinceEpochMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableSinceEpochMs + +`func (o *OverviewDataUnavailable) SetAvailableSinceEpochMs(v int64)` + +SetAvailableSinceEpochMs sets AvailableSinceEpochMs 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/OverviewErrorResponse.md b/generated/stackstate_api/docs/OverviewErrorResponse.md new file mode 100644 index 00000000..2bebff0a --- /dev/null +++ b/generated/stackstate_api/docs/OverviewErrorResponse.md @@ -0,0 +1,72 @@ +# OverviewErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**ErrorMessage** | **string** | Error message describing why the overview request failed. | + +## Methods + +### NewOverviewErrorResponse + +`func NewOverviewErrorResponse(type_ string, errorMessage string, ) *OverviewErrorResponse` + +NewOverviewErrorResponse instantiates a new OverviewErrorResponse 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 + +### NewOverviewErrorResponseWithDefaults + +`func NewOverviewErrorResponseWithDefaults() *OverviewErrorResponse` + +NewOverviewErrorResponseWithDefaults instantiates a new OverviewErrorResponse 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 *OverviewErrorResponse) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewErrorResponse) 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 *OverviewErrorResponse) SetType(v string)` + +SetType sets Type field to given value. + + +### GetErrorMessage + +`func (o *OverviewErrorResponse) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *OverviewErrorResponse) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *OverviewErrorResponse) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage 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/OverviewFetchTimeout.md b/generated/stackstate_api/docs/OverviewFetchTimeout.md new file mode 100644 index 00000000..3f97f340 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewFetchTimeout.md @@ -0,0 +1,72 @@ +# OverviewFetchTimeout + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**UsedTimeoutSeconds** | **int64** | Timeout used for the overview request (seconds). | + +## Methods + +### NewOverviewFetchTimeout + +`func NewOverviewFetchTimeout(type_ string, usedTimeoutSeconds int64, ) *OverviewFetchTimeout` + +NewOverviewFetchTimeout instantiates a new OverviewFetchTimeout 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 + +### NewOverviewFetchTimeoutWithDefaults + +`func NewOverviewFetchTimeoutWithDefaults() *OverviewFetchTimeout` + +NewOverviewFetchTimeoutWithDefaults instantiates a new OverviewFetchTimeout 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 *OverviewFetchTimeout) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewFetchTimeout) 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 *OverviewFetchTimeout) SetType(v string)` + +SetType sets Type field to given value. + + +### GetUsedTimeoutSeconds + +`func (o *OverviewFetchTimeout) GetUsedTimeoutSeconds() int64` + +GetUsedTimeoutSeconds returns the UsedTimeoutSeconds field if non-nil, zero value otherwise. + +### GetUsedTimeoutSecondsOk + +`func (o *OverviewFetchTimeout) GetUsedTimeoutSecondsOk() (*int64, bool)` + +GetUsedTimeoutSecondsOk returns a tuple with the UsedTimeoutSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsedTimeoutSeconds + +`func (o *OverviewFetchTimeout) SetUsedTimeoutSeconds(v int64)` + +SetUsedTimeoutSeconds sets UsedTimeoutSeconds 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/OverviewFilters.md b/generated/stackstate_api/docs/OverviewFilters.md new file mode 100644 index 00000000..853369b9 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewFilters.md @@ -0,0 +1,82 @@ +# OverviewFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TagFilters** | Pointer to **[]string** | Tags are grouped by their key. For each key at least one of the values matches. | [optional] +**ColumnFilters** | Pointer to [**map[string]OverviewColumnFilter**](OverviewColumnFilter.md) | Map of columnId to filter | [optional] + +## Methods + +### NewOverviewFilters + +`func NewOverviewFilters() *OverviewFilters` + +NewOverviewFilters instantiates a new OverviewFilters 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 + +### NewOverviewFiltersWithDefaults + +`func NewOverviewFiltersWithDefaults() *OverviewFilters` + +NewOverviewFiltersWithDefaults instantiates a new OverviewFilters 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 + +### GetTagFilters + +`func (o *OverviewFilters) GetTagFilters() []string` + +GetTagFilters returns the TagFilters field if non-nil, zero value otherwise. + +### GetTagFiltersOk + +`func (o *OverviewFilters) GetTagFiltersOk() (*[]string, bool)` + +GetTagFiltersOk returns a tuple with the TagFilters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagFilters + +`func (o *OverviewFilters) SetTagFilters(v []string)` + +SetTagFilters sets TagFilters field to given value. + +### HasTagFilters + +`func (o *OverviewFilters) HasTagFilters() bool` + +HasTagFilters returns a boolean if a field has been set. + +### GetColumnFilters + +`func (o *OverviewFilters) GetColumnFilters() map[string]OverviewColumnFilter` + +GetColumnFilters returns the ColumnFilters field if non-nil, zero value otherwise. + +### GetColumnFiltersOk + +`func (o *OverviewFilters) GetColumnFiltersOk() (*map[string]OverviewColumnFilter, bool)` + +GetColumnFiltersOk returns a tuple with the ColumnFilters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColumnFilters + +`func (o *OverviewFilters) SetColumnFilters(v map[string]OverviewColumnFilter)` + +SetColumnFilters sets ColumnFilters field to given value. + +### HasColumnFilters + +`func (o *OverviewFilters) HasColumnFilters() bool` + +HasColumnFilters 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/OverviewMetadata.md b/generated/stackstate_api/docs/OverviewMetadata.md new file mode 100644 index 00000000..02663e0c --- /dev/null +++ b/generated/stackstate_api/docs/OverviewMetadata.md @@ -0,0 +1,93 @@ +# OverviewMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Columns** | [**[]OverviewColumnMeta**](OverviewColumnMeta.md) | | +**Sorting** | [**[]OverviewSorting**](OverviewSorting.md) | The effective sorting applied to the overview results. | +**FixedColumns** | **int32** | | + +## Methods + +### NewOverviewMetadata + +`func NewOverviewMetadata(columns []OverviewColumnMeta, sorting []OverviewSorting, fixedColumns int32, ) *OverviewMetadata` + +NewOverviewMetadata instantiates a new OverviewMetadata 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 + +### NewOverviewMetadataWithDefaults + +`func NewOverviewMetadataWithDefaults() *OverviewMetadata` + +NewOverviewMetadataWithDefaults instantiates a new OverviewMetadata 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 + +### GetColumns + +`func (o *OverviewMetadata) GetColumns() []OverviewColumnMeta` + +GetColumns returns the Columns field if non-nil, zero value otherwise. + +### GetColumnsOk + +`func (o *OverviewMetadata) GetColumnsOk() (*[]OverviewColumnMeta, bool)` + +GetColumnsOk returns a tuple with the Columns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColumns + +`func (o *OverviewMetadata) SetColumns(v []OverviewColumnMeta)` + +SetColumns sets Columns field to given value. + + +### GetSorting + +`func (o *OverviewMetadata) GetSorting() []OverviewSorting` + +GetSorting returns the Sorting field if non-nil, zero value otherwise. + +### GetSortingOk + +`func (o *OverviewMetadata) GetSortingOk() (*[]OverviewSorting, bool)` + +GetSortingOk returns a tuple with the Sorting field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSorting + +`func (o *OverviewMetadata) SetSorting(v []OverviewSorting)` + +SetSorting sets Sorting field to given value. + + +### GetFixedColumns + +`func (o *OverviewMetadata) GetFixedColumns() int32` + +GetFixedColumns returns the FixedColumns field if non-nil, zero value otherwise. + +### GetFixedColumnsOk + +`func (o *OverviewMetadata) GetFixedColumnsOk() (*int32, bool)` + +GetFixedColumnsOk returns a tuple with the FixedColumns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFixedColumns + +`func (o *OverviewMetadata) SetFixedColumns(v int32)` + +SetFixedColumns sets FixedColumns 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/OverviewPageResponse.md b/generated/stackstate_api/docs/OverviewPageResponse.md new file mode 100644 index 00000000..23e440ff --- /dev/null +++ b/generated/stackstate_api/docs/OverviewPageResponse.md @@ -0,0 +1,198 @@ +# OverviewPageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Metadata** | [**OverviewMetadata**](OverviewMetadata.md) | | +**Data** | [**[]OverviewRow**](OverviewRow.md) | | +**Pagination** | [**PaginationResponse**](PaginationResponse.md) | | +**UsedTimeoutSeconds** | **int64** | Timeout used for the overview request (seconds). | +**MaxSize** | **int32** | Maximum allowed topology size. | +**UnavailableAtEpochMs** | **int64** | Time when data became unavailable (epoch ms). | +**AvailableSinceEpochMs** | **int64** | Time when data became available again (epoch ms). | + +## Methods + +### NewOverviewPageResponse + +`func NewOverviewPageResponse(type_ string, metadata OverviewMetadata, data []OverviewRow, pagination PaginationResponse, usedTimeoutSeconds int64, maxSize int32, unavailableAtEpochMs int64, availableSinceEpochMs int64, ) *OverviewPageResponse` + +NewOverviewPageResponse instantiates a new OverviewPageResponse 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 + +### NewOverviewPageResponseWithDefaults + +`func NewOverviewPageResponseWithDefaults() *OverviewPageResponse` + +NewOverviewPageResponseWithDefaults instantiates a new OverviewPageResponse 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 *OverviewPageResponse) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewPageResponse) 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 *OverviewPageResponse) SetType(v string)` + +SetType sets Type field to given value. + + +### GetMetadata + +`func (o *OverviewPageResponse) GetMetadata() OverviewMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *OverviewPageResponse) GetMetadataOk() (*OverviewMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *OverviewPageResponse) SetMetadata(v OverviewMetadata)` + +SetMetadata sets Metadata field to given value. + + +### GetData + +`func (o *OverviewPageResponse) GetData() []OverviewRow` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OverviewPageResponse) GetDataOk() (*[]OverviewRow, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OverviewPageResponse) SetData(v []OverviewRow)` + +SetData sets Data field to given value. + + +### GetPagination + +`func (o *OverviewPageResponse) GetPagination() PaginationResponse` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *OverviewPageResponse) GetPaginationOk() (*PaginationResponse, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *OverviewPageResponse) SetPagination(v PaginationResponse)` + +SetPagination sets Pagination field to given value. + + +### GetUsedTimeoutSeconds + +`func (o *OverviewPageResponse) GetUsedTimeoutSeconds() int64` + +GetUsedTimeoutSeconds returns the UsedTimeoutSeconds field if non-nil, zero value otherwise. + +### GetUsedTimeoutSecondsOk + +`func (o *OverviewPageResponse) GetUsedTimeoutSecondsOk() (*int64, bool)` + +GetUsedTimeoutSecondsOk returns a tuple with the UsedTimeoutSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsedTimeoutSeconds + +`func (o *OverviewPageResponse) SetUsedTimeoutSeconds(v int64)` + +SetUsedTimeoutSeconds sets UsedTimeoutSeconds field to given value. + + +### GetMaxSize + +`func (o *OverviewPageResponse) GetMaxSize() int32` + +GetMaxSize returns the MaxSize field if non-nil, zero value otherwise. + +### GetMaxSizeOk + +`func (o *OverviewPageResponse) GetMaxSizeOk() (*int32, bool)` + +GetMaxSizeOk returns a tuple with the MaxSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxSize + +`func (o *OverviewPageResponse) SetMaxSize(v int32)` + +SetMaxSize sets MaxSize field to given value. + + +### GetUnavailableAtEpochMs + +`func (o *OverviewPageResponse) GetUnavailableAtEpochMs() int64` + +GetUnavailableAtEpochMs returns the UnavailableAtEpochMs field if non-nil, zero value otherwise. + +### GetUnavailableAtEpochMsOk + +`func (o *OverviewPageResponse) GetUnavailableAtEpochMsOk() (*int64, bool)` + +GetUnavailableAtEpochMsOk returns a tuple with the UnavailableAtEpochMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnavailableAtEpochMs + +`func (o *OverviewPageResponse) SetUnavailableAtEpochMs(v int64)` + +SetUnavailableAtEpochMs sets UnavailableAtEpochMs field to given value. + + +### GetAvailableSinceEpochMs + +`func (o *OverviewPageResponse) GetAvailableSinceEpochMs() int64` + +GetAvailableSinceEpochMs returns the AvailableSinceEpochMs field if non-nil, zero value otherwise. + +### GetAvailableSinceEpochMsOk + +`func (o *OverviewPageResponse) GetAvailableSinceEpochMsOk() (*int64, bool)` + +GetAvailableSinceEpochMsOk returns a tuple with the AvailableSinceEpochMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableSinceEpochMs + +`func (o *OverviewPageResponse) SetAvailableSinceEpochMs(v int64)` + +SetAvailableSinceEpochMs sets AvailableSinceEpochMs 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/OverviewPageResult.md b/generated/stackstate_api/docs/OverviewPageResult.md new file mode 100644 index 00000000..f18cbb51 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewPageResult.md @@ -0,0 +1,114 @@ +# OverviewPageResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Metadata** | [**OverviewMetadata**](OverviewMetadata.md) | | +**Data** | [**[]OverviewRow**](OverviewRow.md) | | +**Pagination** | [**PaginationResponse**](PaginationResponse.md) | | + +## Methods + +### NewOverviewPageResult + +`func NewOverviewPageResult(type_ string, metadata OverviewMetadata, data []OverviewRow, pagination PaginationResponse, ) *OverviewPageResult` + +NewOverviewPageResult instantiates a new OverviewPageResult 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 + +### NewOverviewPageResultWithDefaults + +`func NewOverviewPageResultWithDefaults() *OverviewPageResult` + +NewOverviewPageResultWithDefaults instantiates a new OverviewPageResult 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 *OverviewPageResult) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewPageResult) 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 *OverviewPageResult) SetType(v string)` + +SetType sets Type field to given value. + + +### GetMetadata + +`func (o *OverviewPageResult) GetMetadata() OverviewMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *OverviewPageResult) GetMetadataOk() (*OverviewMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *OverviewPageResult) SetMetadata(v OverviewMetadata)` + +SetMetadata sets Metadata field to given value. + + +### GetData + +`func (o *OverviewPageResult) GetData() []OverviewRow` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OverviewPageResult) GetDataOk() (*[]OverviewRow, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OverviewPageResult) SetData(v []OverviewRow)` + +SetData sets Data field to given value. + + +### GetPagination + +`func (o *OverviewPageResult) GetPagination() PaginationResponse` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *OverviewPageResult) GetPaginationOk() (*PaginationResponse, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *OverviewPageResult) SetPagination(v PaginationResponse)` + +SetPagination sets Pagination 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/OverviewPaginationCursor.md b/generated/stackstate_api/docs/OverviewPaginationCursor.md new file mode 100644 index 00000000..607a6c94 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewPaginationCursor.md @@ -0,0 +1,82 @@ +# OverviewPaginationCursor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cursor** | **NullableString** | Opaque cursor returned from previous request | +**Direction** | [**OverviewPaginationDirection**](OverviewPaginationDirection.md) | | + +## Methods + +### NewOverviewPaginationCursor + +`func NewOverviewPaginationCursor(cursor NullableString, direction OverviewPaginationDirection, ) *OverviewPaginationCursor` + +NewOverviewPaginationCursor instantiates a new OverviewPaginationCursor 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 + +### NewOverviewPaginationCursorWithDefaults + +`func NewOverviewPaginationCursorWithDefaults() *OverviewPaginationCursor` + +NewOverviewPaginationCursorWithDefaults instantiates a new OverviewPaginationCursor 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 + +### GetCursor + +`func (o *OverviewPaginationCursor) GetCursor() string` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *OverviewPaginationCursor) GetCursorOk() (*string, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *OverviewPaginationCursor) SetCursor(v string)` + +SetCursor sets Cursor field to given value. + + +### SetCursorNil + +`func (o *OverviewPaginationCursor) SetCursorNil(b bool)` + + SetCursorNil sets the value for Cursor to be an explicit nil + +### UnsetCursor +`func (o *OverviewPaginationCursor) UnsetCursor()` + +UnsetCursor ensures that no value is present for Cursor, not even an explicit nil +### GetDirection + +`func (o *OverviewPaginationCursor) GetDirection() OverviewPaginationDirection` + +GetDirection returns the Direction field if non-nil, zero value otherwise. + +### GetDirectionOk + +`func (o *OverviewPaginationCursor) GetDirectionOk() (*OverviewPaginationDirection, 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 *OverviewPaginationCursor) SetDirection(v OverviewPaginationDirection)` + +SetDirection sets Direction 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/OverviewPaginationDirection.md b/generated/stackstate_api/docs/OverviewPaginationDirection.md new file mode 100644 index 00000000..fd092bdd --- /dev/null +++ b/generated/stackstate_api/docs/OverviewPaginationDirection.md @@ -0,0 +1,13 @@ +# OverviewPaginationDirection + +## Enum + + +* `BACK` (value: `"Back"`) + +* `FORWARD` (value: `"Forward"`) + + +[[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/OverviewPaginationRequest.md b/generated/stackstate_api/docs/OverviewPaginationRequest.md new file mode 100644 index 00000000..fed5048d --- /dev/null +++ b/generated/stackstate_api/docs/OverviewPaginationRequest.md @@ -0,0 +1,82 @@ +# OverviewPaginationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cursor** | Pointer to [**OverviewPaginationCursor**](OverviewPaginationCursor.md) | | [optional] +**Limit** | Pointer to **int32** | | [optional] [default to 50] + +## Methods + +### NewOverviewPaginationRequest + +`func NewOverviewPaginationRequest() *OverviewPaginationRequest` + +NewOverviewPaginationRequest instantiates a new OverviewPaginationRequest 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 + +### NewOverviewPaginationRequestWithDefaults + +`func NewOverviewPaginationRequestWithDefaults() *OverviewPaginationRequest` + +NewOverviewPaginationRequestWithDefaults instantiates a new OverviewPaginationRequest 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 + +### GetCursor + +`func (o *OverviewPaginationRequest) GetCursor() OverviewPaginationCursor` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *OverviewPaginationRequest) GetCursorOk() (*OverviewPaginationCursor, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *OverviewPaginationRequest) SetCursor(v OverviewPaginationCursor)` + +SetCursor sets Cursor field to given value. + +### HasCursor + +`func (o *OverviewPaginationRequest) HasCursor() bool` + +HasCursor returns a boolean if a field has been set. + +### GetLimit + +`func (o *OverviewPaginationRequest) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *OverviewPaginationRequest) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *OverviewPaginationRequest) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *OverviewPaginationRequest) HasLimit() bool` + +HasLimit 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/OverviewRequest.md b/generated/stackstate_api/docs/OverviewRequest.md new file mode 100644 index 00000000..8aebbd81 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewRequest.md @@ -0,0 +1,160 @@ +# OverviewRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Query** | Pointer to **string** | STQL query string to retrieve and project using the presentationOrViewUrn (helpful for related resources) | [optional] +**TopologyTime** | Pointer to **int32** | A timestamp at which resources will be queried. If not given the resources are queried at current time. | [optional] +**Filters** | Pointer to [**OverviewFilters**](OverviewFilters.md) | | [optional] +**Pagination** | Pointer to [**OverviewPaginationRequest**](OverviewPaginationRequest.md) | | [optional] +**Sorting** | Pointer to [**[]OverviewSorting**](OverviewSorting.md) | | [optional] + +## Methods + +### NewOverviewRequest + +`func NewOverviewRequest() *OverviewRequest` + +NewOverviewRequest instantiates a new OverviewRequest 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 + +### NewOverviewRequestWithDefaults + +`func NewOverviewRequestWithDefaults() *OverviewRequest` + +NewOverviewRequestWithDefaults instantiates a new OverviewRequest 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 + +### GetQuery + +`func (o *OverviewRequest) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *OverviewRequest) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *OverviewRequest) SetQuery(v string)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *OverviewRequest) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetTopologyTime + +`func (o *OverviewRequest) GetTopologyTime() int32` + +GetTopologyTime returns the TopologyTime field if non-nil, zero value otherwise. + +### GetTopologyTimeOk + +`func (o *OverviewRequest) GetTopologyTimeOk() (*int32, bool)` + +GetTopologyTimeOk returns a tuple with the TopologyTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopologyTime + +`func (o *OverviewRequest) SetTopologyTime(v int32)` + +SetTopologyTime sets TopologyTime field to given value. + +### HasTopologyTime + +`func (o *OverviewRequest) HasTopologyTime() bool` + +HasTopologyTime returns a boolean if a field has been set. + +### GetFilters + +`func (o *OverviewRequest) GetFilters() OverviewFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *OverviewRequest) GetFiltersOk() (*OverviewFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *OverviewRequest) SetFilters(v OverviewFilters)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *OverviewRequest) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### GetPagination + +`func (o *OverviewRequest) GetPagination() OverviewPaginationRequest` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *OverviewRequest) GetPaginationOk() (*OverviewPaginationRequest, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *OverviewRequest) SetPagination(v OverviewPaginationRequest)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *OverviewRequest) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetSorting + +`func (o *OverviewRequest) GetSorting() []OverviewSorting` + +GetSorting returns the Sorting field if non-nil, zero value otherwise. + +### GetSortingOk + +`func (o *OverviewRequest) GetSortingOk() (*[]OverviewSorting, bool)` + +GetSortingOk returns a tuple with the Sorting field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSorting + +`func (o *OverviewRequest) SetSorting(v []OverviewSorting)` + +SetSorting sets Sorting field to given value. + +### HasSorting + +`func (o *OverviewRequest) HasSorting() bool` + +HasSorting 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/OverviewRow.md b/generated/stackstate_api/docs/OverviewRow.md new file mode 100644 index 00000000..e0454844 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewRow.md @@ -0,0 +1,72 @@ +# OverviewRow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ComponentIdentifier** | **string** | | +**Cells** | [**map[string]CellValue**](CellValue.md) | | + +## Methods + +### NewOverviewRow + +`func NewOverviewRow(componentIdentifier string, cells map[string]CellValue, ) *OverviewRow` + +NewOverviewRow instantiates a new OverviewRow 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 + +### NewOverviewRowWithDefaults + +`func NewOverviewRowWithDefaults() *OverviewRow` + +NewOverviewRowWithDefaults instantiates a new OverviewRow 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 + +### GetComponentIdentifier + +`func (o *OverviewRow) GetComponentIdentifier() string` + +GetComponentIdentifier returns the ComponentIdentifier field if non-nil, zero value otherwise. + +### GetComponentIdentifierOk + +`func (o *OverviewRow) GetComponentIdentifierOk() (*string, bool)` + +GetComponentIdentifierOk returns a tuple with the ComponentIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComponentIdentifier + +`func (o *OverviewRow) SetComponentIdentifier(v string)` + +SetComponentIdentifier sets ComponentIdentifier field to given value. + + +### GetCells + +`func (o *OverviewRow) GetCells() map[string]CellValue` + +GetCells returns the Cells field if non-nil, zero value otherwise. + +### GetCellsOk + +`func (o *OverviewRow) GetCellsOk() (*map[string]CellValue, bool)` + +GetCellsOk returns a tuple with the Cells field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCells + +`func (o *OverviewRow) SetCells(v map[string]CellValue)` + +SetCells sets Cells 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/OverviewSorting.md b/generated/stackstate_api/docs/OverviewSorting.md new file mode 100644 index 00000000..df61cfb0 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewSorting.md @@ -0,0 +1,72 @@ +# OverviewSorting + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ColumnId** | **string** | | +**Direction** | [**OverviewSortingDirection**](OverviewSortingDirection.md) | | + +## Methods + +### NewOverviewSorting + +`func NewOverviewSorting(columnId string, direction OverviewSortingDirection, ) *OverviewSorting` + +NewOverviewSorting instantiates a new OverviewSorting 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 + +### NewOverviewSortingWithDefaults + +`func NewOverviewSortingWithDefaults() *OverviewSorting` + +NewOverviewSortingWithDefaults instantiates a new OverviewSorting 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 *OverviewSorting) GetColumnId() string` + +GetColumnId returns the ColumnId field if non-nil, zero value otherwise. + +### GetColumnIdOk + +`func (o *OverviewSorting) 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 *OverviewSorting) SetColumnId(v string)` + +SetColumnId sets ColumnId field to given value. + + +### GetDirection + +`func (o *OverviewSorting) GetDirection() OverviewSortingDirection` + +GetDirection returns the Direction field if non-nil, zero value otherwise. + +### GetDirectionOk + +`func (o *OverviewSorting) GetDirectionOk() (*OverviewSortingDirection, 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 *OverviewSorting) SetDirection(v OverviewSortingDirection)` + +SetDirection sets Direction 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/OverviewSortingDirection.md b/generated/stackstate_api/docs/OverviewSortingDirection.md new file mode 100644 index 00000000..57ea7849 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewSortingDirection.md @@ -0,0 +1,13 @@ +# OverviewSortingDirection + +## Enum + + +* `ASCENDING` (value: `"Ascending"`) + +* `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/OverviewTooManyActiveQueries.md b/generated/stackstate_api/docs/OverviewTooManyActiveQueries.md new file mode 100644 index 00000000..cc419c8f --- /dev/null +++ b/generated/stackstate_api/docs/OverviewTooManyActiveQueries.md @@ -0,0 +1,51 @@ +# OverviewTooManyActiveQueries + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | + +## Methods + +### NewOverviewTooManyActiveQueries + +`func NewOverviewTooManyActiveQueries(type_ string, ) *OverviewTooManyActiveQueries` + +NewOverviewTooManyActiveQueries instantiates a new OverviewTooManyActiveQueries 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 + +### NewOverviewTooManyActiveQueriesWithDefaults + +`func NewOverviewTooManyActiveQueriesWithDefaults() *OverviewTooManyActiveQueries` + +NewOverviewTooManyActiveQueriesWithDefaults instantiates a new OverviewTooManyActiveQueries 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 *OverviewTooManyActiveQueries) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewTooManyActiveQueries) 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 *OverviewTooManyActiveQueries) 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/OverviewTopologySizeOverflow.md b/generated/stackstate_api/docs/OverviewTopologySizeOverflow.md new file mode 100644 index 00000000..a59adc42 --- /dev/null +++ b/generated/stackstate_api/docs/OverviewTopologySizeOverflow.md @@ -0,0 +1,72 @@ +# OverviewTopologySizeOverflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**MaxSize** | **int32** | Maximum allowed topology size. | + +## Methods + +### NewOverviewTopologySizeOverflow + +`func NewOverviewTopologySizeOverflow(type_ string, maxSize int32, ) *OverviewTopologySizeOverflow` + +NewOverviewTopologySizeOverflow instantiates a new OverviewTopologySizeOverflow 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 + +### NewOverviewTopologySizeOverflowWithDefaults + +`func NewOverviewTopologySizeOverflowWithDefaults() *OverviewTopologySizeOverflow` + +NewOverviewTopologySizeOverflowWithDefaults instantiates a new OverviewTopologySizeOverflow 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 *OverviewTopologySizeOverflow) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OverviewTopologySizeOverflow) 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 *OverviewTopologySizeOverflow) SetType(v string)` + +SetType sets Type field to given value. + + +### GetMaxSize + +`func (o *OverviewTopologySizeOverflow) GetMaxSize() int32` + +GetMaxSize returns the MaxSize field if non-nil, zero value otherwise. + +### GetMaxSizeOk + +`func (o *OverviewTopologySizeOverflow) GetMaxSizeOk() (*int32, bool)` + +GetMaxSizeOk returns a tuple with the MaxSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxSize + +`func (o *OverviewTopologySizeOverflow) SetMaxSize(v int32)` + +SetMaxSize sets MaxSize 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/PaginationResponse.md b/generated/stackstate_api/docs/PaginationResponse.md new file mode 100644 index 00000000..c76358c4 --- /dev/null +++ b/generated/stackstate_api/docs/PaginationResponse.md @@ -0,0 +1,201 @@ +# PaginationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Total** | **int32** | Total number of items matching the ComponentPresentation before applying column filters or search. | +**Filtered** | Pointer to **NullableInt32** | Total number of items after filters/search are applied, but before pagination. | [optional] +**ElementName** | **string** | | +**ElementNamePlural** | **string** | | +**StartCursor** | Pointer to **NullableString** | | [optional] +**EndCursor** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewPaginationResponse + +`func NewPaginationResponse(total int32, elementName string, elementNamePlural string, ) *PaginationResponse` + +NewPaginationResponse instantiates a new PaginationResponse 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 + +### NewPaginationResponseWithDefaults + +`func NewPaginationResponseWithDefaults() *PaginationResponse` + +NewPaginationResponseWithDefaults instantiates a new PaginationResponse 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 + +### GetTotal + +`func (o *PaginationResponse) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *PaginationResponse) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *PaginationResponse) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetFiltered + +`func (o *PaginationResponse) GetFiltered() int32` + +GetFiltered returns the Filtered field if non-nil, zero value otherwise. + +### GetFilteredOk + +`func (o *PaginationResponse) GetFilteredOk() (*int32, bool)` + +GetFilteredOk returns a tuple with the Filtered field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFiltered + +`func (o *PaginationResponse) SetFiltered(v int32)` + +SetFiltered sets Filtered field to given value. + +### HasFiltered + +`func (o *PaginationResponse) HasFiltered() bool` + +HasFiltered returns a boolean if a field has been set. + +### SetFilteredNil + +`func (o *PaginationResponse) SetFilteredNil(b bool)` + + SetFilteredNil sets the value for Filtered to be an explicit nil + +### UnsetFiltered +`func (o *PaginationResponse) UnsetFiltered()` + +UnsetFiltered ensures that no value is present for Filtered, not even an explicit nil +### GetElementName + +`func (o *PaginationResponse) GetElementName() string` + +GetElementName returns the ElementName field if non-nil, zero value otherwise. + +### GetElementNameOk + +`func (o *PaginationResponse) GetElementNameOk() (*string, bool)` + +GetElementNameOk returns a tuple with the ElementName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetElementName + +`func (o *PaginationResponse) SetElementName(v string)` + +SetElementName sets ElementName field to given value. + + +### GetElementNamePlural + +`func (o *PaginationResponse) GetElementNamePlural() string` + +GetElementNamePlural returns the ElementNamePlural field if non-nil, zero value otherwise. + +### GetElementNamePluralOk + +`func (o *PaginationResponse) GetElementNamePluralOk() (*string, bool)` + +GetElementNamePluralOk returns a tuple with the ElementNamePlural field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetElementNamePlural + +`func (o *PaginationResponse) SetElementNamePlural(v string)` + +SetElementNamePlural sets ElementNamePlural field to given value. + + +### GetStartCursor + +`func (o *PaginationResponse) GetStartCursor() string` + +GetStartCursor returns the StartCursor field if non-nil, zero value otherwise. + +### GetStartCursorOk + +`func (o *PaginationResponse) GetStartCursorOk() (*string, bool)` + +GetStartCursorOk returns a tuple with the StartCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartCursor + +`func (o *PaginationResponse) SetStartCursor(v string)` + +SetStartCursor sets StartCursor field to given value. + +### HasStartCursor + +`func (o *PaginationResponse) HasStartCursor() bool` + +HasStartCursor returns a boolean if a field has been set. + +### SetStartCursorNil + +`func (o *PaginationResponse) SetStartCursorNil(b bool)` + + SetStartCursorNil sets the value for StartCursor to be an explicit nil + +### UnsetStartCursor +`func (o *PaginationResponse) UnsetStartCursor()` + +UnsetStartCursor ensures that no value is present for StartCursor, not even an explicit nil +### GetEndCursor + +`func (o *PaginationResponse) GetEndCursor() string` + +GetEndCursor returns the EndCursor field if non-nil, zero value otherwise. + +### GetEndCursorOk + +`func (o *PaginationResponse) GetEndCursorOk() (*string, bool)` + +GetEndCursorOk returns a tuple with the EndCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndCursor + +`func (o *PaginationResponse) SetEndCursor(v string)` + +SetEndCursor sets EndCursor field to given value. + +### HasEndCursor + +`func (o *PaginationResponse) HasEndCursor() bool` + +HasEndCursor returns a boolean if a field has been set. + +### SetEndCursorNil + +`func (o *PaginationResponse) SetEndCursorNil(b bool)` + + SetEndCursorNil sets the value for EndCursor to be an explicit nil + +### UnsetEndCursor +`func (o *PaginationResponse) UnsetEndCursor()` + +UnsetEndCursor ensures that no value is present for EndCursor, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PresentationDefinition.md b/generated/stackstate_api/docs/PresentationDefinition.md index ea74496b..ac211057 100644 --- a/generated/stackstate_api/docs/PresentationDefinition.md +++ b/generated/stackstate_api/docs/PresentationDefinition.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Icon** | Pointer to **string** | | [optional] -**Name** | Pointer to [**PresentationName**](PresentationName.md) | | [optional] **Overview** | Pointer to [**PresentationOverview**](PresentationOverview.md) | | [optional] ## Methods @@ -52,31 +51,6 @@ SetIcon sets Icon field to given value. HasIcon returns a boolean if a field has been set. -### GetName - -`func (o *PresentationDefinition) GetName() PresentationName` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *PresentationDefinition) GetNameOk() (*PresentationName, 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 *PresentationDefinition) SetName(v PresentationName)` - -SetName sets Name field to given value. - -### HasName - -`func (o *PresentationDefinition) HasName() bool` - -HasName returns a boolean if a field has been set. - ### GetOverview `func (o *PresentationDefinition) GetOverview() PresentationOverview` diff --git a/generated/stackstate_api/docs/PresentationName.md b/generated/stackstate_api/docs/PresentationName.md index 74675f11..87729397 100644 --- a/generated/stackstate_api/docs/PresentationName.md +++ b/generated/stackstate_api/docs/PresentationName.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Singular** | **string** | | **Plural** | **string** | | +**Title** | **string** | | ## Methods ### NewPresentationName -`func NewPresentationName(singular string, plural string, ) *PresentationName` +`func NewPresentationName(singular string, plural string, title string, ) *PresentationName` NewPresentationName instantiates a new PresentationName object This constructor will assign default values to properties that have it defined, @@ -66,6 +67,26 @@ and a boolean to check if the value has been set. SetPlural sets Plural field to given value. +### GetTitle + +`func (o *PresentationName) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PresentationName) 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 *PresentationName) SetTitle(v string)` + +SetTitle sets Title 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/PresentationOverview.md b/generated/stackstate_api/docs/PresentationOverview.md index bdc28fb7..7776c9cf 100644 --- a/generated/stackstate_api/docs/PresentationOverview.md +++ b/generated/stackstate_api/docs/PresentationOverview.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Title** | **string** | | +**Name** | [**PresentationName**](PresentationName.md) | | **MainMenu** | Pointer to [**PresentationMainMenu**](PresentationMainMenu.md) | | [optional] +**Columns** | [**[]OverviewColumnDefinition**](OverviewColumnDefinition.md) | | +**FixedColumns** | Pointer to **int32** | | [optional] ## Methods ### NewPresentationOverview -`func NewPresentationOverview(title string, ) *PresentationOverview` +`func NewPresentationOverview(name PresentationName, columns []OverviewColumnDefinition, ) *PresentationOverview` NewPresentationOverview instantiates a new PresentationOverview object This constructor will assign default values to properties that have it defined, @@ -26,24 +28,24 @@ NewPresentationOverviewWithDefaults instantiates a new PresentationOverview obje This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetTitle +### GetName -`func (o *PresentationOverview) GetTitle() string` +`func (o *PresentationOverview) GetName() PresentationName` -GetTitle returns the Title field if non-nil, zero value otherwise. +GetName returns the Name field if non-nil, zero value otherwise. -### GetTitleOk +### GetNameOk -`func (o *PresentationOverview) GetTitleOk() (*string, bool)` +`func (o *PresentationOverview) GetNameOk() (*PresentationName, bool)` -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +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. -### SetTitle +### SetName -`func (o *PresentationOverview) SetTitle(v string)` +`func (o *PresentationOverview) SetName(v PresentationName)` -SetTitle sets Title field to given value. +SetName sets Name field to given value. ### GetMainMenu @@ -71,6 +73,51 @@ SetMainMenu sets MainMenu field to given value. HasMainMenu returns a boolean if a field has been set. +### GetColumns + +`func (o *PresentationOverview) GetColumns() []OverviewColumnDefinition` + +GetColumns returns the Columns field if non-nil, zero value otherwise. + +### GetColumnsOk + +`func (o *PresentationOverview) GetColumnsOk() (*[]OverviewColumnDefinition, bool)` + +GetColumnsOk returns a tuple with the Columns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColumns + +`func (o *PresentationOverview) SetColumns(v []OverviewColumnDefinition)` + +SetColumns sets Columns field to given value. + + +### GetFixedColumns + +`func (o *PresentationOverview) GetFixedColumns() int32` + +GetFixedColumns returns the FixedColumns field if non-nil, zero value otherwise. + +### GetFixedColumnsOk + +`func (o *PresentationOverview) GetFixedColumnsOk() (*int32, bool)` + +GetFixedColumnsOk returns a tuple with the FixedColumns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFixedColumns + +`func (o *PresentationOverview) SetFixedColumns(v int32)` + +SetFixedColumns sets FixedColumns field to given value. + +### HasFixedColumns + +`func (o *PresentationOverview) HasFixedColumns() bool` + +HasFixedColumns 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/PromBatchEnvelope.md b/generated/stackstate_api/docs/PromBatchEnvelope.md new file mode 100644 index 00000000..481faf51 --- /dev/null +++ b/generated/stackstate_api/docs/PromBatchEnvelope.md @@ -0,0 +1,51 @@ +# PromBatchEnvelope + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | [**[]PromBatchResult**](PromBatchResult.md) | | + +## Methods + +### NewPromBatchEnvelope + +`func NewPromBatchEnvelope(results []PromBatchResult, ) *PromBatchEnvelope` + +NewPromBatchEnvelope instantiates a new PromBatchEnvelope 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 + +### NewPromBatchEnvelopeWithDefaults + +`func NewPromBatchEnvelopeWithDefaults() *PromBatchEnvelope` + +NewPromBatchEnvelopeWithDefaults instantiates a new PromBatchEnvelope 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 + +### GetResults + +`func (o *PromBatchEnvelope) GetResults() []PromBatchResult` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PromBatchEnvelope) GetResultsOk() (*[]PromBatchResult, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PromBatchEnvelope) SetResults(v []PromBatchResult)` + +SetResults sets Results 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/PromBatchError.md b/generated/stackstate_api/docs/PromBatchError.md new file mode 100644 index 00000000..1330147b --- /dev/null +++ b/generated/stackstate_api/docs/PromBatchError.md @@ -0,0 +1,93 @@ +# PromBatchError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**ResultType** | **string** | | +**Error** | **string** | | + +## Methods + +### NewPromBatchError + +`func NewPromBatchError(id string, resultType string, error_ string, ) *PromBatchError` + +NewPromBatchError instantiates a new PromBatchError 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 + +### NewPromBatchErrorWithDefaults + +`func NewPromBatchErrorWithDefaults() *PromBatchError` + +NewPromBatchErrorWithDefaults instantiates a new PromBatchError 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 *PromBatchError) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PromBatchError) GetIdOk() (*string, 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 *PromBatchError) SetId(v string)` + +SetId sets Id field to given value. + + +### GetResultType + +`func (o *PromBatchError) GetResultType() string` + +GetResultType returns the ResultType field if non-nil, zero value otherwise. + +### GetResultTypeOk + +`func (o *PromBatchError) GetResultTypeOk() (*string, bool)` + +GetResultTypeOk returns a tuple with the ResultType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResultType + +`func (o *PromBatchError) SetResultType(v string)` + +SetResultType sets ResultType field to given value. + + +### GetError + +`func (o *PromBatchError) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PromBatchError) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PromBatchError) SetError(v string)` + +SetError sets Error 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/PromBatchInstantQuery.md b/generated/stackstate_api/docs/PromBatchInstantQuery.md new file mode 100644 index 00000000..5b76d326 --- /dev/null +++ b/generated/stackstate_api/docs/PromBatchInstantQuery.md @@ -0,0 +1,197 @@ +# PromBatchInstantQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Type** | **string** | | +**Query** | **string** | | +**Time** | Pointer to **string** | | [optional] +**Step** | Pointer to **string** | | [optional] +**Timeout** | Pointer to **string** | | [optional] +**PostFilter** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPromBatchInstantQuery + +`func NewPromBatchInstantQuery(id string, type_ string, query string, ) *PromBatchInstantQuery` + +NewPromBatchInstantQuery instantiates a new PromBatchInstantQuery 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 + +### NewPromBatchInstantQueryWithDefaults + +`func NewPromBatchInstantQueryWithDefaults() *PromBatchInstantQuery` + +NewPromBatchInstantQueryWithDefaults instantiates a new PromBatchInstantQuery 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 *PromBatchInstantQuery) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PromBatchInstantQuery) GetIdOk() (*string, 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 *PromBatchInstantQuery) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *PromBatchInstantQuery) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PromBatchInstantQuery) 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 *PromBatchInstantQuery) SetType(v string)` + +SetType sets Type field to given value. + + +### GetQuery + +`func (o *PromBatchInstantQuery) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *PromBatchInstantQuery) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *PromBatchInstantQuery) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetTime + +`func (o *PromBatchInstantQuery) GetTime() string` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *PromBatchInstantQuery) GetTimeOk() (*string, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *PromBatchInstantQuery) SetTime(v string)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *PromBatchInstantQuery) HasTime() bool` + +HasTime returns a boolean if a field has been set. + +### GetStep + +`func (o *PromBatchInstantQuery) GetStep() string` + +GetStep returns the Step field if non-nil, zero value otherwise. + +### GetStepOk + +`func (o *PromBatchInstantQuery) GetStepOk() (*string, bool)` + +GetStepOk returns a tuple with the Step field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStep + +`func (o *PromBatchInstantQuery) SetStep(v string)` + +SetStep sets Step field to given value. + +### HasStep + +`func (o *PromBatchInstantQuery) HasStep() bool` + +HasStep returns a boolean if a field has been set. + +### GetTimeout + +`func (o *PromBatchInstantQuery) GetTimeout() string` + +GetTimeout returns the Timeout field if non-nil, zero value otherwise. + +### GetTimeoutOk + +`func (o *PromBatchInstantQuery) GetTimeoutOk() (*string, bool)` + +GetTimeoutOk returns a tuple with the Timeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeout + +`func (o *PromBatchInstantQuery) SetTimeout(v string)` + +SetTimeout sets Timeout field to given value. + +### HasTimeout + +`func (o *PromBatchInstantQuery) HasTimeout() bool` + +HasTimeout returns a boolean if a field has been set. + +### GetPostFilter + +`func (o *PromBatchInstantQuery) GetPostFilter() []string` + +GetPostFilter returns the PostFilter field if non-nil, zero value otherwise. + +### GetPostFilterOk + +`func (o *PromBatchInstantQuery) GetPostFilterOk() (*[]string, bool)` + +GetPostFilterOk returns a tuple with the PostFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostFilter + +`func (o *PromBatchInstantQuery) SetPostFilter(v []string)` + +SetPostFilter sets PostFilter field to given value. + +### HasPostFilter + +`func (o *PromBatchInstantQuery) HasPostFilter() bool` + +HasPostFilter 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/PromBatchQueryItem.md b/generated/stackstate_api/docs/PromBatchQueryItem.md new file mode 100644 index 00000000..80ff52b2 --- /dev/null +++ b/generated/stackstate_api/docs/PromBatchQueryItem.md @@ -0,0 +1,286 @@ +# PromBatchQueryItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Type** | **string** | | +**Query** | **string** | | +**Time** | Pointer to **string** | | [optional] +**Step** | **string** | | +**Timeout** | Pointer to **string** | | [optional] +**PostFilter** | Pointer to **[]string** | | [optional] +**Start** | **string** | | +**End** | **string** | | +**Aligned** | Pointer to **bool** | | [optional] +**MaxNumberOfDataPoints** | Pointer to **int64** | | [optional] + +## Methods + +### NewPromBatchQueryItem + +`func NewPromBatchQueryItem(id string, type_ string, query string, step string, start string, end string, ) *PromBatchQueryItem` + +NewPromBatchQueryItem instantiates a new PromBatchQueryItem 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 + +### NewPromBatchQueryItemWithDefaults + +`func NewPromBatchQueryItemWithDefaults() *PromBatchQueryItem` + +NewPromBatchQueryItemWithDefaults instantiates a new PromBatchQueryItem 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 *PromBatchQueryItem) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PromBatchQueryItem) GetIdOk() (*string, 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 *PromBatchQueryItem) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *PromBatchQueryItem) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PromBatchQueryItem) 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 *PromBatchQueryItem) SetType(v string)` + +SetType sets Type field to given value. + + +### GetQuery + +`func (o *PromBatchQueryItem) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *PromBatchQueryItem) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *PromBatchQueryItem) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetTime + +`func (o *PromBatchQueryItem) GetTime() string` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *PromBatchQueryItem) GetTimeOk() (*string, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *PromBatchQueryItem) SetTime(v string)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *PromBatchQueryItem) HasTime() bool` + +HasTime returns a boolean if a field has been set. + +### GetStep + +`func (o *PromBatchQueryItem) GetStep() string` + +GetStep returns the Step field if non-nil, zero value otherwise. + +### GetStepOk + +`func (o *PromBatchQueryItem) GetStepOk() (*string, bool)` + +GetStepOk returns a tuple with the Step field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStep + +`func (o *PromBatchQueryItem) SetStep(v string)` + +SetStep sets Step field to given value. + + +### GetTimeout + +`func (o *PromBatchQueryItem) GetTimeout() string` + +GetTimeout returns the Timeout field if non-nil, zero value otherwise. + +### GetTimeoutOk + +`func (o *PromBatchQueryItem) GetTimeoutOk() (*string, bool)` + +GetTimeoutOk returns a tuple with the Timeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeout + +`func (o *PromBatchQueryItem) SetTimeout(v string)` + +SetTimeout sets Timeout field to given value. + +### HasTimeout + +`func (o *PromBatchQueryItem) HasTimeout() bool` + +HasTimeout returns a boolean if a field has been set. + +### GetPostFilter + +`func (o *PromBatchQueryItem) GetPostFilter() []string` + +GetPostFilter returns the PostFilter field if non-nil, zero value otherwise. + +### GetPostFilterOk + +`func (o *PromBatchQueryItem) GetPostFilterOk() (*[]string, bool)` + +GetPostFilterOk returns a tuple with the PostFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostFilter + +`func (o *PromBatchQueryItem) SetPostFilter(v []string)` + +SetPostFilter sets PostFilter field to given value. + +### HasPostFilter + +`func (o *PromBatchQueryItem) HasPostFilter() bool` + +HasPostFilter returns a boolean if a field has been set. + +### GetStart + +`func (o *PromBatchQueryItem) GetStart() string` + +GetStart returns the Start field if non-nil, zero value otherwise. + +### GetStartOk + +`func (o *PromBatchQueryItem) GetStartOk() (*string, bool)` + +GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStart + +`func (o *PromBatchQueryItem) SetStart(v string)` + +SetStart sets Start field to given value. + + +### GetEnd + +`func (o *PromBatchQueryItem) GetEnd() string` + +GetEnd returns the End field if non-nil, zero value otherwise. + +### GetEndOk + +`func (o *PromBatchQueryItem) GetEndOk() (*string, bool)` + +GetEndOk returns a tuple with the End field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnd + +`func (o *PromBatchQueryItem) SetEnd(v string)` + +SetEnd sets End field to given value. + + +### GetAligned + +`func (o *PromBatchQueryItem) GetAligned() bool` + +GetAligned returns the Aligned field if non-nil, zero value otherwise. + +### GetAlignedOk + +`func (o *PromBatchQueryItem) GetAlignedOk() (*bool, bool)` + +GetAlignedOk returns a tuple with the Aligned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAligned + +`func (o *PromBatchQueryItem) SetAligned(v bool)` + +SetAligned sets Aligned field to given value. + +### HasAligned + +`func (o *PromBatchQueryItem) HasAligned() bool` + +HasAligned returns a boolean if a field has been set. + +### GetMaxNumberOfDataPoints + +`func (o *PromBatchQueryItem) GetMaxNumberOfDataPoints() int64` + +GetMaxNumberOfDataPoints returns the MaxNumberOfDataPoints field if non-nil, zero value otherwise. + +### GetMaxNumberOfDataPointsOk + +`func (o *PromBatchQueryItem) GetMaxNumberOfDataPointsOk() (*int64, bool)` + +GetMaxNumberOfDataPointsOk returns a tuple with the MaxNumberOfDataPoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxNumberOfDataPoints + +`func (o *PromBatchQueryItem) SetMaxNumberOfDataPoints(v int64)` + +SetMaxNumberOfDataPoints sets MaxNumberOfDataPoints field to given value. + +### HasMaxNumberOfDataPoints + +`func (o *PromBatchQueryItem) HasMaxNumberOfDataPoints() bool` + +HasMaxNumberOfDataPoints 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/PromBatchQueryRequest.md b/generated/stackstate_api/docs/PromBatchQueryRequest.md new file mode 100644 index 00000000..c1eb5d6e --- /dev/null +++ b/generated/stackstate_api/docs/PromBatchQueryRequest.md @@ -0,0 +1,77 @@ +# PromBatchQueryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Queries** | [**[]PromBatchQueryItem**](PromBatchQueryItem.md) | List of queries to execute. | +**Timeout** | Pointer to **string** | | [optional] + +## Methods + +### NewPromBatchQueryRequest + +`func NewPromBatchQueryRequest(queries []PromBatchQueryItem, ) *PromBatchQueryRequest` + +NewPromBatchQueryRequest instantiates a new PromBatchQueryRequest 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 + +### NewPromBatchQueryRequestWithDefaults + +`func NewPromBatchQueryRequestWithDefaults() *PromBatchQueryRequest` + +NewPromBatchQueryRequestWithDefaults instantiates a new PromBatchQueryRequest 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 + +### GetQueries + +`func (o *PromBatchQueryRequest) GetQueries() []PromBatchQueryItem` + +GetQueries returns the Queries field if non-nil, zero value otherwise. + +### GetQueriesOk + +`func (o *PromBatchQueryRequest) GetQueriesOk() (*[]PromBatchQueryItem, bool)` + +GetQueriesOk returns a tuple with the Queries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQueries + +`func (o *PromBatchQueryRequest) SetQueries(v []PromBatchQueryItem)` + +SetQueries sets Queries field to given value. + + +### GetTimeout + +`func (o *PromBatchQueryRequest) GetTimeout() string` + +GetTimeout returns the Timeout field if non-nil, zero value otherwise. + +### GetTimeoutOk + +`func (o *PromBatchQueryRequest) GetTimeoutOk() (*string, bool)` + +GetTimeoutOk returns a tuple with the Timeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeout + +`func (o *PromBatchQueryRequest) SetTimeout(v string)` + +SetTimeout sets Timeout field to given value. + +### HasTimeout + +`func (o *PromBatchQueryRequest) HasTimeout() bool` + +HasTimeout 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/PromBatchRangeQuery.md b/generated/stackstate_api/docs/PromBatchRangeQuery.md new file mode 100644 index 00000000..1b33fbcf --- /dev/null +++ b/generated/stackstate_api/docs/PromBatchRangeQuery.md @@ -0,0 +1,260 @@ +# PromBatchRangeQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Type** | **string** | | +**Query** | **string** | | +**Start** | **string** | | +**End** | **string** | | +**Step** | **string** | | +**Timeout** | Pointer to **string** | | [optional] +**Aligned** | Pointer to **bool** | | [optional] +**MaxNumberOfDataPoints** | Pointer to **int64** | | [optional] +**PostFilter** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPromBatchRangeQuery + +`func NewPromBatchRangeQuery(id string, type_ string, query string, start string, end string, step string, ) *PromBatchRangeQuery` + +NewPromBatchRangeQuery instantiates a new PromBatchRangeQuery 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 + +### NewPromBatchRangeQueryWithDefaults + +`func NewPromBatchRangeQueryWithDefaults() *PromBatchRangeQuery` + +NewPromBatchRangeQueryWithDefaults instantiates a new PromBatchRangeQuery 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 *PromBatchRangeQuery) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PromBatchRangeQuery) GetIdOk() (*string, 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 *PromBatchRangeQuery) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *PromBatchRangeQuery) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PromBatchRangeQuery) 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 *PromBatchRangeQuery) SetType(v string)` + +SetType sets Type field to given value. + + +### GetQuery + +`func (o *PromBatchRangeQuery) GetQuery() string` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *PromBatchRangeQuery) GetQueryOk() (*string, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *PromBatchRangeQuery) SetQuery(v string)` + +SetQuery sets Query field to given value. + + +### GetStart + +`func (o *PromBatchRangeQuery) GetStart() string` + +GetStart returns the Start field if non-nil, zero value otherwise. + +### GetStartOk + +`func (o *PromBatchRangeQuery) GetStartOk() (*string, bool)` + +GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStart + +`func (o *PromBatchRangeQuery) SetStart(v string)` + +SetStart sets Start field to given value. + + +### GetEnd + +`func (o *PromBatchRangeQuery) GetEnd() string` + +GetEnd returns the End field if non-nil, zero value otherwise. + +### GetEndOk + +`func (o *PromBatchRangeQuery) GetEndOk() (*string, bool)` + +GetEndOk returns a tuple with the End field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnd + +`func (o *PromBatchRangeQuery) SetEnd(v string)` + +SetEnd sets End field to given value. + + +### GetStep + +`func (o *PromBatchRangeQuery) GetStep() string` + +GetStep returns the Step field if non-nil, zero value otherwise. + +### GetStepOk + +`func (o *PromBatchRangeQuery) GetStepOk() (*string, bool)` + +GetStepOk returns a tuple with the Step field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStep + +`func (o *PromBatchRangeQuery) SetStep(v string)` + +SetStep sets Step field to given value. + + +### GetTimeout + +`func (o *PromBatchRangeQuery) GetTimeout() string` + +GetTimeout returns the Timeout field if non-nil, zero value otherwise. + +### GetTimeoutOk + +`func (o *PromBatchRangeQuery) GetTimeoutOk() (*string, bool)` + +GetTimeoutOk returns a tuple with the Timeout field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeout + +`func (o *PromBatchRangeQuery) SetTimeout(v string)` + +SetTimeout sets Timeout field to given value. + +### HasTimeout + +`func (o *PromBatchRangeQuery) HasTimeout() bool` + +HasTimeout returns a boolean if a field has been set. + +### GetAligned + +`func (o *PromBatchRangeQuery) GetAligned() bool` + +GetAligned returns the Aligned field if non-nil, zero value otherwise. + +### GetAlignedOk + +`func (o *PromBatchRangeQuery) GetAlignedOk() (*bool, bool)` + +GetAlignedOk returns a tuple with the Aligned field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAligned + +`func (o *PromBatchRangeQuery) SetAligned(v bool)` + +SetAligned sets Aligned field to given value. + +### HasAligned + +`func (o *PromBatchRangeQuery) HasAligned() bool` + +HasAligned returns a boolean if a field has been set. + +### GetMaxNumberOfDataPoints + +`func (o *PromBatchRangeQuery) GetMaxNumberOfDataPoints() int64` + +GetMaxNumberOfDataPoints returns the MaxNumberOfDataPoints field if non-nil, zero value otherwise. + +### GetMaxNumberOfDataPointsOk + +`func (o *PromBatchRangeQuery) GetMaxNumberOfDataPointsOk() (*int64, bool)` + +GetMaxNumberOfDataPointsOk returns a tuple with the MaxNumberOfDataPoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxNumberOfDataPoints + +`func (o *PromBatchRangeQuery) SetMaxNumberOfDataPoints(v int64)` + +SetMaxNumberOfDataPoints sets MaxNumberOfDataPoints field to given value. + +### HasMaxNumberOfDataPoints + +`func (o *PromBatchRangeQuery) HasMaxNumberOfDataPoints() bool` + +HasMaxNumberOfDataPoints returns a boolean if a field has been set. + +### GetPostFilter + +`func (o *PromBatchRangeQuery) GetPostFilter() []string` + +GetPostFilter returns the PostFilter field if non-nil, zero value otherwise. + +### GetPostFilterOk + +`func (o *PromBatchRangeQuery) GetPostFilterOk() (*[]string, bool)` + +GetPostFilterOk returns a tuple with the PostFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostFilter + +`func (o *PromBatchRangeQuery) SetPostFilter(v []string)` + +SetPostFilter sets PostFilter field to given value. + +### HasPostFilter + +`func (o *PromBatchRangeQuery) HasPostFilter() bool` + +HasPostFilter 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/PromBatchResult.md b/generated/stackstate_api/docs/PromBatchResult.md new file mode 100644 index 00000000..9dc5af7b --- /dev/null +++ b/generated/stackstate_api/docs/PromBatchResult.md @@ -0,0 +1,114 @@ +# PromBatchResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**ResultType** | **string** | | +**Data** | [**PromEnvelope**](PromEnvelope.md) | | +**Error** | **string** | | + +## Methods + +### NewPromBatchResult + +`func NewPromBatchResult(id string, resultType string, data PromEnvelope, error_ string, ) *PromBatchResult` + +NewPromBatchResult instantiates a new PromBatchResult 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 + +### NewPromBatchResultWithDefaults + +`func NewPromBatchResultWithDefaults() *PromBatchResult` + +NewPromBatchResultWithDefaults instantiates a new PromBatchResult 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 *PromBatchResult) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PromBatchResult) GetIdOk() (*string, 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 *PromBatchResult) SetId(v string)` + +SetId sets Id field to given value. + + +### GetResultType + +`func (o *PromBatchResult) GetResultType() string` + +GetResultType returns the ResultType field if non-nil, zero value otherwise. + +### GetResultTypeOk + +`func (o *PromBatchResult) GetResultTypeOk() (*string, bool)` + +GetResultTypeOk returns a tuple with the ResultType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResultType + +`func (o *PromBatchResult) SetResultType(v string)` + +SetResultType sets ResultType field to given value. + + +### GetData + +`func (o *PromBatchResult) GetData() PromEnvelope` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PromBatchResult) GetDataOk() (*PromEnvelope, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PromBatchResult) SetData(v PromEnvelope)` + +SetData sets Data field to given value. + + +### GetError + +`func (o *PromBatchResult) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *PromBatchResult) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *PromBatchResult) SetError(v string)` + +SetError sets Error 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/PromBatchSuccess.md b/generated/stackstate_api/docs/PromBatchSuccess.md new file mode 100644 index 00000000..60ef011d --- /dev/null +++ b/generated/stackstate_api/docs/PromBatchSuccess.md @@ -0,0 +1,93 @@ +# PromBatchSuccess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**ResultType** | **string** | | +**Data** | [**PromEnvelope**](PromEnvelope.md) | | + +## Methods + +### NewPromBatchSuccess + +`func NewPromBatchSuccess(id string, resultType string, data PromEnvelope, ) *PromBatchSuccess` + +NewPromBatchSuccess instantiates a new PromBatchSuccess 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 + +### NewPromBatchSuccessWithDefaults + +`func NewPromBatchSuccessWithDefaults() *PromBatchSuccess` + +NewPromBatchSuccessWithDefaults instantiates a new PromBatchSuccess 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 *PromBatchSuccess) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PromBatchSuccess) GetIdOk() (*string, 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 *PromBatchSuccess) SetId(v string)` + +SetId sets Id field to given value. + + +### GetResultType + +`func (o *PromBatchSuccess) GetResultType() string` + +GetResultType returns the ResultType field if non-nil, zero value otherwise. + +### GetResultTypeOk + +`func (o *PromBatchSuccess) GetResultTypeOk() (*string, bool)` + +GetResultTypeOk returns a tuple with the ResultType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResultType + +`func (o *PromBatchSuccess) SetResultType(v string)` + +SetResultType sets ResultType field to given value. + + +### GetData + +`func (o *PromBatchSuccess) GetData() PromEnvelope` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PromBatchSuccess) GetDataOk() (*PromEnvelope, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PromBatchSuccess) SetData(v PromEnvelope)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/PromQLDisplay.md b/generated/stackstate_api/docs/PromQLDisplay.md index acdd1d8c..e963864e 100644 --- a/generated/stackstate_api/docs/PromQLDisplay.md +++ b/generated/stackstate_api/docs/PromQLDisplay.md @@ -1,4 +1,4 @@ -# PromQLDisplay +# PromqlDisplay ## Properties @@ -8,39 +8,39 @@ Name | Type | Description | Notes ## Methods -### NewPromQLDisplay +### NewPromqlDisplay -`func NewPromQLDisplay(type_ string, ) *PromQLDisplay` +`func NewPromqlDisplay(type_ string, ) *PromqlDisplay` -NewPromQLDisplay instantiates a new PromQLDisplay object +NewPromqlDisplay instantiates a new PromqlDisplay object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPromQLDisplayWithDefaults +### NewPromqlDisplayWithDefaults -`func NewPromQLDisplayWithDefaults() *PromQLDisplay` +`func NewPromqlDisplayWithDefaults() *PromqlDisplay` -NewPromQLDisplayWithDefaults instantiates a new PromQLDisplay object +NewPromqlDisplayWithDefaults instantiates a new PromqlDisplay object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *PromQLDisplay) GetType() string` +`func (o *PromqlDisplay) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PromQLDisplay) GetTypeOk() (*string, bool)` +`func (o *PromqlDisplay) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PromQLDisplay) SetType(v string)` +`func (o *PromqlDisplay) SetType(v string)` SetType sets Type field to given value. diff --git a/generated/stackstate_api/docs/ReadyStatusCell.md b/generated/stackstate_api/docs/ReadyStatusCell.md new file mode 100644 index 00000000..66c6b86f --- /dev/null +++ b/generated/stackstate_api/docs/ReadyStatusCell.md @@ -0,0 +1,119 @@ +# ReadyStatusCell + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Ready** | **int32** | | +**Total** | **int32** | | +**Status** | Pointer to [**HealthStateValue**](HealthStateValue.md) | | [optional] + +## Methods + +### NewReadyStatusCell + +`func NewReadyStatusCell(type_ string, ready int32, total int32, ) *ReadyStatusCell` + +NewReadyStatusCell instantiates a new ReadyStatusCell 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 + +### NewReadyStatusCellWithDefaults + +`func NewReadyStatusCellWithDefaults() *ReadyStatusCell` + +NewReadyStatusCellWithDefaults instantiates a new ReadyStatusCell 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 *ReadyStatusCell) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ReadyStatusCell) 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 *ReadyStatusCell) SetType(v string)` + +SetType sets Type field to given value. + + +### GetReady + +`func (o *ReadyStatusCell) GetReady() int32` + +GetReady returns the Ready field if non-nil, zero value otherwise. + +### GetReadyOk + +`func (o *ReadyStatusCell) GetReadyOk() (*int32, bool)` + +GetReadyOk returns a tuple with the Ready field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReady + +`func (o *ReadyStatusCell) SetReady(v int32)` + +SetReady sets Ready field to given value. + + +### GetTotal + +`func (o *ReadyStatusCell) GetTotal() int32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ReadyStatusCell) GetTotalOk() (*int32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ReadyStatusCell) SetTotal(v int32)` + +SetTotal sets Total field to given value. + + +### GetStatus + +`func (o *ReadyStatusCell) GetStatus() HealthStateValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ReadyStatusCell) GetStatusOk() (*HealthStateValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ReadyStatusCell) SetStatus(v HealthStateValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ReadyStatusCell) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ReadyStatusMetaDisplay.md b/generated/stackstate_api/docs/ReadyStatusMetaDisplay.md new file mode 100644 index 00000000..1be23f48 --- /dev/null +++ b/generated/stackstate_api/docs/ReadyStatusMetaDisplay.md @@ -0,0 +1,51 @@ +# ReadyStatusMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | + +## Methods + +### NewReadyStatusMetaDisplay + +`func NewReadyStatusMetaDisplay(type_ string, ) *ReadyStatusMetaDisplay` + +NewReadyStatusMetaDisplay instantiates a new ReadyStatusMetaDisplay 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 + +### NewReadyStatusMetaDisplayWithDefaults + +`func NewReadyStatusMetaDisplayWithDefaults() *ReadyStatusMetaDisplay` + +NewReadyStatusMetaDisplayWithDefaults instantiates a new ReadyStatusMetaDisplay 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 *ReadyStatusMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ReadyStatusMetaDisplay) 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 *ReadyStatusMetaDisplay) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ReadyStatusProjection.md b/generated/stackstate_api/docs/ReadyStatusProjection.md new file mode 100644 index 00000000..172e38f7 --- /dev/null +++ b/generated/stackstate_api/docs/ReadyStatusProjection.md @@ -0,0 +1,119 @@ +# ReadyStatusProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**ReadyNumber** | **string** | Cel expression that returns a number | +**TotalNumber** | **string** | Cel expression that returns a number | +**ReadyStatus** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] + +## Methods + +### NewReadyStatusProjection + +`func NewReadyStatusProjection(type_ string, readyNumber string, totalNumber string, ) *ReadyStatusProjection` + +NewReadyStatusProjection instantiates a new ReadyStatusProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReadyStatusProjectionWithDefaults + +`func NewReadyStatusProjectionWithDefaults() *ReadyStatusProjection` + +NewReadyStatusProjectionWithDefaults instantiates a new ReadyStatusProjection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ReadyStatusProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ReadyStatusProjection) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ReadyStatusProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetReadyNumber + +`func (o *ReadyStatusProjection) GetReadyNumber() string` + +GetReadyNumber returns the ReadyNumber field if non-nil, zero value otherwise. + +### GetReadyNumberOk + +`func (o *ReadyStatusProjection) GetReadyNumberOk() (*string, bool)` + +GetReadyNumberOk returns a tuple with the ReadyNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadyNumber + +`func (o *ReadyStatusProjection) SetReadyNumber(v string)` + +SetReadyNumber sets ReadyNumber field to given value. + + +### GetTotalNumber + +`func (o *ReadyStatusProjection) GetTotalNumber() string` + +GetTotalNumber returns the TotalNumber field if non-nil, zero value otherwise. + +### GetTotalNumberOk + +`func (o *ReadyStatusProjection) GetTotalNumberOk() (*string, bool)` + +GetTotalNumberOk returns a tuple with the TotalNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalNumber + +`func (o *ReadyStatusProjection) SetTotalNumber(v string)` + +SetTotalNumber sets TotalNumber field to given value. + + +### GetReadyStatus + +`func (o *ReadyStatusProjection) GetReadyStatus() string` + +GetReadyStatus returns the ReadyStatus field if non-nil, zero value otherwise. + +### GetReadyStatusOk + +`func (o *ReadyStatusProjection) GetReadyStatusOk() (*string, bool)` + +GetReadyStatusOk returns a tuple with the ReadyStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadyStatus + +`func (o *ReadyStatusProjection) SetReadyStatus(v string)` + +SetReadyStatus sets ReadyStatus field to given value. + +### HasReadyStatus + +`func (o *ReadyStatusProjection) HasReadyStatus() bool` + +HasReadyStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/ServerInfo.md b/generated/stackstate_api/docs/ServerInfo.md index 801b868a..038edaa2 100644 --- a/generated/stackstate_api/docs/ServerInfo.md +++ b/generated/stackstate_api/docs/ServerInfo.md @@ -7,12 +7,13 @@ Name | Type | Description | Notes **Version** | [**ServerVersion**](ServerVersion.md) | | **DeploymentMode** | **string** | | **PlatformVersion** | Pointer to **string** | The version value is a semantic version, based on the official Semantic Versioning spec (https://semver.org/). | [optional] +**ApplicationDomains** | [**[]ApplicationDomain**](ApplicationDomain.md) | | ## Methods ### NewServerInfo -`func NewServerInfo(version ServerVersion, deploymentMode string, ) *ServerInfo` +`func NewServerInfo(version ServerVersion, deploymentMode string, applicationDomains []ApplicationDomain, ) *ServerInfo` NewServerInfo instantiates a new ServerInfo object This constructor will assign default values to properties that have it defined, @@ -92,6 +93,26 @@ SetPlatformVersion sets PlatformVersion field to given value. HasPlatformVersion returns a boolean if a field has been set. +### GetApplicationDomains + +`func (o *ServerInfo) GetApplicationDomains() []ApplicationDomain` + +GetApplicationDomains returns the ApplicationDomains field if non-nil, zero value otherwise. + +### GetApplicationDomainsOk + +`func (o *ServerInfo) GetApplicationDomainsOk() (*[]ApplicationDomain, bool)` + +GetApplicationDomainsOk returns a tuple with the ApplicationDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationDomains + +`func (o *ServerInfo) SetApplicationDomains(v []ApplicationDomain)` + +SetApplicationDomains sets ApplicationDomains 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/SnapshotApi.md b/generated/stackstate_api/docs/SnapshotApi.md index 5cf9a7fa..0cbefcf4 100644 --- a/generated/stackstate_api/docs/SnapshotApi.md +++ b/generated/stackstate_api/docs/SnapshotApi.md @@ -27,7 +27,7 @@ import ( ) func main() { - viewSnapshotRequest := *openapiclient.NewViewSnapshotRequest("Type_example", "Query_example", "0.0.1", *openapiclient.NewQueryMetadata(false, false, int64(123), false, false, false, false, false, false, false)) // ViewSnapshotRequest | Request body for querying a topology snapshot + viewSnapshotRequest := *openapiclient.NewViewSnapshotRequest("Query_example", "0.0.1", *openapiclient.NewQueryMetadata(false, false, int64(123), false, false, false, false, false, false, false)) // ViewSnapshotRequest | Request body for querying a topology snapshot timeoutMs := int64(789) // int64 | Query timeout in milliseconds (optional) (default to 30000) configuration := openapiclient.NewConfiguration() diff --git a/generated/stackstate_api/docs/TextCell.md b/generated/stackstate_api/docs/TextCell.md new file mode 100644 index 00000000..234325ad --- /dev/null +++ b/generated/stackstate_api/docs/TextCell.md @@ -0,0 +1,72 @@ +# TextCell + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **string** | | + +## Methods + +### NewTextCell + +`func NewTextCell(type_ string, value string, ) *TextCell` + +NewTextCell instantiates a new TextCell 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 + +### NewTextCellWithDefaults + +`func NewTextCellWithDefaults() *TextCell` + +NewTextCellWithDefaults instantiates a new TextCell 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 *TextCell) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TextCell) 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 *TextCell) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *TextCell) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TextCell) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TextCell) SetValue(v string)` + +SetValue sets Value 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/TextMetaDisplay.md b/generated/stackstate_api/docs/TextMetaDisplay.md new file mode 100644 index 00000000..a7fce95a --- /dev/null +++ b/generated/stackstate_api/docs/TextMetaDisplay.md @@ -0,0 +1,51 @@ +# TextMetaDisplay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | + +## Methods + +### NewTextMetaDisplay + +`func NewTextMetaDisplay(type_ string, ) *TextMetaDisplay` + +NewTextMetaDisplay instantiates a new TextMetaDisplay 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 + +### NewTextMetaDisplayWithDefaults + +`func NewTextMetaDisplayWithDefaults() *TextMetaDisplay` + +NewTextMetaDisplayWithDefaults instantiates a new TextMetaDisplay 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 *TextMetaDisplay) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TextMetaDisplay) 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 *TextMetaDisplay) 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/TextProjection.md b/generated/stackstate_api/docs/TextProjection.md new file mode 100644 index 00000000..f6a97a20 --- /dev/null +++ b/generated/stackstate_api/docs/TextProjection.md @@ -0,0 +1,72 @@ +# TextProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Value** | **string** | Cel expression that returns a string | + +## Methods + +### NewTextProjection + +`func NewTextProjection(type_ string, value string, ) *TextProjection` + +NewTextProjection instantiates a new TextProjection 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 + +### NewTextProjectionWithDefaults + +`func NewTextProjectionWithDefaults() *TextProjection` + +NewTextProjectionWithDefaults instantiates a new TextProjection 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 *TextProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TextProjection) 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 *TextProjection) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValue + +`func (o *TextProjection) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TextProjection) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TextProjection) SetValue(v string)` + +SetValue sets Value 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/ViewSnapshotRequest.md b/generated/stackstate_api/docs/ViewSnapshotRequest.md index 049782da..a6baa0e7 100644 --- a/generated/stackstate_api/docs/ViewSnapshotRequest.md +++ b/generated/stackstate_api/docs/ViewSnapshotRequest.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | **Query** | **string** | STQL query string | **QueryVersion** | **string** | | **Metadata** | [**QueryMetadata**](QueryMetadata.md) | | @@ -14,7 +13,7 @@ Name | Type | Description | Notes ### NewViewSnapshotRequest -`func NewViewSnapshotRequest(type_ string, query string, queryVersion string, metadata QueryMetadata, ) *ViewSnapshotRequest` +`func NewViewSnapshotRequest(query string, queryVersion string, metadata QueryMetadata, ) *ViewSnapshotRequest` NewViewSnapshotRequest instantiates a new ViewSnapshotRequest object This constructor will assign default values to properties that have it defined, @@ -29,26 +28,6 @@ NewViewSnapshotRequestWithDefaults instantiates a new ViewSnapshotRequest 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 *ViewSnapshotRequest) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ViewSnapshotRequest) 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 *ViewSnapshotRequest) SetType(v string)` - -SetType sets Type field to given value. - - ### GetQuery `func (o *ViewSnapshotRequest) GetQuery() string` diff --git a/generated/stackstate_api/model_application_domain.go b/generated/stackstate_api/model_application_domain.go new file mode 100644 index 00000000..e84615c9 --- /dev/null +++ b/generated/stackstate_api/model_application_domain.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" +) + +// ApplicationDomain the model 'ApplicationDomain' +type ApplicationDomain string + +// List of ApplicationDomain +const ( + APPLICATIONDOMAIN_OBSERVABILITY ApplicationDomain = "Observability" + APPLICATIONDOMAIN_SECURITY ApplicationDomain = "Security" +) + +// All allowed values of ApplicationDomain enum +var AllowedApplicationDomainEnumValues = []ApplicationDomain{ + "Observability", + "Security", +} + +func (v *ApplicationDomain) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ApplicationDomain(value) + for _, existing := range AllowedApplicationDomainEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ApplicationDomain", value) +} + +// NewApplicationDomainFromValue returns a pointer to a valid ApplicationDomain +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewApplicationDomainFromValue(v string) (*ApplicationDomain, error) { + ev := ApplicationDomain(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ApplicationDomain: valid values are %v", v, AllowedApplicationDomainEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ApplicationDomain) IsValid() bool { + for _, existing := range AllowedApplicationDomainEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ApplicationDomain value +func (v ApplicationDomain) Ptr() *ApplicationDomain { + return &v +} + +type NullableApplicationDomain struct { + value *ApplicationDomain + isSet bool +} + +func (v NullableApplicationDomain) Get() *ApplicationDomain { + return v.value +} + +func (v *NullableApplicationDomain) Set(val *ApplicationDomain) { + v.value = val + v.isSet = true +} + +func (v NullableApplicationDomain) IsSet() bool { + return v.isSet +} + +func (v *NullableApplicationDomain) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApplicationDomain(val *ApplicationDomain) *NullableApplicationDomain { + return &NullableApplicationDomain{value: val, isSet: true} +} + +func (v NullableApplicationDomain) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApplicationDomain) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_cell_value.go b/generated/stackstate_api/model_cell_value.go new file mode 100644 index 00000000..cfa12f28 --- /dev/null +++ b/generated/stackstate_api/model_cell_value.go @@ -0,0 +1,308 @@ +/* +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" +) + +// CellValue - struct for CellValue +type CellValue struct { + ComponentLinkCell *ComponentLinkCell + DurationCell *DurationCell + HealthCell *HealthCell + LinkCell *LinkCell + MetricCell *MetricCell + NumericCell *NumericCell + ReadyStatusCell *ReadyStatusCell + TextCell *TextCell +} + +// ComponentLinkCellAsCellValue is a convenience function that returns ComponentLinkCell wrapped in CellValue +func ComponentLinkCellAsCellValue(v *ComponentLinkCell) CellValue { + return CellValue{ + ComponentLinkCell: v, + } +} + +// DurationCellAsCellValue is a convenience function that returns DurationCell wrapped in CellValue +func DurationCellAsCellValue(v *DurationCell) CellValue { + return CellValue{ + DurationCell: v, + } +} + +// HealthCellAsCellValue is a convenience function that returns HealthCell wrapped in CellValue +func HealthCellAsCellValue(v *HealthCell) CellValue { + return CellValue{ + HealthCell: v, + } +} + +// LinkCellAsCellValue is a convenience function that returns LinkCell wrapped in CellValue +func LinkCellAsCellValue(v *LinkCell) CellValue { + return CellValue{ + LinkCell: v, + } +} + +// MetricCellAsCellValue is a convenience function that returns MetricCell wrapped in CellValue +func MetricCellAsCellValue(v *MetricCell) CellValue { + return CellValue{ + MetricCell: v, + } +} + +// NumericCellAsCellValue is a convenience function that returns NumericCell wrapped in CellValue +func NumericCellAsCellValue(v *NumericCell) CellValue { + return CellValue{ + NumericCell: v, + } +} + +// ReadyStatusCellAsCellValue is a convenience function that returns ReadyStatusCell wrapped in CellValue +func ReadyStatusCellAsCellValue(v *ReadyStatusCell) CellValue { + return CellValue{ + ReadyStatusCell: v, + } +} + +// TextCellAsCellValue is a convenience function that returns TextCell wrapped in CellValue +func TextCellAsCellValue(v *TextCell) CellValue { + return CellValue{ + TextCell: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *CellValue) 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 'ComponentLinkCell' + if jsonDict["_type"] == "ComponentLinkCell" { + // try to unmarshal JSON data into ComponentLinkCell + err = json.Unmarshal(data, &dst.ComponentLinkCell) + if err == nil { + return nil // data stored in dst.ComponentLinkCell, return on the first match + } else { + dst.ComponentLinkCell = nil + return fmt.Errorf("Failed to unmarshal CellValue as ComponentLinkCell: %s", err.Error()) + } + } + + // check if the discriminator value is 'DurationCell' + if jsonDict["_type"] == "DurationCell" { + // try to unmarshal JSON data into DurationCell + err = json.Unmarshal(data, &dst.DurationCell) + if err == nil { + return nil // data stored in dst.DurationCell, return on the first match + } else { + dst.DurationCell = nil + return fmt.Errorf("Failed to unmarshal CellValue as DurationCell: %s", err.Error()) + } + } + + // check if the discriminator value is 'HealthCell' + if jsonDict["_type"] == "HealthCell" { + // try to unmarshal JSON data into HealthCell + err = json.Unmarshal(data, &dst.HealthCell) + if err == nil { + return nil // data stored in dst.HealthCell, return on the first match + } else { + dst.HealthCell = nil + return fmt.Errorf("Failed to unmarshal CellValue as HealthCell: %s", err.Error()) + } + } + + // check if the discriminator value is 'LinkCell' + if jsonDict["_type"] == "LinkCell" { + // try to unmarshal JSON data into LinkCell + err = json.Unmarshal(data, &dst.LinkCell) + if err == nil { + return nil // data stored in dst.LinkCell, return on the first match + } else { + dst.LinkCell = nil + return fmt.Errorf("Failed to unmarshal CellValue as LinkCell: %s", err.Error()) + } + } + + // check if the discriminator value is 'MetricCell' + if jsonDict["_type"] == "MetricCell" { + // try to unmarshal JSON data into MetricCell + err = json.Unmarshal(data, &dst.MetricCell) + if err == nil { + return nil // data stored in dst.MetricCell, return on the first match + } else { + dst.MetricCell = nil + return fmt.Errorf("Failed to unmarshal CellValue as MetricCell: %s", err.Error()) + } + } + + // check if the discriminator value is 'NumericCell' + if jsonDict["_type"] == "NumericCell" { + // try to unmarshal JSON data into NumericCell + err = json.Unmarshal(data, &dst.NumericCell) + if err == nil { + return nil // data stored in dst.NumericCell, return on the first match + } else { + dst.NumericCell = nil + return fmt.Errorf("Failed to unmarshal CellValue as NumericCell: %s", err.Error()) + } + } + + // check if the discriminator value is 'ReadyStatusCell' + if jsonDict["_type"] == "ReadyStatusCell" { + // try to unmarshal JSON data into ReadyStatusCell + err = json.Unmarshal(data, &dst.ReadyStatusCell) + if err == nil { + return nil // data stored in dst.ReadyStatusCell, return on the first match + } else { + dst.ReadyStatusCell = nil + return fmt.Errorf("Failed to unmarshal CellValue as ReadyStatusCell: %s", err.Error()) + } + } + + // check if the discriminator value is 'TextCell' + if jsonDict["_type"] == "TextCell" { + // try to unmarshal JSON data into TextCell + err = json.Unmarshal(data, &dst.TextCell) + if err == nil { + return nil // data stored in dst.TextCell, return on the first match + } else { + dst.TextCell = nil + return fmt.Errorf("Failed to unmarshal CellValue as TextCell: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src CellValue) MarshalJSON() ([]byte, error) { + if src.ComponentLinkCell != nil { + return json.Marshal(&src.ComponentLinkCell) + } + + if src.DurationCell != nil { + return json.Marshal(&src.DurationCell) + } + + if src.HealthCell != nil { + return json.Marshal(&src.HealthCell) + } + + if src.LinkCell != nil { + return json.Marshal(&src.LinkCell) + } + + if src.MetricCell != nil { + return json.Marshal(&src.MetricCell) + } + + if src.NumericCell != nil { + return json.Marshal(&src.NumericCell) + } + + if src.ReadyStatusCell != nil { + return json.Marshal(&src.ReadyStatusCell) + } + + if src.TextCell != nil { + return json.Marshal(&src.TextCell) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *CellValue) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ComponentLinkCell != nil { + return obj.ComponentLinkCell + } + + if obj.DurationCell != nil { + return obj.DurationCell + } + + if obj.HealthCell != nil { + return obj.HealthCell + } + + if obj.LinkCell != nil { + return obj.LinkCell + } + + if obj.MetricCell != nil { + return obj.MetricCell + } + + if obj.NumericCell != nil { + return obj.NumericCell + } + + if obj.ReadyStatusCell != nil { + return obj.ReadyStatusCell + } + + if obj.TextCell != nil { + return obj.TextCell + } + + // all schemas are nil + return nil +} + +type NullableCellValue struct { + value *CellValue + isSet bool +} + +func (v NullableCellValue) Get() *CellValue { + return v.value +} + +func (v *NullableCellValue) Set(val *CellValue) { + v.value = val + v.isSet = true +} + +func (v NullableCellValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCellValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCellValue(val *CellValue) *NullableCellValue { + return &NullableCellValue{value: val, isSet: true} +} + +func (v NullableCellValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCellValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_link_cell.go b/generated/stackstate_api/model_component_link_cell.go new file mode 100644 index 00000000..508d07a8 --- /dev/null +++ b/generated/stackstate_api/model_component_link_cell.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" +) + +// ComponentLinkCell struct for ComponentLinkCell +type ComponentLinkCell struct { + Type string `json:"_type" yaml:"_type"` + Name string `json:"name" yaml:"name"` + ComponentId string `json:"componentId" yaml:"componentId"` +} + +// NewComponentLinkCell instantiates a new ComponentLinkCell 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 NewComponentLinkCell(type_ string, name string, componentId string) *ComponentLinkCell { + this := ComponentLinkCell{} + this.Type = type_ + this.Name = name + this.ComponentId = componentId + return &this +} + +// NewComponentLinkCellWithDefaults instantiates a new ComponentLinkCell 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 NewComponentLinkCellWithDefaults() *ComponentLinkCell { + this := ComponentLinkCell{} + return &this +} + +// GetType returns the Type field value +func (o *ComponentLinkCell) 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 *ComponentLinkCell) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComponentLinkCell) SetType(v string) { + o.Type = v +} + +// GetName returns the Name field value +func (o *ComponentLinkCell) 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 *ComponentLinkCell) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComponentLinkCell) SetName(v string) { + o.Name = v +} + +// GetComponentId returns the ComponentId field value +func (o *ComponentLinkCell) GetComponentId() string { + if o == nil { + var ret string + return ret + } + + return o.ComponentId +} + +// GetComponentIdOk returns a tuple with the ComponentId field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkCell) GetComponentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ComponentId, true +} + +// SetComponentId sets field value +func (o *ComponentLinkCell) SetComponentId(v string) { + o.ComponentId = v +} + +func (o ComponentLinkCell) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["componentId"] = o.ComponentId + } + return json.Marshal(toSerialize) +} + +type NullableComponentLinkCell struct { + value *ComponentLinkCell + isSet bool +} + +func (v NullableComponentLinkCell) Get() *ComponentLinkCell { + return v.value +} + +func (v *NullableComponentLinkCell) Set(val *ComponentLinkCell) { + v.value = val + v.isSet = true +} + +func (v NullableComponentLinkCell) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentLinkCell) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentLinkCell(val *ComponentLinkCell) *NullableComponentLinkCell { + return &NullableComponentLinkCell{value: val, isSet: true} +} + +func (v NullableComponentLinkCell) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentLinkCell) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_link_meta_display.go b/generated/stackstate_api/model_component_link_meta_display.go new file mode 100644 index 00000000..154b8b08 --- /dev/null +++ b/generated/stackstate_api/model_component_link_meta_display.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" +) + +// ComponentLinkMetaDisplay struct for ComponentLinkMetaDisplay +type ComponentLinkMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` +} + +// NewComponentLinkMetaDisplay instantiates a new ComponentLinkMetaDisplay 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 NewComponentLinkMetaDisplay(type_ string) *ComponentLinkMetaDisplay { + this := ComponentLinkMetaDisplay{} + this.Type = type_ + return &this +} + +// NewComponentLinkMetaDisplayWithDefaults instantiates a new ComponentLinkMetaDisplay 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 NewComponentLinkMetaDisplayWithDefaults() *ComponentLinkMetaDisplay { + this := ComponentLinkMetaDisplay{} + return &this +} + +// GetType returns the Type field value +func (o *ComponentLinkMetaDisplay) 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 *ComponentLinkMetaDisplay) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComponentLinkMetaDisplay) SetType(v string) { + o.Type = v +} + +func (o ComponentLinkMetaDisplay) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComponentLinkMetaDisplay struct { + value *ComponentLinkMetaDisplay + isSet bool +} + +func (v NullableComponentLinkMetaDisplay) Get() *ComponentLinkMetaDisplay { + return v.value +} + +func (v *NullableComponentLinkMetaDisplay) Set(val *ComponentLinkMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableComponentLinkMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentLinkMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentLinkMetaDisplay(val *ComponentLinkMetaDisplay) *NullableComponentLinkMetaDisplay { + return &NullableComponentLinkMetaDisplay{value: val, isSet: true} +} + +func (v NullableComponentLinkMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentLinkMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_link_projection.go b/generated/stackstate_api/model_component_link_projection.go new file mode 100644 index 00000000..464410cb --- /dev/null +++ b/generated/stackstate_api/model_component_link_projection.go @@ -0,0 +1,167 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ComponentLinkProjection struct for ComponentLinkProjection +type ComponentLinkProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a string that represents the name of the component to link to + Name string `json:"name" yaml:"name"` + // Cel expression that returns a string that represents the componentIdentifier in order to build the link + ComponentIdentifier string `json:"componentIdentifier" yaml:"componentIdentifier"` +} + +// NewComponentLinkProjection instantiates a new ComponentLinkProjection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComponentLinkProjection(type_ string, name string, componentIdentifier string) *ComponentLinkProjection { + this := ComponentLinkProjection{} + this.Type = type_ + this.Name = name + this.ComponentIdentifier = componentIdentifier + return &this +} + +// NewComponentLinkProjectionWithDefaults instantiates a new ComponentLinkProjection 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 NewComponentLinkProjectionWithDefaults() *ComponentLinkProjection { + this := ComponentLinkProjection{} + return &this +} + +// GetType returns the Type field value +func (o *ComponentLinkProjection) 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 *ComponentLinkProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComponentLinkProjection) SetType(v string) { + o.Type = v +} + +// GetName returns the Name field value +func (o *ComponentLinkProjection) 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 *ComponentLinkProjection) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComponentLinkProjection) SetName(v string) { + o.Name = v +} + +// GetComponentIdentifier returns the ComponentIdentifier field value +func (o *ComponentLinkProjection) GetComponentIdentifier() string { + if o == nil { + var ret string + return ret + } + + return o.ComponentIdentifier +} + +// GetComponentIdentifierOk returns a tuple with the ComponentIdentifier field value +// and a boolean to check if the value has been set. +func (o *ComponentLinkProjection) GetComponentIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ComponentIdentifier, true +} + +// SetComponentIdentifier sets field value +func (o *ComponentLinkProjection) SetComponentIdentifier(v string) { + o.ComponentIdentifier = v +} + +func (o ComponentLinkProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["componentIdentifier"] = o.ComponentIdentifier + } + return json.Marshal(toSerialize) +} + +type NullableComponentLinkProjection struct { + value *ComponentLinkProjection + isSet bool +} + +func (v NullableComponentLinkProjection) Get() *ComponentLinkProjection { + return v.value +} + +func (v *NullableComponentLinkProjection) Set(val *ComponentLinkProjection) { + v.value = val + v.isSet = true +} + +func (v NullableComponentLinkProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentLinkProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentLinkProjection(val *ComponentLinkProjection) *NullableComponentLinkProjection { + return &NullableComponentLinkProjection{value: val, isSet: true} +} + +func (v NullableComponentLinkProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentLinkProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_presentation.go b/generated/stackstate_api/model_component_presentation.go index b145cd69..2fb02081 100644 --- a/generated/stackstate_api/model_component_presentation.go +++ b/generated/stackstate_api/model_component_presentation.go @@ -17,21 +17,23 @@ import ( // ComponentPresentation struct for ComponentPresentation type ComponentPresentation struct { - Identifier string `json:"identifier" yaml:"identifier"` - Name string `json:"name" yaml:"name"` - Description *string `json:"description,omitempty" yaml:"description,omitempty"` - Presentation PresentationDefinition `json:"presentation" yaml:"presentation"` - ExpireAfterMs *int64 `json:"expireAfterMs,omitempty" yaml:"expireAfterMs,omitempty"` + Identifier string `json:"identifier" yaml:"identifier"` + Name string `json:"name" yaml:"name"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Binding ComponentPresentationQueryBinding `json:"binding" yaml:"binding"` + Rank *ComponentPresentationRank `json:"rank,omitempty" yaml:"rank,omitempty"` + Presentation PresentationDefinition `json:"presentation" yaml:"presentation"` } // NewComponentPresentation instantiates a new ComponentPresentation 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 NewComponentPresentation(identifier string, name string, presentation PresentationDefinition) *ComponentPresentation { +func NewComponentPresentation(identifier string, name string, binding ComponentPresentationQueryBinding, presentation PresentationDefinition) *ComponentPresentation { this := ComponentPresentation{} this.Identifier = identifier this.Name = name + this.Binding = binding this.Presentation = presentation return &this } @@ -124,60 +126,84 @@ func (o *ComponentPresentation) SetDescription(v string) { o.Description = &v } -// GetPresentation returns the Presentation field value -func (o *ComponentPresentation) GetPresentation() PresentationDefinition { +// GetBinding returns the Binding field value +func (o *ComponentPresentation) GetBinding() ComponentPresentationQueryBinding { if o == nil { - var ret PresentationDefinition + var ret ComponentPresentationQueryBinding return ret } - return o.Presentation + return o.Binding } -// GetPresentationOk returns a tuple with the Presentation field value +// GetBindingOk returns a tuple with the Binding field value // and a boolean to check if the value has been set. -func (o *ComponentPresentation) GetPresentationOk() (*PresentationDefinition, bool) { +func (o *ComponentPresentation) GetBindingOk() (*ComponentPresentationQueryBinding, bool) { if o == nil { return nil, false } - return &o.Presentation, true + return &o.Binding, true } -// SetPresentation sets field value -func (o *ComponentPresentation) SetPresentation(v PresentationDefinition) { - o.Presentation = v +// SetBinding sets field value +func (o *ComponentPresentation) SetBinding(v ComponentPresentationQueryBinding) { + o.Binding = v } -// GetExpireAfterMs returns the ExpireAfterMs field value if set, zero value otherwise. -func (o *ComponentPresentation) GetExpireAfterMs() int64 { - if o == nil || o.ExpireAfterMs == nil { - var ret int64 +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *ComponentPresentation) GetRank() ComponentPresentationRank { + if o == nil || o.Rank == nil { + var ret ComponentPresentationRank return ret } - return *o.ExpireAfterMs + return *o.Rank } -// GetExpireAfterMsOk returns a tuple with the ExpireAfterMs field value if set, nil otherwise +// GetRankOk returns a tuple with the Rank field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ComponentPresentation) GetExpireAfterMsOk() (*int64, bool) { - if o == nil || o.ExpireAfterMs == nil { +func (o *ComponentPresentation) GetRankOk() (*ComponentPresentationRank, bool) { + if o == nil || o.Rank == nil { return nil, false } - return o.ExpireAfterMs, true + return o.Rank, true } -// HasExpireAfterMs returns a boolean if a field has been set. -func (o *ComponentPresentation) HasExpireAfterMs() bool { - if o != nil && o.ExpireAfterMs != nil { +// HasRank returns a boolean if a field has been set. +func (o *ComponentPresentation) HasRank() bool { + if o != nil && o.Rank != nil { return true } return false } -// SetExpireAfterMs gets a reference to the given int64 and assigns it to the ExpireAfterMs field. -func (o *ComponentPresentation) SetExpireAfterMs(v int64) { - o.ExpireAfterMs = &v +// SetRank gets a reference to the given ComponentPresentationRank and assigns it to the Rank field. +func (o *ComponentPresentation) SetRank(v ComponentPresentationRank) { + o.Rank = &v +} + +// GetPresentation returns the Presentation field value +func (o *ComponentPresentation) GetPresentation() PresentationDefinition { + if o == nil { + var ret PresentationDefinition + return ret + } + + return o.Presentation +} + +// GetPresentationOk returns a tuple with the Presentation field value +// and a boolean to check if the value has been set. +func (o *ComponentPresentation) GetPresentationOk() (*PresentationDefinition, bool) { + if o == nil { + return nil, false + } + return &o.Presentation, true +} + +// SetPresentation sets field value +func (o *ComponentPresentation) SetPresentation(v PresentationDefinition) { + o.Presentation = v } func (o ComponentPresentation) MarshalJSON() ([]byte, error) { @@ -192,10 +218,13 @@ func (o ComponentPresentation) MarshalJSON() ([]byte, error) { toSerialize["description"] = o.Description } if true { - toSerialize["presentation"] = o.Presentation + toSerialize["binding"] = o.Binding + } + if o.Rank != nil { + toSerialize["rank"] = o.Rank } - if o.ExpireAfterMs != nil { - toSerialize["expireAfterMs"] = o.ExpireAfterMs + if true { + toSerialize["presentation"] = o.Presentation } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_component_presentation_query_binding.go b/generated/stackstate_api/model_component_presentation_query_binding.go new file mode 100644 index 00000000..41115084 --- /dev/null +++ b/generated/stackstate_api/model_component_presentation_query_binding.go @@ -0,0 +1,108 @@ +/* +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" +) + +// ComponentPresentationQueryBinding struct for ComponentPresentationQueryBinding +type ComponentPresentationQueryBinding struct { + // Stq query that defines to which components does the presentation applies to. + Query string `json:"query" yaml:"query"` +} + +// NewComponentPresentationQueryBinding instantiates a new ComponentPresentationQueryBinding 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 NewComponentPresentationQueryBinding(query string) *ComponentPresentationQueryBinding { + this := ComponentPresentationQueryBinding{} + this.Query = query + return &this +} + +// NewComponentPresentationQueryBindingWithDefaults instantiates a new ComponentPresentationQueryBinding 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 NewComponentPresentationQueryBindingWithDefaults() *ComponentPresentationQueryBinding { + this := ComponentPresentationQueryBinding{} + return &this +} + +// GetQuery returns the Query field value +func (o *ComponentPresentationQueryBinding) GetQuery() string { + if o == nil { + var ret string + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *ComponentPresentationQueryBinding) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *ComponentPresentationQueryBinding) SetQuery(v string) { + o.Query = v +} + +func (o ComponentPresentationQueryBinding) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["query"] = o.Query + } + return json.Marshal(toSerialize) +} + +type NullableComponentPresentationQueryBinding struct { + value *ComponentPresentationQueryBinding + isSet bool +} + +func (v NullableComponentPresentationQueryBinding) Get() *ComponentPresentationQueryBinding { + return v.value +} + +func (v *NullableComponentPresentationQueryBinding) Set(val *ComponentPresentationQueryBinding) { + v.value = val + v.isSet = true +} + +func (v NullableComponentPresentationQueryBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentPresentationQueryBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentPresentationQueryBinding(val *ComponentPresentationQueryBinding) *NullableComponentPresentationQueryBinding { + return &NullableComponentPresentationQueryBinding{value: val, isSet: true} +} + +func (v NullableComponentPresentationQueryBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentPresentationQueryBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_presentation_rank.go b/generated/stackstate_api/model_component_presentation_rank.go new file mode 100644 index 00000000..8a6963c7 --- /dev/null +++ b/generated/stackstate_api/model_component_presentation_rank.go @@ -0,0 +1,108 @@ +/* +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" +) + +// ComponentPresentationRank struct for ComponentPresentationRank +type ComponentPresentationRank struct { + // Determines how much of a \"specialization\" this presentation is. Higher number means more specific. This is used to determine which presentation to use when multiple presentations match. + Specificity float64 `json:"specificity" yaml:"specificity"` +} + +// NewComponentPresentationRank instantiates a new ComponentPresentationRank 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 NewComponentPresentationRank(specificity float64) *ComponentPresentationRank { + this := ComponentPresentationRank{} + this.Specificity = specificity + return &this +} + +// NewComponentPresentationRankWithDefaults instantiates a new ComponentPresentationRank 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 NewComponentPresentationRankWithDefaults() *ComponentPresentationRank { + this := ComponentPresentationRank{} + return &this +} + +// GetSpecificity returns the Specificity field value +func (o *ComponentPresentationRank) 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 *ComponentPresentationRank) GetSpecificityOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Specificity, true +} + +// SetSpecificity sets field value +func (o *ComponentPresentationRank) SetSpecificity(v float64) { + o.Specificity = v +} + +func (o ComponentPresentationRank) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["specificity"] = o.Specificity + } + return json.Marshal(toSerialize) +} + +type NullableComponentPresentationRank struct { + value *ComponentPresentationRank + isSet bool +} + +func (v NullableComponentPresentationRank) Get() *ComponentPresentationRank { + return v.value +} + +func (v *NullableComponentPresentationRank) Set(val *ComponentPresentationRank) { + v.value = val + v.isSet = true +} + +func (v NullableComponentPresentationRank) IsSet() bool { + return v.isSet +} + +func (v *NullableComponentPresentationRank) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComponentPresentationRank(val *ComponentPresentationRank) *NullableComponentPresentationRank { + return &NullableComponentPresentationRank{value: val, isSet: true} +} + +func (v NullableComponentPresentationRank) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComponentPresentationRank) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_component_type_field_display.go b/generated/stackstate_api/model_component_type_field_display.go index 2fcd5031..b37956b5 100644 --- a/generated/stackstate_api/model_component_type_field_display.go +++ b/generated/stackstate_api/model_component_type_field_display.go @@ -22,7 +22,7 @@ type ComponentTypeFieldDisplay struct { DurationDisplay *DurationDisplay HealthBadgeDisplay *HealthBadgeDisplay HealthCircleDisplay *HealthCircleDisplay - PromQLDisplay *PromQLDisplay + PromqlDisplay *PromqlDisplay RatioDisplay *RatioDisplay ReadyStatusDisplay *ReadyStatusDisplay TagDisplay *TagDisplay @@ -58,10 +58,10 @@ func HealthCircleDisplayAsComponentTypeFieldDisplay(v *HealthCircleDisplay) Comp } } -// PromQLDisplayAsComponentTypeFieldDisplay is a convenience function that returns PromQLDisplay wrapped in ComponentTypeFieldDisplay -func PromQLDisplayAsComponentTypeFieldDisplay(v *PromQLDisplay) ComponentTypeFieldDisplay { +// PromqlDisplayAsComponentTypeFieldDisplay is a convenience function that returns PromqlDisplay wrapped in ComponentTypeFieldDisplay +func PromqlDisplayAsComponentTypeFieldDisplay(v *PromqlDisplay) ComponentTypeFieldDisplay { return ComponentTypeFieldDisplay{ - PromQLDisplay: v, + PromqlDisplay: v, } } @@ -158,15 +158,15 @@ func (dst *ComponentTypeFieldDisplay) UnmarshalJSON(data []byte) error { } } - // check if the discriminator value is 'PromQLDisplay' - if jsonDict["_type"] == "PromQLDisplay" { - // try to unmarshal JSON data into PromQLDisplay - err = json.Unmarshal(data, &dst.PromQLDisplay) + // check if the discriminator value is 'PromqlDisplay' + if jsonDict["_type"] == "PromqlDisplay" { + // try to unmarshal JSON data into PromqlDisplay + err = json.Unmarshal(data, &dst.PromqlDisplay) if err == nil { - return nil // data stored in dst.PromQLDisplay, return on the first match + return nil // data stored in dst.PromqlDisplay, return on the first match } else { - dst.PromQLDisplay = nil - return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as PromQLDisplay: %s", err.Error()) + dst.PromqlDisplay = nil + return fmt.Errorf("Failed to unmarshal ComponentTypeFieldDisplay as PromqlDisplay: %s", err.Error()) } } @@ -251,8 +251,8 @@ func (src ComponentTypeFieldDisplay) MarshalJSON() ([]byte, error) { return json.Marshal(&src.HealthCircleDisplay) } - if src.PromQLDisplay != nil { - return json.Marshal(&src.PromQLDisplay) + if src.PromqlDisplay != nil { + return json.Marshal(&src.PromqlDisplay) } if src.RatioDisplay != nil { @@ -299,8 +299,8 @@ func (obj *ComponentTypeFieldDisplay) GetActualInstance() interface{} { return obj.HealthCircleDisplay } - if obj.PromQLDisplay != nil { - return obj.PromQLDisplay + if obj.PromqlDisplay != nil { + return obj.PromqlDisplay } if obj.RatioDisplay != nil { diff --git a/generated/stackstate_api/model_container_image_projection.go b/generated/stackstate_api/model_container_image_projection.go new file mode 100644 index 00000000..290c7c4a --- /dev/null +++ b/generated/stackstate_api/model_container_image_projection.go @@ -0,0 +1,167 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ContainerImageProjection Helps rendering links for docker images +type ContainerImageProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a string + ImageId string `json:"imageId" yaml:"imageId"` + // Cel expression that returns a string + ImageName string `json:"imageName" yaml:"imageName"` +} + +// NewContainerImageProjection instantiates a new ContainerImageProjection 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 NewContainerImageProjection(type_ string, imageId string, imageName string) *ContainerImageProjection { + this := ContainerImageProjection{} + this.Type = type_ + this.ImageId = imageId + this.ImageName = imageName + return &this +} + +// NewContainerImageProjectionWithDefaults instantiates a new ContainerImageProjection 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 NewContainerImageProjectionWithDefaults() *ContainerImageProjection { + this := ContainerImageProjection{} + return &this +} + +// GetType returns the Type field value +func (o *ContainerImageProjection) 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 *ContainerImageProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ContainerImageProjection) SetType(v string) { + o.Type = v +} + +// GetImageId returns the ImageId field value +func (o *ContainerImageProjection) GetImageId() string { + if o == nil { + var ret string + return ret + } + + return o.ImageId +} + +// GetImageIdOk returns a tuple with the ImageId field value +// and a boolean to check if the value has been set. +func (o *ContainerImageProjection) GetImageIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ImageId, true +} + +// SetImageId sets field value +func (o *ContainerImageProjection) SetImageId(v string) { + o.ImageId = v +} + +// GetImageName returns the ImageName field value +func (o *ContainerImageProjection) GetImageName() string { + if o == nil { + var ret string + return ret + } + + return o.ImageName +} + +// GetImageNameOk returns a tuple with the ImageName field value +// and a boolean to check if the value has been set. +func (o *ContainerImageProjection) GetImageNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ImageName, true +} + +// SetImageName sets field value +func (o *ContainerImageProjection) SetImageName(v string) { + o.ImageName = v +} + +func (o ContainerImageProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["imageId"] = o.ImageId + } + if true { + toSerialize["imageName"] = o.ImageName + } + return json.Marshal(toSerialize) +} + +type NullableContainerImageProjection struct { + value *ContainerImageProjection + isSet bool +} + +func (v NullableContainerImageProjection) Get() *ContainerImageProjection { + return v.value +} + +func (v *NullableContainerImageProjection) Set(val *ContainerImageProjection) { + v.value = val + v.isSet = true +} + +func (v NullableContainerImageProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableContainerImageProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableContainerImageProjection(val *ContainerImageProjection) *NullableContainerImageProjection { + return &NullableContainerImageProjection{value: val, isSet: true} +} + +func (v NullableContainerImageProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableContainerImageProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_duration_cell.go b/generated/stackstate_api/model_duration_cell.go new file mode 100644 index 00000000..f96b3611 --- /dev/null +++ b/generated/stackstate_api/model_duration_cell.go @@ -0,0 +1,183 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// DurationCell struct for DurationCell +type DurationCell struct { + Type string `json:"_type" yaml:"_type"` + StartDate int32 `json:"startDate" yaml:"startDate"` + EndDate NullableInt32 `json:"endDate,omitempty" yaml:"endDate,omitempty"` +} + +// NewDurationCell instantiates a new DurationCell 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 NewDurationCell(type_ string, startDate int32) *DurationCell { + this := DurationCell{} + this.Type = type_ + this.StartDate = startDate + return &this +} + +// NewDurationCellWithDefaults instantiates a new DurationCell 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 NewDurationCellWithDefaults() *DurationCell { + this := DurationCell{} + return &this +} + +// GetType returns the Type field value +func (o *DurationCell) 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 *DurationCell) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DurationCell) SetType(v string) { + o.Type = v +} + +// GetStartDate returns the StartDate field value +func (o *DurationCell) GetStartDate() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.StartDate +} + +// GetStartDateOk returns a tuple with the StartDate field value +// and a boolean to check if the value has been set. +func (o *DurationCell) GetStartDateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.StartDate, true +} + +// SetStartDate sets field value +func (o *DurationCell) SetStartDate(v int32) { + o.StartDate = v +} + +// GetEndDate returns the EndDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DurationCell) GetEndDate() int32 { + if o == nil || o.EndDate.Get() == nil { + var ret int32 + return ret + } + return *o.EndDate.Get() +} + +// GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DurationCell) GetEndDateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.EndDate.Get(), o.EndDate.IsSet() +} + +// HasEndDate returns a boolean if a field has been set. +func (o *DurationCell) HasEndDate() bool { + if o != nil && o.EndDate.IsSet() { + return true + } + + return false +} + +// SetEndDate gets a reference to the given NullableInt32 and assigns it to the EndDate field. +func (o *DurationCell) SetEndDate(v int32) { + o.EndDate.Set(&v) +} + +// SetEndDateNil sets the value for EndDate to be an explicit nil +func (o *DurationCell) SetEndDateNil() { + o.EndDate.Set(nil) +} + +// UnsetEndDate ensures that no value is present for EndDate, not even an explicit nil +func (o *DurationCell) UnsetEndDate() { + o.EndDate.Unset() +} + +func (o DurationCell) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["startDate"] = o.StartDate + } + if o.EndDate.IsSet() { + toSerialize["endDate"] = o.EndDate.Get() + } + return json.Marshal(toSerialize) +} + +type NullableDurationCell struct { + value *DurationCell + isSet bool +} + +func (v NullableDurationCell) Get() *DurationCell { + return v.value +} + +func (v *NullableDurationCell) Set(val *DurationCell) { + v.value = val + v.isSet = true +} + +func (v NullableDurationCell) IsSet() bool { + return v.isSet +} + +func (v *NullableDurationCell) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDurationCell(val *DurationCell) *NullableDurationCell { + return &NullableDurationCell{value: val, isSet: true} +} + +func (v NullableDurationCell) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDurationCell) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_duration_meta_display.go b/generated/stackstate_api/model_duration_meta_display.go new file mode 100644 index 00000000..c48a1e07 --- /dev/null +++ b/generated/stackstate_api/model_duration_meta_display.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" +) + +// DurationMetaDisplay struct for DurationMetaDisplay +type DurationMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` +} + +// NewDurationMetaDisplay instantiates a new DurationMetaDisplay 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 NewDurationMetaDisplay(type_ string) *DurationMetaDisplay { + this := DurationMetaDisplay{} + this.Type = type_ + return &this +} + +// NewDurationMetaDisplayWithDefaults instantiates a new DurationMetaDisplay 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 NewDurationMetaDisplayWithDefaults() *DurationMetaDisplay { + this := DurationMetaDisplay{} + return &this +} + +// GetType returns the Type field value +func (o *DurationMetaDisplay) 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 *DurationMetaDisplay) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DurationMetaDisplay) SetType(v string) { + o.Type = v +} + +func (o DurationMetaDisplay) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableDurationMetaDisplay struct { + value *DurationMetaDisplay + isSet bool +} + +func (v NullableDurationMetaDisplay) Get() *DurationMetaDisplay { + return v.value +} + +func (v *NullableDurationMetaDisplay) Set(val *DurationMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableDurationMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableDurationMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDurationMetaDisplay(val *DurationMetaDisplay) *NullableDurationMetaDisplay { + return &NullableDurationMetaDisplay{value: val, isSet: true} +} + +func (v NullableDurationMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDurationMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_duration_projection.go b/generated/stackstate_api/model_duration_projection.go new file mode 100644 index 00000000..6b349ff3 --- /dev/null +++ b/generated/stackstate_api/model_duration_projection.go @@ -0,0 +1,174 @@ +/* +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" +) + +// DurationProjection struct for DurationProjection +type DurationProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a date + StartDate string `json:"startDate" yaml:"startDate"` + // Cel expression that returns a date + EndDate *string `json:"endDate,omitempty" yaml:"endDate,omitempty"` +} + +// NewDurationProjection instantiates a new DurationProjection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDurationProjection(type_ string, startDate string) *DurationProjection { + this := DurationProjection{} + this.Type = type_ + this.StartDate = startDate + return &this +} + +// NewDurationProjectionWithDefaults instantiates a new DurationProjection 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 NewDurationProjectionWithDefaults() *DurationProjection { + this := DurationProjection{} + return &this +} + +// GetType returns the Type field value +func (o *DurationProjection) 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 *DurationProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DurationProjection) SetType(v string) { + o.Type = v +} + +// GetStartDate returns the StartDate field value +func (o *DurationProjection) GetStartDate() string { + if o == nil { + var ret string + return ret + } + + return o.StartDate +} + +// GetStartDateOk returns a tuple with the StartDate field value +// and a boolean to check if the value has been set. +func (o *DurationProjection) GetStartDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StartDate, true +} + +// SetStartDate sets field value +func (o *DurationProjection) SetStartDate(v string) { + o.StartDate = v +} + +// GetEndDate returns the EndDate field value if set, zero value otherwise. +func (o *DurationProjection) GetEndDate() string { + if o == nil || o.EndDate == nil { + var ret string + return ret + } + return *o.EndDate +} + +// GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DurationProjection) GetEndDateOk() (*string, bool) { + if o == nil || o.EndDate == nil { + return nil, false + } + return o.EndDate, true +} + +// HasEndDate returns a boolean if a field has been set. +func (o *DurationProjection) HasEndDate() bool { + if o != nil && o.EndDate != nil { + return true + } + + return false +} + +// SetEndDate gets a reference to the given string and assigns it to the EndDate field. +func (o *DurationProjection) SetEndDate(v string) { + o.EndDate = &v +} + +func (o DurationProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["startDate"] = o.StartDate + } + if o.EndDate != nil { + toSerialize["endDate"] = o.EndDate + } + return json.Marshal(toSerialize) +} + +type NullableDurationProjection struct { + value *DurationProjection + isSet bool +} + +func (v NullableDurationProjection) Get() *DurationProjection { + return v.value +} + +func (v *NullableDurationProjection) Set(val *DurationProjection) { + v.value = val + v.isSet = true +} + +func (v NullableDurationProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableDurationProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDurationProjection(val *DurationProjection) *NullableDurationProjection { + return &NullableDurationProjection{value: val, isSet: true} +} + +func (v NullableDurationProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDurationProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_health_cell.go b/generated/stackstate_api/model_health_cell.go new file mode 100644 index 00000000..ac274449 --- /dev/null +++ b/generated/stackstate_api/model_health_cell.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" +) + +// HealthCell struct for HealthCell +type HealthCell struct { + Type string `json:"_type" yaml:"_type"` + State HealthStateValue `json:"state" yaml:"state"` +} + +// NewHealthCell instantiates a new HealthCell 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 NewHealthCell(type_ string, state HealthStateValue) *HealthCell { + this := HealthCell{} + this.Type = type_ + this.State = state + return &this +} + +// NewHealthCellWithDefaults instantiates a new HealthCell 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 NewHealthCellWithDefaults() *HealthCell { + this := HealthCell{} + return &this +} + +// GetType returns the Type field value +func (o *HealthCell) 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 *HealthCell) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *HealthCell) SetType(v string) { + o.Type = v +} + +// GetState returns the State field value +func (o *HealthCell) GetState() HealthStateValue { + if o == nil { + var ret HealthStateValue + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *HealthCell) GetStateOk() (*HealthStateValue, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *HealthCell) SetState(v HealthStateValue) { + o.State = v +} + +func (o HealthCell) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["state"] = o.State + } + return json.Marshal(toSerialize) +} + +type NullableHealthCell struct { + value *HealthCell + isSet bool +} + +func (v NullableHealthCell) Get() *HealthCell { + return v.value +} + +func (v *NullableHealthCell) Set(val *HealthCell) { + v.value = val + v.isSet = true +} + +func (v NullableHealthCell) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthCell) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthCell(val *HealthCell) *NullableHealthCell { + return &NullableHealthCell{value: val, isSet: true} +} + +func (v NullableHealthCell) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthCell) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_health_meta_display.go b/generated/stackstate_api/model_health_meta_display.go new file mode 100644 index 00000000..40b0aad8 --- /dev/null +++ b/generated/stackstate_api/model_health_meta_display.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" +) + +// HealthMetaDisplay struct for HealthMetaDisplay +type HealthMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` +} + +// NewHealthMetaDisplay instantiates a new HealthMetaDisplay 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 NewHealthMetaDisplay(type_ string) *HealthMetaDisplay { + this := HealthMetaDisplay{} + this.Type = type_ + return &this +} + +// NewHealthMetaDisplayWithDefaults instantiates a new HealthMetaDisplay 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 NewHealthMetaDisplayWithDefaults() *HealthMetaDisplay { + this := HealthMetaDisplay{} + return &this +} + +// GetType returns the Type field value +func (o *HealthMetaDisplay) 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 *HealthMetaDisplay) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *HealthMetaDisplay) SetType(v string) { + o.Type = v +} + +func (o HealthMetaDisplay) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableHealthMetaDisplay struct { + value *HealthMetaDisplay + isSet bool +} + +func (v NullableHealthMetaDisplay) Get() *HealthMetaDisplay { + return v.value +} + +func (v *NullableHealthMetaDisplay) Set(val *HealthMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableHealthMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthMetaDisplay(val *HealthMetaDisplay) *NullableHealthMetaDisplay { + return &NullableHealthMetaDisplay{value: val, isSet: true} +} + +func (v NullableHealthMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_health_projection.go b/generated/stackstate_api/model_health_projection.go new file mode 100644 index 00000000..5c27607d --- /dev/null +++ b/generated/stackstate_api/model_health_projection.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" +) + +// HealthProjection struct for HealthProjection +type HealthProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a string that represents a valid HealthState + Value string `json:"value" yaml:"value"` +} + +// NewHealthProjection instantiates a new HealthProjection 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 NewHealthProjection(type_ string, value string) *HealthProjection { + this := HealthProjection{} + this.Type = type_ + this.Value = value + return &this +} + +// NewHealthProjectionWithDefaults instantiates a new HealthProjection 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 NewHealthProjectionWithDefaults() *HealthProjection { + this := HealthProjection{} + return &this +} + +// GetType returns the Type field value +func (o *HealthProjection) 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 *HealthProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *HealthProjection) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *HealthProjection) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *HealthProjection) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *HealthProjection) SetValue(v string) { + o.Value = v +} + +func (o HealthProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableHealthProjection struct { + value *HealthProjection + isSet bool +} + +func (v NullableHealthProjection) Get() *HealthProjection { + return v.value +} + +func (v *NullableHealthProjection) Set(val *HealthProjection) { + v.value = val + v.isSet = true +} + +func (v NullableHealthProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthProjection(val *HealthProjection) *NullableHealthProjection { + return &NullableHealthProjection{value: val, isSet: true} +} + +func (v NullableHealthProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_link_cell.go b/generated/stackstate_api/model_link_cell.go new file mode 100644 index 00000000..59e3f951 --- /dev/null +++ b/generated/stackstate_api/model_link_cell.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" +) + +// LinkCell struct for LinkCell +type LinkCell struct { + Type string `json:"_type" yaml:"_type"` + Name string `json:"name" yaml:"name"` + Url string `json:"url" yaml:"url"` +} + +// NewLinkCell instantiates a new LinkCell 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 NewLinkCell(type_ string, name string, url string) *LinkCell { + this := LinkCell{} + this.Type = type_ + this.Name = name + this.Url = url + return &this +} + +// NewLinkCellWithDefaults instantiates a new LinkCell 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 NewLinkCellWithDefaults() *LinkCell { + this := LinkCell{} + return &this +} + +// GetType returns the Type field value +func (o *LinkCell) 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 *LinkCell) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LinkCell) SetType(v string) { + o.Type = v +} + +// GetName returns the Name field value +func (o *LinkCell) 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 *LinkCell) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *LinkCell) SetName(v string) { + o.Name = v +} + +// GetUrl returns the Url field value +func (o *LinkCell) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *LinkCell) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *LinkCell) SetUrl(v string) { + o.Url = v +} + +func (o LinkCell) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableLinkCell struct { + value *LinkCell + isSet bool +} + +func (v NullableLinkCell) Get() *LinkCell { + return v.value +} + +func (v *NullableLinkCell) Set(val *LinkCell) { + v.value = val + v.isSet = true +} + +func (v NullableLinkCell) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkCell) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkCell(val *LinkCell) *NullableLinkCell { + return &NullableLinkCell{value: val, isSet: true} +} + +func (v NullableLinkCell) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkCell) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_link_meta_display.go b/generated/stackstate_api/model_link_meta_display.go new file mode 100644 index 00000000..5c54c039 --- /dev/null +++ b/generated/stackstate_api/model_link_meta_display.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" +) + +// LinkMetaDisplay struct for LinkMetaDisplay +type LinkMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` + External bool `json:"external" yaml:"external"` +} + +// NewLinkMetaDisplay instantiates a new LinkMetaDisplay 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 NewLinkMetaDisplay(type_ string, external bool) *LinkMetaDisplay { + this := LinkMetaDisplay{} + this.Type = type_ + this.External = external + return &this +} + +// NewLinkMetaDisplayWithDefaults instantiates a new LinkMetaDisplay 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 NewLinkMetaDisplayWithDefaults() *LinkMetaDisplay { + this := LinkMetaDisplay{} + return &this +} + +// GetType returns the Type field value +func (o *LinkMetaDisplay) 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 *LinkMetaDisplay) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LinkMetaDisplay) SetType(v string) { + o.Type = v +} + +// GetExternal returns the External field value +func (o *LinkMetaDisplay) GetExternal() bool { + if o == nil { + var ret bool + return ret + } + + return o.External +} + +// GetExternalOk returns a tuple with the External field value +// and a boolean to check if the value has been set. +func (o *LinkMetaDisplay) GetExternalOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.External, true +} + +// SetExternal sets field value +func (o *LinkMetaDisplay) SetExternal(v bool) { + o.External = v +} + +func (o LinkMetaDisplay) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["external"] = o.External + } + return json.Marshal(toSerialize) +} + +type NullableLinkMetaDisplay struct { + value *LinkMetaDisplay + isSet bool +} + +func (v NullableLinkMetaDisplay) Get() *LinkMetaDisplay { + return v.value +} + +func (v *NullableLinkMetaDisplay) Set(val *LinkMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableLinkMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkMetaDisplay(val *LinkMetaDisplay) *NullableLinkMetaDisplay { + return &NullableLinkMetaDisplay{value: val, isSet: true} +} + +func (v NullableLinkMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_metric_cell.go b/generated/stackstate_api/model_metric_cell.go new file mode 100644 index 00000000..68dbc986 --- /dev/null +++ b/generated/stackstate_api/model_metric_cell.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" +) + +// MetricCell struct for MetricCell +type MetricCell struct { + Type string `json:"_type" yaml:"_type"` + // The frontend can use the individual query to refresh the metrics (at interval). Allows to keep the current behaviour of making individual calls for each row. + IndividualQuery string `json:"individualQuery" yaml:"individualQuery"` +} + +// NewMetricCell instantiates a new MetricCell 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 NewMetricCell(type_ string, individualQuery string) *MetricCell { + this := MetricCell{} + this.Type = type_ + this.IndividualQuery = individualQuery + return &this +} + +// NewMetricCellWithDefaults instantiates a new MetricCell 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 NewMetricCellWithDefaults() *MetricCell { + this := MetricCell{} + return &this +} + +// GetType returns the Type field value +func (o *MetricCell) 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 *MetricCell) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MetricCell) SetType(v string) { + o.Type = v +} + +// GetIndividualQuery returns the IndividualQuery field value +func (o *MetricCell) GetIndividualQuery() string { + if o == nil { + var ret string + return ret + } + + return o.IndividualQuery +} + +// GetIndividualQueryOk returns a tuple with the IndividualQuery field value +// and a boolean to check if the value has been set. +func (o *MetricCell) GetIndividualQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IndividualQuery, true +} + +// SetIndividualQuery sets field value +func (o *MetricCell) SetIndividualQuery(v string) { + o.IndividualQuery = v +} + +func (o MetricCell) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["individualQuery"] = o.IndividualQuery + } + return json.Marshal(toSerialize) +} + +type NullableMetricCell struct { + value *MetricCell + isSet bool +} + +func (v NullableMetricCell) Get() *MetricCell { + return v.value +} + +func (v *NullableMetricCell) Set(val *MetricCell) { + v.value = val + v.isSet = true +} + +func (v NullableMetricCell) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricCell) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricCell(val *MetricCell) *NullableMetricCell { + return &NullableMetricCell{value: val, isSet: true} +} + +func (v NullableMetricCell) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricCell) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_metric_chart_meta_display.go b/generated/stackstate_api/model_metric_chart_meta_display.go new file mode 100644 index 00000000..a5baa95c --- /dev/null +++ b/generated/stackstate_api/model_metric_chart_meta_display.go @@ -0,0 +1,277 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// MetricChartMetaDisplay struct for MetricChartMetaDisplay +type MetricChartMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` + Unit NullableString `json:"unit,omitempty" yaml:"unit,omitempty"` + DecimalPlaces NullableInt32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` + ShowChart NullableBool `json:"showChart,omitempty" yaml:"showChart,omitempty"` + Locked bool `json:"locked" yaml:"locked"` +} + +// NewMetricChartMetaDisplay instantiates a new MetricChartMetaDisplay object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetricChartMetaDisplay(type_ string, locked bool) *MetricChartMetaDisplay { + this := MetricChartMetaDisplay{} + this.Type = type_ + this.Locked = locked + return &this +} + +// NewMetricChartMetaDisplayWithDefaults instantiates a new MetricChartMetaDisplay object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetricChartMetaDisplayWithDefaults() *MetricChartMetaDisplay { + this := MetricChartMetaDisplay{} + return &this +} + +// GetType returns the Type field value +func (o *MetricChartMetaDisplay) 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 *MetricChartMetaDisplay) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MetricChartMetaDisplay) SetType(v string) { + o.Type = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetricChartMetaDisplay) GetUnit() string { + if o == nil || o.Unit.Get() == nil { + var ret string + return ret + } + return *o.Unit.Get() +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetricChartMetaDisplay) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Unit.Get(), o.Unit.IsSet() +} + +// HasUnit returns a boolean if a field has been set. +func (o *MetricChartMetaDisplay) HasUnit() bool { + if o != nil && o.Unit.IsSet() { + return true + } + + return false +} + +// SetUnit gets a reference to the given NullableString and assigns it to the Unit field. +func (o *MetricChartMetaDisplay) SetUnit(v string) { + o.Unit.Set(&v) +} + +// SetUnitNil sets the value for Unit to be an explicit nil +func (o *MetricChartMetaDisplay) SetUnitNil() { + o.Unit.Set(nil) +} + +// UnsetUnit ensures that no value is present for Unit, not even an explicit nil +func (o *MetricChartMetaDisplay) UnsetUnit() { + o.Unit.Unset() +} + +// GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetricChartMetaDisplay) GetDecimalPlaces() int32 { + if o == nil || o.DecimalPlaces.Get() == nil { + var ret int32 + return ret + } + return *o.DecimalPlaces.Get() +} + +// GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetricChartMetaDisplay) GetDecimalPlacesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.DecimalPlaces.Get(), o.DecimalPlaces.IsSet() +} + +// HasDecimalPlaces returns a boolean if a field has been set. +func (o *MetricChartMetaDisplay) HasDecimalPlaces() bool { + if o != nil && o.DecimalPlaces.IsSet() { + return true + } + + return false +} + +// SetDecimalPlaces gets a reference to the given NullableInt32 and assigns it to the DecimalPlaces field. +func (o *MetricChartMetaDisplay) SetDecimalPlaces(v int32) { + o.DecimalPlaces.Set(&v) +} + +// SetDecimalPlacesNil sets the value for DecimalPlaces to be an explicit nil +func (o *MetricChartMetaDisplay) SetDecimalPlacesNil() { + o.DecimalPlaces.Set(nil) +} + +// UnsetDecimalPlaces ensures that no value is present for DecimalPlaces, not even an explicit nil +func (o *MetricChartMetaDisplay) UnsetDecimalPlaces() { + o.DecimalPlaces.Unset() +} + +// GetShowChart returns the ShowChart field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MetricChartMetaDisplay) GetShowChart() bool { + if o == nil || o.ShowChart.Get() == nil { + var ret bool + return ret + } + return *o.ShowChart.Get() +} + +// GetShowChartOk returns a tuple with the ShowChart field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *MetricChartMetaDisplay) GetShowChartOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.ShowChart.Get(), o.ShowChart.IsSet() +} + +// HasShowChart returns a boolean if a field has been set. +func (o *MetricChartMetaDisplay) HasShowChart() bool { + if o != nil && o.ShowChart.IsSet() { + return true + } + + return false +} + +// SetShowChart gets a reference to the given NullableBool and assigns it to the ShowChart field. +func (o *MetricChartMetaDisplay) SetShowChart(v bool) { + o.ShowChart.Set(&v) +} + +// SetShowChartNil sets the value for ShowChart to be an explicit nil +func (o *MetricChartMetaDisplay) SetShowChartNil() { + o.ShowChart.Set(nil) +} + +// UnsetShowChart ensures that no value is present for ShowChart, not even an explicit nil +func (o *MetricChartMetaDisplay) UnsetShowChart() { + o.ShowChart.Unset() +} + +// GetLocked returns the Locked field value +func (o *MetricChartMetaDisplay) GetLocked() bool { + if o == nil { + var ret bool + return ret + } + + return o.Locked +} + +// GetLockedOk returns a tuple with the Locked field value +// and a boolean to check if the value has been set. +func (o *MetricChartMetaDisplay) GetLockedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Locked, true +} + +// SetLocked sets field value +func (o *MetricChartMetaDisplay) SetLocked(v bool) { + o.Locked = v +} + +func (o MetricChartMetaDisplay) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if o.Unit.IsSet() { + toSerialize["unit"] = o.Unit.Get() + } + if o.DecimalPlaces.IsSet() { + toSerialize["decimalPlaces"] = o.DecimalPlaces.Get() + } + if o.ShowChart.IsSet() { + toSerialize["showChart"] = o.ShowChart.Get() + } + if true { + toSerialize["locked"] = o.Locked + } + return json.Marshal(toSerialize) +} + +type NullableMetricChartMetaDisplay struct { + value *MetricChartMetaDisplay + isSet bool +} + +func (v NullableMetricChartMetaDisplay) Get() *MetricChartMetaDisplay { + return v.value +} + +func (v *NullableMetricChartMetaDisplay) Set(val *MetricChartMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableMetricChartMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricChartMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricChartMetaDisplay(val *MetricChartMetaDisplay) *NullableMetricChartMetaDisplay { + return &NullableMetricChartMetaDisplay{value: val, isSet: true} +} + +func (v NullableMetricChartMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricChartMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_metric_chart_projection.go b/generated/stackstate_api/model_metric_chart_projection.go new file mode 100644 index 00000000..adf3ca5c --- /dev/null +++ b/generated/stackstate_api/model_metric_chart_projection.go @@ -0,0 +1,245 @@ +/* +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" +) + +// MetricChartProjection struct for MetricChartProjection +type MetricChartProjection struct { + Type string `json:"_type" yaml:"_type"` + ShowChart *bool `json:"showChart,omitempty" yaml:"showChart,omitempty"` + DecimalPlaces *int32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` + Unit *string `json:"unit,omitempty" yaml:"unit,omitempty"` + // Individual metric query that returns a timeseries for a specific cell. + Query string `json:"query" yaml:"query"` +} + +// NewMetricChartProjection instantiates a new MetricChartProjection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMetricChartProjection(type_ string, query string) *MetricChartProjection { + this := MetricChartProjection{} + this.Type = type_ + this.Query = query + return &this +} + +// NewMetricChartProjectionWithDefaults instantiates a new MetricChartProjection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMetricChartProjectionWithDefaults() *MetricChartProjection { + this := MetricChartProjection{} + return &this +} + +// GetType returns the Type field value +func (o *MetricChartProjection) 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 *MetricChartProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MetricChartProjection) SetType(v string) { + o.Type = v +} + +// GetShowChart returns the ShowChart field value if set, zero value otherwise. +func (o *MetricChartProjection) GetShowChart() bool { + if o == nil || o.ShowChart == nil { + var ret bool + return ret + } + return *o.ShowChart +} + +// GetShowChartOk returns a tuple with the ShowChart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricChartProjection) GetShowChartOk() (*bool, bool) { + if o == nil || o.ShowChart == nil { + return nil, false + } + return o.ShowChart, true +} + +// HasShowChart returns a boolean if a field has been set. +func (o *MetricChartProjection) HasShowChart() bool { + if o != nil && o.ShowChart != nil { + return true + } + + return false +} + +// SetShowChart gets a reference to the given bool and assigns it to the ShowChart field. +func (o *MetricChartProjection) SetShowChart(v bool) { + o.ShowChart = &v +} + +// GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise. +func (o *MetricChartProjection) GetDecimalPlaces() int32 { + if o == nil || o.DecimalPlaces == nil { + var ret int32 + return ret + } + return *o.DecimalPlaces +} + +// GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MetricChartProjection) GetDecimalPlacesOk() (*int32, bool) { + if o == nil || o.DecimalPlaces == nil { + return nil, false + } + return o.DecimalPlaces, true +} + +// HasDecimalPlaces returns a boolean if a field has been set. +func (o *MetricChartProjection) HasDecimalPlaces() bool { + if o != nil && o.DecimalPlaces != nil { + return true + } + + return false +} + +// SetDecimalPlaces gets a reference to the given int32 and assigns it to the DecimalPlaces field. +func (o *MetricChartProjection) SetDecimalPlaces(v int32) { + o.DecimalPlaces = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *MetricChartProjection) 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 *MetricChartProjection) 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 *MetricChartProjection) 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 *MetricChartProjection) SetUnit(v string) { + o.Unit = &v +} + +// GetQuery returns the Query field value +func (o *MetricChartProjection) GetQuery() string { + if o == nil { + var ret string + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *MetricChartProjection) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *MetricChartProjection) SetQuery(v string) { + o.Query = v +} + +func (o MetricChartProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if o.ShowChart != nil { + toSerialize["showChart"] = o.ShowChart + } + if o.DecimalPlaces != nil { + toSerialize["decimalPlaces"] = o.DecimalPlaces + } + if o.Unit != nil { + toSerialize["unit"] = o.Unit + } + if true { + toSerialize["query"] = o.Query + } + return json.Marshal(toSerialize) +} + +type NullableMetricChartProjection struct { + value *MetricChartProjection + isSet bool +} + +func (v NullableMetricChartProjection) Get() *MetricChartProjection { + return v.value +} + +func (v *NullableMetricChartProjection) Set(val *MetricChartProjection) { + v.value = val + v.isSet = true +} + +func (v NullableMetricChartProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableMetricChartProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMetricChartProjection(val *MetricChartProjection) *NullableMetricChartProjection { + return &NullableMetricChartProjection{value: val, isSet: true} +} + +func (v NullableMetricChartProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMetricChartProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_numeric_cell.go b/generated/stackstate_api/model_numeric_cell.go new file mode 100644 index 00000000..564542a3 --- /dev/null +++ b/generated/stackstate_api/model_numeric_cell.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" +) + +// NumericCell struct for NumericCell +type NumericCell struct { + Type string `json:"_type" yaml:"_type"` + Value float32 `json:"value" yaml:"value"` +} + +// NewNumericCell instantiates a new NumericCell 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 NewNumericCell(type_ string, value float32) *NumericCell { + this := NumericCell{} + this.Type = type_ + this.Value = value + return &this +} + +// NewNumericCellWithDefaults instantiates a new NumericCell 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 NewNumericCellWithDefaults() *NumericCell { + this := NumericCell{} + return &this +} + +// GetType returns the Type field value +func (o *NumericCell) 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 *NumericCell) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NumericCell) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *NumericCell) GetValue() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *NumericCell) GetValueOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *NumericCell) SetValue(v float32) { + o.Value = v +} + +func (o NumericCell) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableNumericCell struct { + value *NumericCell + isSet bool +} + +func (v NullableNumericCell) Get() *NumericCell { + return v.value +} + +func (v *NullableNumericCell) Set(val *NumericCell) { + v.value = val + v.isSet = true +} + +func (v NullableNumericCell) IsSet() bool { + return v.isSet +} + +func (v *NullableNumericCell) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNumericCell(val *NumericCell) *NullableNumericCell { + return &NullableNumericCell{value: val, isSet: true} +} + +func (v NullableNumericCell) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNumericCell) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_numeric_meta_display.go b/generated/stackstate_api/model_numeric_meta_display.go new file mode 100644 index 00000000..297c9d91 --- /dev/null +++ b/generated/stackstate_api/model_numeric_meta_display.go @@ -0,0 +1,154 @@ +/* +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" +) + +// NumericMetaDisplay struct for NumericMetaDisplay +type NumericMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` + Unit NullableString `json:"unit,omitempty" yaml:"unit,omitempty"` +} + +// NewNumericMetaDisplay instantiates a new NumericMetaDisplay 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 NewNumericMetaDisplay(type_ string) *NumericMetaDisplay { + this := NumericMetaDisplay{} + this.Type = type_ + return &this +} + +// NewNumericMetaDisplayWithDefaults instantiates a new NumericMetaDisplay 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 NewNumericMetaDisplayWithDefaults() *NumericMetaDisplay { + this := NumericMetaDisplay{} + return &this +} + +// GetType returns the Type field value +func (o *NumericMetaDisplay) 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 *NumericMetaDisplay) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NumericMetaDisplay) SetType(v string) { + o.Type = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NumericMetaDisplay) GetUnit() string { + if o == nil || o.Unit.Get() == nil { + var ret string + return ret + } + return *o.Unit.Get() +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NumericMetaDisplay) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Unit.Get(), o.Unit.IsSet() +} + +// HasUnit returns a boolean if a field has been set. +func (o *NumericMetaDisplay) HasUnit() bool { + if o != nil && o.Unit.IsSet() { + return true + } + + return false +} + +// SetUnit gets a reference to the given NullableString and assigns it to the Unit field. +func (o *NumericMetaDisplay) SetUnit(v string) { + o.Unit.Set(&v) +} + +// SetUnitNil sets the value for Unit to be an explicit nil +func (o *NumericMetaDisplay) SetUnitNil() { + o.Unit.Set(nil) +} + +// UnsetUnit ensures that no value is present for Unit, not even an explicit nil +func (o *NumericMetaDisplay) UnsetUnit() { + o.Unit.Unset() +} + +func (o NumericMetaDisplay) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if o.Unit.IsSet() { + toSerialize["unit"] = o.Unit.Get() + } + return json.Marshal(toSerialize) +} + +type NullableNumericMetaDisplay struct { + value *NumericMetaDisplay + isSet bool +} + +func (v NullableNumericMetaDisplay) Get() *NumericMetaDisplay { + return v.value +} + +func (v *NullableNumericMetaDisplay) Set(val *NumericMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableNumericMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableNumericMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNumericMetaDisplay(val *NumericMetaDisplay) *NullableNumericMetaDisplay { + return &NullableNumericMetaDisplay{value: val, isSet: true} +} + +func (v NullableNumericMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNumericMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_numeric_projection.go b/generated/stackstate_api/model_numeric_projection.go new file mode 100644 index 00000000..2a7162a8 --- /dev/null +++ b/generated/stackstate_api/model_numeric_projection.go @@ -0,0 +1,220 @@ +/* +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" +) + +// NumericProjection struct for NumericProjection +type NumericProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a number + Value string `json:"value" yaml:"value"` + Unit NullableString `json:"unit,omitempty" yaml:"unit,omitempty"` + DecimalPlaces *int32 `json:"decimalPlaces,omitempty" yaml:"decimalPlaces,omitempty"` +} + +// NewNumericProjection instantiates a new NumericProjection 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 NewNumericProjection(type_ string, value string) *NumericProjection { + this := NumericProjection{} + this.Type = type_ + this.Value = value + return &this +} + +// NewNumericProjectionWithDefaults instantiates a new NumericProjection 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 NewNumericProjectionWithDefaults() *NumericProjection { + this := NumericProjection{} + return &this +} + +// GetType returns the Type field value +func (o *NumericProjection) 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 *NumericProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NumericProjection) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *NumericProjection) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *NumericProjection) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *NumericProjection) SetValue(v string) { + o.Value = v +} + +// GetUnit returns the Unit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NumericProjection) GetUnit() string { + if o == nil || o.Unit.Get() == nil { + var ret string + return ret + } + return *o.Unit.Get() +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NumericProjection) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Unit.Get(), o.Unit.IsSet() +} + +// HasUnit returns a boolean if a field has been set. +func (o *NumericProjection) HasUnit() bool { + if o != nil && o.Unit.IsSet() { + return true + } + + return false +} + +// SetUnit gets a reference to the given NullableString and assigns it to the Unit field. +func (o *NumericProjection) SetUnit(v string) { + o.Unit.Set(&v) +} + +// SetUnitNil sets the value for Unit to be an explicit nil +func (o *NumericProjection) SetUnitNil() { + o.Unit.Set(nil) +} + +// UnsetUnit ensures that no value is present for Unit, not even an explicit nil +func (o *NumericProjection) UnsetUnit() { + o.Unit.Unset() +} + +// GetDecimalPlaces returns the DecimalPlaces field value if set, zero value otherwise. +func (o *NumericProjection) GetDecimalPlaces() int32 { + if o == nil || o.DecimalPlaces == nil { + var ret int32 + return ret + } + return *o.DecimalPlaces +} + +// GetDecimalPlacesOk returns a tuple with the DecimalPlaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NumericProjection) GetDecimalPlacesOk() (*int32, bool) { + if o == nil || o.DecimalPlaces == nil { + return nil, false + } + return o.DecimalPlaces, true +} + +// HasDecimalPlaces returns a boolean if a field has been set. +func (o *NumericProjection) HasDecimalPlaces() bool { + if o != nil && o.DecimalPlaces != nil { + return true + } + + return false +} + +// SetDecimalPlaces gets a reference to the given int32 and assigns it to the DecimalPlaces field. +func (o *NumericProjection) SetDecimalPlaces(v int32) { + o.DecimalPlaces = &v +} + +func (o NumericProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + if o.Unit.IsSet() { + toSerialize["unit"] = o.Unit.Get() + } + if o.DecimalPlaces != nil { + toSerialize["decimalPlaces"] = o.DecimalPlaces + } + return json.Marshal(toSerialize) +} + +type NullableNumericProjection struct { + value *NumericProjection + isSet bool +} + +func (v NullableNumericProjection) Get() *NumericProjection { + return v.value +} + +func (v *NullableNumericProjection) Set(val *NumericProjection) { + v.value = val + v.isSet = true +} + +func (v NullableNumericProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableNumericProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNumericProjection(val *NumericProjection) *NullableNumericProjection { + return &NullableNumericProjection{value: val, isSet: true} +} + +func (v NullableNumericProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNumericProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_column_definition.go b/generated/stackstate_api/model_overview_column_definition.go new file mode 100644 index 00000000..eeea3178 --- /dev/null +++ b/generated/stackstate_api/model_overview_column_definition.go @@ -0,0 +1,179 @@ +/* +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" +) + +// OverviewColumnDefinition Definition of a column in the overview presentation. The `columnId` field is used to identify the column and merge columns from different presentations. If only the `columnId` is provided, the column will be rendered from the next more specific presentation definition. +type OverviewColumnDefinition struct { + ColumnId string `json:"columnId" yaml:"columnId"` + Title *string `json:"title,omitempty" yaml:"title,omitempty"` + Projection *OverviewColumnProjection `json:"projection,omitempty" yaml:"projection,omitempty"` +} + +// NewOverviewColumnDefinition instantiates a new OverviewColumnDefinition 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 NewOverviewColumnDefinition(columnId string) *OverviewColumnDefinition { + this := OverviewColumnDefinition{} + this.ColumnId = columnId + return &this +} + +// NewOverviewColumnDefinitionWithDefaults instantiates a new OverviewColumnDefinition 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 NewOverviewColumnDefinitionWithDefaults() *OverviewColumnDefinition { + this := OverviewColumnDefinition{} + return &this +} + +// GetColumnId returns the ColumnId field value +func (o *OverviewColumnDefinition) 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 *OverviewColumnDefinition) GetColumnIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ColumnId, true +} + +// SetColumnId sets field value +func (o *OverviewColumnDefinition) SetColumnId(v string) { + o.ColumnId = v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *OverviewColumnDefinition) GetTitle() string { + if o == nil || o.Title == nil { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewColumnDefinition) GetTitleOk() (*string, bool) { + if o == nil || o.Title == nil { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *OverviewColumnDefinition) HasTitle() bool { + if o != nil && o.Title != nil { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *OverviewColumnDefinition) SetTitle(v string) { + o.Title = &v +} + +// GetProjection returns the Projection field value if set, zero value otherwise. +func (o *OverviewColumnDefinition) GetProjection() OverviewColumnProjection { + if o == nil || o.Projection == nil { + var ret OverviewColumnProjection + return ret + } + return *o.Projection +} + +// GetProjectionOk returns a tuple with the Projection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewColumnDefinition) GetProjectionOk() (*OverviewColumnProjection, bool) { + if o == nil || o.Projection == nil { + return nil, false + } + return o.Projection, true +} + +// HasProjection returns a boolean if a field has been set. +func (o *OverviewColumnDefinition) HasProjection() bool { + if o != nil && o.Projection != nil { + return true + } + + return false +} + +// SetProjection gets a reference to the given OverviewColumnProjection and assigns it to the Projection field. +func (o *OverviewColumnDefinition) SetProjection(v OverviewColumnProjection) { + o.Projection = &v +} + +func (o OverviewColumnDefinition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["columnId"] = o.ColumnId + } + if o.Title != nil { + toSerialize["title"] = o.Title + } + if o.Projection != nil { + toSerialize["projection"] = o.Projection + } + return json.Marshal(toSerialize) +} + +type NullableOverviewColumnDefinition struct { + value *OverviewColumnDefinition + isSet bool +} + +func (v NullableOverviewColumnDefinition) Get() *OverviewColumnDefinition { + return v.value +} + +func (v *NullableOverviewColumnDefinition) Set(val *OverviewColumnDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewColumnDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewColumnDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewColumnDefinition(val *OverviewColumnDefinition) *NullableOverviewColumnDefinition { + return &NullableOverviewColumnDefinition{value: val, isSet: true} +} + +func (v NullableOverviewColumnDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewColumnDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_column_filter.go b/generated/stackstate_api/model_overview_column_filter.go new file mode 100644 index 00000000..e1fb92c4 --- /dev/null +++ b/generated/stackstate_api/model_overview_column_filter.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" +) + +// OverviewColumnFilter struct for OverviewColumnFilter +type OverviewColumnFilter struct { + ColumnId string `json:"columnId" yaml:"columnId"` + Search string `json:"search" yaml:"search"` +} + +// NewOverviewColumnFilter instantiates a new OverviewColumnFilter 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 NewOverviewColumnFilter(columnId string, search string) *OverviewColumnFilter { + this := OverviewColumnFilter{} + this.ColumnId = columnId + this.Search = search + return &this +} + +// NewOverviewColumnFilterWithDefaults instantiates a new OverviewColumnFilter 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 NewOverviewColumnFilterWithDefaults() *OverviewColumnFilter { + this := OverviewColumnFilter{} + return &this +} + +// GetColumnId returns the ColumnId field value +func (o *OverviewColumnFilter) 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 *OverviewColumnFilter) GetColumnIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ColumnId, true +} + +// SetColumnId sets field value +func (o *OverviewColumnFilter) SetColumnId(v string) { + o.ColumnId = v +} + +// GetSearch returns the Search field value +func (o *OverviewColumnFilter) GetSearch() string { + if o == nil { + var ret string + return ret + } + + return o.Search +} + +// GetSearchOk returns a tuple with the Search field value +// and a boolean to check if the value has been set. +func (o *OverviewColumnFilter) GetSearchOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Search, true +} + +// SetSearch sets field value +func (o *OverviewColumnFilter) SetSearch(v string) { + o.Search = v +} + +func (o OverviewColumnFilter) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["columnId"] = o.ColumnId + } + if true { + toSerialize["search"] = o.Search + } + return json.Marshal(toSerialize) +} + +type NullableOverviewColumnFilter struct { + value *OverviewColumnFilter + isSet bool +} + +func (v NullableOverviewColumnFilter) Get() *OverviewColumnFilter { + return v.value +} + +func (v *NullableOverviewColumnFilter) Set(val *OverviewColumnFilter) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewColumnFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewColumnFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewColumnFilter(val *OverviewColumnFilter) *NullableOverviewColumnFilter { + return &NullableOverviewColumnFilter{value: val, isSet: true} +} + +func (v NullableOverviewColumnFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewColumnFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_column_meta.go b/generated/stackstate_api/model_overview_column_meta.go new file mode 100644 index 00000000..1c58b705 --- /dev/null +++ b/generated/stackstate_api/model_overview_column_meta.go @@ -0,0 +1,252 @@ +/* +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" +) + +// OverviewColumnMeta struct for OverviewColumnMeta +type OverviewColumnMeta struct { + ColumnId string `json:"columnId" yaml:"columnId"` + Title string `json:"title" yaml:"title"` + Display OverviewColumnMetaDisplay `json:"display" yaml:"display"` + Sortable bool `json:"sortable" yaml:"sortable"` + Searchable bool `json:"searchable" yaml:"searchable"` + Order int32 `json:"order" yaml:"order"` +} + +// NewOverviewColumnMeta instantiates a new OverviewColumnMeta 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 NewOverviewColumnMeta(columnId string, title string, display OverviewColumnMetaDisplay, sortable bool, searchable bool, order int32) *OverviewColumnMeta { + this := OverviewColumnMeta{} + this.ColumnId = columnId + this.Title = title + this.Display = display + this.Sortable = sortable + this.Searchable = searchable + this.Order = order + return &this +} + +// NewOverviewColumnMetaWithDefaults instantiates a new OverviewColumnMeta 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 NewOverviewColumnMetaWithDefaults() *OverviewColumnMeta { + this := OverviewColumnMeta{} + return &this +} + +// GetColumnId returns the ColumnId field value +func (o *OverviewColumnMeta) 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 *OverviewColumnMeta) GetColumnIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ColumnId, true +} + +// SetColumnId sets field value +func (o *OverviewColumnMeta) SetColumnId(v string) { + o.ColumnId = v +} + +// GetTitle returns the Title field value +func (o *OverviewColumnMeta) 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 *OverviewColumnMeta) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *OverviewColumnMeta) SetTitle(v string) { + o.Title = v +} + +// GetDisplay returns the Display field value +func (o *OverviewColumnMeta) GetDisplay() OverviewColumnMetaDisplay { + if o == nil { + var ret OverviewColumnMetaDisplay + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *OverviewColumnMeta) GetDisplayOk() (*OverviewColumnMetaDisplay, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *OverviewColumnMeta) SetDisplay(v OverviewColumnMetaDisplay) { + o.Display = v +} + +// GetSortable returns the Sortable field value +func (o *OverviewColumnMeta) GetSortable() bool { + if o == nil { + var ret bool + return ret + } + + return o.Sortable +} + +// GetSortableOk returns a tuple with the Sortable field value +// and a boolean to check if the value has been set. +func (o *OverviewColumnMeta) GetSortableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Sortable, true +} + +// SetSortable sets field value +func (o *OverviewColumnMeta) SetSortable(v bool) { + o.Sortable = v +} + +// GetSearchable returns the Searchable field value +func (o *OverviewColumnMeta) GetSearchable() bool { + if o == nil { + var ret bool + return ret + } + + return o.Searchable +} + +// GetSearchableOk returns a tuple with the Searchable field value +// and a boolean to check if the value has been set. +func (o *OverviewColumnMeta) GetSearchableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Searchable, true +} + +// SetSearchable sets field value +func (o *OverviewColumnMeta) SetSearchable(v bool) { + o.Searchable = v +} + +// GetOrder returns the Order field value +func (o *OverviewColumnMeta) GetOrder() int32 { + if o == nil { + var ret int32 + 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 *OverviewColumnMeta) GetOrderOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Order, true +} + +// SetOrder sets field value +func (o *OverviewColumnMeta) SetOrder(v int32) { + o.Order = v +} + +func (o OverviewColumnMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["columnId"] = o.ColumnId + } + if true { + toSerialize["title"] = o.Title + } + if true { + toSerialize["display"] = o.Display + } + if true { + toSerialize["sortable"] = o.Sortable + } + if true { + toSerialize["searchable"] = o.Searchable + } + if true { + toSerialize["order"] = o.Order + } + return json.Marshal(toSerialize) +} + +type NullableOverviewColumnMeta struct { + value *OverviewColumnMeta + isSet bool +} + +func (v NullableOverviewColumnMeta) Get() *OverviewColumnMeta { + return v.value +} + +func (v *NullableOverviewColumnMeta) Set(val *OverviewColumnMeta) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewColumnMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewColumnMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewColumnMeta(val *OverviewColumnMeta) *NullableOverviewColumnMeta { + return &NullableOverviewColumnMeta{value: val, isSet: true} +} + +func (v NullableOverviewColumnMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewColumnMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_column_meta_display.go b/generated/stackstate_api/model_overview_column_meta_display.go new file mode 100644 index 00000000..0ab16e19 --- /dev/null +++ b/generated/stackstate_api/model_overview_column_meta_display.go @@ -0,0 +1,308 @@ +/* +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" +) + +// OverviewColumnMetaDisplay - struct for OverviewColumnMetaDisplay +type OverviewColumnMetaDisplay struct { + ComponentLinkMetaDisplay *ComponentLinkMetaDisplay + DurationMetaDisplay *DurationMetaDisplay + HealthMetaDisplay *HealthMetaDisplay + LinkMetaDisplay *LinkMetaDisplay + MetricChartMetaDisplay *MetricChartMetaDisplay + NumericMetaDisplay *NumericMetaDisplay + ReadyStatusMetaDisplay *ReadyStatusMetaDisplay + TextMetaDisplay *TextMetaDisplay +} + +// ComponentLinkMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns ComponentLinkMetaDisplay wrapped in OverviewColumnMetaDisplay +func ComponentLinkMetaDisplayAsOverviewColumnMetaDisplay(v *ComponentLinkMetaDisplay) OverviewColumnMetaDisplay { + return OverviewColumnMetaDisplay{ + ComponentLinkMetaDisplay: v, + } +} + +// DurationMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns DurationMetaDisplay wrapped in OverviewColumnMetaDisplay +func DurationMetaDisplayAsOverviewColumnMetaDisplay(v *DurationMetaDisplay) OverviewColumnMetaDisplay { + return OverviewColumnMetaDisplay{ + DurationMetaDisplay: v, + } +} + +// HealthMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns HealthMetaDisplay wrapped in OverviewColumnMetaDisplay +func HealthMetaDisplayAsOverviewColumnMetaDisplay(v *HealthMetaDisplay) OverviewColumnMetaDisplay { + return OverviewColumnMetaDisplay{ + HealthMetaDisplay: v, + } +} + +// LinkMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns LinkMetaDisplay wrapped in OverviewColumnMetaDisplay +func LinkMetaDisplayAsOverviewColumnMetaDisplay(v *LinkMetaDisplay) OverviewColumnMetaDisplay { + return OverviewColumnMetaDisplay{ + LinkMetaDisplay: v, + } +} + +// MetricChartMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns MetricChartMetaDisplay wrapped in OverviewColumnMetaDisplay +func MetricChartMetaDisplayAsOverviewColumnMetaDisplay(v *MetricChartMetaDisplay) OverviewColumnMetaDisplay { + return OverviewColumnMetaDisplay{ + MetricChartMetaDisplay: v, + } +} + +// NumericMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns NumericMetaDisplay wrapped in OverviewColumnMetaDisplay +func NumericMetaDisplayAsOverviewColumnMetaDisplay(v *NumericMetaDisplay) OverviewColumnMetaDisplay { + return OverviewColumnMetaDisplay{ + NumericMetaDisplay: v, + } +} + +// ReadyStatusMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns ReadyStatusMetaDisplay wrapped in OverviewColumnMetaDisplay +func ReadyStatusMetaDisplayAsOverviewColumnMetaDisplay(v *ReadyStatusMetaDisplay) OverviewColumnMetaDisplay { + return OverviewColumnMetaDisplay{ + ReadyStatusMetaDisplay: v, + } +} + +// TextMetaDisplayAsOverviewColumnMetaDisplay is a convenience function that returns TextMetaDisplay wrapped in OverviewColumnMetaDisplay +func TextMetaDisplayAsOverviewColumnMetaDisplay(v *TextMetaDisplay) OverviewColumnMetaDisplay { + return OverviewColumnMetaDisplay{ + TextMetaDisplay: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *OverviewColumnMetaDisplay) 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 'ComponentLinkMetaDisplay' + if jsonDict["_type"] == "ComponentLinkMetaDisplay" { + // try to unmarshal JSON data into ComponentLinkMetaDisplay + err = json.Unmarshal(data, &dst.ComponentLinkMetaDisplay) + if err == nil { + return nil // data stored in dst.ComponentLinkMetaDisplay, return on the first match + } else { + dst.ComponentLinkMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as ComponentLinkMetaDisplay: %s", err.Error()) + } + } + + // check if the discriminator value is 'DurationMetaDisplay' + if jsonDict["_type"] == "DurationMetaDisplay" { + // try to unmarshal JSON data into DurationMetaDisplay + err = json.Unmarshal(data, &dst.DurationMetaDisplay) + if err == nil { + return nil // data stored in dst.DurationMetaDisplay, return on the first match + } else { + dst.DurationMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as DurationMetaDisplay: %s", err.Error()) + } + } + + // check if the discriminator value is 'HealthMetaDisplay' + if jsonDict["_type"] == "HealthMetaDisplay" { + // try to unmarshal JSON data into HealthMetaDisplay + err = json.Unmarshal(data, &dst.HealthMetaDisplay) + if err == nil { + return nil // data stored in dst.HealthMetaDisplay, return on the first match + } else { + dst.HealthMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as HealthMetaDisplay: %s", err.Error()) + } + } + + // check if the discriminator value is 'LinkMetaDisplay' + if jsonDict["_type"] == "LinkMetaDisplay" { + // try to unmarshal JSON data into LinkMetaDisplay + err = json.Unmarshal(data, &dst.LinkMetaDisplay) + if err == nil { + return nil // data stored in dst.LinkMetaDisplay, return on the first match + } else { + dst.LinkMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as LinkMetaDisplay: %s", err.Error()) + } + } + + // check if the discriminator value is 'MetricChartMetaDisplay' + if jsonDict["_type"] == "MetricChartMetaDisplay" { + // try to unmarshal JSON data into MetricChartMetaDisplay + err = json.Unmarshal(data, &dst.MetricChartMetaDisplay) + if err == nil { + return nil // data stored in dst.MetricChartMetaDisplay, return on the first match + } else { + dst.MetricChartMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as MetricChartMetaDisplay: %s", err.Error()) + } + } + + // check if the discriminator value is 'NumericMetaDisplay' + if jsonDict["_type"] == "NumericMetaDisplay" { + // try to unmarshal JSON data into NumericMetaDisplay + err = json.Unmarshal(data, &dst.NumericMetaDisplay) + if err == nil { + return nil // data stored in dst.NumericMetaDisplay, return on the first match + } else { + dst.NumericMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as NumericMetaDisplay: %s", err.Error()) + } + } + + // check if the discriminator value is 'ReadyStatusMetaDisplay' + if jsonDict["_type"] == "ReadyStatusMetaDisplay" { + // try to unmarshal JSON data into ReadyStatusMetaDisplay + err = json.Unmarshal(data, &dst.ReadyStatusMetaDisplay) + if err == nil { + return nil // data stored in dst.ReadyStatusMetaDisplay, return on the first match + } else { + dst.ReadyStatusMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as ReadyStatusMetaDisplay: %s", err.Error()) + } + } + + // check if the discriminator value is 'TextMetaDisplay' + if jsonDict["_type"] == "TextMetaDisplay" { + // try to unmarshal JSON data into TextMetaDisplay + err = json.Unmarshal(data, &dst.TextMetaDisplay) + if err == nil { + return nil // data stored in dst.TextMetaDisplay, return on the first match + } else { + dst.TextMetaDisplay = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnMetaDisplay as TextMetaDisplay: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src OverviewColumnMetaDisplay) MarshalJSON() ([]byte, error) { + if src.ComponentLinkMetaDisplay != nil { + return json.Marshal(&src.ComponentLinkMetaDisplay) + } + + if src.DurationMetaDisplay != nil { + return json.Marshal(&src.DurationMetaDisplay) + } + + if src.HealthMetaDisplay != nil { + return json.Marshal(&src.HealthMetaDisplay) + } + + if src.LinkMetaDisplay != nil { + return json.Marshal(&src.LinkMetaDisplay) + } + + if src.MetricChartMetaDisplay != nil { + return json.Marshal(&src.MetricChartMetaDisplay) + } + + if src.NumericMetaDisplay != nil { + return json.Marshal(&src.NumericMetaDisplay) + } + + if src.ReadyStatusMetaDisplay != nil { + return json.Marshal(&src.ReadyStatusMetaDisplay) + } + + if src.TextMetaDisplay != nil { + return json.Marshal(&src.TextMetaDisplay) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *OverviewColumnMetaDisplay) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ComponentLinkMetaDisplay != nil { + return obj.ComponentLinkMetaDisplay + } + + if obj.DurationMetaDisplay != nil { + return obj.DurationMetaDisplay + } + + if obj.HealthMetaDisplay != nil { + return obj.HealthMetaDisplay + } + + if obj.LinkMetaDisplay != nil { + return obj.LinkMetaDisplay + } + + if obj.MetricChartMetaDisplay != nil { + return obj.MetricChartMetaDisplay + } + + if obj.NumericMetaDisplay != nil { + return obj.NumericMetaDisplay + } + + if obj.ReadyStatusMetaDisplay != nil { + return obj.ReadyStatusMetaDisplay + } + + if obj.TextMetaDisplay != nil { + return obj.TextMetaDisplay + } + + // all schemas are nil + return nil +} + +type NullableOverviewColumnMetaDisplay struct { + value *OverviewColumnMetaDisplay + isSet bool +} + +func (v NullableOverviewColumnMetaDisplay) Get() *OverviewColumnMetaDisplay { + return v.value +} + +func (v *NullableOverviewColumnMetaDisplay) Set(val *OverviewColumnMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewColumnMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewColumnMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewColumnMetaDisplay(val *OverviewColumnMetaDisplay) *NullableOverviewColumnMetaDisplay { + return &NullableOverviewColumnMetaDisplay{value: val, isSet: true} +} + +func (v NullableOverviewColumnMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewColumnMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_column_projection.go b/generated/stackstate_api/model_overview_column_projection.go new file mode 100644 index 00000000..ec8bc019 --- /dev/null +++ b/generated/stackstate_api/model_overview_column_projection.go @@ -0,0 +1,308 @@ +/* +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" +) + +// OverviewColumnProjection - Display type and value for the column. +type OverviewColumnProjection struct { + ComponentLinkProjection *ComponentLinkProjection + ContainerImageProjection *ContainerImageProjection + DurationProjection *DurationProjection + HealthProjection *HealthProjection + MetricChartProjection *MetricChartProjection + NumericProjection *NumericProjection + ReadyStatusProjection *ReadyStatusProjection + TextProjection *TextProjection +} + +// ComponentLinkProjectionAsOverviewColumnProjection is a convenience function that returns ComponentLinkProjection wrapped in OverviewColumnProjection +func ComponentLinkProjectionAsOverviewColumnProjection(v *ComponentLinkProjection) OverviewColumnProjection { + return OverviewColumnProjection{ + ComponentLinkProjection: v, + } +} + +// ContainerImageProjectionAsOverviewColumnProjection is a convenience function that returns ContainerImageProjection wrapped in OverviewColumnProjection +func ContainerImageProjectionAsOverviewColumnProjection(v *ContainerImageProjection) OverviewColumnProjection { + return OverviewColumnProjection{ + ContainerImageProjection: v, + } +} + +// DurationProjectionAsOverviewColumnProjection is a convenience function that returns DurationProjection wrapped in OverviewColumnProjection +func DurationProjectionAsOverviewColumnProjection(v *DurationProjection) OverviewColumnProjection { + return OverviewColumnProjection{ + DurationProjection: v, + } +} + +// HealthProjectionAsOverviewColumnProjection is a convenience function that returns HealthProjection wrapped in OverviewColumnProjection +func HealthProjectionAsOverviewColumnProjection(v *HealthProjection) OverviewColumnProjection { + return OverviewColumnProjection{ + HealthProjection: v, + } +} + +// MetricChartProjectionAsOverviewColumnProjection is a convenience function that returns MetricChartProjection wrapped in OverviewColumnProjection +func MetricChartProjectionAsOverviewColumnProjection(v *MetricChartProjection) OverviewColumnProjection { + return OverviewColumnProjection{ + MetricChartProjection: v, + } +} + +// NumericProjectionAsOverviewColumnProjection is a convenience function that returns NumericProjection wrapped in OverviewColumnProjection +func NumericProjectionAsOverviewColumnProjection(v *NumericProjection) OverviewColumnProjection { + return OverviewColumnProjection{ + NumericProjection: v, + } +} + +// ReadyStatusProjectionAsOverviewColumnProjection is a convenience function that returns ReadyStatusProjection wrapped in OverviewColumnProjection +func ReadyStatusProjectionAsOverviewColumnProjection(v *ReadyStatusProjection) OverviewColumnProjection { + return OverviewColumnProjection{ + ReadyStatusProjection: v, + } +} + +// TextProjectionAsOverviewColumnProjection is a convenience function that returns TextProjection wrapped in OverviewColumnProjection +func TextProjectionAsOverviewColumnProjection(v *TextProjection) OverviewColumnProjection { + return OverviewColumnProjection{ + TextProjection: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *OverviewColumnProjection) UnmarshalJSON(data []byte) error { + var err error + // use discriminator value to speed up the lookup + var jsonDict map[string]interface{} + err = newStrictDecoder(data).Decode(&jsonDict) + if err != nil { + return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") + } + + // check if the discriminator value is 'ComponentLinkProjection' + if jsonDict["_type"] == "ComponentLinkProjection" { + // try to unmarshal JSON data into ComponentLinkProjection + err = json.Unmarshal(data, &dst.ComponentLinkProjection) + if err == nil { + return nil // data stored in dst.ComponentLinkProjection, return on the first match + } else { + dst.ComponentLinkProjection = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as ComponentLinkProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'ContainerImageProjection' + if jsonDict["_type"] == "ContainerImageProjection" { + // try to unmarshal JSON data into ContainerImageProjection + err = json.Unmarshal(data, &dst.ContainerImageProjection) + if err == nil { + return nil // data stored in dst.ContainerImageProjection, return on the first match + } else { + dst.ContainerImageProjection = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as ContainerImageProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'DurationProjection' + if jsonDict["_type"] == "DurationProjection" { + // try to unmarshal JSON data into DurationProjection + err = json.Unmarshal(data, &dst.DurationProjection) + if err == nil { + return nil // data stored in dst.DurationProjection, return on the first match + } else { + dst.DurationProjection = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as DurationProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'HealthProjection' + if jsonDict["_type"] == "HealthProjection" { + // try to unmarshal JSON data into HealthProjection + err = json.Unmarshal(data, &dst.HealthProjection) + if err == nil { + return nil // data stored in dst.HealthProjection, return on the first match + } else { + dst.HealthProjection = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as HealthProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'MetricChartProjection' + if jsonDict["_type"] == "MetricChartProjection" { + // try to unmarshal JSON data into MetricChartProjection + err = json.Unmarshal(data, &dst.MetricChartProjection) + if err == nil { + return nil // data stored in dst.MetricChartProjection, return on the first match + } else { + dst.MetricChartProjection = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as MetricChartProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'NumericProjection' + if jsonDict["_type"] == "NumericProjection" { + // try to unmarshal JSON data into NumericProjection + err = json.Unmarshal(data, &dst.NumericProjection) + if err == nil { + return nil // data stored in dst.NumericProjection, return on the first match + } else { + dst.NumericProjection = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as NumericProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'ReadyStatusProjection' + if jsonDict["_type"] == "ReadyStatusProjection" { + // try to unmarshal JSON data into ReadyStatusProjection + err = json.Unmarshal(data, &dst.ReadyStatusProjection) + if err == nil { + return nil // data stored in dst.ReadyStatusProjection, return on the first match + } else { + dst.ReadyStatusProjection = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as ReadyStatusProjection: %s", err.Error()) + } + } + + // check if the discriminator value is 'TextProjection' + if jsonDict["_type"] == "TextProjection" { + // try to unmarshal JSON data into TextProjection + err = json.Unmarshal(data, &dst.TextProjection) + if err == nil { + return nil // data stored in dst.TextProjection, return on the first match + } else { + dst.TextProjection = nil + return fmt.Errorf("Failed to unmarshal OverviewColumnProjection as TextProjection: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src OverviewColumnProjection) MarshalJSON() ([]byte, error) { + if src.ComponentLinkProjection != nil { + return json.Marshal(&src.ComponentLinkProjection) + } + + if src.ContainerImageProjection != nil { + return json.Marshal(&src.ContainerImageProjection) + } + + if src.DurationProjection != nil { + return json.Marshal(&src.DurationProjection) + } + + if src.HealthProjection != nil { + return json.Marshal(&src.HealthProjection) + } + + if src.MetricChartProjection != nil { + return json.Marshal(&src.MetricChartProjection) + } + + if src.NumericProjection != nil { + return json.Marshal(&src.NumericProjection) + } + + if src.ReadyStatusProjection != nil { + return json.Marshal(&src.ReadyStatusProjection) + } + + if src.TextProjection != nil { + return json.Marshal(&src.TextProjection) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *OverviewColumnProjection) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.ComponentLinkProjection != nil { + return obj.ComponentLinkProjection + } + + if obj.ContainerImageProjection != nil { + return obj.ContainerImageProjection + } + + if obj.DurationProjection != nil { + return obj.DurationProjection + } + + if obj.HealthProjection != nil { + return obj.HealthProjection + } + + if obj.MetricChartProjection != nil { + return obj.MetricChartProjection + } + + if obj.NumericProjection != nil { + return obj.NumericProjection + } + + if obj.ReadyStatusProjection != nil { + return obj.ReadyStatusProjection + } + + if obj.TextProjection != nil { + return obj.TextProjection + } + + // all schemas are nil + return nil +} + +type NullableOverviewColumnProjection struct { + value *OverviewColumnProjection + isSet bool +} + +func (v NullableOverviewColumnProjection) Get() *OverviewColumnProjection { + return v.value +} + +func (v *NullableOverviewColumnProjection) Set(val *OverviewColumnProjection) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewColumnProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewColumnProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewColumnProjection(val *OverviewColumnProjection) *NullableOverviewColumnProjection { + return &NullableOverviewColumnProjection{value: val, isSet: true} +} + +func (v NullableOverviewColumnProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewColumnProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_data_unavailable.go b/generated/stackstate_api/model_overview_data_unavailable.go new file mode 100644 index 00000000..c20cc593 --- /dev/null +++ b/generated/stackstate_api/model_overview_data_unavailable.go @@ -0,0 +1,167 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// OverviewDataUnavailable struct for OverviewDataUnavailable +type OverviewDataUnavailable struct { + Type string `json:"_type" yaml:"_type"` + // Time when data became unavailable (epoch ms). + UnavailableAtEpochMs int64 `json:"unavailableAtEpochMs" yaml:"unavailableAtEpochMs"` + // Time when data became available again (epoch ms). + AvailableSinceEpochMs int64 `json:"availableSinceEpochMs" yaml:"availableSinceEpochMs"` +} + +// NewOverviewDataUnavailable instantiates a new OverviewDataUnavailable 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 NewOverviewDataUnavailable(type_ string, unavailableAtEpochMs int64, availableSinceEpochMs int64) *OverviewDataUnavailable { + this := OverviewDataUnavailable{} + this.Type = type_ + this.UnavailableAtEpochMs = unavailableAtEpochMs + this.AvailableSinceEpochMs = availableSinceEpochMs + return &this +} + +// NewOverviewDataUnavailableWithDefaults instantiates a new OverviewDataUnavailable 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 NewOverviewDataUnavailableWithDefaults() *OverviewDataUnavailable { + this := OverviewDataUnavailable{} + return &this +} + +// GetType returns the Type field value +func (o *OverviewDataUnavailable) 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 *OverviewDataUnavailable) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OverviewDataUnavailable) SetType(v string) { + o.Type = v +} + +// GetUnavailableAtEpochMs returns the UnavailableAtEpochMs field value +func (o *OverviewDataUnavailable) GetUnavailableAtEpochMs() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.UnavailableAtEpochMs +} + +// GetUnavailableAtEpochMsOk returns a tuple with the UnavailableAtEpochMs field value +// and a boolean to check if the value has been set. +func (o *OverviewDataUnavailable) GetUnavailableAtEpochMsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.UnavailableAtEpochMs, true +} + +// SetUnavailableAtEpochMs sets field value +func (o *OverviewDataUnavailable) SetUnavailableAtEpochMs(v int64) { + o.UnavailableAtEpochMs = v +} + +// GetAvailableSinceEpochMs returns the AvailableSinceEpochMs field value +func (o *OverviewDataUnavailable) GetAvailableSinceEpochMs() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AvailableSinceEpochMs +} + +// GetAvailableSinceEpochMsOk returns a tuple with the AvailableSinceEpochMs field value +// and a boolean to check if the value has been set. +func (o *OverviewDataUnavailable) GetAvailableSinceEpochMsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AvailableSinceEpochMs, true +} + +// SetAvailableSinceEpochMs sets field value +func (o *OverviewDataUnavailable) SetAvailableSinceEpochMs(v int64) { + o.AvailableSinceEpochMs = v +} + +func (o OverviewDataUnavailable) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["unavailableAtEpochMs"] = o.UnavailableAtEpochMs + } + if true { + toSerialize["availableSinceEpochMs"] = o.AvailableSinceEpochMs + } + return json.Marshal(toSerialize) +} + +type NullableOverviewDataUnavailable struct { + value *OverviewDataUnavailable + isSet bool +} + +func (v NullableOverviewDataUnavailable) Get() *OverviewDataUnavailable { + return v.value +} + +func (v *NullableOverviewDataUnavailable) Set(val *OverviewDataUnavailable) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewDataUnavailable) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewDataUnavailable) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewDataUnavailable(val *OverviewDataUnavailable) *NullableOverviewDataUnavailable { + return &NullableOverviewDataUnavailable{value: val, isSet: true} +} + +func (v NullableOverviewDataUnavailable) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewDataUnavailable) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_error_response.go b/generated/stackstate_api/model_overview_error_response.go new file mode 100644 index 00000000..d3c6b288 --- /dev/null +++ b/generated/stackstate_api/model_overview_error_response.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" +) + +// OverviewErrorResponse struct for OverviewErrorResponse +type OverviewErrorResponse struct { + Type string `json:"_type" yaml:"_type"` + // Error message describing why the overview request failed. + ErrorMessage string `json:"errorMessage" yaml:"errorMessage"` +} + +// NewOverviewErrorResponse instantiates a new OverviewErrorResponse 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 NewOverviewErrorResponse(type_ string, errorMessage string) *OverviewErrorResponse { + this := OverviewErrorResponse{} + this.Type = type_ + this.ErrorMessage = errorMessage + return &this +} + +// NewOverviewErrorResponseWithDefaults instantiates a new OverviewErrorResponse 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 NewOverviewErrorResponseWithDefaults() *OverviewErrorResponse { + this := OverviewErrorResponse{} + return &this +} + +// GetType returns the Type field value +func (o *OverviewErrorResponse) 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 *OverviewErrorResponse) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OverviewErrorResponse) SetType(v string) { + o.Type = v +} + +// GetErrorMessage returns the ErrorMessage field value +func (o *OverviewErrorResponse) GetErrorMessage() string { + if o == nil { + var ret string + return ret + } + + return o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value +// and a boolean to check if the value has been set. +func (o *OverviewErrorResponse) GetErrorMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ErrorMessage, true +} + +// SetErrorMessage sets field value +func (o *OverviewErrorResponse) SetErrorMessage(v string) { + o.ErrorMessage = v +} + +func (o OverviewErrorResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["errorMessage"] = o.ErrorMessage + } + return json.Marshal(toSerialize) +} + +type NullableOverviewErrorResponse struct { + value *OverviewErrorResponse + isSet bool +} + +func (v NullableOverviewErrorResponse) Get() *OverviewErrorResponse { + return v.value +} + +func (v *NullableOverviewErrorResponse) Set(val *OverviewErrorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewErrorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewErrorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewErrorResponse(val *OverviewErrorResponse) *NullableOverviewErrorResponse { + return &NullableOverviewErrorResponse{value: val, isSet: true} +} + +func (v NullableOverviewErrorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewErrorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_fetch_timeout.go b/generated/stackstate_api/model_overview_fetch_timeout.go new file mode 100644 index 00000000..3ab85abe --- /dev/null +++ b/generated/stackstate_api/model_overview_fetch_timeout.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" +) + +// OverviewFetchTimeout struct for OverviewFetchTimeout +type OverviewFetchTimeout struct { + Type string `json:"_type" yaml:"_type"` + // Timeout used for the overview request (seconds). + UsedTimeoutSeconds int64 `json:"usedTimeoutSeconds" yaml:"usedTimeoutSeconds"` +} + +// NewOverviewFetchTimeout instantiates a new OverviewFetchTimeout 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 NewOverviewFetchTimeout(type_ string, usedTimeoutSeconds int64) *OverviewFetchTimeout { + this := OverviewFetchTimeout{} + this.Type = type_ + this.UsedTimeoutSeconds = usedTimeoutSeconds + return &this +} + +// NewOverviewFetchTimeoutWithDefaults instantiates a new OverviewFetchTimeout 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 NewOverviewFetchTimeoutWithDefaults() *OverviewFetchTimeout { + this := OverviewFetchTimeout{} + return &this +} + +// GetType returns the Type field value +func (o *OverviewFetchTimeout) 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 *OverviewFetchTimeout) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OverviewFetchTimeout) SetType(v string) { + o.Type = v +} + +// GetUsedTimeoutSeconds returns the UsedTimeoutSeconds field value +func (o *OverviewFetchTimeout) GetUsedTimeoutSeconds() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.UsedTimeoutSeconds +} + +// GetUsedTimeoutSecondsOk returns a tuple with the UsedTimeoutSeconds field value +// and a boolean to check if the value has been set. +func (o *OverviewFetchTimeout) GetUsedTimeoutSecondsOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.UsedTimeoutSeconds, true +} + +// SetUsedTimeoutSeconds sets field value +func (o *OverviewFetchTimeout) SetUsedTimeoutSeconds(v int64) { + o.UsedTimeoutSeconds = v +} + +func (o OverviewFetchTimeout) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["usedTimeoutSeconds"] = o.UsedTimeoutSeconds + } + return json.Marshal(toSerialize) +} + +type NullableOverviewFetchTimeout struct { + value *OverviewFetchTimeout + isSet bool +} + +func (v NullableOverviewFetchTimeout) Get() *OverviewFetchTimeout { + return v.value +} + +func (v *NullableOverviewFetchTimeout) Set(val *OverviewFetchTimeout) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewFetchTimeout) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewFetchTimeout) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewFetchTimeout(val *OverviewFetchTimeout) *NullableOverviewFetchTimeout { + return &NullableOverviewFetchTimeout{value: val, isSet: true} +} + +func (v NullableOverviewFetchTimeout) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewFetchTimeout) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_filters.go b/generated/stackstate_api/model_overview_filters.go new file mode 100644 index 00000000..2e0ada56 --- /dev/null +++ b/generated/stackstate_api/model_overview_filters.go @@ -0,0 +1,152 @@ +/* +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" +) + +// OverviewFilters struct for OverviewFilters +type OverviewFilters struct { + // Tags are grouped by their key. For each key at least one of the values matches. + TagFilters []string `json:"tagFilters,omitempty" yaml:"tagFilters,omitempty"` + // Map of columnId to filter + ColumnFilters *map[string]OverviewColumnFilter `json:"columnFilters,omitempty" yaml:"columnFilters,omitempty"` +} + +// NewOverviewFilters instantiates a new OverviewFilters 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 NewOverviewFilters() *OverviewFilters { + this := OverviewFilters{} + return &this +} + +// NewOverviewFiltersWithDefaults instantiates a new OverviewFilters 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 NewOverviewFiltersWithDefaults() *OverviewFilters { + this := OverviewFilters{} + return &this +} + +// GetTagFilters returns the TagFilters field value if set, zero value otherwise. +func (o *OverviewFilters) GetTagFilters() []string { + if o == nil || o.TagFilters == nil { + var ret []string + return ret + } + return o.TagFilters +} + +// GetTagFiltersOk returns a tuple with the TagFilters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewFilters) GetTagFiltersOk() ([]string, bool) { + if o == nil || o.TagFilters == nil { + return nil, false + } + return o.TagFilters, true +} + +// HasTagFilters returns a boolean if a field has been set. +func (o *OverviewFilters) HasTagFilters() bool { + if o != nil && o.TagFilters != nil { + return true + } + + return false +} + +// SetTagFilters gets a reference to the given []string and assigns it to the TagFilters field. +func (o *OverviewFilters) SetTagFilters(v []string) { + o.TagFilters = v +} + +// GetColumnFilters returns the ColumnFilters field value if set, zero value otherwise. +func (o *OverviewFilters) GetColumnFilters() map[string]OverviewColumnFilter { + if o == nil || o.ColumnFilters == nil { + var ret map[string]OverviewColumnFilter + return ret + } + return *o.ColumnFilters +} + +// GetColumnFiltersOk returns a tuple with the ColumnFilters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewFilters) GetColumnFiltersOk() (*map[string]OverviewColumnFilter, bool) { + if o == nil || o.ColumnFilters == nil { + return nil, false + } + return o.ColumnFilters, true +} + +// HasColumnFilters returns a boolean if a field has been set. +func (o *OverviewFilters) HasColumnFilters() bool { + if o != nil && o.ColumnFilters != nil { + return true + } + + return false +} + +// SetColumnFilters gets a reference to the given map[string]OverviewColumnFilter and assigns it to the ColumnFilters field. +func (o *OverviewFilters) SetColumnFilters(v map[string]OverviewColumnFilter) { + o.ColumnFilters = &v +} + +func (o OverviewFilters) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.TagFilters != nil { + toSerialize["tagFilters"] = o.TagFilters + } + if o.ColumnFilters != nil { + toSerialize["columnFilters"] = o.ColumnFilters + } + return json.Marshal(toSerialize) +} + +type NullableOverviewFilters struct { + value *OverviewFilters + isSet bool +} + +func (v NullableOverviewFilters) Get() *OverviewFilters { + return v.value +} + +func (v *NullableOverviewFilters) Set(val *OverviewFilters) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewFilters) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewFilters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewFilters(val *OverviewFilters) *NullableOverviewFilters { + return &NullableOverviewFilters{value: val, isSet: true} +} + +func (v NullableOverviewFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_metadata.go b/generated/stackstate_api/model_overview_metadata.go new file mode 100644 index 00000000..9b11f57d --- /dev/null +++ b/generated/stackstate_api/model_overview_metadata.go @@ -0,0 +1,166 @@ +/* +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" +) + +// OverviewMetadata struct for OverviewMetadata +type OverviewMetadata struct { + Columns []OverviewColumnMeta `json:"columns" yaml:"columns"` + // The effective sorting applied to the overview results. + Sorting []OverviewSorting `json:"sorting" yaml:"sorting"` + FixedColumns int32 `json:"fixedColumns" yaml:"fixedColumns"` +} + +// NewOverviewMetadata instantiates a new OverviewMetadata 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 NewOverviewMetadata(columns []OverviewColumnMeta, sorting []OverviewSorting, fixedColumns int32) *OverviewMetadata { + this := OverviewMetadata{} + this.Columns = columns + this.Sorting = sorting + this.FixedColumns = fixedColumns + return &this +} + +// NewOverviewMetadataWithDefaults instantiates a new OverviewMetadata 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 NewOverviewMetadataWithDefaults() *OverviewMetadata { + this := OverviewMetadata{} + return &this +} + +// GetColumns returns the Columns field value +func (o *OverviewMetadata) GetColumns() []OverviewColumnMeta { + if o == nil { + var ret []OverviewColumnMeta + return ret + } + + return o.Columns +} + +// GetColumnsOk returns a tuple with the Columns field value +// and a boolean to check if the value has been set. +func (o *OverviewMetadata) GetColumnsOk() ([]OverviewColumnMeta, bool) { + if o == nil { + return nil, false + } + return o.Columns, true +} + +// SetColumns sets field value +func (o *OverviewMetadata) SetColumns(v []OverviewColumnMeta) { + o.Columns = v +} + +// GetSorting returns the Sorting field value +func (o *OverviewMetadata) GetSorting() []OverviewSorting { + if o == nil { + var ret []OverviewSorting + return ret + } + + return o.Sorting +} + +// GetSortingOk returns a tuple with the Sorting field value +// and a boolean to check if the value has been set. +func (o *OverviewMetadata) GetSortingOk() ([]OverviewSorting, bool) { + if o == nil { + return nil, false + } + return o.Sorting, true +} + +// SetSorting sets field value +func (o *OverviewMetadata) SetSorting(v []OverviewSorting) { + o.Sorting = v +} + +// GetFixedColumns returns the FixedColumns field value +func (o *OverviewMetadata) GetFixedColumns() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.FixedColumns +} + +// GetFixedColumnsOk returns a tuple with the FixedColumns field value +// and a boolean to check if the value has been set. +func (o *OverviewMetadata) GetFixedColumnsOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.FixedColumns, true +} + +// SetFixedColumns sets field value +func (o *OverviewMetadata) SetFixedColumns(v int32) { + o.FixedColumns = v +} + +func (o OverviewMetadata) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["columns"] = o.Columns + } + if true { + toSerialize["sorting"] = o.Sorting + } + if true { + toSerialize["fixedColumns"] = o.FixedColumns + } + return json.Marshal(toSerialize) +} + +type NullableOverviewMetadata struct { + value *OverviewMetadata + isSet bool +} + +func (v NullableOverviewMetadata) Get() *OverviewMetadata { + return v.value +} + +func (v *NullableOverviewMetadata) Set(val *OverviewMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewMetadata(val *OverviewMetadata) *NullableOverviewMetadata { + return &NullableOverviewMetadata{value: val, isSet: true} +} + +func (v NullableOverviewMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_page_response.go b/generated/stackstate_api/model_overview_page_response.go new file mode 100644 index 00000000..906b3307 --- /dev/null +++ b/generated/stackstate_api/model_overview_page_response.go @@ -0,0 +1,224 @@ +/* +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" +) + +// OverviewPageResponse - struct for OverviewPageResponse +type OverviewPageResponse struct { + OverviewDataUnavailable *OverviewDataUnavailable + OverviewFetchTimeout *OverviewFetchTimeout + OverviewPageResult *OverviewPageResult + OverviewTooManyActiveQueries *OverviewTooManyActiveQueries + OverviewTopologySizeOverflow *OverviewTopologySizeOverflow +} + +// OverviewDataUnavailableAsOverviewPageResponse is a convenience function that returns OverviewDataUnavailable wrapped in OverviewPageResponse +func OverviewDataUnavailableAsOverviewPageResponse(v *OverviewDataUnavailable) OverviewPageResponse { + return OverviewPageResponse{ + OverviewDataUnavailable: v, + } +} + +// OverviewFetchTimeoutAsOverviewPageResponse is a convenience function that returns OverviewFetchTimeout wrapped in OverviewPageResponse +func OverviewFetchTimeoutAsOverviewPageResponse(v *OverviewFetchTimeout) OverviewPageResponse { + return OverviewPageResponse{ + OverviewFetchTimeout: v, + } +} + +// OverviewPageResultAsOverviewPageResponse is a convenience function that returns OverviewPageResult wrapped in OverviewPageResponse +func OverviewPageResultAsOverviewPageResponse(v *OverviewPageResult) OverviewPageResponse { + return OverviewPageResponse{ + OverviewPageResult: v, + } +} + +// OverviewTooManyActiveQueriesAsOverviewPageResponse is a convenience function that returns OverviewTooManyActiveQueries wrapped in OverviewPageResponse +func OverviewTooManyActiveQueriesAsOverviewPageResponse(v *OverviewTooManyActiveQueries) OverviewPageResponse { + return OverviewPageResponse{ + OverviewTooManyActiveQueries: v, + } +} + +// OverviewTopologySizeOverflowAsOverviewPageResponse is a convenience function that returns OverviewTopologySizeOverflow wrapped in OverviewPageResponse +func OverviewTopologySizeOverflowAsOverviewPageResponse(v *OverviewTopologySizeOverflow) OverviewPageResponse { + return OverviewPageResponse{ + OverviewTopologySizeOverflow: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *OverviewPageResponse) 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 'OverviewDataUnavailable' + if jsonDict["_type"] == "OverviewDataUnavailable" { + // try to unmarshal JSON data into OverviewDataUnavailable + err = json.Unmarshal(data, &dst.OverviewDataUnavailable) + if err == nil { + return nil // data stored in dst.OverviewDataUnavailable, return on the first match + } else { + dst.OverviewDataUnavailable = nil + return fmt.Errorf("Failed to unmarshal OverviewPageResponse as OverviewDataUnavailable: %s", err.Error()) + } + } + + // check if the discriminator value is 'OverviewFetchTimeout' + if jsonDict["_type"] == "OverviewFetchTimeout" { + // try to unmarshal JSON data into OverviewFetchTimeout + err = json.Unmarshal(data, &dst.OverviewFetchTimeout) + if err == nil { + return nil // data stored in dst.OverviewFetchTimeout, return on the first match + } else { + dst.OverviewFetchTimeout = nil + return fmt.Errorf("Failed to unmarshal OverviewPageResponse as OverviewFetchTimeout: %s", err.Error()) + } + } + + // check if the discriminator value is 'OverviewPageResult' + if jsonDict["_type"] == "OverviewPageResult" { + // try to unmarshal JSON data into OverviewPageResult + err = json.Unmarshal(data, &dst.OverviewPageResult) + if err == nil { + return nil // data stored in dst.OverviewPageResult, return on the first match + } else { + dst.OverviewPageResult = nil + return fmt.Errorf("Failed to unmarshal OverviewPageResponse as OverviewPageResult: %s", err.Error()) + } + } + + // check if the discriminator value is 'OverviewTooManyActiveQueries' + if jsonDict["_type"] == "OverviewTooManyActiveQueries" { + // try to unmarshal JSON data into OverviewTooManyActiveQueries + err = json.Unmarshal(data, &dst.OverviewTooManyActiveQueries) + if err == nil { + return nil // data stored in dst.OverviewTooManyActiveQueries, return on the first match + } else { + dst.OverviewTooManyActiveQueries = nil + return fmt.Errorf("Failed to unmarshal OverviewPageResponse as OverviewTooManyActiveQueries: %s", err.Error()) + } + } + + // check if the discriminator value is 'OverviewTopologySizeOverflow' + if jsonDict["_type"] == "OverviewTopologySizeOverflow" { + // try to unmarshal JSON data into OverviewTopologySizeOverflow + err = json.Unmarshal(data, &dst.OverviewTopologySizeOverflow) + if err == nil { + return nil // data stored in dst.OverviewTopologySizeOverflow, return on the first match + } else { + dst.OverviewTopologySizeOverflow = nil + return fmt.Errorf("Failed to unmarshal OverviewPageResponse as OverviewTopologySizeOverflow: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src OverviewPageResponse) MarshalJSON() ([]byte, error) { + if src.OverviewDataUnavailable != nil { + return json.Marshal(&src.OverviewDataUnavailable) + } + + if src.OverviewFetchTimeout != nil { + return json.Marshal(&src.OverviewFetchTimeout) + } + + if src.OverviewPageResult != nil { + return json.Marshal(&src.OverviewPageResult) + } + + if src.OverviewTooManyActiveQueries != nil { + return json.Marshal(&src.OverviewTooManyActiveQueries) + } + + if src.OverviewTopologySizeOverflow != nil { + return json.Marshal(&src.OverviewTopologySizeOverflow) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *OverviewPageResponse) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.OverviewDataUnavailable != nil { + return obj.OverviewDataUnavailable + } + + if obj.OverviewFetchTimeout != nil { + return obj.OverviewFetchTimeout + } + + if obj.OverviewPageResult != nil { + return obj.OverviewPageResult + } + + if obj.OverviewTooManyActiveQueries != nil { + return obj.OverviewTooManyActiveQueries + } + + if obj.OverviewTopologySizeOverflow != nil { + return obj.OverviewTopologySizeOverflow + } + + // all schemas are nil + return nil +} + +type NullableOverviewPageResponse struct { + value *OverviewPageResponse + isSet bool +} + +func (v NullableOverviewPageResponse) Get() *OverviewPageResponse { + return v.value +} + +func (v *NullableOverviewPageResponse) Set(val *OverviewPageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewPageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewPageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewPageResponse(val *OverviewPageResponse) *NullableOverviewPageResponse { + return &NullableOverviewPageResponse{value: val, isSet: true} +} + +func (v NullableOverviewPageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewPageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_page_result.go b/generated/stackstate_api/model_overview_page_result.go new file mode 100644 index 00000000..3036f68f --- /dev/null +++ b/generated/stackstate_api/model_overview_page_result.go @@ -0,0 +1,194 @@ +/* +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" +) + +// OverviewPageResult struct for OverviewPageResult +type OverviewPageResult struct { + Type string `json:"_type" yaml:"_type"` + Metadata OverviewMetadata `json:"metadata" yaml:"metadata"` + Data []OverviewRow `json:"data" yaml:"data"` + Pagination PaginationResponse `json:"pagination" yaml:"pagination"` +} + +// NewOverviewPageResult instantiates a new OverviewPageResult 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 NewOverviewPageResult(type_ string, metadata OverviewMetadata, data []OverviewRow, pagination PaginationResponse) *OverviewPageResult { + this := OverviewPageResult{} + this.Type = type_ + this.Metadata = metadata + this.Data = data + this.Pagination = pagination + return &this +} + +// NewOverviewPageResultWithDefaults instantiates a new OverviewPageResult 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 NewOverviewPageResultWithDefaults() *OverviewPageResult { + this := OverviewPageResult{} + return &this +} + +// GetType returns the Type field value +func (o *OverviewPageResult) 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 *OverviewPageResult) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OverviewPageResult) SetType(v string) { + o.Type = v +} + +// GetMetadata returns the Metadata field value +func (o *OverviewPageResult) GetMetadata() OverviewMetadata { + if o == nil { + var ret OverviewMetadata + return ret + } + + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value +// and a boolean to check if the value has been set. +func (o *OverviewPageResult) GetMetadataOk() (*OverviewMetadata, bool) { + if o == nil { + return nil, false + } + return &o.Metadata, true +} + +// SetMetadata sets field value +func (o *OverviewPageResult) SetMetadata(v OverviewMetadata) { + o.Metadata = v +} + +// GetData returns the Data field value +func (o *OverviewPageResult) GetData() []OverviewRow { + if o == nil { + var ret []OverviewRow + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *OverviewPageResult) GetDataOk() ([]OverviewRow, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *OverviewPageResult) SetData(v []OverviewRow) { + o.Data = v +} + +// GetPagination returns the Pagination field value +func (o *OverviewPageResult) GetPagination() PaginationResponse { + if o == nil { + var ret PaginationResponse + return ret + } + + return o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value +// and a boolean to check if the value has been set. +func (o *OverviewPageResult) GetPaginationOk() (*PaginationResponse, bool) { + if o == nil { + return nil, false + } + return &o.Pagination, true +} + +// SetPagination sets field value +func (o *OverviewPageResult) SetPagination(v PaginationResponse) { + o.Pagination = v +} + +func (o OverviewPageResult) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["metadata"] = o.Metadata + } + if true { + toSerialize["data"] = o.Data + } + if true { + toSerialize["pagination"] = o.Pagination + } + return json.Marshal(toSerialize) +} + +type NullableOverviewPageResult struct { + value *OverviewPageResult + isSet bool +} + +func (v NullableOverviewPageResult) Get() *OverviewPageResult { + return v.value +} + +func (v *NullableOverviewPageResult) Set(val *OverviewPageResult) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewPageResult) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewPageResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewPageResult(val *OverviewPageResult) *NullableOverviewPageResult { + return &NullableOverviewPageResult{value: val, isSet: true} +} + +func (v NullableOverviewPageResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewPageResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_pagination_cursor.go b/generated/stackstate_api/model_overview_pagination_cursor.go new file mode 100644 index 00000000..f7173da5 --- /dev/null +++ b/generated/stackstate_api/model_overview_pagination_cursor.go @@ -0,0 +1,139 @@ +/* +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" +) + +// OverviewPaginationCursor struct for OverviewPaginationCursor +type OverviewPaginationCursor struct { + // Opaque cursor returned from previous request + Cursor NullableString `json:"cursor" yaml:"cursor"` + Direction OverviewPaginationDirection `json:"direction" yaml:"direction"` +} + +// NewOverviewPaginationCursor instantiates a new OverviewPaginationCursor 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 NewOverviewPaginationCursor(cursor NullableString, direction OverviewPaginationDirection) *OverviewPaginationCursor { + this := OverviewPaginationCursor{} + this.Cursor = cursor + this.Direction = direction + return &this +} + +// NewOverviewPaginationCursorWithDefaults instantiates a new OverviewPaginationCursor 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 NewOverviewPaginationCursorWithDefaults() *OverviewPaginationCursor { + this := OverviewPaginationCursor{} + return &this +} + +// GetCursor returns the Cursor field value +// If the value is explicit nil, the zero value for string will be returned +func (o *OverviewPaginationCursor) GetCursor() string { + if o == nil || o.Cursor.Get() == nil { + var ret string + return ret + } + + return *o.Cursor.Get() +} + +// GetCursorOk returns a tuple with the Cursor field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OverviewPaginationCursor) GetCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Cursor.Get(), o.Cursor.IsSet() +} + +// SetCursor sets field value +func (o *OverviewPaginationCursor) SetCursor(v string) { + o.Cursor.Set(&v) +} + +// GetDirection returns the Direction field value +func (o *OverviewPaginationCursor) GetDirection() OverviewPaginationDirection { + if o == nil { + var ret OverviewPaginationDirection + return ret + } + + return o.Direction +} + +// GetDirectionOk returns a tuple with the Direction field value +// and a boolean to check if the value has been set. +func (o *OverviewPaginationCursor) GetDirectionOk() (*OverviewPaginationDirection, bool) { + if o == nil { + return nil, false + } + return &o.Direction, true +} + +// SetDirection sets field value +func (o *OverviewPaginationCursor) SetDirection(v OverviewPaginationDirection) { + o.Direction = v +} + +func (o OverviewPaginationCursor) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cursor"] = o.Cursor.Get() + } + if true { + toSerialize["direction"] = o.Direction + } + return json.Marshal(toSerialize) +} + +type NullableOverviewPaginationCursor struct { + value *OverviewPaginationCursor + isSet bool +} + +func (v NullableOverviewPaginationCursor) Get() *OverviewPaginationCursor { + return v.value +} + +func (v *NullableOverviewPaginationCursor) Set(val *OverviewPaginationCursor) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewPaginationCursor) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewPaginationCursor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewPaginationCursor(val *OverviewPaginationCursor) *NullableOverviewPaginationCursor { + return &NullableOverviewPaginationCursor{value: val, isSet: true} +} + +func (v NullableOverviewPaginationCursor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewPaginationCursor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_pagination_direction.go b/generated/stackstate_api/model_overview_pagination_direction.go new file mode 100644 index 00000000..a323574c --- /dev/null +++ b/generated/stackstate_api/model_overview_pagination_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" +) + +// OverviewPaginationDirection the model 'OverviewPaginationDirection' +type OverviewPaginationDirection string + +// List of OverviewPaginationDirection +const ( + OVERVIEWPAGINATIONDIRECTION_BACK OverviewPaginationDirection = "Back" + OVERVIEWPAGINATIONDIRECTION_FORWARD OverviewPaginationDirection = "Forward" +) + +// All allowed values of OverviewPaginationDirection enum +var AllowedOverviewPaginationDirectionEnumValues = []OverviewPaginationDirection{ + "Back", + "Forward", +} + +func (v *OverviewPaginationDirection) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := OverviewPaginationDirection(value) + for _, existing := range AllowedOverviewPaginationDirectionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid OverviewPaginationDirection", value) +} + +// NewOverviewPaginationDirectionFromValue returns a pointer to a valid OverviewPaginationDirection +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewOverviewPaginationDirectionFromValue(v string) (*OverviewPaginationDirection, error) { + ev := OverviewPaginationDirection(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for OverviewPaginationDirection: valid values are %v", v, AllowedOverviewPaginationDirectionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v OverviewPaginationDirection) IsValid() bool { + for _, existing := range AllowedOverviewPaginationDirectionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to OverviewPaginationDirection value +func (v OverviewPaginationDirection) Ptr() *OverviewPaginationDirection { + return &v +} + +type NullableOverviewPaginationDirection struct { + value *OverviewPaginationDirection + isSet bool +} + +func (v NullableOverviewPaginationDirection) Get() *OverviewPaginationDirection { + return v.value +} + +func (v *NullableOverviewPaginationDirection) Set(val *OverviewPaginationDirection) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewPaginationDirection) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewPaginationDirection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewPaginationDirection(val *OverviewPaginationDirection) *NullableOverviewPaginationDirection { + return &NullableOverviewPaginationDirection{value: val, isSet: true} +} + +func (v NullableOverviewPaginationDirection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewPaginationDirection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_pagination_request.go b/generated/stackstate_api/model_overview_pagination_request.go new file mode 100644 index 00000000..4efd34c9 --- /dev/null +++ b/generated/stackstate_api/model_overview_pagination_request.go @@ -0,0 +1,154 @@ +/* +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" +) + +// OverviewPaginationRequest struct for OverviewPaginationRequest +type OverviewPaginationRequest struct { + Cursor *OverviewPaginationCursor `json:"cursor,omitempty" yaml:"cursor,omitempty"` + Limit *int32 `json:"limit,omitempty" yaml:"limit,omitempty"` +} + +// NewOverviewPaginationRequest instantiates a new OverviewPaginationRequest 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 NewOverviewPaginationRequest() *OverviewPaginationRequest { + this := OverviewPaginationRequest{} + var limit int32 = 50 + this.Limit = &limit + return &this +} + +// NewOverviewPaginationRequestWithDefaults instantiates a new OverviewPaginationRequest 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 NewOverviewPaginationRequestWithDefaults() *OverviewPaginationRequest { + this := OverviewPaginationRequest{} + var limit int32 = 50 + this.Limit = &limit + return &this +} + +// GetCursor returns the Cursor field value if set, zero value otherwise. +func (o *OverviewPaginationRequest) GetCursor() OverviewPaginationCursor { + if o == nil || o.Cursor == nil { + var ret OverviewPaginationCursor + return ret + } + return *o.Cursor +} + +// GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewPaginationRequest) GetCursorOk() (*OverviewPaginationCursor, bool) { + if o == nil || o.Cursor == nil { + return nil, false + } + return o.Cursor, true +} + +// HasCursor returns a boolean if a field has been set. +func (o *OverviewPaginationRequest) HasCursor() bool { + if o != nil && o.Cursor != nil { + return true + } + + return false +} + +// SetCursor gets a reference to the given OverviewPaginationCursor and assigns it to the Cursor field. +func (o *OverviewPaginationRequest) SetCursor(v OverviewPaginationCursor) { + o.Cursor = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *OverviewPaginationRequest) GetLimit() int32 { + if o == nil || o.Limit == nil { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewPaginationRequest) GetLimitOk() (*int32, bool) { + if o == nil || o.Limit == nil { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *OverviewPaginationRequest) HasLimit() bool { + if o != nil && o.Limit != nil { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *OverviewPaginationRequest) SetLimit(v int32) { + o.Limit = &v +} + +func (o OverviewPaginationRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Cursor != nil { + toSerialize["cursor"] = o.Cursor + } + if o.Limit != nil { + toSerialize["limit"] = o.Limit + } + return json.Marshal(toSerialize) +} + +type NullableOverviewPaginationRequest struct { + value *OverviewPaginationRequest + isSet bool +} + +func (v NullableOverviewPaginationRequest) Get() *OverviewPaginationRequest { + return v.value +} + +func (v *NullableOverviewPaginationRequest) Set(val *OverviewPaginationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewPaginationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewPaginationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewPaginationRequest(val *OverviewPaginationRequest) *NullableOverviewPaginationRequest { + return &NullableOverviewPaginationRequest{value: val, isSet: true} +} + +func (v NullableOverviewPaginationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewPaginationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_request.go b/generated/stackstate_api/model_overview_request.go new file mode 100644 index 00000000..637e9ba4 --- /dev/null +++ b/generated/stackstate_api/model_overview_request.go @@ -0,0 +1,260 @@ +/* +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" +) + +// OverviewRequest struct for OverviewRequest +type OverviewRequest struct { + // STQL query string to retrieve and project using the presentationOrViewUrn (helpful for related resources) + Query *string `json:"query,omitempty" yaml:"query,omitempty"` + // A timestamp at which resources will be queried. If not given the resources are queried at current time. + TopologyTime *int32 `json:"topologyTime,omitempty" yaml:"topologyTime,omitempty"` + Filters *OverviewFilters `json:"filters,omitempty" yaml:"filters,omitempty"` + Pagination *OverviewPaginationRequest `json:"pagination,omitempty" yaml:"pagination,omitempty"` + Sorting []OverviewSorting `json:"sorting,omitempty" yaml:"sorting,omitempty"` +} + +// NewOverviewRequest instantiates a new OverviewRequest 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 NewOverviewRequest() *OverviewRequest { + this := OverviewRequest{} + return &this +} + +// NewOverviewRequestWithDefaults instantiates a new OverviewRequest 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 NewOverviewRequestWithDefaults() *OverviewRequest { + this := OverviewRequest{} + return &this +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *OverviewRequest) GetQuery() string { + if o == nil || o.Query == nil { + var ret string + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewRequest) GetQueryOk() (*string, bool) { + if o == nil || o.Query == nil { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *OverviewRequest) HasQuery() bool { + if o != nil && o.Query != nil { + return true + } + + return false +} + +// SetQuery gets a reference to the given string and assigns it to the Query field. +func (o *OverviewRequest) SetQuery(v string) { + o.Query = &v +} + +// GetTopologyTime returns the TopologyTime field value if set, zero value otherwise. +func (o *OverviewRequest) GetTopologyTime() int32 { + if o == nil || o.TopologyTime == nil { + var ret int32 + return ret + } + return *o.TopologyTime +} + +// GetTopologyTimeOk returns a tuple with the TopologyTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewRequest) GetTopologyTimeOk() (*int32, bool) { + if o == nil || o.TopologyTime == nil { + return nil, false + } + return o.TopologyTime, true +} + +// HasTopologyTime returns a boolean if a field has been set. +func (o *OverviewRequest) HasTopologyTime() bool { + if o != nil && o.TopologyTime != nil { + return true + } + + return false +} + +// SetTopologyTime gets a reference to the given int32 and assigns it to the TopologyTime field. +func (o *OverviewRequest) SetTopologyTime(v int32) { + o.TopologyTime = &v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *OverviewRequest) GetFilters() OverviewFilters { + if o == nil || o.Filters == nil { + var ret OverviewFilters + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewRequest) GetFiltersOk() (*OverviewFilters, bool) { + if o == nil || o.Filters == nil { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *OverviewRequest) HasFilters() bool { + if o != nil && o.Filters != nil { + return true + } + + return false +} + +// SetFilters gets a reference to the given OverviewFilters and assigns it to the Filters field. +func (o *OverviewRequest) SetFilters(v OverviewFilters) { + o.Filters = &v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *OverviewRequest) GetPagination() OverviewPaginationRequest { + if o == nil || o.Pagination == nil { + var ret OverviewPaginationRequest + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewRequest) GetPaginationOk() (*OverviewPaginationRequest, bool) { + if o == nil || o.Pagination == nil { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *OverviewRequest) HasPagination() bool { + if o != nil && o.Pagination != nil { + return true + } + + return false +} + +// SetPagination gets a reference to the given OverviewPaginationRequest and assigns it to the Pagination field. +func (o *OverviewRequest) SetPagination(v OverviewPaginationRequest) { + o.Pagination = &v +} + +// GetSorting returns the Sorting field value if set, zero value otherwise. +func (o *OverviewRequest) GetSorting() []OverviewSorting { + if o == nil || o.Sorting == nil { + var ret []OverviewSorting + return ret + } + return o.Sorting +} + +// GetSortingOk returns a tuple with the Sorting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OverviewRequest) GetSortingOk() ([]OverviewSorting, bool) { + if o == nil || o.Sorting == nil { + return nil, false + } + return o.Sorting, true +} + +// HasSorting returns a boolean if a field has been set. +func (o *OverviewRequest) HasSorting() bool { + if o != nil && o.Sorting != nil { + return true + } + + return false +} + +// SetSorting gets a reference to the given []OverviewSorting and assigns it to the Sorting field. +func (o *OverviewRequest) SetSorting(v []OverviewSorting) { + o.Sorting = v +} + +func (o OverviewRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Query != nil { + toSerialize["query"] = o.Query + } + if o.TopologyTime != nil { + toSerialize["topologyTime"] = o.TopologyTime + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } + if o.Pagination != nil { + toSerialize["pagination"] = o.Pagination + } + if o.Sorting != nil { + toSerialize["sorting"] = o.Sorting + } + return json.Marshal(toSerialize) +} + +type NullableOverviewRequest struct { + value *OverviewRequest + isSet bool +} + +func (v NullableOverviewRequest) Get() *OverviewRequest { + return v.value +} + +func (v *NullableOverviewRequest) Set(val *OverviewRequest) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewRequest(val *OverviewRequest) *NullableOverviewRequest { + return &NullableOverviewRequest{value: val, isSet: true} +} + +func (v NullableOverviewRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_row.go b/generated/stackstate_api/model_overview_row.go new file mode 100644 index 00000000..f3f919f1 --- /dev/null +++ b/generated/stackstate_api/model_overview_row.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" +) + +// OverviewRow struct for OverviewRow +type OverviewRow struct { + ComponentIdentifier string `json:"componentIdentifier" yaml:"componentIdentifier"` + Cells map[string]CellValue `json:"cells" yaml:"cells"` +} + +// NewOverviewRow instantiates a new OverviewRow 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 NewOverviewRow(componentIdentifier string, cells map[string]CellValue) *OverviewRow { + this := OverviewRow{} + this.ComponentIdentifier = componentIdentifier + this.Cells = cells + return &this +} + +// NewOverviewRowWithDefaults instantiates a new OverviewRow 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 NewOverviewRowWithDefaults() *OverviewRow { + this := OverviewRow{} + return &this +} + +// GetComponentIdentifier returns the ComponentIdentifier field value +func (o *OverviewRow) GetComponentIdentifier() string { + if o == nil { + var ret string + return ret + } + + return o.ComponentIdentifier +} + +// GetComponentIdentifierOk returns a tuple with the ComponentIdentifier field value +// and a boolean to check if the value has been set. +func (o *OverviewRow) GetComponentIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ComponentIdentifier, true +} + +// SetComponentIdentifier sets field value +func (o *OverviewRow) SetComponentIdentifier(v string) { + o.ComponentIdentifier = v +} + +// GetCells returns the Cells field value +func (o *OverviewRow) GetCells() map[string]CellValue { + if o == nil { + var ret map[string]CellValue + return ret + } + + return o.Cells +} + +// GetCellsOk returns a tuple with the Cells field value +// and a boolean to check if the value has been set. +func (o *OverviewRow) GetCellsOk() (*map[string]CellValue, bool) { + if o == nil { + return nil, false + } + return &o.Cells, true +} + +// SetCells sets field value +func (o *OverviewRow) SetCells(v map[string]CellValue) { + o.Cells = v +} + +func (o OverviewRow) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["componentIdentifier"] = o.ComponentIdentifier + } + if true { + toSerialize["cells"] = o.Cells + } + return json.Marshal(toSerialize) +} + +type NullableOverviewRow struct { + value *OverviewRow + isSet bool +} + +func (v NullableOverviewRow) Get() *OverviewRow { + return v.value +} + +func (v *NullableOverviewRow) Set(val *OverviewRow) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewRow) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewRow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewRow(val *OverviewRow) *NullableOverviewRow { + return &NullableOverviewRow{value: val, isSet: true} +} + +func (v NullableOverviewRow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewRow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_sorting.go b/generated/stackstate_api/model_overview_sorting.go new file mode 100644 index 00000000..efc2305c --- /dev/null +++ b/generated/stackstate_api/model_overview_sorting.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" +) + +// OverviewSorting struct for OverviewSorting +type OverviewSorting struct { + ColumnId string `json:"columnId" yaml:"columnId"` + Direction OverviewSortingDirection `json:"direction" yaml:"direction"` +} + +// NewOverviewSorting instantiates a new OverviewSorting 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 NewOverviewSorting(columnId string, direction OverviewSortingDirection) *OverviewSorting { + this := OverviewSorting{} + this.ColumnId = columnId + this.Direction = direction + return &this +} + +// NewOverviewSortingWithDefaults instantiates a new OverviewSorting 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 NewOverviewSortingWithDefaults() *OverviewSorting { + this := OverviewSorting{} + return &this +} + +// GetColumnId returns the ColumnId field value +func (o *OverviewSorting) 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 *OverviewSorting) GetColumnIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ColumnId, true +} + +// SetColumnId sets field value +func (o *OverviewSorting) SetColumnId(v string) { + o.ColumnId = v +} + +// GetDirection returns the Direction field value +func (o *OverviewSorting) GetDirection() OverviewSortingDirection { + if o == nil { + var ret OverviewSortingDirection + return ret + } + + return o.Direction +} + +// GetDirectionOk returns a tuple with the Direction field value +// and a boolean to check if the value has been set. +func (o *OverviewSorting) GetDirectionOk() (*OverviewSortingDirection, bool) { + if o == nil { + return nil, false + } + return &o.Direction, true +} + +// SetDirection sets field value +func (o *OverviewSorting) SetDirection(v OverviewSortingDirection) { + o.Direction = v +} + +func (o OverviewSorting) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["columnId"] = o.ColumnId + } + if true { + toSerialize["direction"] = o.Direction + } + return json.Marshal(toSerialize) +} + +type NullableOverviewSorting struct { + value *OverviewSorting + isSet bool +} + +func (v NullableOverviewSorting) Get() *OverviewSorting { + return v.value +} + +func (v *NullableOverviewSorting) Set(val *OverviewSorting) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewSorting) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewSorting) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewSorting(val *OverviewSorting) *NullableOverviewSorting { + return &NullableOverviewSorting{value: val, isSet: true} +} + +func (v NullableOverviewSorting) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewSorting) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_sorting_direction.go b/generated/stackstate_api/model_overview_sorting_direction.go new file mode 100644 index 00000000..67a04663 --- /dev/null +++ b/generated/stackstate_api/model_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" +) + +// OverviewSortingDirection the model 'OverviewSortingDirection' +type OverviewSortingDirection string + +// List of OverviewSortingDirection +const ( + OVERVIEWSORTINGDIRECTION_ASCENDING OverviewSortingDirection = "Ascending" + OVERVIEWSORTINGDIRECTION_DESCENDING OverviewSortingDirection = "Descending" +) + +// All allowed values of OverviewSortingDirection enum +var AllowedOverviewSortingDirectionEnumValues = []OverviewSortingDirection{ + "Ascending", + "Descending", +} + +func (v *OverviewSortingDirection) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := OverviewSortingDirection(value) + for _, existing := range AllowedOverviewSortingDirectionEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid OverviewSortingDirection", value) +} + +// NewOverviewSortingDirectionFromValue returns a pointer to a valid OverviewSortingDirection +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewOverviewSortingDirectionFromValue(v string) (*OverviewSortingDirection, error) { + ev := OverviewSortingDirection(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for OverviewSortingDirection: valid values are %v", v, AllowedOverviewSortingDirectionEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v OverviewSortingDirection) IsValid() bool { + for _, existing := range AllowedOverviewSortingDirectionEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to OverviewSortingDirection value +func (v OverviewSortingDirection) Ptr() *OverviewSortingDirection { + return &v +} + +type NullableOverviewSortingDirection struct { + value *OverviewSortingDirection + isSet bool +} + +func (v NullableOverviewSortingDirection) Get() *OverviewSortingDirection { + return v.value +} + +func (v *NullableOverviewSortingDirection) Set(val *OverviewSortingDirection) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewSortingDirection) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewSortingDirection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewSortingDirection(val *OverviewSortingDirection) *NullableOverviewSortingDirection { + return &NullableOverviewSortingDirection{value: val, isSet: true} +} + +func (v NullableOverviewSortingDirection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewSortingDirection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_too_many_active_queries.go b/generated/stackstate_api/model_overview_too_many_active_queries.go new file mode 100644 index 00000000..3b667565 --- /dev/null +++ b/generated/stackstate_api/model_overview_too_many_active_queries.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" +) + +// OverviewTooManyActiveQueries struct for OverviewTooManyActiveQueries +type OverviewTooManyActiveQueries struct { + Type string `json:"_type" yaml:"_type"` +} + +// NewOverviewTooManyActiveQueries instantiates a new OverviewTooManyActiveQueries 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 NewOverviewTooManyActiveQueries(type_ string) *OverviewTooManyActiveQueries { + this := OverviewTooManyActiveQueries{} + this.Type = type_ + return &this +} + +// NewOverviewTooManyActiveQueriesWithDefaults instantiates a new OverviewTooManyActiveQueries 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 NewOverviewTooManyActiveQueriesWithDefaults() *OverviewTooManyActiveQueries { + this := OverviewTooManyActiveQueries{} + return &this +} + +// GetType returns the Type field value +func (o *OverviewTooManyActiveQueries) 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 *OverviewTooManyActiveQueries) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OverviewTooManyActiveQueries) SetType(v string) { + o.Type = v +} + +func (o OverviewTooManyActiveQueries) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableOverviewTooManyActiveQueries struct { + value *OverviewTooManyActiveQueries + isSet bool +} + +func (v NullableOverviewTooManyActiveQueries) Get() *OverviewTooManyActiveQueries { + return v.value +} + +func (v *NullableOverviewTooManyActiveQueries) Set(val *OverviewTooManyActiveQueries) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewTooManyActiveQueries) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewTooManyActiveQueries) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewTooManyActiveQueries(val *OverviewTooManyActiveQueries) *NullableOverviewTooManyActiveQueries { + return &NullableOverviewTooManyActiveQueries{value: val, isSet: true} +} + +func (v NullableOverviewTooManyActiveQueries) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewTooManyActiveQueries) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_overview_topology_size_overflow.go b/generated/stackstate_api/model_overview_topology_size_overflow.go new file mode 100644 index 00000000..15edd965 --- /dev/null +++ b/generated/stackstate_api/model_overview_topology_size_overflow.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" +) + +// OverviewTopologySizeOverflow struct for OverviewTopologySizeOverflow +type OverviewTopologySizeOverflow struct { + Type string `json:"_type" yaml:"_type"` + // Maximum allowed topology size. + MaxSize int32 `json:"maxSize" yaml:"maxSize"` +} + +// NewOverviewTopologySizeOverflow instantiates a new OverviewTopologySizeOverflow 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 NewOverviewTopologySizeOverflow(type_ string, maxSize int32) *OverviewTopologySizeOverflow { + this := OverviewTopologySizeOverflow{} + this.Type = type_ + this.MaxSize = maxSize + return &this +} + +// NewOverviewTopologySizeOverflowWithDefaults instantiates a new OverviewTopologySizeOverflow 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 NewOverviewTopologySizeOverflowWithDefaults() *OverviewTopologySizeOverflow { + this := OverviewTopologySizeOverflow{} + return &this +} + +// GetType returns the Type field value +func (o *OverviewTopologySizeOverflow) 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 *OverviewTopologySizeOverflow) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OverviewTopologySizeOverflow) SetType(v string) { + o.Type = v +} + +// GetMaxSize returns the MaxSize field value +func (o *OverviewTopologySizeOverflow) GetMaxSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MaxSize +} + +// GetMaxSizeOk returns a tuple with the MaxSize field value +// and a boolean to check if the value has been set. +func (o *OverviewTopologySizeOverflow) GetMaxSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MaxSize, true +} + +// SetMaxSize sets field value +func (o *OverviewTopologySizeOverflow) SetMaxSize(v int32) { + o.MaxSize = v +} + +func (o OverviewTopologySizeOverflow) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["maxSize"] = o.MaxSize + } + return json.Marshal(toSerialize) +} + +type NullableOverviewTopologySizeOverflow struct { + value *OverviewTopologySizeOverflow + isSet bool +} + +func (v NullableOverviewTopologySizeOverflow) Get() *OverviewTopologySizeOverflow { + return v.value +} + +func (v *NullableOverviewTopologySizeOverflow) Set(val *OverviewTopologySizeOverflow) { + v.value = val + v.isSet = true +} + +func (v NullableOverviewTopologySizeOverflow) IsSet() bool { + return v.isSet +} + +func (v *NullableOverviewTopologySizeOverflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOverviewTopologySizeOverflow(val *OverviewTopologySizeOverflow) *NullableOverviewTopologySizeOverflow { + return &NullableOverviewTopologySizeOverflow{value: val, isSet: true} +} + +func (v NullableOverviewTopologySizeOverflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOverviewTopologySizeOverflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_pagination_response.go b/generated/stackstate_api/model_pagination_response.go new file mode 100644 index 00000000..41b20b8d --- /dev/null +++ b/generated/stackstate_api/model_pagination_response.go @@ -0,0 +1,308 @@ +/* +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" +) + +// PaginationResponse struct for PaginationResponse +type PaginationResponse struct { + // Total number of items matching the ComponentPresentation before applying column filters or search. + Total int32 `json:"total" yaml:"total"` + // Total number of items after filters/search are applied, but before pagination. + Filtered NullableInt32 `json:"filtered,omitempty" yaml:"filtered,omitempty"` + ElementName string `json:"elementName" yaml:"elementName"` + ElementNamePlural string `json:"elementNamePlural" yaml:"elementNamePlural"` + StartCursor NullableString `json:"startCursor,omitempty" yaml:"startCursor,omitempty"` + EndCursor NullableString `json:"endCursor,omitempty" yaml:"endCursor,omitempty"` +} + +// NewPaginationResponse instantiates a new PaginationResponse 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 NewPaginationResponse(total int32, elementName string, elementNamePlural string) *PaginationResponse { + this := PaginationResponse{} + this.Total = total + this.ElementName = elementName + this.ElementNamePlural = elementNamePlural + return &this +} + +// NewPaginationResponseWithDefaults instantiates a new PaginationResponse 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 NewPaginationResponseWithDefaults() *PaginationResponse { + this := PaginationResponse{} + return &this +} + +// GetTotal returns the Total field value +func (o *PaginationResponse) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *PaginationResponse) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *PaginationResponse) SetTotal(v int32) { + o.Total = v +} + +// GetFiltered returns the Filtered field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginationResponse) GetFiltered() int32 { + if o == nil || o.Filtered.Get() == nil { + var ret int32 + return ret + } + return *o.Filtered.Get() +} + +// GetFilteredOk returns a tuple with the Filtered field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginationResponse) GetFilteredOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Filtered.Get(), o.Filtered.IsSet() +} + +// HasFiltered returns a boolean if a field has been set. +func (o *PaginationResponse) HasFiltered() bool { + if o != nil && o.Filtered.IsSet() { + return true + } + + return false +} + +// SetFiltered gets a reference to the given NullableInt32 and assigns it to the Filtered field. +func (o *PaginationResponse) SetFiltered(v int32) { + o.Filtered.Set(&v) +} + +// SetFilteredNil sets the value for Filtered to be an explicit nil +func (o *PaginationResponse) SetFilteredNil() { + o.Filtered.Set(nil) +} + +// UnsetFiltered ensures that no value is present for Filtered, not even an explicit nil +func (o *PaginationResponse) UnsetFiltered() { + o.Filtered.Unset() +} + +// GetElementName returns the ElementName field value +func (o *PaginationResponse) GetElementName() string { + if o == nil { + var ret string + return ret + } + + return o.ElementName +} + +// GetElementNameOk returns a tuple with the ElementName field value +// and a boolean to check if the value has been set. +func (o *PaginationResponse) GetElementNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ElementName, true +} + +// SetElementName sets field value +func (o *PaginationResponse) SetElementName(v string) { + o.ElementName = v +} + +// GetElementNamePlural returns the ElementNamePlural field value +func (o *PaginationResponse) GetElementNamePlural() string { + if o == nil { + var ret string + return ret + } + + return o.ElementNamePlural +} + +// GetElementNamePluralOk returns a tuple with the ElementNamePlural field value +// and a boolean to check if the value has been set. +func (o *PaginationResponse) GetElementNamePluralOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ElementNamePlural, true +} + +// SetElementNamePlural sets field value +func (o *PaginationResponse) SetElementNamePlural(v string) { + o.ElementNamePlural = v +} + +// GetStartCursor returns the StartCursor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginationResponse) GetStartCursor() string { + if o == nil || o.StartCursor.Get() == nil { + var ret string + return ret + } + return *o.StartCursor.Get() +} + +// GetStartCursorOk returns a tuple with the StartCursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginationResponse) GetStartCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StartCursor.Get(), o.StartCursor.IsSet() +} + +// HasStartCursor returns a boolean if a field has been set. +func (o *PaginationResponse) HasStartCursor() bool { + if o != nil && o.StartCursor.IsSet() { + return true + } + + return false +} + +// SetStartCursor gets a reference to the given NullableString and assigns it to the StartCursor field. +func (o *PaginationResponse) SetStartCursor(v string) { + o.StartCursor.Set(&v) +} + +// SetStartCursorNil sets the value for StartCursor to be an explicit nil +func (o *PaginationResponse) SetStartCursorNil() { + o.StartCursor.Set(nil) +} + +// UnsetStartCursor ensures that no value is present for StartCursor, not even an explicit nil +func (o *PaginationResponse) UnsetStartCursor() { + o.StartCursor.Unset() +} + +// GetEndCursor returns the EndCursor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginationResponse) GetEndCursor() string { + if o == nil || o.EndCursor.Get() == nil { + var ret string + return ret + } + return *o.EndCursor.Get() +} + +// GetEndCursorOk returns a tuple with the EndCursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginationResponse) GetEndCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EndCursor.Get(), o.EndCursor.IsSet() +} + +// HasEndCursor returns a boolean if a field has been set. +func (o *PaginationResponse) HasEndCursor() bool { + if o != nil && o.EndCursor.IsSet() { + return true + } + + return false +} + +// SetEndCursor gets a reference to the given NullableString and assigns it to the EndCursor field. +func (o *PaginationResponse) SetEndCursor(v string) { + o.EndCursor.Set(&v) +} + +// SetEndCursorNil sets the value for EndCursor to be an explicit nil +func (o *PaginationResponse) SetEndCursorNil() { + o.EndCursor.Set(nil) +} + +// UnsetEndCursor ensures that no value is present for EndCursor, not even an explicit nil +func (o *PaginationResponse) UnsetEndCursor() { + o.EndCursor.Unset() +} + +func (o PaginationResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["total"] = o.Total + } + if o.Filtered.IsSet() { + toSerialize["filtered"] = o.Filtered.Get() + } + if true { + toSerialize["elementName"] = o.ElementName + } + if true { + toSerialize["elementNamePlural"] = o.ElementNamePlural + } + if o.StartCursor.IsSet() { + toSerialize["startCursor"] = o.StartCursor.Get() + } + if o.EndCursor.IsSet() { + toSerialize["endCursor"] = o.EndCursor.Get() + } + return json.Marshal(toSerialize) +} + +type NullablePaginationResponse struct { + value *PaginationResponse + isSet bool +} + +func (v NullablePaginationResponse) Get() *PaginationResponse { + return v.value +} + +func (v *NullablePaginationResponse) Set(val *PaginationResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePaginationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginationResponse(val *PaginationResponse) *NullablePaginationResponse { + return &NullablePaginationResponse{value: val, isSet: true} +} + +func (v NullablePaginationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginationResponse) 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 c3feb1fe..10acf62a 100644 --- a/generated/stackstate_api/model_presentation_definition.go +++ b/generated/stackstate_api/model_presentation_definition.go @@ -18,7 +18,6 @@ import ( // PresentationDefinition struct for PresentationDefinition type PresentationDefinition struct { Icon *string `json:"icon,omitempty" yaml:"icon,omitempty"` - Name *PresentationName `json:"name,omitempty" yaml:"name,omitempty"` Overview *PresentationOverview `json:"overview,omitempty" yaml:"overview,omitempty"` } @@ -71,38 +70,6 @@ func (o *PresentationDefinition) SetIcon(v string) { o.Icon = &v } -// GetName returns the Name field value if set, zero value otherwise. -func (o *PresentationDefinition) GetName() PresentationName { - if o == nil || o.Name == nil { - var ret PresentationName - 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 *PresentationDefinition) GetNameOk() (*PresentationName, 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 *PresentationDefinition) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given PresentationName and assigns it to the Name field. -func (o *PresentationDefinition) SetName(v PresentationName) { - o.Name = &v -} - // GetOverview returns the Overview field value if set, zero value otherwise. func (o *PresentationDefinition) GetOverview() PresentationOverview { if o == nil || o.Overview == nil { @@ -140,9 +107,6 @@ func (o PresentationDefinition) MarshalJSON() ([]byte, error) { if o.Icon != nil { toSerialize["icon"] = o.Icon } - if o.Name != nil { - toSerialize["name"] = o.Name - } if o.Overview != nil { toSerialize["overview"] = o.Overview } diff --git a/generated/stackstate_api/model_presentation_name.go b/generated/stackstate_api/model_presentation_name.go index e82b4187..2f317afb 100644 --- a/generated/stackstate_api/model_presentation_name.go +++ b/generated/stackstate_api/model_presentation_name.go @@ -19,16 +19,18 @@ import ( type PresentationName struct { Singular string `json:"singular" yaml:"singular"` Plural string `json:"plural" yaml:"plural"` + Title string `json:"title" yaml:"title"` } // NewPresentationName instantiates a new PresentationName 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 NewPresentationName(singular string, plural string) *PresentationName { +func NewPresentationName(singular string, plural string, title string) *PresentationName { this := PresentationName{} this.Singular = singular this.Plural = plural + this.Title = title return &this } @@ -88,6 +90,30 @@ func (o *PresentationName) SetPlural(v string) { o.Plural = v } +// GetTitle returns the Title field value +func (o *PresentationName) 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 *PresentationName) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *PresentationName) SetTitle(v string) { + o.Title = v +} + func (o PresentationName) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -96,6 +122,9 @@ func (o PresentationName) MarshalJSON() ([]byte, error) { if true { toSerialize["plural"] = o.Plural } + if true { + toSerialize["title"] = o.Title + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_presentation_overview.go b/generated/stackstate_api/model_presentation_overview.go index 92c29904..9f3463c5 100644 --- a/generated/stackstate_api/model_presentation_overview.go +++ b/generated/stackstate_api/model_presentation_overview.go @@ -15,19 +15,22 @@ import ( "encoding/json" ) -// PresentationOverview struct for PresentationOverview +// 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 { - Title string `json:"title" yaml:"title"` - MainMenu *PresentationMainMenu `json:"mainMenu,omitempty" yaml:"mainMenu,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"` } // NewPresentationOverview instantiates a new PresentationOverview 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 NewPresentationOverview(title string) *PresentationOverview { +func NewPresentationOverview(name PresentationName, columns []OverviewColumnDefinition) *PresentationOverview { this := PresentationOverview{} - this.Title = title + this.Name = name + this.Columns = columns return &this } @@ -39,28 +42,28 @@ func NewPresentationOverviewWithDefaults() *PresentationOverview { return &this } -// GetTitle returns the Title field value -func (o *PresentationOverview) GetTitle() string { +// GetName returns the Name field value +func (o *PresentationOverview) GetName() PresentationName { if o == nil { - var ret string + var ret PresentationName return ret } - return o.Title + return o.Name } -// GetTitleOk returns a tuple with the Title field value +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -func (o *PresentationOverview) GetTitleOk() (*string, bool) { +func (o *PresentationOverview) GetNameOk() (*PresentationName, bool) { if o == nil { return nil, false } - return &o.Title, true + return &o.Name, true } -// SetTitle sets field value -func (o *PresentationOverview) SetTitle(v string) { - o.Title = v +// SetName sets field value +func (o *PresentationOverview) SetName(v PresentationName) { + o.Name = v } // GetMainMenu returns the MainMenu field value if set, zero value otherwise. @@ -95,14 +98,76 @@ func (o *PresentationOverview) SetMainMenu(v PresentationMainMenu) { o.MainMenu = &v } +// GetColumns returns the Columns field value +func (o *PresentationOverview) GetColumns() []OverviewColumnDefinition { + if o == nil { + var ret []OverviewColumnDefinition + return ret + } + + return o.Columns +} + +// GetColumnsOk returns a tuple with the Columns field value +// and a boolean to check if the value has been set. +func (o *PresentationOverview) GetColumnsOk() ([]OverviewColumnDefinition, bool) { + if o == nil { + return nil, false + } + return o.Columns, true +} + +// SetColumns sets field value +func (o *PresentationOverview) SetColumns(v []OverviewColumnDefinition) { + o.Columns = v +} + +// GetFixedColumns returns the FixedColumns field value if set, zero value otherwise. +func (o *PresentationOverview) GetFixedColumns() int32 { + if o == nil || o.FixedColumns == nil { + var ret int32 + return ret + } + return *o.FixedColumns +} + +// GetFixedColumnsOk returns a tuple with the FixedColumns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PresentationOverview) GetFixedColumnsOk() (*int32, bool) { + if o == nil || o.FixedColumns == nil { + return nil, false + } + return o.FixedColumns, true +} + +// HasFixedColumns returns a boolean if a field has been set. +func (o *PresentationOverview) HasFixedColumns() bool { + if o != nil && o.FixedColumns != nil { + return true + } + + return false +} + +// SetFixedColumns gets a reference to the given int32 and assigns it to the FixedColumns field. +func (o *PresentationOverview) SetFixedColumns(v int32) { + o.FixedColumns = &v +} + func (o PresentationOverview) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { - toSerialize["title"] = o.Title + toSerialize["name"] = o.Name } if o.MainMenu != nil { toSerialize["mainMenu"] = o.MainMenu } + if true { + toSerialize["columns"] = o.Columns + } + if o.FixedColumns != nil { + toSerialize["fixedColumns"] = o.FixedColumns + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_prom_batch_envelope.go b/generated/stackstate_api/model_prom_batch_envelope.go new file mode 100644 index 00000000..405aa2eb --- /dev/null +++ b/generated/stackstate_api/model_prom_batch_envelope.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" +) + +// PromBatchEnvelope struct for PromBatchEnvelope +type PromBatchEnvelope struct { + Results []PromBatchResult `json:"results" yaml:"results"` +} + +// NewPromBatchEnvelope instantiates a new PromBatchEnvelope 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 NewPromBatchEnvelope(results []PromBatchResult) *PromBatchEnvelope { + this := PromBatchEnvelope{} + this.Results = results + return &this +} + +// NewPromBatchEnvelopeWithDefaults instantiates a new PromBatchEnvelope 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 NewPromBatchEnvelopeWithDefaults() *PromBatchEnvelope { + this := PromBatchEnvelope{} + return &this +} + +// GetResults returns the Results field value +func (o *PromBatchEnvelope) GetResults() []PromBatchResult { + if o == nil { + var ret []PromBatchResult + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PromBatchEnvelope) GetResultsOk() ([]PromBatchResult, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PromBatchEnvelope) SetResults(v []PromBatchResult) { + o.Results = v +} + +func (o PromBatchEnvelope) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["results"] = o.Results + } + return json.Marshal(toSerialize) +} + +type NullablePromBatchEnvelope struct { + value *PromBatchEnvelope + isSet bool +} + +func (v NullablePromBatchEnvelope) Get() *PromBatchEnvelope { + return v.value +} + +func (v *NullablePromBatchEnvelope) Set(val *PromBatchEnvelope) { + v.value = val + v.isSet = true +} + +func (v NullablePromBatchEnvelope) IsSet() bool { + return v.isSet +} + +func (v *NullablePromBatchEnvelope) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePromBatchEnvelope(val *PromBatchEnvelope) *NullablePromBatchEnvelope { + return &NullablePromBatchEnvelope{value: val, isSet: true} +} + +func (v NullablePromBatchEnvelope) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePromBatchEnvelope) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_prom_batch_error.go b/generated/stackstate_api/model_prom_batch_error.go new file mode 100644 index 00000000..4641b25d --- /dev/null +++ b/generated/stackstate_api/model_prom_batch_error.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" +) + +// PromBatchError struct for PromBatchError +type PromBatchError struct { + Id string `json:"id" yaml:"id"` + ResultType string `json:"resultType" yaml:"resultType"` + Error string `json:"error" yaml:"error"` +} + +// NewPromBatchError instantiates a new PromBatchError 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 NewPromBatchError(id string, resultType string, error_ string) *PromBatchError { + this := PromBatchError{} + this.Id = id + this.ResultType = resultType + this.Error = error_ + return &this +} + +// NewPromBatchErrorWithDefaults instantiates a new PromBatchError 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 NewPromBatchErrorWithDefaults() *PromBatchError { + this := PromBatchError{} + return &this +} + +// GetId returns the Id field value +func (o *PromBatchError) GetId() string { + if o == nil { + var ret string + 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 *PromBatchError) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PromBatchError) SetId(v string) { + o.Id = v +} + +// GetResultType returns the ResultType field value +func (o *PromBatchError) GetResultType() string { + if o == nil { + var ret string + return ret + } + + return o.ResultType +} + +// GetResultTypeOk returns a tuple with the ResultType field value +// and a boolean to check if the value has been set. +func (o *PromBatchError) GetResultTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResultType, true +} + +// SetResultType sets field value +func (o *PromBatchError) SetResultType(v string) { + o.ResultType = v +} + +// GetError returns the Error field value +func (o *PromBatchError) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *PromBatchError) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *PromBatchError) SetError(v string) { + o.Error = v +} + +func (o PromBatchError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["resultType"] = o.ResultType + } + if true { + toSerialize["error"] = o.Error + } + return json.Marshal(toSerialize) +} + +type NullablePromBatchError struct { + value *PromBatchError + isSet bool +} + +func (v NullablePromBatchError) Get() *PromBatchError { + return v.value +} + +func (v *NullablePromBatchError) Set(val *PromBatchError) { + v.value = val + v.isSet = true +} + +func (v NullablePromBatchError) IsSet() bool { + return v.isSet +} + +func (v *NullablePromBatchError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePromBatchError(val *PromBatchError) *NullablePromBatchError { + return &NullablePromBatchError{value: val, isSet: true} +} + +func (v NullablePromBatchError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePromBatchError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_prom_batch_instant_query.go b/generated/stackstate_api/model_prom_batch_instant_query.go new file mode 100644 index 00000000..0f91ab81 --- /dev/null +++ b/generated/stackstate_api/model_prom_batch_instant_query.go @@ -0,0 +1,309 @@ +/* +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" +) + +// PromBatchInstantQuery struct for PromBatchInstantQuery +type PromBatchInstantQuery struct { + Id string `json:"id" yaml:"id"` + Type string `json:"_type" yaml:"_type"` + Query string `json:"query" yaml:"query"` + Time *string `json:"time,omitempty" yaml:"time,omitempty"` + Step *string `json:"step,omitempty" yaml:"step,omitempty"` + Timeout *string `json:"timeout,omitempty" yaml:"timeout,omitempty"` + PostFilter []string `json:"post_filter,omitempty" yaml:"post_filter,omitempty"` +} + +// NewPromBatchInstantQuery instantiates a new PromBatchInstantQuery 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 NewPromBatchInstantQuery(id string, type_ string, query string) *PromBatchInstantQuery { + this := PromBatchInstantQuery{} + this.Id = id + this.Type = type_ + this.Query = query + return &this +} + +// NewPromBatchInstantQueryWithDefaults instantiates a new PromBatchInstantQuery 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 NewPromBatchInstantQueryWithDefaults() *PromBatchInstantQuery { + this := PromBatchInstantQuery{} + return &this +} + +// GetId returns the Id field value +func (o *PromBatchInstantQuery) GetId() string { + if o == nil { + var ret string + 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 *PromBatchInstantQuery) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PromBatchInstantQuery) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *PromBatchInstantQuery) 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 *PromBatchInstantQuery) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PromBatchInstantQuery) SetType(v string) { + o.Type = v +} + +// GetQuery returns the Query field value +func (o *PromBatchInstantQuery) GetQuery() string { + if o == nil { + var ret string + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *PromBatchInstantQuery) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *PromBatchInstantQuery) SetQuery(v string) { + o.Query = v +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *PromBatchInstantQuery) GetTime() string { + if o == nil || o.Time == nil { + var ret string + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchInstantQuery) GetTimeOk() (*string, bool) { + if o == nil || o.Time == nil { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *PromBatchInstantQuery) HasTime() bool { + if o != nil && o.Time != nil { + return true + } + + return false +} + +// SetTime gets a reference to the given string and assigns it to the Time field. +func (o *PromBatchInstantQuery) SetTime(v string) { + o.Time = &v +} + +// GetStep returns the Step field value if set, zero value otherwise. +func (o *PromBatchInstantQuery) GetStep() string { + if o == nil || o.Step == nil { + var ret string + return ret + } + return *o.Step +} + +// GetStepOk returns a tuple with the Step field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchInstantQuery) GetStepOk() (*string, bool) { + if o == nil || o.Step == nil { + return nil, false + } + return o.Step, true +} + +// HasStep returns a boolean if a field has been set. +func (o *PromBatchInstantQuery) HasStep() bool { + if o != nil && o.Step != nil { + return true + } + + return false +} + +// SetStep gets a reference to the given string and assigns it to the Step field. +func (o *PromBatchInstantQuery) SetStep(v string) { + o.Step = &v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *PromBatchInstantQuery) GetTimeout() string { + if o == nil || o.Timeout == nil { + var ret string + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchInstantQuery) GetTimeoutOk() (*string, bool) { + if o == nil || o.Timeout == nil { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *PromBatchInstantQuery) HasTimeout() bool { + if o != nil && o.Timeout != nil { + return true + } + + return false +} + +// SetTimeout gets a reference to the given string and assigns it to the Timeout field. +func (o *PromBatchInstantQuery) SetTimeout(v string) { + o.Timeout = &v +} + +// GetPostFilter returns the PostFilter field value if set, zero value otherwise. +func (o *PromBatchInstantQuery) GetPostFilter() []string { + if o == nil || o.PostFilter == nil { + var ret []string + return ret + } + return o.PostFilter +} + +// GetPostFilterOk returns a tuple with the PostFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchInstantQuery) GetPostFilterOk() ([]string, bool) { + if o == nil || o.PostFilter == nil { + return nil, false + } + return o.PostFilter, true +} + +// HasPostFilter returns a boolean if a field has been set. +func (o *PromBatchInstantQuery) HasPostFilter() bool { + if o != nil && o.PostFilter != nil { + return true + } + + return false +} + +// SetPostFilter gets a reference to the given []string and assigns it to the PostFilter field. +func (o *PromBatchInstantQuery) SetPostFilter(v []string) { + o.PostFilter = v +} + +func (o PromBatchInstantQuery) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["query"] = o.Query + } + if o.Time != nil { + toSerialize["time"] = o.Time + } + if o.Step != nil { + toSerialize["step"] = o.Step + } + if o.Timeout != nil { + toSerialize["timeout"] = o.Timeout + } + if o.PostFilter != nil { + toSerialize["post_filter"] = o.PostFilter + } + return json.Marshal(toSerialize) +} + +type NullablePromBatchInstantQuery struct { + value *PromBatchInstantQuery + isSet bool +} + +func (v NullablePromBatchInstantQuery) Get() *PromBatchInstantQuery { + return v.value +} + +func (v *NullablePromBatchInstantQuery) Set(val *PromBatchInstantQuery) { + v.value = val + v.isSet = true +} + +func (v NullablePromBatchInstantQuery) IsSet() bool { + return v.isSet +} + +func (v *NullablePromBatchInstantQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePromBatchInstantQuery(val *PromBatchInstantQuery) *NullablePromBatchInstantQuery { + return &NullablePromBatchInstantQuery{value: val, isSet: true} +} + +func (v NullablePromBatchInstantQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePromBatchInstantQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_prom_batch_query_item.go b/generated/stackstate_api/model_prom_batch_query_item.go new file mode 100644 index 00000000..9862cd32 --- /dev/null +++ b/generated/stackstate_api/model_prom_batch_query_item.go @@ -0,0 +1,164 @@ +/* +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" +) + +// PromBatchQueryItem - struct for PromBatchQueryItem +type PromBatchQueryItem struct { + PromBatchInstantQuery *PromBatchInstantQuery + PromBatchRangeQuery *PromBatchRangeQuery +} + +// PromBatchInstantQueryAsPromBatchQueryItem is a convenience function that returns PromBatchInstantQuery wrapped in PromBatchQueryItem +func PromBatchInstantQueryAsPromBatchQueryItem(v *PromBatchInstantQuery) PromBatchQueryItem { + return PromBatchQueryItem{ + PromBatchInstantQuery: v, + } +} + +// PromBatchRangeQueryAsPromBatchQueryItem is a convenience function that returns PromBatchRangeQuery wrapped in PromBatchQueryItem +func PromBatchRangeQueryAsPromBatchQueryItem(v *PromBatchRangeQuery) PromBatchQueryItem { + return PromBatchQueryItem{ + PromBatchRangeQuery: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *PromBatchQueryItem) 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 'PromBatchInstantQuery' + if jsonDict["_type"] == "PromBatchInstantQuery" { + // try to unmarshal JSON data into PromBatchInstantQuery + err = json.Unmarshal(data, &dst.PromBatchInstantQuery) + if err == nil { + return nil // data stored in dst.PromBatchInstantQuery, return on the first match + } else { + dst.PromBatchInstantQuery = nil + return fmt.Errorf("Failed to unmarshal PromBatchQueryItem as PromBatchInstantQuery: %s", err.Error()) + } + } + + // check if the discriminator value is 'PromBatchRangeQuery' + if jsonDict["_type"] == "PromBatchRangeQuery" { + // try to unmarshal JSON data into PromBatchRangeQuery + err = json.Unmarshal(data, &dst.PromBatchRangeQuery) + if err == nil { + return nil // data stored in dst.PromBatchRangeQuery, return on the first match + } else { + dst.PromBatchRangeQuery = nil + return fmt.Errorf("Failed to unmarshal PromBatchQueryItem as PromBatchRangeQuery: %s", err.Error()) + } + } + + // check if the discriminator value is 'instant' + if jsonDict["_type"] == "instant" { + // try to unmarshal JSON data into PromBatchInstantQuery + err = json.Unmarshal(data, &dst.PromBatchInstantQuery) + if err == nil { + return nil // data stored in dst.PromBatchInstantQuery, return on the first match + } else { + dst.PromBatchInstantQuery = nil + return fmt.Errorf("Failed to unmarshal PromBatchQueryItem as PromBatchInstantQuery: %s", err.Error()) + } + } + + // check if the discriminator value is 'range' + if jsonDict["_type"] == "range" { + // try to unmarshal JSON data into PromBatchRangeQuery + err = json.Unmarshal(data, &dst.PromBatchRangeQuery) + if err == nil { + return nil // data stored in dst.PromBatchRangeQuery, return on the first match + } else { + dst.PromBatchRangeQuery = nil + return fmt.Errorf("Failed to unmarshal PromBatchQueryItem as PromBatchRangeQuery: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src PromBatchQueryItem) MarshalJSON() ([]byte, error) { + if src.PromBatchInstantQuery != nil { + return json.Marshal(&src.PromBatchInstantQuery) + } + + if src.PromBatchRangeQuery != nil { + return json.Marshal(&src.PromBatchRangeQuery) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *PromBatchQueryItem) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.PromBatchInstantQuery != nil { + return obj.PromBatchInstantQuery + } + + if obj.PromBatchRangeQuery != nil { + return obj.PromBatchRangeQuery + } + + // all schemas are nil + return nil +} + +type NullablePromBatchQueryItem struct { + value *PromBatchQueryItem + isSet bool +} + +func (v NullablePromBatchQueryItem) Get() *PromBatchQueryItem { + return v.value +} + +func (v *NullablePromBatchQueryItem) Set(val *PromBatchQueryItem) { + v.value = val + v.isSet = true +} + +func (v NullablePromBatchQueryItem) IsSet() bool { + return v.isSet +} + +func (v *NullablePromBatchQueryItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePromBatchQueryItem(val *PromBatchQueryItem) *NullablePromBatchQueryItem { + return &NullablePromBatchQueryItem{value: val, isSet: true} +} + +func (v NullablePromBatchQueryItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePromBatchQueryItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_prom_batch_query_request.go b/generated/stackstate_api/model_prom_batch_query_request.go new file mode 100644 index 00000000..4620ee12 --- /dev/null +++ b/generated/stackstate_api/model_prom_batch_query_request.go @@ -0,0 +1,144 @@ +/* +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" +) + +// PromBatchQueryRequest Executes multiple query items in one request. If both request-level timeout and item-level timeout are set, item-level timeout takes precedence. +type PromBatchQueryRequest struct { + // List of queries to execute. + Queries []PromBatchQueryItem `json:"queries" yaml:"queries"` + Timeout *string `json:"timeout,omitempty" yaml:"timeout,omitempty"` +} + +// NewPromBatchQueryRequest instantiates a new PromBatchQueryRequest 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 NewPromBatchQueryRequest(queries []PromBatchQueryItem) *PromBatchQueryRequest { + this := PromBatchQueryRequest{} + this.Queries = queries + return &this +} + +// NewPromBatchQueryRequestWithDefaults instantiates a new PromBatchQueryRequest 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 NewPromBatchQueryRequestWithDefaults() *PromBatchQueryRequest { + this := PromBatchQueryRequest{} + return &this +} + +// GetQueries returns the Queries field value +func (o *PromBatchQueryRequest) GetQueries() []PromBatchQueryItem { + if o == nil { + var ret []PromBatchQueryItem + return ret + } + + return o.Queries +} + +// GetQueriesOk returns a tuple with the Queries field value +// and a boolean to check if the value has been set. +func (o *PromBatchQueryRequest) GetQueriesOk() ([]PromBatchQueryItem, bool) { + if o == nil { + return nil, false + } + return o.Queries, true +} + +// SetQueries sets field value +func (o *PromBatchQueryRequest) SetQueries(v []PromBatchQueryItem) { + o.Queries = v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *PromBatchQueryRequest) GetTimeout() string { + if o == nil || o.Timeout == nil { + var ret string + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchQueryRequest) GetTimeoutOk() (*string, bool) { + if o == nil || o.Timeout == nil { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *PromBatchQueryRequest) HasTimeout() bool { + if o != nil && o.Timeout != nil { + return true + } + + return false +} + +// SetTimeout gets a reference to the given string and assigns it to the Timeout field. +func (o *PromBatchQueryRequest) SetTimeout(v string) { + o.Timeout = &v +} + +func (o PromBatchQueryRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["queries"] = o.Queries + } + if o.Timeout != nil { + toSerialize["timeout"] = o.Timeout + } + return json.Marshal(toSerialize) +} + +type NullablePromBatchQueryRequest struct { + value *PromBatchQueryRequest + isSet bool +} + +func (v NullablePromBatchQueryRequest) Get() *PromBatchQueryRequest { + return v.value +} + +func (v *NullablePromBatchQueryRequest) Set(val *PromBatchQueryRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePromBatchQueryRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePromBatchQueryRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePromBatchQueryRequest(val *PromBatchQueryRequest) *NullablePromBatchQueryRequest { + return &NullablePromBatchQueryRequest{value: val, isSet: true} +} + +func (v NullablePromBatchQueryRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePromBatchQueryRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_prom_batch_range_query.go b/generated/stackstate_api/model_prom_batch_range_query.go new file mode 100644 index 00000000..004f61e3 --- /dev/null +++ b/generated/stackstate_api/model_prom_batch_range_query.go @@ -0,0 +1,396 @@ +/* +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" +) + +// PromBatchRangeQuery struct for PromBatchRangeQuery +type PromBatchRangeQuery struct { + Id string `json:"id" yaml:"id"` + Type string `json:"_type" yaml:"_type"` + Query string `json:"query" yaml:"query"` + Start string `json:"start" yaml:"start"` + End string `json:"end" yaml:"end"` + Step string `json:"step" yaml:"step"` + Timeout *string `json:"timeout,omitempty" yaml:"timeout,omitempty"` + Aligned *bool `json:"aligned,omitempty" yaml:"aligned,omitempty"` + MaxNumberOfDataPoints *int64 `json:"maxNumberOfDataPoints,omitempty" yaml:"maxNumberOfDataPoints,omitempty"` + PostFilter []string `json:"post_filter,omitempty" yaml:"post_filter,omitempty"` +} + +// NewPromBatchRangeQuery instantiates a new PromBatchRangeQuery 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 NewPromBatchRangeQuery(id string, type_ string, query string, start string, end string, step string) *PromBatchRangeQuery { + this := PromBatchRangeQuery{} + this.Id = id + this.Type = type_ + this.Query = query + this.Start = start + this.End = end + this.Step = step + return &this +} + +// NewPromBatchRangeQueryWithDefaults instantiates a new PromBatchRangeQuery 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 NewPromBatchRangeQueryWithDefaults() *PromBatchRangeQuery { + this := PromBatchRangeQuery{} + return &this +} + +// GetId returns the Id field value +func (o *PromBatchRangeQuery) GetId() string { + if o == nil { + var ret string + 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 *PromBatchRangeQuery) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PromBatchRangeQuery) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *PromBatchRangeQuery) 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 *PromBatchRangeQuery) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PromBatchRangeQuery) SetType(v string) { + o.Type = v +} + +// GetQuery returns the Query field value +func (o *PromBatchRangeQuery) GetQuery() string { + if o == nil { + var ret string + return ret + } + + return o.Query +} + +// GetQueryOk returns a tuple with the Query field value +// and a boolean to check if the value has been set. +func (o *PromBatchRangeQuery) GetQueryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Query, true +} + +// SetQuery sets field value +func (o *PromBatchRangeQuery) SetQuery(v string) { + o.Query = v +} + +// GetStart returns the Start field value +func (o *PromBatchRangeQuery) GetStart() string { + if o == nil { + var ret string + return ret + } + + return o.Start +} + +// GetStartOk returns a tuple with the Start field value +// and a boolean to check if the value has been set. +func (o *PromBatchRangeQuery) GetStartOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Start, true +} + +// SetStart sets field value +func (o *PromBatchRangeQuery) SetStart(v string) { + o.Start = v +} + +// GetEnd returns the End field value +func (o *PromBatchRangeQuery) GetEnd() string { + if o == nil { + var ret string + return ret + } + + return o.End +} + +// GetEndOk returns a tuple with the End field value +// and a boolean to check if the value has been set. +func (o *PromBatchRangeQuery) GetEndOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.End, true +} + +// SetEnd sets field value +func (o *PromBatchRangeQuery) SetEnd(v string) { + o.End = v +} + +// GetStep returns the Step field value +func (o *PromBatchRangeQuery) GetStep() string { + if o == nil { + var ret string + return ret + } + + return o.Step +} + +// GetStepOk returns a tuple with the Step field value +// and a boolean to check if the value has been set. +func (o *PromBatchRangeQuery) GetStepOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Step, true +} + +// SetStep sets field value +func (o *PromBatchRangeQuery) SetStep(v string) { + o.Step = v +} + +// GetTimeout returns the Timeout field value if set, zero value otherwise. +func (o *PromBatchRangeQuery) GetTimeout() string { + if o == nil || o.Timeout == nil { + var ret string + return ret + } + return *o.Timeout +} + +// GetTimeoutOk returns a tuple with the Timeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchRangeQuery) GetTimeoutOk() (*string, bool) { + if o == nil || o.Timeout == nil { + return nil, false + } + return o.Timeout, true +} + +// HasTimeout returns a boolean if a field has been set. +func (o *PromBatchRangeQuery) HasTimeout() bool { + if o != nil && o.Timeout != nil { + return true + } + + return false +} + +// SetTimeout gets a reference to the given string and assigns it to the Timeout field. +func (o *PromBatchRangeQuery) SetTimeout(v string) { + o.Timeout = &v +} + +// GetAligned returns the Aligned field value if set, zero value otherwise. +func (o *PromBatchRangeQuery) GetAligned() bool { + if o == nil || o.Aligned == nil { + var ret bool + return ret + } + return *o.Aligned +} + +// GetAlignedOk returns a tuple with the Aligned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchRangeQuery) GetAlignedOk() (*bool, bool) { + if o == nil || o.Aligned == nil { + return nil, false + } + return o.Aligned, true +} + +// HasAligned returns a boolean if a field has been set. +func (o *PromBatchRangeQuery) HasAligned() bool { + if o != nil && o.Aligned != nil { + return true + } + + return false +} + +// SetAligned gets a reference to the given bool and assigns it to the Aligned field. +func (o *PromBatchRangeQuery) SetAligned(v bool) { + o.Aligned = &v +} + +// GetMaxNumberOfDataPoints returns the MaxNumberOfDataPoints field value if set, zero value otherwise. +func (o *PromBatchRangeQuery) GetMaxNumberOfDataPoints() int64 { + if o == nil || o.MaxNumberOfDataPoints == nil { + var ret int64 + return ret + } + return *o.MaxNumberOfDataPoints +} + +// GetMaxNumberOfDataPointsOk returns a tuple with the MaxNumberOfDataPoints field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchRangeQuery) GetMaxNumberOfDataPointsOk() (*int64, bool) { + if o == nil || o.MaxNumberOfDataPoints == nil { + return nil, false + } + return o.MaxNumberOfDataPoints, true +} + +// HasMaxNumberOfDataPoints returns a boolean if a field has been set. +func (o *PromBatchRangeQuery) HasMaxNumberOfDataPoints() bool { + if o != nil && o.MaxNumberOfDataPoints != nil { + return true + } + + return false +} + +// SetMaxNumberOfDataPoints gets a reference to the given int64 and assigns it to the MaxNumberOfDataPoints field. +func (o *PromBatchRangeQuery) SetMaxNumberOfDataPoints(v int64) { + o.MaxNumberOfDataPoints = &v +} + +// GetPostFilter returns the PostFilter field value if set, zero value otherwise. +func (o *PromBatchRangeQuery) GetPostFilter() []string { + if o == nil || o.PostFilter == nil { + var ret []string + return ret + } + return o.PostFilter +} + +// GetPostFilterOk returns a tuple with the PostFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PromBatchRangeQuery) GetPostFilterOk() ([]string, bool) { + if o == nil || o.PostFilter == nil { + return nil, false + } + return o.PostFilter, true +} + +// HasPostFilter returns a boolean if a field has been set. +func (o *PromBatchRangeQuery) HasPostFilter() bool { + if o != nil && o.PostFilter != nil { + return true + } + + return false +} + +// SetPostFilter gets a reference to the given []string and assigns it to the PostFilter field. +func (o *PromBatchRangeQuery) SetPostFilter(v []string) { + o.PostFilter = v +} + +func (o PromBatchRangeQuery) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["query"] = o.Query + } + if true { + toSerialize["start"] = o.Start + } + if true { + toSerialize["end"] = o.End + } + if true { + toSerialize["step"] = o.Step + } + if o.Timeout != nil { + toSerialize["timeout"] = o.Timeout + } + if o.Aligned != nil { + toSerialize["aligned"] = o.Aligned + } + if o.MaxNumberOfDataPoints != nil { + toSerialize["maxNumberOfDataPoints"] = o.MaxNumberOfDataPoints + } + if o.PostFilter != nil { + toSerialize["post_filter"] = o.PostFilter + } + return json.Marshal(toSerialize) +} + +type NullablePromBatchRangeQuery struct { + value *PromBatchRangeQuery + isSet bool +} + +func (v NullablePromBatchRangeQuery) Get() *PromBatchRangeQuery { + return v.value +} + +func (v *NullablePromBatchRangeQuery) Set(val *PromBatchRangeQuery) { + v.value = val + v.isSet = true +} + +func (v NullablePromBatchRangeQuery) IsSet() bool { + return v.isSet +} + +func (v *NullablePromBatchRangeQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePromBatchRangeQuery(val *PromBatchRangeQuery) *NullablePromBatchRangeQuery { + return &NullablePromBatchRangeQuery{value: val, isSet: true} +} + +func (v NullablePromBatchRangeQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePromBatchRangeQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_prom_batch_result.go b/generated/stackstate_api/model_prom_batch_result.go new file mode 100644 index 00000000..0161c316 --- /dev/null +++ b/generated/stackstate_api/model_prom_batch_result.go @@ -0,0 +1,164 @@ +/* +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" +) + +// PromBatchResult - struct for PromBatchResult +type PromBatchResult struct { + PromBatchError *PromBatchError + PromBatchSuccess *PromBatchSuccess +} + +// PromBatchErrorAsPromBatchResult is a convenience function that returns PromBatchError wrapped in PromBatchResult +func PromBatchErrorAsPromBatchResult(v *PromBatchError) PromBatchResult { + return PromBatchResult{ + PromBatchError: v, + } +} + +// PromBatchSuccessAsPromBatchResult is a convenience function that returns PromBatchSuccess wrapped in PromBatchResult +func PromBatchSuccessAsPromBatchResult(v *PromBatchSuccess) PromBatchResult { + return PromBatchResult{ + PromBatchSuccess: v, + } +} + +// Unmarshal JSON data into one of the pointers in the struct +func (dst *PromBatchResult) 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 'PromBatchError' + if jsonDict["resultType"] == "PromBatchError" { + // try to unmarshal JSON data into PromBatchError + err = json.Unmarshal(data, &dst.PromBatchError) + if err == nil { + return nil // data stored in dst.PromBatchError, return on the first match + } else { + dst.PromBatchError = nil + return fmt.Errorf("Failed to unmarshal PromBatchResult as PromBatchError: %s", err.Error()) + } + } + + // check if the discriminator value is 'PromBatchSuccess' + if jsonDict["resultType"] == "PromBatchSuccess" { + // try to unmarshal JSON data into PromBatchSuccess + err = json.Unmarshal(data, &dst.PromBatchSuccess) + if err == nil { + return nil // data stored in dst.PromBatchSuccess, return on the first match + } else { + dst.PromBatchSuccess = nil + return fmt.Errorf("Failed to unmarshal PromBatchResult as PromBatchSuccess: %s", err.Error()) + } + } + + // check if the discriminator value is 'error' + if jsonDict["resultType"] == "error" { + // try to unmarshal JSON data into PromBatchError + err = json.Unmarshal(data, &dst.PromBatchError) + if err == nil { + return nil // data stored in dst.PromBatchError, return on the first match + } else { + dst.PromBatchError = nil + return fmt.Errorf("Failed to unmarshal PromBatchResult as PromBatchError: %s", err.Error()) + } + } + + // check if the discriminator value is 'success' + if jsonDict["resultType"] == "success" { + // try to unmarshal JSON data into PromBatchSuccess + err = json.Unmarshal(data, &dst.PromBatchSuccess) + if err == nil { + return nil // data stored in dst.PromBatchSuccess, return on the first match + } else { + dst.PromBatchSuccess = nil + return fmt.Errorf("Failed to unmarshal PromBatchResult as PromBatchSuccess: %s", err.Error()) + } + } + + return nil +} + +// Marshal data from the first non-nil pointers in the struct to JSON +func (src PromBatchResult) MarshalJSON() ([]byte, error) { + if src.PromBatchError != nil { + return json.Marshal(&src.PromBatchError) + } + + if src.PromBatchSuccess != nil { + return json.Marshal(&src.PromBatchSuccess) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *PromBatchResult) GetActualInstance() interface{} { + if obj == nil { + return nil + } + if obj.PromBatchError != nil { + return obj.PromBatchError + } + + if obj.PromBatchSuccess != nil { + return obj.PromBatchSuccess + } + + // all schemas are nil + return nil +} + +type NullablePromBatchResult struct { + value *PromBatchResult + isSet bool +} + +func (v NullablePromBatchResult) Get() *PromBatchResult { + return v.value +} + +func (v *NullablePromBatchResult) Set(val *PromBatchResult) { + v.value = val + v.isSet = true +} + +func (v NullablePromBatchResult) IsSet() bool { + return v.isSet +} + +func (v *NullablePromBatchResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePromBatchResult(val *PromBatchResult) *NullablePromBatchResult { + return &NullablePromBatchResult{value: val, isSet: true} +} + +func (v NullablePromBatchResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePromBatchResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_prom_batch_success.go b/generated/stackstate_api/model_prom_batch_success.go new file mode 100644 index 00000000..142e7223 --- /dev/null +++ b/generated/stackstate_api/model_prom_batch_success.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" +) + +// PromBatchSuccess struct for PromBatchSuccess +type PromBatchSuccess struct { + Id string `json:"id" yaml:"id"` + ResultType string `json:"resultType" yaml:"resultType"` + Data PromEnvelope `json:"data" yaml:"data"` +} + +// NewPromBatchSuccess instantiates a new PromBatchSuccess 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 NewPromBatchSuccess(id string, resultType string, data PromEnvelope) *PromBatchSuccess { + this := PromBatchSuccess{} + this.Id = id + this.ResultType = resultType + this.Data = data + return &this +} + +// NewPromBatchSuccessWithDefaults instantiates a new PromBatchSuccess 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 NewPromBatchSuccessWithDefaults() *PromBatchSuccess { + this := PromBatchSuccess{} + return &this +} + +// GetId returns the Id field value +func (o *PromBatchSuccess) GetId() string { + if o == nil { + var ret string + 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 *PromBatchSuccess) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PromBatchSuccess) SetId(v string) { + o.Id = v +} + +// GetResultType returns the ResultType field value +func (o *PromBatchSuccess) GetResultType() string { + if o == nil { + var ret string + return ret + } + + return o.ResultType +} + +// GetResultTypeOk returns a tuple with the ResultType field value +// and a boolean to check if the value has been set. +func (o *PromBatchSuccess) GetResultTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResultType, true +} + +// SetResultType sets field value +func (o *PromBatchSuccess) SetResultType(v string) { + o.ResultType = v +} + +// GetData returns the Data field value +func (o *PromBatchSuccess) GetData() PromEnvelope { + if o == nil { + var ret PromEnvelope + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PromBatchSuccess) GetDataOk() (*PromEnvelope, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PromBatchSuccess) SetData(v PromEnvelope) { + o.Data = v +} + +func (o PromBatchSuccess) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["id"] = o.Id + } + if true { + toSerialize["resultType"] = o.ResultType + } + if true { + toSerialize["data"] = o.Data + } + return json.Marshal(toSerialize) +} + +type NullablePromBatchSuccess struct { + value *PromBatchSuccess + isSet bool +} + +func (v NullablePromBatchSuccess) Get() *PromBatchSuccess { + return v.value +} + +func (v *NullablePromBatchSuccess) Set(val *PromBatchSuccess) { + v.value = val + v.isSet = true +} + +func (v NullablePromBatchSuccess) IsSet() bool { + return v.isSet +} + +func (v *NullablePromBatchSuccess) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePromBatchSuccess(val *PromBatchSuccess) *NullablePromBatchSuccess { + return &NullablePromBatchSuccess{value: val, isSet: true} +} + +func (v NullablePromBatchSuccess) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePromBatchSuccess) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_prom_ql_display.go b/generated/stackstate_api/model_promql_display.go similarity index 64% rename from generated/stackstate_api/model_prom_ql_display.go rename to generated/stackstate_api/model_promql_display.go index d3c2d941..59c9ec03 100644 --- a/generated/stackstate_api/model_prom_ql_display.go +++ b/generated/stackstate_api/model_promql_display.go @@ -15,31 +15,31 @@ import ( "encoding/json" ) -// PromQLDisplay struct for PromQLDisplay -type PromQLDisplay struct { +// PromqlDisplay struct for PromqlDisplay +type PromqlDisplay struct { Type string `json:"_type" yaml:"_type"` } -// NewPromQLDisplay instantiates a new PromQLDisplay object +// NewPromqlDisplay instantiates a new PromqlDisplay object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPromQLDisplay(type_ string) *PromQLDisplay { - this := PromQLDisplay{} +func NewPromqlDisplay(type_ string) *PromqlDisplay { + this := PromqlDisplay{} this.Type = type_ return &this } -// NewPromQLDisplayWithDefaults instantiates a new PromQLDisplay object +// NewPromqlDisplayWithDefaults instantiates a new PromqlDisplay object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPromQLDisplayWithDefaults() *PromQLDisplay { - this := PromQLDisplay{} +func NewPromqlDisplayWithDefaults() *PromqlDisplay { + this := PromqlDisplay{} return &this } // GetType returns the Type field value -func (o *PromQLDisplay) GetType() string { +func (o *PromqlDisplay) GetType() string { if o == nil { var ret string return ret @@ -50,7 +50,7 @@ func (o *PromQLDisplay) GetType() string { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *PromQLDisplay) GetTypeOk() (*string, bool) { +func (o *PromqlDisplay) GetTypeOk() (*string, bool) { if o == nil { return nil, false } @@ -58,11 +58,11 @@ func (o *PromQLDisplay) GetTypeOk() (*string, bool) { } // SetType sets field value -func (o *PromQLDisplay) SetType(v string) { +func (o *PromqlDisplay) SetType(v string) { o.Type = v } -func (o PromQLDisplay) MarshalJSON() ([]byte, error) { +func (o PromqlDisplay) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { toSerialize["_type"] = o.Type @@ -70,38 +70,38 @@ func (o PromQLDisplay) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullablePromQLDisplay struct { - value *PromQLDisplay +type NullablePromqlDisplay struct { + value *PromqlDisplay isSet bool } -func (v NullablePromQLDisplay) Get() *PromQLDisplay { +func (v NullablePromqlDisplay) Get() *PromqlDisplay { return v.value } -func (v *NullablePromQLDisplay) Set(val *PromQLDisplay) { +func (v *NullablePromqlDisplay) Set(val *PromqlDisplay) { v.value = val v.isSet = true } -func (v NullablePromQLDisplay) IsSet() bool { +func (v NullablePromqlDisplay) IsSet() bool { return v.isSet } -func (v *NullablePromQLDisplay) Unset() { +func (v *NullablePromqlDisplay) Unset() { v.value = nil v.isSet = false } -func NewNullablePromQLDisplay(val *PromQLDisplay) *NullablePromQLDisplay { - return &NullablePromQLDisplay{value: val, isSet: true} +func NewNullablePromqlDisplay(val *PromqlDisplay) *NullablePromqlDisplay { + return &NullablePromqlDisplay{value: val, isSet: true} } -func (v NullablePromQLDisplay) MarshalJSON() ([]byte, error) { +func (v NullablePromqlDisplay) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePromQLDisplay) UnmarshalJSON(src []byte) error { +func (v *NullablePromqlDisplay) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/generated/stackstate_api/model_ready_status_cell.go b/generated/stackstate_api/model_ready_status_cell.go new file mode 100644 index 00000000..b9011fc2 --- /dev/null +++ b/generated/stackstate_api/model_ready_status_cell.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" +) + +// ReadyStatusCell struct for ReadyStatusCell +type ReadyStatusCell struct { + Type string `json:"_type" yaml:"_type"` + Ready int32 `json:"ready" yaml:"ready"` + Total int32 `json:"total" yaml:"total"` + Status *HealthStateValue `json:"status,omitempty" yaml:"status,omitempty"` +} + +// NewReadyStatusCell instantiates a new ReadyStatusCell 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 NewReadyStatusCell(type_ string, ready int32, total int32) *ReadyStatusCell { + this := ReadyStatusCell{} + this.Type = type_ + this.Ready = ready + this.Total = total + return &this +} + +// NewReadyStatusCellWithDefaults instantiates a new ReadyStatusCell 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 NewReadyStatusCellWithDefaults() *ReadyStatusCell { + this := ReadyStatusCell{} + return &this +} + +// GetType returns the Type field value +func (o *ReadyStatusCell) 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 *ReadyStatusCell) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ReadyStatusCell) SetType(v string) { + o.Type = v +} + +// GetReady returns the Ready field value +func (o *ReadyStatusCell) GetReady() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Ready +} + +// GetReadyOk returns a tuple with the Ready field value +// and a boolean to check if the value has been set. +func (o *ReadyStatusCell) GetReadyOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Ready, true +} + +// SetReady sets field value +func (o *ReadyStatusCell) SetReady(v int32) { + o.Ready = v +} + +// GetTotal returns the Total field value +func (o *ReadyStatusCell) GetTotal() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *ReadyStatusCell) GetTotalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *ReadyStatusCell) SetTotal(v int32) { + o.Total = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ReadyStatusCell) GetStatus() HealthStateValue { + if o == nil || o.Status == nil { + var ret HealthStateValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadyStatusCell) GetStatusOk() (*HealthStateValue, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ReadyStatusCell) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given HealthStateValue and assigns it to the Status field. +func (o *ReadyStatusCell) SetStatus(v HealthStateValue) { + o.Status = &v +} + +func (o ReadyStatusCell) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["ready"] = o.Ready + } + if true { + toSerialize["total"] = o.Total + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableReadyStatusCell struct { + value *ReadyStatusCell + isSet bool +} + +func (v NullableReadyStatusCell) Get() *ReadyStatusCell { + return v.value +} + +func (v *NullableReadyStatusCell) Set(val *ReadyStatusCell) { + v.value = val + v.isSet = true +} + +func (v NullableReadyStatusCell) IsSet() bool { + return v.isSet +} + +func (v *NullableReadyStatusCell) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadyStatusCell(val *ReadyStatusCell) *NullableReadyStatusCell { + return &NullableReadyStatusCell{value: val, isSet: true} +} + +func (v NullableReadyStatusCell) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadyStatusCell) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_ready_status_meta_display.go b/generated/stackstate_api/model_ready_status_meta_display.go new file mode 100644 index 00000000..57a7f0bb --- /dev/null +++ b/generated/stackstate_api/model_ready_status_meta_display.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" +) + +// ReadyStatusMetaDisplay struct for ReadyStatusMetaDisplay +type ReadyStatusMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` +} + +// NewReadyStatusMetaDisplay instantiates a new ReadyStatusMetaDisplay 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 NewReadyStatusMetaDisplay(type_ string) *ReadyStatusMetaDisplay { + this := ReadyStatusMetaDisplay{} + this.Type = type_ + return &this +} + +// NewReadyStatusMetaDisplayWithDefaults instantiates a new ReadyStatusMetaDisplay 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 NewReadyStatusMetaDisplayWithDefaults() *ReadyStatusMetaDisplay { + this := ReadyStatusMetaDisplay{} + return &this +} + +// GetType returns the Type field value +func (o *ReadyStatusMetaDisplay) 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 *ReadyStatusMetaDisplay) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ReadyStatusMetaDisplay) SetType(v string) { + o.Type = v +} + +func (o ReadyStatusMetaDisplay) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableReadyStatusMetaDisplay struct { + value *ReadyStatusMetaDisplay + isSet bool +} + +func (v NullableReadyStatusMetaDisplay) Get() *ReadyStatusMetaDisplay { + return v.value +} + +func (v *NullableReadyStatusMetaDisplay) Set(val *ReadyStatusMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableReadyStatusMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableReadyStatusMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadyStatusMetaDisplay(val *ReadyStatusMetaDisplay) *NullableReadyStatusMetaDisplay { + return &NullableReadyStatusMetaDisplay{value: val, isSet: true} +} + +func (v NullableReadyStatusMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadyStatusMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_ready_status_projection.go b/generated/stackstate_api/model_ready_status_projection.go new file mode 100644 index 00000000..2468be16 --- /dev/null +++ b/generated/stackstate_api/model_ready_status_projection.go @@ -0,0 +1,204 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// ReadyStatusProjection Helps rendering columns as Ready containers for K8s pods or Completions for K8s jobs +type ReadyStatusProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a number + ReadyNumber string `json:"readyNumber" yaml:"readyNumber"` + // Cel expression that returns a number + TotalNumber string `json:"totalNumber" yaml:"totalNumber"` + // Cel expression that returns a string that represents a valid HealthState + ReadyStatus *string `json:"readyStatus,omitempty" yaml:"readyStatus,omitempty"` +} + +// NewReadyStatusProjection instantiates a new ReadyStatusProjection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadyStatusProjection(type_ string, readyNumber string, totalNumber string) *ReadyStatusProjection { + this := ReadyStatusProjection{} + this.Type = type_ + this.ReadyNumber = readyNumber + this.TotalNumber = totalNumber + return &this +} + +// NewReadyStatusProjectionWithDefaults instantiates a new ReadyStatusProjection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadyStatusProjectionWithDefaults() *ReadyStatusProjection { + this := ReadyStatusProjection{} + return &this +} + +// GetType returns the Type field value +func (o *ReadyStatusProjection) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ReadyStatusProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ReadyStatusProjection) SetType(v string) { + o.Type = v +} + +// GetReadyNumber returns the ReadyNumber field value +func (o *ReadyStatusProjection) GetReadyNumber() string { + if o == nil { + var ret string + return ret + } + + return o.ReadyNumber +} + +// GetReadyNumberOk returns a tuple with the ReadyNumber field value +// and a boolean to check if the value has been set. +func (o *ReadyStatusProjection) GetReadyNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReadyNumber, true +} + +// SetReadyNumber sets field value +func (o *ReadyStatusProjection) SetReadyNumber(v string) { + o.ReadyNumber = v +} + +// GetTotalNumber returns the TotalNumber field value +func (o *ReadyStatusProjection) GetTotalNumber() string { + if o == nil { + var ret string + return ret + } + + return o.TotalNumber +} + +// GetTotalNumberOk returns a tuple with the TotalNumber field value +// and a boolean to check if the value has been set. +func (o *ReadyStatusProjection) GetTotalNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TotalNumber, true +} + +// SetTotalNumber sets field value +func (o *ReadyStatusProjection) SetTotalNumber(v string) { + o.TotalNumber = v +} + +// GetReadyStatus returns the ReadyStatus field value if set, zero value otherwise. +func (o *ReadyStatusProjection) GetReadyStatus() string { + if o == nil || o.ReadyStatus == nil { + var ret string + return ret + } + return *o.ReadyStatus +} + +// GetReadyStatusOk returns a tuple with the ReadyStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReadyStatusProjection) GetReadyStatusOk() (*string, bool) { + if o == nil || o.ReadyStatus == nil { + return nil, false + } + return o.ReadyStatus, true +} + +// HasReadyStatus returns a boolean if a field has been set. +func (o *ReadyStatusProjection) HasReadyStatus() bool { + if o != nil && o.ReadyStatus != nil { + return true + } + + return false +} + +// SetReadyStatus gets a reference to the given string and assigns it to the ReadyStatus field. +func (o *ReadyStatusProjection) SetReadyStatus(v string) { + o.ReadyStatus = &v +} + +func (o ReadyStatusProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["readyNumber"] = o.ReadyNumber + } + if true { + toSerialize["totalNumber"] = o.TotalNumber + } + if o.ReadyStatus != nil { + toSerialize["readyStatus"] = o.ReadyStatus + } + return json.Marshal(toSerialize) +} + +type NullableReadyStatusProjection struct { + value *ReadyStatusProjection + isSet bool +} + +func (v NullableReadyStatusProjection) Get() *ReadyStatusProjection { + return v.value +} + +func (v *NullableReadyStatusProjection) Set(val *ReadyStatusProjection) { + v.value = val + v.isSet = true +} + +func (v NullableReadyStatusProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableReadyStatusProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadyStatusProjection(val *ReadyStatusProjection) *NullableReadyStatusProjection { + return &NullableReadyStatusProjection{value: val, isSet: true} +} + +func (v NullableReadyStatusProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadyStatusProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_server_info.go b/generated/stackstate_api/model_server_info.go index a5cc1b9a..5facb842 100644 --- a/generated/stackstate_api/model_server_info.go +++ b/generated/stackstate_api/model_server_info.go @@ -20,17 +20,19 @@ type ServerInfo struct { Version ServerVersion `json:"version" yaml:"version"` DeploymentMode string `json:"deploymentMode" yaml:"deploymentMode"` // The version value is a semantic version, based on the official Semantic Versioning spec (https://semver.org/). - PlatformVersion *string `json:"platformVersion,omitempty" yaml:"platformVersion,omitempty"` + PlatformVersion *string `json:"platformVersion,omitempty" yaml:"platformVersion,omitempty"` + ApplicationDomains []ApplicationDomain `json:"applicationDomains" yaml:"applicationDomains"` } // NewServerInfo instantiates a new ServerInfo 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 NewServerInfo(version ServerVersion, deploymentMode string) *ServerInfo { +func NewServerInfo(version ServerVersion, deploymentMode string, applicationDomains []ApplicationDomain) *ServerInfo { this := ServerInfo{} this.Version = version this.DeploymentMode = deploymentMode + this.ApplicationDomains = applicationDomains return &this } @@ -122,6 +124,30 @@ func (o *ServerInfo) SetPlatformVersion(v string) { o.PlatformVersion = &v } +// GetApplicationDomains returns the ApplicationDomains field value +func (o *ServerInfo) GetApplicationDomains() []ApplicationDomain { + if o == nil { + var ret []ApplicationDomain + return ret + } + + return o.ApplicationDomains +} + +// GetApplicationDomainsOk returns a tuple with the ApplicationDomains field value +// and a boolean to check if the value has been set. +func (o *ServerInfo) GetApplicationDomainsOk() ([]ApplicationDomain, bool) { + if o == nil { + return nil, false + } + return o.ApplicationDomains, true +} + +// SetApplicationDomains sets field value +func (o *ServerInfo) SetApplicationDomains(v []ApplicationDomain) { + o.ApplicationDomains = v +} + func (o ServerInfo) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -133,6 +159,9 @@ func (o ServerInfo) MarshalJSON() ([]byte, error) { if o.PlatformVersion != nil { toSerialize["platformVersion"] = o.PlatformVersion } + if true { + toSerialize["applicationDomains"] = o.ApplicationDomains + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_text_cell.go b/generated/stackstate_api/model_text_cell.go new file mode 100644 index 00000000..d17078f4 --- /dev/null +++ b/generated/stackstate_api/model_text_cell.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" +) + +// TextCell struct for TextCell +type TextCell struct { + Type string `json:"_type" yaml:"_type"` + Value string `json:"value" yaml:"value"` +} + +// NewTextCell instantiates a new TextCell 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 NewTextCell(type_ string, value string) *TextCell { + this := TextCell{} + this.Type = type_ + this.Value = value + return &this +} + +// NewTextCellWithDefaults instantiates a new TextCell 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 NewTextCellWithDefaults() *TextCell { + this := TextCell{} + return &this +} + +// GetType returns the Type field value +func (o *TextCell) 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 *TextCell) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TextCell) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *TextCell) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *TextCell) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *TextCell) SetValue(v string) { + o.Value = v +} + +func (o TextCell) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableTextCell struct { + value *TextCell + isSet bool +} + +func (v NullableTextCell) Get() *TextCell { + return v.value +} + +func (v *NullableTextCell) Set(val *TextCell) { + v.value = val + v.isSet = true +} + +func (v NullableTextCell) IsSet() bool { + return v.isSet +} + +func (v *NullableTextCell) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTextCell(val *TextCell) *NullableTextCell { + return &NullableTextCell{value: val, isSet: true} +} + +func (v NullableTextCell) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTextCell) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_text_meta_display.go b/generated/stackstate_api/model_text_meta_display.go new file mode 100644 index 00000000..d6e9ffc3 --- /dev/null +++ b/generated/stackstate_api/model_text_meta_display.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" +) + +// TextMetaDisplay struct for TextMetaDisplay +type TextMetaDisplay struct { + Type string `json:"_type" yaml:"_type"` +} + +// NewTextMetaDisplay instantiates a new TextMetaDisplay 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 NewTextMetaDisplay(type_ string) *TextMetaDisplay { + this := TextMetaDisplay{} + this.Type = type_ + return &this +} + +// NewTextMetaDisplayWithDefaults instantiates a new TextMetaDisplay 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 NewTextMetaDisplayWithDefaults() *TextMetaDisplay { + this := TextMetaDisplay{} + return &this +} + +// GetType returns the Type field value +func (o *TextMetaDisplay) 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 *TextMetaDisplay) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TextMetaDisplay) SetType(v string) { + o.Type = v +} + +func (o TextMetaDisplay) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableTextMetaDisplay struct { + value *TextMetaDisplay + isSet bool +} + +func (v NullableTextMetaDisplay) Get() *TextMetaDisplay { + return v.value +} + +func (v *NullableTextMetaDisplay) Set(val *TextMetaDisplay) { + v.value = val + v.isSet = true +} + +func (v NullableTextMetaDisplay) IsSet() bool { + return v.isSet +} + +func (v *NullableTextMetaDisplay) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTextMetaDisplay(val *TextMetaDisplay) *NullableTextMetaDisplay { + return &NullableTextMetaDisplay{value: val, isSet: true} +} + +func (v NullableTextMetaDisplay) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTextMetaDisplay) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_text_projection.go b/generated/stackstate_api/model_text_projection.go new file mode 100644 index 00000000..bc0589e9 --- /dev/null +++ b/generated/stackstate_api/model_text_projection.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" +) + +// TextProjection struct for TextProjection +type TextProjection struct { + Type string `json:"_type" yaml:"_type"` + // Cel expression that returns a string + Value string `json:"value" yaml:"value"` +} + +// NewTextProjection instantiates a new TextProjection 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 NewTextProjection(type_ string, value string) *TextProjection { + this := TextProjection{} + this.Type = type_ + this.Value = value + return &this +} + +// NewTextProjectionWithDefaults instantiates a new TextProjection 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 NewTextProjectionWithDefaults() *TextProjection { + this := TextProjection{} + return &this +} + +// GetType returns the Type field value +func (o *TextProjection) 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 *TextProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TextProjection) SetType(v string) { + o.Type = v +} + +// GetValue returns the Value field value +func (o *TextProjection) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *TextProjection) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *TextProjection) SetValue(v string) { + o.Value = v +} + +func (o TextProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableTextProjection struct { + value *TextProjection + isSet bool +} + +func (v NullableTextProjection) Get() *TextProjection { + return v.value +} + +func (v *NullableTextProjection) Set(val *TextProjection) { + v.value = val + v.isSet = true +} + +func (v NullableTextProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableTextProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTextProjection(val *TextProjection) *NullableTextProjection { + return &NullableTextProjection{value: val, isSet: true} +} + +func (v NullableTextProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTextProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_view_snapshot_request.go b/generated/stackstate_api/model_view_snapshot_request.go index 9b6e4258..631811a6 100644 --- a/generated/stackstate_api/model_view_snapshot_request.go +++ b/generated/stackstate_api/model_view_snapshot_request.go @@ -17,7 +17,6 @@ import ( // ViewSnapshotRequest struct for ViewSnapshotRequest type ViewSnapshotRequest struct { - Type string `json:"_type" yaml:"_type"` // STQL query string Query string `json:"query" yaml:"query"` QueryVersion string `json:"queryVersion" yaml:"queryVersion"` @@ -30,9 +29,8 @@ type ViewSnapshotRequest 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 NewViewSnapshotRequest(type_ string, query string, queryVersion string, metadata QueryMetadata) *ViewSnapshotRequest { +func NewViewSnapshotRequest(query string, queryVersion string, metadata QueryMetadata) *ViewSnapshotRequest { this := ViewSnapshotRequest{} - this.Type = type_ this.Query = query this.QueryVersion = queryVersion this.Metadata = metadata @@ -47,30 +45,6 @@ func NewViewSnapshotRequestWithDefaults() *ViewSnapshotRequest { return &this } -// GetType returns the Type field value -func (o *ViewSnapshotRequest) 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 *ViewSnapshotRequest) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ViewSnapshotRequest) SetType(v string) { - o.Type = v -} - // GetQuery returns the Query field value func (o *ViewSnapshotRequest) GetQuery() string { if o == nil { @@ -177,9 +151,6 @@ func (o *ViewSnapshotRequest) SetViewId(v int64) { func (o ViewSnapshotRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} - if true { - toSerialize["_type"] = o.Type - } if true { toSerialize["query"] = o.Query } diff --git a/internal/di/mock_stackstate_client.go b/internal/di/mock_stackstate_client.go index 2c75fc96..609c7372 100644 --- a/internal/di/mock_stackstate_client.go +++ b/internal/di/mock_stackstate_client.go @@ -121,7 +121,7 @@ func NewMockStackStateClient() MockStackStateClient { // NOTE Used for min version checks. mockAPIVersion := stackstate_api.ServerVersion{Major: 5, Minor: 1, Patch: 0} //nolint:mnd - mockServerInfo := stackstate_api.NewServerInfo(mockAPIVersion, "SaaS") + mockServerInfo := stackstate_api.NewServerInfo(mockAPIVersion, "SaaS", []stackstate_api.ApplicationDomain{"observability"}) return MockStackStateClient{ apiClient: apiClient, diff --git a/stackstate_openapi/openapi_version b/stackstate_openapi/openapi_version index e73c6f50..f5d1582a 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -ac6886c2077e99850fb3b55e8a304aac3faabc3e +34752223ae055d8fe418847be9482643a4636bc7