Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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.

8 changes: 8 additions & 0 deletions generated/stackstate_api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/stackstate_api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
67 changes: 53 additions & 14 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/TagField'
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'
TagField:
allOf:
- $ref: '#/components/schemas/BaseComponentField'
- $ref: '#/components/schemas/TagField_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 @@ -20672,6 +20691,7 @@ components:
- $ref: '#/components/schemas/RatioProjection'
- $ref: '#/components/schemas/ContainerImageProjection'
- $ref: '#/components/schemas/MapProjection'
- $ref: '#/components/schemas/TagProjection'
MapProjection:
properties:
_type:
Expand All @@ -20681,13 +20701,19 @@ components:
value:
description: "Cel expression that returns a map<string,dyn>"
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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
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