diff --git a/cmd/otelcomponentmapping/otelcomponentmapping_apply.go b/cmd/otelcomponentmapping/otelcomponentmapping_apply.go index 1d732236..b0b3ebf6 100644 --- a/cmd/otelcomponentmapping/otelcomponentmapping_apply.go +++ b/cmd/otelcomponentmapping/otelcomponentmapping_apply.go @@ -66,6 +66,7 @@ func applyYAMLOtelComponentMapping(cli *di.Deps, api *stackstate_api.APIClient, Output: mapping.Output, Vars: mapping.Vars, ExpireAfter: mapping.ExpireAfter, + Rank: mapping.Rank, } upserted, resp, err := api.OtelMappingApi.UpsertOtelComponentMappings(cli.Context).UpsertOtelComponentMappingsRequest(reqObj).Execute() if err != nil { diff --git a/cmd/otelcomponentmapping/otelcomponentmapping_edit.go b/cmd/otelcomponentmapping/otelcomponentmapping_edit.go index fbbed752..fdd1abbf 100644 --- a/cmd/otelcomponentmapping/otelcomponentmapping_edit.go +++ b/cmd/otelcomponentmapping/otelcomponentmapping_edit.go @@ -79,6 +79,7 @@ func RunEditComponentMappingCommand(args *EditArgs) di.CmdWithApiFn { Output: editedMapping.Output, Vars: editedMapping.Vars, ExpireAfter: editedMapping.ExpireAfter, + Rank: editedMapping.Rank, } upserted, resp, err := api.OtelMappingApi.UpsertOtelComponentMappings(cli.Context).UpsertOtelComponentMappingsRequest(reqObj).Execute() if err != nil { diff --git a/generated/stackstate_admin_api/api_retention.go b/generated/stackstate_admin_api/api_retention.go index 6098379f..7d653926 100644 --- a/generated/stackstate_admin_api/api_retention.go +++ b/generated/stackstate_admin_api/api_retention.go @@ -95,8 +95,8 @@ GetRetentionEpoch Get retention epoch Get StackGraph retention epoch. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetRetentionEpochRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetRetentionEpochRequest */ func (a *RetentionApiService) GetRetentionEpoch(ctx context.Context) ApiGetRetentionEpochRequest { return ApiGetRetentionEpochRequest{ @@ -106,7 +106,8 @@ func (a *RetentionApiService) GetRetentionEpoch(ctx context.Context) ApiGetReten } // Execute executes the request -// @return EpochTx +// +// @return EpochTx func (a *RetentionApiService) GetRetentionEpochExecute(r ApiGetRetentionEpochRequest) (*EpochTx, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -255,8 +256,8 @@ GetRetentionWindow Get retention window Get StackGraph retention window. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetRetentionWindowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetRetentionWindowRequest */ func (a *RetentionApiService) GetRetentionWindow(ctx context.Context) ApiGetRetentionWindowRequest { return ApiGetRetentionWindowRequest{ @@ -266,7 +267,8 @@ func (a *RetentionApiService) GetRetentionWindow(ctx context.Context) ApiGetRete } // Execute executes the request -// @return WindowMs +// +// @return WindowMs func (a *RetentionApiService) GetRetentionWindowExecute(r ApiGetRetentionWindowRequest) (*WindowMs, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -422,8 +424,8 @@ RemoveExpiredData Remove expired data from StackGraph Either schedule removal or immediately remove expired data from StackGraph - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRemoveExpiredDataRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRemoveExpiredDataRequest */ func (a *RetentionApiService) RemoveExpiredData(ctx context.Context) ApiRemoveExpiredDataRequest { return ApiRemoveExpiredDataRequest{ @@ -433,7 +435,8 @@ func (a *RetentionApiService) RemoveExpiredData(ctx context.Context) ApiRemoveEx } // Execute executes the request -// @return RemovalProgress +// +// @return RemovalProgress func (a *RetentionApiService) RemoveExpiredDataExecute(r ApiRemoveExpiredDataRequest) (*RemovalProgress, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -599,8 +602,8 @@ SetRetentionWindow Set retention window Set StackGraph retention window and optionally schedule data removal. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSetRetentionWindowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSetRetentionWindowRequest */ func (a *RetentionApiService) SetRetentionWindow(ctx context.Context) ApiSetRetentionWindowRequest { return ApiSetRetentionWindowRequest{ @@ -610,7 +613,8 @@ func (a *RetentionApiService) SetRetentionWindow(ctx context.Context) ApiSetRete } // Execute executes the request -// @return WindowMs +// +// @return WindowMs func (a *RetentionApiService) SetRetentionWindowExecute(r ApiSetRetentionWindowRequest) (*WindowMs, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost diff --git a/generated/stackstate_api/.openapi-generator/FILES b/generated/stackstate_api/.openapi-generator/FILES index 4f767f56..0d886294 100644 --- a/generated/stackstate_api/.openapi-generator/FILES +++ b/generated/stackstate_api/.openapi-generator/FILES @@ -374,6 +374,7 @@ docs/OrderedComponentPresentationMetricAllOf.md docs/OtelComponentMapping.md docs/OtelComponentMappingFieldMapping.md docs/OtelComponentMappingOutput.md +docs/OtelComponentMappingRank.md docs/OtelInput.md docs/OtelInputDatapoint.md docs/OtelInputLog.md @@ -576,7 +577,10 @@ docs/SystemNotification.md docs/SystemNotificationSeverity.md docs/SystemNotifications.md docs/SystemNotificationsApi.md +docs/TagField.md +docs/TagFieldAllOf.md docs/TagFilter.md +docs/TagProjection.md docs/TeamsChannelRefId.md docs/TeamsChannelWriteSchema.md docs/TeamsNotificationChannel.md @@ -964,6 +968,7 @@ model_ordered_component_presentation_metric_all_of.go model_otel_component_mapping.go model_otel_component_mapping_field_mapping.go model_otel_component_mapping_output.go +model_otel_component_mapping_rank.go model_otel_input.go model_otel_input_datapoint.go model_otel_input_log.go @@ -1152,7 +1157,10 @@ model_suggestions.go model_system_notification.go model_system_notification_severity.go model_system_notifications.go +model_tag_field.go +model_tag_field_all_of.go model_tag_filter.go +model_tag_projection.go model_teams_channel_ref_id.go model_teams_channel_write_schema.go model_teams_notification_channel.go diff --git a/generated/stackstate_api/README.md b/generated/stackstate_api/README.md index caff4d80..b0523d35 100644 --- a/generated/stackstate_api/README.md +++ b/generated/stackstate_api/README.md @@ -577,6 +577,7 @@ Class | Method | HTTP request | Description - [OtelComponentMapping](docs/OtelComponentMapping.md) - [OtelComponentMappingFieldMapping](docs/OtelComponentMappingFieldMapping.md) - [OtelComponentMappingOutput](docs/OtelComponentMappingOutput.md) + - [OtelComponentMappingRank](docs/OtelComponentMappingRank.md) - [OtelInput](docs/OtelInput.md) - [OtelInputDatapoint](docs/OtelInputDatapoint.md) - [OtelInputLog](docs/OtelInputLog.md) @@ -765,7 +766,10 @@ Class | Method | HTTP request | Description - [SystemNotification](docs/SystemNotification.md) - [SystemNotificationSeverity](docs/SystemNotificationSeverity.md) - [SystemNotifications](docs/SystemNotifications.md) + - [TagField](docs/TagField.md) + - [TagFieldAllOf](docs/TagFieldAllOf.md) - [TagFilter](docs/TagFilter.md) + - [TagProjection](docs/TagProjection.md) - [TeamsChannelRefId](docs/TeamsChannelRefId.md) - [TeamsChannelWriteSchema](docs/TeamsChannelWriteSchema.md) - [TeamsNotificationChannel](docs/TeamsNotificationChannel.md) diff --git a/generated/stackstate_api/api/openapi.yaml b/generated/stackstate_api/api/openapi.yaml index b8e3dfa2..876af827 100644 --- a/generated/stackstate_api/api/openapi.yaml +++ b/generated/stackstate_api/api/openapi.yaml @@ -14648,6 +14648,7 @@ components: - $ref: '#/components/schemas/DurationField' - $ref: '#/components/schemas/RatioField' - $ref: '#/components/schemas/MapField' + - $ref: '#/components/schemas/TagField' ErrorField: allOf: - $ref: '#/components/schemas/BaseComponentField' @@ -14700,6 +14701,10 @@ components: allOf: - $ref: '#/components/schemas/BaseComponentField' - $ref: '#/components/schemas/MapField_allOf' + TagField: + allOf: + - $ref: '#/components/schemas/BaseComponentField' + - $ref: '#/components/schemas/TagField_allOf' ExternalComponent: example: syncName: syncName @@ -17065,7 +17070,6 @@ components: identifier: identifier name: name typeName: typeName - typeIdentifier: typeIdentifier optional: configuration: configuration additionalIdentifiers: @@ -17110,11 +17114,6 @@ components: \ these formats:\n - A plain string, for example `\"this is a plain string\"\ `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" type: string - typeIdentifier: - description: "An expression that must produce a string. It must be one of\ - \ these formats:\n - A plain string, for example `\"this is a plain string\"\ - `\n - A cel expression that must return a string, for example: `resource.attributes['service.namespace']`" - type: string required: $ref: '#/components/schemas/OtelComponentMappingFieldMapping' optional: @@ -17219,13 +17218,28 @@ components: - name - value type: object + OtelComponentMappingRank: + example: + specificity: 6.027456183070403 + properties: + specificity: + description: "Determines how much of a \"specialization\" this mapping is.\ + \ Higher number means more specific. Used during component merge to pick\ + \ the winning typeName / name when multiple mappings contribute to the\ + \ same component identifier. Recommended ranges: 1–99 environment & infrastructure;\ + \ 100–199 platform & orchestration (k8s, otel base); 200–299 application\ + \ / service; 300–399 runtime / SDK / language; 400+ user overrides." + format: double + type: number + required: + - specificity + type: object OtelComponentMapping: example: output: identifier: identifier name: name typeName: typeName - typeIdentifier: typeIdentifier optional: configuration: configuration additionalIdentifiers: @@ -17280,6 +17294,8 @@ components: _type: OtelComponentMapping name: name description: description + rank: + specificity: 6.027456183070403 expireAfter: 0 vars: - name: name @@ -17308,6 +17324,8 @@ components: expireAfter: format: int64 type: integer + rank: + $ref: '#/components/schemas/OtelComponentMappingRank' required: - _type - expireAfter @@ -17315,6 +17333,7 @@ components: - input - name - output + - rank type: object OtelMappingStatus: example: @@ -20672,6 +20691,7 @@ components: - $ref: '#/components/schemas/RatioProjection' - $ref: '#/components/schemas/ContainerImageProjection' - $ref: '#/components/schemas/MapProjection' + - $ref: '#/components/schemas/TagProjection' MapProjection: properties: _type: @@ -20681,13 +20701,19 @@ components: value: description: "Cel expression that returns a map" type: string - asTags: - default: true - type: boolean required: - _type - value type: object + TagProjection: + properties: + _type: + enum: + - TagProjection + type: string + required: + - _type + type: object PresentationHighlightProvisioning: description: Provisioning section of a component in the highlight presentation. The `topologySourceSelector` field is used to identify the external component @@ -21153,12 +21179,15 @@ components: expireAfter: format: int64 type: integer + rank: + $ref: '#/components/schemas/OtelComponentMappingRank' required: - expireAfter - identifier - input - name - output + - rank type: object upsertOtelRelationMappings_request: properties: @@ -21489,12 +21518,22 @@ components: additionalProperties: type: string type: object - asTag: - default: false - type: boolean required: - _type - - asTag + - values + type: object + TagField_allOf: + properties: + _type: + enum: + - TagField + type: string + values: + items: + type: string + type: array + required: + - _type - values type: object TimelineSummaryRequest_arguments: diff --git a/generated/stackstate_api/docs/ComponentField.md b/generated/stackstate_api/docs/ComponentField.md index cc9208ce..7d2092ba 100644 --- a/generated/stackstate_api/docs/ComponentField.md +++ b/generated/stackstate_api/docs/ComponentField.md @@ -23,13 +23,13 @@ Name | Type | Description | Notes **Numerator** | **float32** | | **Denominator** | **float32** | | **Status** | Pointer to [**HealthStateValue**](HealthStateValue.md) | | [optional] -**Values** | **map[string]string** | | +**Values** | **[]string** | | ## Methods ### NewComponentField -`func NewComponentField(fieldId string, title string, type_ string, message string, query string, name string, url string, identifier string, state HealthStateValue, value float32, asTag bool, startTime int32, numerator float32, denominator float32, values map[string]string, ) *ComponentField` +`func NewComponentField(fieldId string, title string, type_ string, message string, query string, name string, url string, identifier string, state HealthStateValue, value float32, asTag bool, startTime int32, numerator float32, denominator float32, values []string, ) *ComponentField` NewComponentField instantiates a new ComponentField object This constructor will assign default values to properties that have it defined, @@ -461,20 +461,20 @@ HasStatus returns a boolean if a field has been set. ### GetValues -`func (o *ComponentField) GetValues() map[string]string` +`func (o *ComponentField) GetValues() []string` GetValues returns the Values field if non-nil, zero value otherwise. ### GetValuesOk -`func (o *ComponentField) GetValuesOk() (*map[string]string, bool)` +`func (o *ComponentField) GetValuesOk() (*[]string, bool)` GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetValues -`func (o *ComponentField) SetValues(v map[string]string)` +`func (o *ComponentField) SetValues(v []string)` SetValues sets Values field to given value. diff --git a/generated/stackstate_api/docs/ComponentHighlightProjection.md b/generated/stackstate_api/docs/ComponentHighlightProjection.md index f0d4bbe3..216a7d74 100644 --- a/generated/stackstate_api/docs/ComponentHighlightProjection.md +++ b/generated/stackstate_api/docs/ComponentHighlightProjection.md @@ -21,7 +21,6 @@ Name | Type | Description | Notes **Status** | Pointer to **string** | Cel expression that returns a string that represents a valid HealthState | [optional] **ImageId** | **string** | Cel expression that returns a string | **ImageName** | **string** | Cel expression that returns a string | -**AsTags** | Pointer to **bool** | | [optional] [default to true] ## Methods @@ -427,31 +426,6 @@ and a boolean to check if the value has been set. SetImageName sets ImageName field to given value. -### GetAsTags - -`func (o *ComponentHighlightProjection) GetAsTags() bool` - -GetAsTags returns the AsTags field if non-nil, zero value otherwise. - -### GetAsTagsOk - -`func (o *ComponentHighlightProjection) GetAsTagsOk() (*bool, bool)` - -GetAsTagsOk returns a tuple with the AsTags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTags - -`func (o *ComponentHighlightProjection) SetAsTags(v bool)` - -SetAsTags sets AsTags field to given value. - -### HasAsTags - -`func (o *ComponentHighlightProjection) HasAsTags() bool` - -HasAsTags returns a boolean if a field has been set. - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/MapField.md b/generated/stackstate_api/docs/MapField.md index cf367df7..9ddbecb6 100644 --- a/generated/stackstate_api/docs/MapField.md +++ b/generated/stackstate_api/docs/MapField.md @@ -9,13 +9,12 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **Type** | **string** | | **Values** | **map[string]string** | | -**AsTag** | **bool** | | [default to false] ## Methods ### NewMapField -`func NewMapField(fieldId string, title string, type_ string, values map[string]string, asTag bool, ) *MapField` +`func NewMapField(fieldId string, title string, type_ string, values map[string]string, ) *MapField` NewMapField instantiates a new MapField object This constructor will assign default values to properties that have it defined, @@ -135,26 +134,6 @@ and a boolean to check if the value has been set. SetValues sets Values field to given value. -### GetAsTag - -`func (o *MapField) GetAsTag() bool` - -GetAsTag returns the AsTag field if non-nil, zero value otherwise. - -### GetAsTagOk - -`func (o *MapField) GetAsTagOk() (*bool, bool)` - -GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTag - -`func (o *MapField) SetAsTag(v bool)` - -SetAsTag sets AsTag field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/MapFieldAllOf.md b/generated/stackstate_api/docs/MapFieldAllOf.md index 3560806a..87de760e 100644 --- a/generated/stackstate_api/docs/MapFieldAllOf.md +++ b/generated/stackstate_api/docs/MapFieldAllOf.md @@ -6,13 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | **Values** | **map[string]string** | | -**AsTag** | **bool** | | [default to false] ## Methods ### NewMapFieldAllOf -`func NewMapFieldAllOf(type_ string, values map[string]string, asTag bool, ) *MapFieldAllOf` +`func NewMapFieldAllOf(type_ string, values map[string]string, ) *MapFieldAllOf` NewMapFieldAllOf instantiates a new MapFieldAllOf object This constructor will assign default values to properties that have it defined, @@ -67,26 +66,6 @@ and a boolean to check if the value has been set. SetValues sets Values field to given value. -### GetAsTag - -`func (o *MapFieldAllOf) GetAsTag() bool` - -GetAsTag returns the AsTag field if non-nil, zero value otherwise. - -### GetAsTagOk - -`func (o *MapFieldAllOf) GetAsTagOk() (*bool, bool)` - -GetAsTagOk returns a tuple with the AsTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTag - -`func (o *MapFieldAllOf) SetAsTag(v bool)` - -SetAsTag sets AsTag field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/MapProjection.md b/generated/stackstate_api/docs/MapProjection.md index 42d19dd5..23420e30 100644 --- a/generated/stackstate_api/docs/MapProjection.md +++ b/generated/stackstate_api/docs/MapProjection.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | **Value** | **string** | Cel expression that returns a map<string,dyn> | -**AsTags** | Pointer to **bool** | | [optional] [default to true] ## Methods @@ -67,31 +66,6 @@ and a boolean to check if the value has been set. SetValue sets Value field to given value. -### GetAsTags - -`func (o *MapProjection) GetAsTags() bool` - -GetAsTags returns the AsTags field if non-nil, zero value otherwise. - -### GetAsTagsOk - -`func (o *MapProjection) GetAsTagsOk() (*bool, bool)` - -GetAsTagsOk returns a tuple with the AsTags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsTags - -`func (o *MapProjection) SetAsTags(v bool)` - -SetAsTags sets AsTags field to given value. - -### HasAsTags - -`func (o *MapProjection) HasAsTags() bool` - -HasAsTags returns a boolean if a field has been set. - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/OtelComponentMapping.md b/generated/stackstate_api/docs/OtelComponentMapping.md index 39a68525..cb448088 100644 --- a/generated/stackstate_api/docs/OtelComponentMapping.md +++ b/generated/stackstate_api/docs/OtelComponentMapping.md @@ -12,12 +12,13 @@ Name | Type | Description | Notes **Output** | [**OtelComponentMappingOutput**](OtelComponentMappingOutput.md) | | **Vars** | Pointer to [**[]OtelVariableMapping**](OtelVariableMapping.md) | | [optional] **ExpireAfter** | **int64** | | +**Rank** | [**OtelComponentMappingRank**](OtelComponentMappingRank.md) | | ## Methods ### NewOtelComponentMapping -`func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, ) *OtelComponentMapping` +`func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, rank OtelComponentMappingRank, ) *OtelComponentMapping` NewOtelComponentMapping instantiates a new OtelComponentMapping object This constructor will assign default values to properties that have it defined, @@ -202,6 +203,26 @@ and a boolean to check if the value has been set. SetExpireAfter sets ExpireAfter field to given value. +### GetRank + +`func (o *OtelComponentMapping) GetRank() OtelComponentMappingRank` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *OtelComponentMapping) GetRankOk() (*OtelComponentMappingRank, bool)` + +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. + +### SetRank + +`func (o *OtelComponentMapping) SetRank(v OtelComponentMappingRank)` + +SetRank sets Rank field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/docs/OtelComponentMappingOutput.md b/generated/stackstate_api/docs/OtelComponentMappingOutput.md index 3dbdcfa6..c4240b30 100644 --- a/generated/stackstate_api/docs/OtelComponentMappingOutput.md +++ b/generated/stackstate_api/docs/OtelComponentMappingOutput.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes **Identifier** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | **Name** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | **TypeName** | **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | -**TypeIdentifier** | Pointer to **string** | An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` | [optional] **Required** | Pointer to [**OtelComponentMappingFieldMapping**](OtelComponentMappingFieldMapping.md) | | [optional] **Optional** | Pointer to [**OtelComponentMappingFieldMapping**](OtelComponentMappingFieldMapping.md) | | [optional] @@ -90,31 +89,6 @@ and a boolean to check if the value has been set. SetTypeName sets TypeName field to given value. -### GetTypeIdentifier - -`func (o *OtelComponentMappingOutput) GetTypeIdentifier() string` - -GetTypeIdentifier returns the TypeIdentifier field if non-nil, zero value otherwise. - -### GetTypeIdentifierOk - -`func (o *OtelComponentMappingOutput) GetTypeIdentifierOk() (*string, bool)` - -GetTypeIdentifierOk returns a tuple with the TypeIdentifier field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeIdentifier - -`func (o *OtelComponentMappingOutput) SetTypeIdentifier(v string)` - -SetTypeIdentifier sets TypeIdentifier field to given value. - -### HasTypeIdentifier - -`func (o *OtelComponentMappingOutput) HasTypeIdentifier() bool` - -HasTypeIdentifier returns a boolean if a field has been set. - ### GetRequired `func (o *OtelComponentMappingOutput) GetRequired() OtelComponentMappingFieldMapping` diff --git a/generated/stackstate_api/docs/OtelComponentMappingRank.md b/generated/stackstate_api/docs/OtelComponentMappingRank.md new file mode 100644 index 00000000..0fa6ff9e --- /dev/null +++ b/generated/stackstate_api/docs/OtelComponentMappingRank.md @@ -0,0 +1,51 @@ +# OtelComponentMappingRank + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Specificity** | **float64** | Determines how much of a \"specialization\" this mapping is. Higher number means more specific. Used during component merge to pick the winning typeName / name when multiple mappings contribute to the same component identifier. Recommended ranges: 1–99 environment & infrastructure; 100–199 platform & orchestration (k8s, otel base); 200–299 application / service; 300–399 runtime / SDK / language; 400+ user overrides. | + +## Methods + +### NewOtelComponentMappingRank + +`func NewOtelComponentMappingRank(specificity float64, ) *OtelComponentMappingRank` + +NewOtelComponentMappingRank instantiates a new OtelComponentMappingRank object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOtelComponentMappingRankWithDefaults + +`func NewOtelComponentMappingRankWithDefaults() *OtelComponentMappingRank` + +NewOtelComponentMappingRankWithDefaults instantiates a new OtelComponentMappingRank object +This 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 *OtelComponentMappingRank) GetSpecificity() float64` + +GetSpecificity returns the Specificity field if non-nil, zero value otherwise. + +### GetSpecificityOk + +`func (o *OtelComponentMappingRank) 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 *OtelComponentMappingRank) 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/OtelMappingApi.md b/generated/stackstate_api/docs/OtelMappingApi.md index d7a865bd..f8c70e2c 100644 --- a/generated/stackstate_api/docs/OtelMappingApi.md +++ b/generated/stackstate_api/docs/OtelMappingApi.md @@ -558,7 +558,7 @@ import ( ) func main() { - upsertOtelComponentMappingsRequest := *openapiclient.NewUpsertOtelComponentMappingsRequest("Identifier_example", "Name_example", *openapiclient.NewOtelInput([]openapiclient.OtelInputSignal{openapiclient.OtelInputSignal("TRACES")}, *openapiclient.NewOtelInputResource()), *openapiclient.NewOtelComponentMappingOutput("Identifier_example", "Name_example", "TypeName_example"), int64(123)) // UpsertOtelComponentMappingsRequest | Otel Component Mapping to create/update + upsertOtelComponentMappingsRequest := *openapiclient.NewUpsertOtelComponentMappingsRequest("Identifier_example", "Name_example", *openapiclient.NewOtelInput([]openapiclient.OtelInputSignal{openapiclient.OtelInputSignal("TRACES")}, *openapiclient.NewOtelInputResource()), *openapiclient.NewOtelComponentMappingOutput("Identifier_example", "Name_example", "TypeName_example"), int64(123), *openapiclient.NewOtelComponentMappingRank(float64(123))) // UpsertOtelComponentMappingsRequest | Otel Component Mapping to create/update configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/generated/stackstate_api/docs/TagField.md b/generated/stackstate_api/docs/TagField.md new file mode 100644 index 00000000..61279f59 --- /dev/null +++ b/generated/stackstate_api/docs/TagField.md @@ -0,0 +1,140 @@ +# TagField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldId** | **string** | | +**Title** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Type** | **string** | | +**Values** | **[]string** | | + +## Methods + +### NewTagField + +`func NewTagField(fieldId string, title string, type_ string, values []string, ) *TagField` + +NewTagField instantiates a new TagField object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagFieldWithDefaults + +`func NewTagFieldWithDefaults() *TagField` + +NewTagFieldWithDefaults instantiates a new TagField object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFieldId + +`func (o *TagField) GetFieldId() string` + +GetFieldId returns the FieldId field if non-nil, zero value otherwise. + +### GetFieldIdOk + +`func (o *TagField) GetFieldIdOk() (*string, bool)` + +GetFieldIdOk returns a tuple with the FieldId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldId + +`func (o *TagField) SetFieldId(v string)` + +SetFieldId sets FieldId field to given value. + + +### GetTitle + +`func (o *TagField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *TagField) 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 *TagField) SetTitle(v string)` + +SetTitle sets Title field to given value. + + +### GetDescription + +`func (o *TagField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TagField) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *TagField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *TagField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *TagField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagField) 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 *TagField) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValues + +`func (o *TagField) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *TagField) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *TagField) SetValues(v []string)` + +SetValues sets Values field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/TagFieldAllOf.md b/generated/stackstate_api/docs/TagFieldAllOf.md new file mode 100644 index 00000000..48000992 --- /dev/null +++ b/generated/stackstate_api/docs/TagFieldAllOf.md @@ -0,0 +1,72 @@ +# TagFieldAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Values** | **[]string** | | + +## Methods + +### NewTagFieldAllOf + +`func NewTagFieldAllOf(type_ string, values []string, ) *TagFieldAllOf` + +NewTagFieldAllOf instantiates a new TagFieldAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagFieldAllOfWithDefaults + +`func NewTagFieldAllOfWithDefaults() *TagFieldAllOf` + +NewTagFieldAllOfWithDefaults instantiates a new TagFieldAllOf object +This 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 *TagFieldAllOf) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagFieldAllOf) 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 *TagFieldAllOf) SetType(v string)` + +SetType sets Type field to given value. + + +### GetValues + +`func (o *TagFieldAllOf) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *TagFieldAllOf) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *TagFieldAllOf) SetValues(v []string)` + +SetValues sets Values field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generated/stackstate_api/docs/TagProjection.md b/generated/stackstate_api/docs/TagProjection.md new file mode 100644 index 00000000..199d79a6 --- /dev/null +++ b/generated/stackstate_api/docs/TagProjection.md @@ -0,0 +1,51 @@ +# TagProjection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | + +## Methods + +### NewTagProjection + +`func NewTagProjection(type_ string, ) *TagProjection` + +NewTagProjection instantiates a new TagProjection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagProjectionWithDefaults + +`func NewTagProjectionWithDefaults() *TagProjection` + +NewTagProjectionWithDefaults instantiates a new TagProjection object +This 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 *TagProjection) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagProjection) 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 *TagProjection) 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/UpsertOtelComponentMappingsRequest.md b/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md index 1f7086df..9d564062 100644 --- a/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md +++ b/generated/stackstate_api/docs/UpsertOtelComponentMappingsRequest.md @@ -11,12 +11,13 @@ Name | Type | Description | Notes **Output** | [**OtelComponentMappingOutput**](OtelComponentMappingOutput.md) | | **Vars** | Pointer to [**[]OtelVariableMapping**](OtelVariableMapping.md) | | [optional] **ExpireAfter** | **int64** | | +**Rank** | [**OtelComponentMappingRank**](OtelComponentMappingRank.md) | | ## Methods ### NewUpsertOtelComponentMappingsRequest -`func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, ) *UpsertOtelComponentMappingsRequest` +`func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, rank OtelComponentMappingRank, ) *UpsertOtelComponentMappingsRequest` NewUpsertOtelComponentMappingsRequest instantiates a new UpsertOtelComponentMappingsRequest object This constructor will assign default values to properties that have it defined, @@ -181,6 +182,26 @@ and a boolean to check if the value has been set. SetExpireAfter sets ExpireAfter field to given value. +### GetRank + +`func (o *UpsertOtelComponentMappingsRequest) GetRank() OtelComponentMappingRank` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *UpsertOtelComponentMappingsRequest) GetRankOk() (*OtelComponentMappingRank, bool)` + +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. + +### SetRank + +`func (o *UpsertOtelComponentMappingsRequest) SetRank(v OtelComponentMappingRank)` + +SetRank sets Rank field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/generated/stackstate_api/model_component_field.go b/generated/stackstate_api/model_component_field.go index d250f927..d0a6a78b 100644 --- a/generated/stackstate_api/model_component_field.go +++ b/generated/stackstate_api/model_component_field.go @@ -27,6 +27,7 @@ type ComponentField struct { MetricField *MetricField NumericField *NumericField RatioField *RatioField + TagField *TagField TextField *TextField } @@ -93,6 +94,13 @@ func RatioFieldAsComponentField(v *RatioField) ComponentField { } } +// TagFieldAsComponentField is a convenience function that returns TagField wrapped in ComponentField +func TagFieldAsComponentField(v *TagField) ComponentField { + return ComponentField{ + TagField: v, + } +} + // TextFieldAsComponentField is a convenience function that returns TextField wrapped in ComponentField func TextFieldAsComponentField(v *TextField) ComponentField { return ComponentField{ @@ -218,6 +226,18 @@ func (dst *ComponentField) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'TagField' + if jsonDict["_type"] == "TagField" { + // try to unmarshal JSON data into TagField + err = json.Unmarshal(data, &dst.TagField) + if err == nil { + return nil // data stored in dst.TagField, return on the first match + } else { + dst.TagField = nil + return fmt.Errorf("Failed to unmarshal ComponentField as TagField: %s", err.Error()) + } + } + // check if the discriminator value is 'TextField' if jsonDict["_type"] == "TextField" { // try to unmarshal JSON data into TextField @@ -271,6 +291,10 @@ func (src ComponentField) MarshalJSON() ([]byte, error) { return json.Marshal(&src.RatioField) } + if src.TagField != nil { + return json.Marshal(&src.TagField) + } + if src.TextField != nil { return json.Marshal(&src.TextField) } @@ -319,6 +343,10 @@ func (obj *ComponentField) GetActualInstance() interface{} { return obj.RatioField } + if obj.TagField != nil { + return obj.TagField + } + if obj.TextField != nil { return obj.TextField } diff --git a/generated/stackstate_api/model_component_highlight_projection.go b/generated/stackstate_api/model_component_highlight_projection.go index 11fdba1f..cd2c0ad0 100644 --- a/generated/stackstate_api/model_component_highlight_projection.go +++ b/generated/stackstate_api/model_component_highlight_projection.go @@ -26,6 +26,7 @@ type ComponentHighlightProjection struct { MetricProjection *MetricProjection NumericProjection *NumericProjection RatioProjection *RatioProjection + TagProjection *TagProjection TextProjection *TextProjection } @@ -85,6 +86,13 @@ func RatioProjectionAsComponentHighlightProjection(v *RatioProjection) Component } } +// TagProjectionAsComponentHighlightProjection is a convenience function that returns TagProjection wrapped in ComponentHighlightProjection +func TagProjectionAsComponentHighlightProjection(v *TagProjection) ComponentHighlightProjection { + return ComponentHighlightProjection{ + TagProjection: v, + } +} + // TextProjectionAsComponentHighlightProjection is a convenience function that returns TextProjection wrapped in ComponentHighlightProjection func TextProjectionAsComponentHighlightProjection(v *TextProjection) ComponentHighlightProjection { return ComponentHighlightProjection{ @@ -198,6 +206,18 @@ func (dst *ComponentHighlightProjection) UnmarshalJSON(data []byte) error { } } + // check if the discriminator value is 'TagProjection' + if jsonDict["_type"] == "TagProjection" { + // try to unmarshal JSON data into TagProjection + err = json.Unmarshal(data, &dst.TagProjection) + if err == nil { + return nil // data stored in dst.TagProjection, return on the first match + } else { + dst.TagProjection = nil + return fmt.Errorf("Failed to unmarshal ComponentHighlightProjection as TagProjection: %s", err.Error()) + } + } + // check if the discriminator value is 'TextProjection' if jsonDict["_type"] == "TextProjection" { // try to unmarshal JSON data into TextProjection @@ -247,6 +267,10 @@ func (src ComponentHighlightProjection) MarshalJSON() ([]byte, error) { return json.Marshal(&src.RatioProjection) } + if src.TagProjection != nil { + return json.Marshal(&src.TagProjection) + } + if src.TextProjection != nil { return json.Marshal(&src.TextProjection) } @@ -291,6 +315,10 @@ func (obj *ComponentHighlightProjection) GetActualInstance() interface{} { return obj.RatioProjection } + if obj.TagProjection != nil { + return obj.TagProjection + } + if obj.TextProjection != nil { return obj.TextProjection } diff --git a/generated/stackstate_api/model_map_field.go b/generated/stackstate_api/model_map_field.go index 931e8387..a3f19c27 100644 --- a/generated/stackstate_api/model_map_field.go +++ b/generated/stackstate_api/model_map_field.go @@ -22,20 +22,18 @@ type MapField struct { Description *string `json:"description,omitempty" yaml:"description,omitempty"` Type string `json:"_type" yaml:"_type"` Values map[string]string `json:"values" yaml:"values"` - AsTag bool `json:"asTag" yaml:"asTag"` } // NewMapField instantiates a new MapField object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewMapField(fieldId string, title string, type_ string, values map[string]string, asTag bool) *MapField { +func NewMapField(fieldId string, title string, type_ string, values map[string]string) *MapField { this := MapField{} this.FieldId = fieldId this.Title = title this.Type = type_ this.Values = values - this.AsTag = asTag return &this } @@ -44,8 +42,6 @@ func NewMapField(fieldId string, title string, type_ string, values map[string]s // but it doesn't guarantee that properties required by API are set func NewMapFieldWithDefaults() *MapField { this := MapField{} - var asTag bool = false - this.AsTag = asTag return &this } @@ -177,30 +173,6 @@ func (o *MapField) SetValues(v map[string]string) { o.Values = v } -// GetAsTag returns the AsTag field value -func (o *MapField) GetAsTag() bool { - if o == nil { - var ret bool - return ret - } - - return o.AsTag -} - -// GetAsTagOk returns a tuple with the AsTag field value -// and a boolean to check if the value has been set. -func (o *MapField) GetAsTagOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AsTag, true -} - -// SetAsTag sets field value -func (o *MapField) SetAsTag(v bool) { - o.AsTag = v -} - func (o MapField) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -218,9 +190,6 @@ func (o MapField) MarshalJSON() ([]byte, error) { if true { toSerialize["values"] = o.Values } - if true { - toSerialize["asTag"] = o.AsTag - } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_map_field_all_of.go b/generated/stackstate_api/model_map_field_all_of.go index 78281d1c..f28ab55e 100644 --- a/generated/stackstate_api/model_map_field_all_of.go +++ b/generated/stackstate_api/model_map_field_all_of.go @@ -19,18 +19,16 @@ import ( type MapFieldAllOf struct { Type string `json:"_type" yaml:"_type"` Values map[string]string `json:"values" yaml:"values"` - AsTag bool `json:"asTag" yaml:"asTag"` } // NewMapFieldAllOf instantiates a new MapFieldAllOf object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewMapFieldAllOf(type_ string, values map[string]string, asTag bool) *MapFieldAllOf { +func NewMapFieldAllOf(type_ string, values map[string]string) *MapFieldAllOf { this := MapFieldAllOf{} this.Type = type_ this.Values = values - this.AsTag = asTag return &this } @@ -39,8 +37,6 @@ func NewMapFieldAllOf(type_ string, values map[string]string, asTag bool) *MapFi // but it doesn't guarantee that properties required by API are set func NewMapFieldAllOfWithDefaults() *MapFieldAllOf { this := MapFieldAllOf{} - var asTag bool = false - this.AsTag = asTag return &this } @@ -92,30 +88,6 @@ func (o *MapFieldAllOf) SetValues(v map[string]string) { o.Values = v } -// GetAsTag returns the AsTag field value -func (o *MapFieldAllOf) GetAsTag() bool { - if o == nil { - var ret bool - return ret - } - - return o.AsTag -} - -// GetAsTagOk returns a tuple with the AsTag field value -// and a boolean to check if the value has been set. -func (o *MapFieldAllOf) GetAsTagOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.AsTag, true -} - -// SetAsTag sets field value -func (o *MapFieldAllOf) SetAsTag(v bool) { - o.AsTag = v -} - func (o MapFieldAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -124,9 +96,6 @@ func (o MapFieldAllOf) MarshalJSON() ([]byte, error) { if true { toSerialize["values"] = o.Values } - if true { - toSerialize["asTag"] = o.AsTag - } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_map_projection.go b/generated/stackstate_api/model_map_projection.go index 94f50244..1d8ca74e 100644 --- a/generated/stackstate_api/model_map_projection.go +++ b/generated/stackstate_api/model_map_projection.go @@ -19,8 +19,7 @@ import ( type MapProjection struct { Type string `json:"_type" yaml:"_type"` // Cel expression that returns a map - Value string `json:"value" yaml:"value"` - AsTags *bool `json:"asTags,omitempty" yaml:"asTags,omitempty"` + Value string `json:"value" yaml:"value"` } // NewMapProjection instantiates a new MapProjection object @@ -31,8 +30,6 @@ func NewMapProjection(type_ string, value string) *MapProjection { this := MapProjection{} this.Type = type_ this.Value = value - var asTags bool = true - this.AsTags = &asTags return &this } @@ -41,8 +38,6 @@ func NewMapProjection(type_ string, value string) *MapProjection { // but it doesn't guarantee that properties required by API are set func NewMapProjectionWithDefaults() *MapProjection { this := MapProjection{} - var asTags bool = true - this.AsTags = &asTags return &this } @@ -94,38 +89,6 @@ func (o *MapProjection) SetValue(v string) { o.Value = v } -// GetAsTags returns the AsTags field value if set, zero value otherwise. -func (o *MapProjection) GetAsTags() bool { - if o == nil || o.AsTags == nil { - var ret bool - return ret - } - return *o.AsTags -} - -// GetAsTagsOk returns a tuple with the AsTags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *MapProjection) GetAsTagsOk() (*bool, bool) { - if o == nil || o.AsTags == nil { - return nil, false - } - return o.AsTags, true -} - -// HasAsTags returns a boolean if a field has been set. -func (o *MapProjection) HasAsTags() bool { - if o != nil && o.AsTags != nil { - return true - } - - return false -} - -// SetAsTags gets a reference to the given bool and assigns it to the AsTags field. -func (o *MapProjection) SetAsTags(v bool) { - o.AsTags = &v -} - func (o MapProjection) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -134,9 +97,6 @@ func (o MapProjection) MarshalJSON() ([]byte, error) { if true { toSerialize["value"] = o.Value } - if o.AsTags != nil { - toSerialize["asTags"] = o.AsTags - } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_otel_component_mapping.go b/generated/stackstate_api/model_otel_component_mapping.go index c4be746c..ca32fcee 100644 --- a/generated/stackstate_api/model_otel_component_mapping.go +++ b/generated/stackstate_api/model_otel_component_mapping.go @@ -25,13 +25,14 @@ type OtelComponentMapping struct { Output OtelComponentMappingOutput `json:"output" yaml:"output"` Vars []OtelVariableMapping `json:"vars,omitempty" yaml:"vars,omitempty"` ExpireAfter int64 `json:"expireAfter" yaml:"expireAfter"` + Rank OtelComponentMappingRank `json:"rank" yaml:"rank"` } // NewOtelComponentMapping instantiates a new OtelComponentMapping object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64) *OtelComponentMapping { +func NewOtelComponentMapping(type_ string, identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, rank OtelComponentMappingRank) *OtelComponentMapping { this := OtelComponentMapping{} this.Type = type_ this.Identifier = identifier @@ -39,6 +40,7 @@ func NewOtelComponentMapping(type_ string, identifier string, name string, input this.Input = input this.Output = output this.ExpireAfter = expireAfter + this.Rank = rank return &this } @@ -258,6 +260,30 @@ func (o *OtelComponentMapping) SetExpireAfter(v int64) { o.ExpireAfter = v } +// GetRank returns the Rank field value +func (o *OtelComponentMapping) GetRank() OtelComponentMappingRank { + if o == nil { + var ret OtelComponentMappingRank + return ret + } + + return o.Rank +} + +// GetRankOk returns a tuple with the Rank field value +// and a boolean to check if the value has been set. +func (o *OtelComponentMapping) GetRankOk() (*OtelComponentMappingRank, bool) { + if o == nil { + return nil, false + } + return &o.Rank, true +} + +// SetRank sets field value +func (o *OtelComponentMapping) SetRank(v OtelComponentMappingRank) { + o.Rank = v +} + func (o OtelComponentMapping) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -284,6 +310,9 @@ func (o OtelComponentMapping) MarshalJSON() ([]byte, error) { if true { toSerialize["expireAfter"] = o.ExpireAfter } + if true { + toSerialize["rank"] = o.Rank + } return json.Marshal(toSerialize) } diff --git a/generated/stackstate_api/model_otel_component_mapping_output.go b/generated/stackstate_api/model_otel_component_mapping_output.go index 857daf36..6f5ee5ca 100644 --- a/generated/stackstate_api/model_otel_component_mapping_output.go +++ b/generated/stackstate_api/model_otel_component_mapping_output.go @@ -22,11 +22,9 @@ type OtelComponentMappingOutput struct { // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` Name string `json:"name" yaml:"name"` // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` - TypeName string `json:"typeName" yaml:"typeName"` - // An expression that must produce a string. It must be one of these formats: - A plain string, for example `\"this is a plain string\"` - A cel expression that must return a string, for example: `resource.attributes['service.namespace']` - TypeIdentifier *string `json:"typeIdentifier,omitempty" yaml:"typeIdentifier,omitempty"` - Required *OtelComponentMappingFieldMapping `json:"required,omitempty" yaml:"required,omitempty"` - Optional *OtelComponentMappingFieldMapping `json:"optional,omitempty" yaml:"optional,omitempty"` + TypeName string `json:"typeName" yaml:"typeName"` + Required *OtelComponentMappingFieldMapping `json:"required,omitempty" yaml:"required,omitempty"` + Optional *OtelComponentMappingFieldMapping `json:"optional,omitempty" yaml:"optional,omitempty"` } // NewOtelComponentMappingOutput instantiates a new OtelComponentMappingOutput object @@ -121,38 +119,6 @@ func (o *OtelComponentMappingOutput) SetTypeName(v string) { o.TypeName = v } -// GetTypeIdentifier returns the TypeIdentifier field value if set, zero value otherwise. -func (o *OtelComponentMappingOutput) GetTypeIdentifier() string { - if o == nil || o.TypeIdentifier == nil { - var ret string - return ret - } - return *o.TypeIdentifier -} - -// GetTypeIdentifierOk returns a tuple with the TypeIdentifier field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OtelComponentMappingOutput) GetTypeIdentifierOk() (*string, bool) { - if o == nil || o.TypeIdentifier == nil { - return nil, false - } - return o.TypeIdentifier, true -} - -// HasTypeIdentifier returns a boolean if a field has been set. -func (o *OtelComponentMappingOutput) HasTypeIdentifier() bool { - if o != nil && o.TypeIdentifier != nil { - return true - } - - return false -} - -// SetTypeIdentifier gets a reference to the given string and assigns it to the TypeIdentifier field. -func (o *OtelComponentMappingOutput) SetTypeIdentifier(v string) { - o.TypeIdentifier = &v -} - // GetRequired returns the Required field value if set, zero value otherwise. func (o *OtelComponentMappingOutput) GetRequired() OtelComponentMappingFieldMapping { if o == nil || o.Required == nil { @@ -228,9 +194,6 @@ func (o OtelComponentMappingOutput) MarshalJSON() ([]byte, error) { if true { toSerialize["typeName"] = o.TypeName } - if o.TypeIdentifier != nil { - toSerialize["typeIdentifier"] = o.TypeIdentifier - } if o.Required != nil { toSerialize["required"] = o.Required } diff --git a/generated/stackstate_api/model_otel_component_mapping_rank.go b/generated/stackstate_api/model_otel_component_mapping_rank.go new file mode 100644 index 00000000..bfea5820 --- /dev/null +++ b/generated/stackstate_api/model_otel_component_mapping_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" +) + +// OtelComponentMappingRank struct for OtelComponentMappingRank +type OtelComponentMappingRank struct { + // Determines how much of a \"specialization\" this mapping is. Higher number means more specific. Used during component merge to pick the winning typeName / name when multiple mappings contribute to the same component identifier. Recommended ranges: 1–99 environment & infrastructure; 100–199 platform & orchestration (k8s, otel base); 200–299 application / service; 300–399 runtime / SDK / language; 400+ user overrides. + Specificity float64 `json:"specificity" yaml:"specificity"` +} + +// NewOtelComponentMappingRank instantiates a new OtelComponentMappingRank object +// This constructor will assign default values to properties that have it defined, +// 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 NewOtelComponentMappingRank(specificity float64) *OtelComponentMappingRank { + this := OtelComponentMappingRank{} + this.Specificity = specificity + return &this +} + +// NewOtelComponentMappingRankWithDefaults instantiates a new OtelComponentMappingRank object +// This 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 NewOtelComponentMappingRankWithDefaults() *OtelComponentMappingRank { + this := OtelComponentMappingRank{} + return &this +} + +// GetSpecificity returns the Specificity field value +func (o *OtelComponentMappingRank) 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 *OtelComponentMappingRank) GetSpecificityOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Specificity, true +} + +// SetSpecificity sets field value +func (o *OtelComponentMappingRank) SetSpecificity(v float64) { + o.Specificity = v +} + +func (o OtelComponentMappingRank) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["specificity"] = o.Specificity + } + return json.Marshal(toSerialize) +} + +type NullableOtelComponentMappingRank struct { + value *OtelComponentMappingRank + isSet bool +} + +func (v NullableOtelComponentMappingRank) Get() *OtelComponentMappingRank { + return v.value +} + +func (v *NullableOtelComponentMappingRank) Set(val *OtelComponentMappingRank) { + v.value = val + v.isSet = true +} + +func (v NullableOtelComponentMappingRank) IsSet() bool { + return v.isSet +} + +func (v *NullableOtelComponentMappingRank) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOtelComponentMappingRank(val *OtelComponentMappingRank) *NullableOtelComponentMappingRank { + return &NullableOtelComponentMappingRank{value: val, isSet: true} +} + +func (v NullableOtelComponentMappingRank) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOtelComponentMappingRank) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_tag_field.go b/generated/stackstate_api/model_tag_field.go new file mode 100644 index 00000000..8117639a --- /dev/null +++ b/generated/stackstate_api/model_tag_field.go @@ -0,0 +1,230 @@ +/* +StackState API + +This API documentation page describes the StackState server API. The StackState UI and CLI use the StackState server API to configure and query StackState. You can use the API for similar purposes. Each request sent to the StackState server API must be authenticated using one of the available authentication methods. *Note that the StackState receiver API, used to send topology, telemetry and traces to StackState, is not described on this page and requires a different authentication method.* For more information on StackState, refer to the [StackState documentation](https://docs.stackstate.com). + +API version: 5.2.0 +Contact: info@stackstate.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package stackstate_api + +import ( + "encoding/json" +) + +// TagField struct for TagField +type TagField struct { + FieldId string `json:"fieldId" yaml:"fieldId"` + Title string `json:"title" yaml:"title"` + Description *string `json:"description,omitempty" yaml:"description,omitempty"` + Type string `json:"_type" yaml:"_type"` + Values []string `json:"values" yaml:"values"` +} + +// NewTagField instantiates a new TagField object +// This constructor will assign default values to properties that have it defined, +// 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 NewTagField(fieldId string, title string, type_ string, values []string) *TagField { + this := TagField{} + this.FieldId = fieldId + this.Title = title + this.Type = type_ + this.Values = values + return &this +} + +// NewTagFieldWithDefaults instantiates a new TagField object +// This 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 NewTagFieldWithDefaults() *TagField { + this := TagField{} + return &this +} + +// GetFieldId returns the FieldId field value +func (o *TagField) GetFieldId() string { + if o == nil { + var ret string + return ret + } + + return o.FieldId +} + +// GetFieldIdOk returns a tuple with the FieldId field value +// and a boolean to check if the value has been set. +func (o *TagField) GetFieldIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldId, true +} + +// SetFieldId sets field value +func (o *TagField) SetFieldId(v string) { + o.FieldId = v +} + +// GetTitle returns the Title field value +func (o *TagField) 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 *TagField) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *TagField) SetTitle(v string) { + o.Title = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *TagField) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagField) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *TagField) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *TagField) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value +func (o *TagField) 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 *TagField) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TagField) SetType(v string) { + o.Type = v +} + +// GetValues returns the Values field value +func (o *TagField) GetValues() []string { + if o == nil { + var ret []string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *TagField) GetValuesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Values, true +} + +// SetValues sets field value +func (o *TagField) SetValues(v []string) { + o.Values = v +} + +func (o TagField) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["fieldId"] = o.FieldId + } + if true { + toSerialize["title"] = o.Title + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["values"] = o.Values + } + return json.Marshal(toSerialize) +} + +type NullableTagField struct { + value *TagField + isSet bool +} + +func (v NullableTagField) Get() *TagField { + return v.value +} + +func (v *NullableTagField) Set(val *TagField) { + v.value = val + v.isSet = true +} + +func (v NullableTagField) IsSet() bool { + return v.isSet +} + +func (v *NullableTagField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagField(val *TagField) *NullableTagField { + return &NullableTagField{value: val, isSet: true} +} + +func (v NullableTagField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_tag_field_all_of.go b/generated/stackstate_api/model_tag_field_all_of.go new file mode 100644 index 00000000..b04ae014 --- /dev/null +++ b/generated/stackstate_api/model_tag_field_all_of.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" +) + +// TagFieldAllOf struct for TagFieldAllOf +type TagFieldAllOf struct { + Type string `json:"_type" yaml:"_type"` + Values []string `json:"values" yaml:"values"` +} + +// NewTagFieldAllOf instantiates a new TagFieldAllOf object +// This constructor will assign default values to properties that have it defined, +// 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 NewTagFieldAllOf(type_ string, values []string) *TagFieldAllOf { + this := TagFieldAllOf{} + this.Type = type_ + this.Values = values + return &this +} + +// NewTagFieldAllOfWithDefaults instantiates a new TagFieldAllOf object +// This 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 NewTagFieldAllOfWithDefaults() *TagFieldAllOf { + this := TagFieldAllOf{} + return &this +} + +// GetType returns the Type field value +func (o *TagFieldAllOf) 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 *TagFieldAllOf) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TagFieldAllOf) SetType(v string) { + o.Type = v +} + +// GetValues returns the Values field value +func (o *TagFieldAllOf) GetValues() []string { + if o == nil { + var ret []string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *TagFieldAllOf) GetValuesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Values, true +} + +// SetValues sets field value +func (o *TagFieldAllOf) SetValues(v []string) { + o.Values = v +} + +func (o TagFieldAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + if true { + toSerialize["values"] = o.Values + } + return json.Marshal(toSerialize) +} + +type NullableTagFieldAllOf struct { + value *TagFieldAllOf + isSet bool +} + +func (v NullableTagFieldAllOf) Get() *TagFieldAllOf { + return v.value +} + +func (v *NullableTagFieldAllOf) Set(val *TagFieldAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableTagFieldAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableTagFieldAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagFieldAllOf(val *TagFieldAllOf) *NullableTagFieldAllOf { + return &NullableTagFieldAllOf{value: val, isSet: true} +} + +func (v NullableTagFieldAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagFieldAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_tag_projection.go b/generated/stackstate_api/model_tag_projection.go new file mode 100644 index 00000000..961c8474 --- /dev/null +++ b/generated/stackstate_api/model_tag_projection.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" +) + +// TagProjection struct for TagProjection +type TagProjection struct { + Type string `json:"_type" yaml:"_type"` +} + +// NewTagProjection instantiates a new TagProjection object +// This constructor will assign default values to properties that have it defined, +// 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 NewTagProjection(type_ string) *TagProjection { + this := TagProjection{} + this.Type = type_ + return &this +} + +// NewTagProjectionWithDefaults instantiates a new TagProjection object +// This 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 NewTagProjectionWithDefaults() *TagProjection { + this := TagProjection{} + return &this +} + +// GetType returns the Type field value +func (o *TagProjection) 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 *TagProjection) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TagProjection) SetType(v string) { + o.Type = v +} + +func (o TagProjection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["_type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableTagProjection struct { + value *TagProjection + isSet bool +} + +func (v NullableTagProjection) Get() *TagProjection { + return v.value +} + +func (v *NullableTagProjection) Set(val *TagProjection) { + v.value = val + v.isSet = true +} + +func (v NullableTagProjection) IsSet() bool { + return v.isSet +} + +func (v *NullableTagProjection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagProjection(val *TagProjection) *NullableTagProjection { + return &NullableTagProjection{value: val, isSet: true} +} + +func (v NullableTagProjection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagProjection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/generated/stackstate_api/model_upsert_otel_component_mappings_request.go b/generated/stackstate_api/model_upsert_otel_component_mappings_request.go index 317bf5a2..e1aa2211 100644 --- a/generated/stackstate_api/model_upsert_otel_component_mappings_request.go +++ b/generated/stackstate_api/model_upsert_otel_component_mappings_request.go @@ -24,19 +24,21 @@ type UpsertOtelComponentMappingsRequest struct { Output OtelComponentMappingOutput `json:"output" yaml:"output"` Vars []OtelVariableMapping `json:"vars,omitempty" yaml:"vars,omitempty"` ExpireAfter int64 `json:"expireAfter" yaml:"expireAfter"` + Rank OtelComponentMappingRank `json:"rank" yaml:"rank"` } // NewUpsertOtelComponentMappingsRequest instantiates a new UpsertOtelComponentMappingsRequest object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64) *UpsertOtelComponentMappingsRequest { +func NewUpsertOtelComponentMappingsRequest(identifier string, name string, input OtelInput, output OtelComponentMappingOutput, expireAfter int64, rank OtelComponentMappingRank) *UpsertOtelComponentMappingsRequest { this := UpsertOtelComponentMappingsRequest{} this.Identifier = identifier this.Name = name this.Input = input this.Output = output this.ExpireAfter = expireAfter + this.Rank = rank return &this } @@ -232,6 +234,30 @@ func (o *UpsertOtelComponentMappingsRequest) SetExpireAfter(v int64) { o.ExpireAfter = v } +// GetRank returns the Rank field value +func (o *UpsertOtelComponentMappingsRequest) GetRank() OtelComponentMappingRank { + if o == nil { + var ret OtelComponentMappingRank + return ret + } + + return o.Rank +} + +// GetRankOk returns a tuple with the Rank field value +// and a boolean to check if the value has been set. +func (o *UpsertOtelComponentMappingsRequest) GetRankOk() (*OtelComponentMappingRank, bool) { + if o == nil { + return nil, false + } + return &o.Rank, true +} + +// SetRank sets field value +func (o *UpsertOtelComponentMappingsRequest) SetRank(v OtelComponentMappingRank) { + o.Rank = v +} + func (o UpsertOtelComponentMappingsRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -255,6 +281,9 @@ func (o UpsertOtelComponentMappingsRequest) MarshalJSON() ([]byte, error) { if true { toSerialize["expireAfter"] = o.ExpireAfter } + if true { + toSerialize["rank"] = o.Rank + } return json.Marshal(toSerialize) } diff --git a/stackstate_openapi/openapi_version b/stackstate_openapi/openapi_version index 8394514b..48fcda2a 100644 --- a/stackstate_openapi/openapi_version +++ b/stackstate_openapi/openapi_version @@ -1 +1 @@ -a3fb9f1489d4c65e87344c3cb521b3a15e96399d \ No newline at end of file +89739b44a9e841c9063639f94b196b1d10dfe401 \ No newline at end of file