Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/otelcomponentmapping/otelcomponentmapping_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions cmd/otelcomponentmapping/otelcomponentmapping_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
28 changes: 16 additions & 12 deletions generated/stackstate_admin_api/api_retention.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions generated/stackstate_api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ docs/LinkCell.md
docs/LinkField.md
docs/LinkFieldAllOf.md
docs/LinkMetaDisplay.md
docs/ListField.md
docs/ListFieldAllOf.md
docs/LockedResponse.md
docs/LogLevel.md
docs/LogSeverity.md
Expand Down Expand Up @@ -374,6 +376,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
Expand Down Expand Up @@ -858,6 +861,8 @@ model_link_cell.go
model_link_field.go
model_link_field_all_of.go
model_link_meta_display.go
model_list_field.go
model_list_field_all_of.go
model_locked_response.go
model_log_level.go
model_log_severity.go
Expand Down Expand Up @@ -964,6 +969,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
Expand Down
3 changes: 3 additions & 0 deletions generated/stackstate_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ Class | Method | HTTP request | Description
- [LinkField](docs/LinkField.md)
- [LinkFieldAllOf](docs/LinkFieldAllOf.md)
- [LinkMetaDisplay](docs/LinkMetaDisplay.md)
- [ListField](docs/ListField.md)
- [ListFieldAllOf](docs/ListFieldAllOf.md)
- [LockedResponse](docs/LockedResponse.md)
- [LogLevel](docs/LogLevel.md)
- [LogSeverity](docs/LogSeverity.md)
Expand Down Expand Up @@ -577,6 +579,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)
Expand Down
54 changes: 47 additions & 7 deletions generated/stackstate_api/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14648,6 +14648,7 @@ components:
- $ref: '#/components/schemas/DurationField'
- $ref: '#/components/schemas/RatioField'
- $ref: '#/components/schemas/MapField'
- $ref: '#/components/schemas/ListField'
ErrorField:
allOf:
- $ref: '#/components/schemas/BaseComponentField'
Expand Down Expand Up @@ -14700,6 +14701,10 @@ components:
allOf:
- $ref: '#/components/schemas/BaseComponentField'
- $ref: '#/components/schemas/MapField_allOf'
ListField:
allOf:
- $ref: '#/components/schemas/BaseComponentField'
- $ref: '#/components/schemas/ListField_allOf'
ExternalComponent:
example:
syncName: syncName
Expand Down Expand Up @@ -17065,7 +17070,6 @@ components:
identifier: identifier
name: name
typeName: typeName
typeIdentifier: typeIdentifier
optional:
configuration: configuration
additionalIdentifiers:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -17280,6 +17294,8 @@ components:
_type: OtelComponentMapping
name: name
description: description
rank:
specificity: 6.027456183070403
expireAfter: 0
vars:
- name: name
Expand Down Expand Up @@ -17308,13 +17324,16 @@ components:
expireAfter:
format: int64
type: integer
rank:
$ref: '#/components/schemas/OtelComponentMappingRank'
required:
- _type
- expireAfter
- identifier
- input
- name
- output
- rank
type: object
OtelMappingStatus:
example:
Expand Down Expand Up @@ -21153,12 +21172,15 @@ components:
expireAfter:
format: int64
type: integer
rank:
$ref: '#/components/schemas/OtelComponentMappingRank'
required:
- expireAfter
- identifier
- input
- name
- output
- rank
type: object
upsertOtelRelationMappings_request:
properties:
Expand Down Expand Up @@ -21497,6 +21519,24 @@ components:
- asTag
- values
type: object
ListField_allOf:
properties:
_type:
enum:
- ListField
type: string
values:
items:
type: string
type: array
asTag:
default: false
type: boolean
required:
- _type
- asTag
- values
type: object
TimelineSummaryRequest_arguments:
discriminator:
propertyName: _type
Expand Down
10 changes: 5 additions & 5 deletions generated/stackstate_api/docs/ComponentField.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.

Expand Down
Loading
Loading