Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions go/gcom/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ api_assertion_search_controller.go
api_auto_complete_controller.go
api_config_export_import_controller.go
api_custom_dash_config_controller.go
api_custom_model_rules_configuration.go
api_customer_metric_controller.go
api_data_sources_config_controller.go
api_drilldown_config_migration_controller.go
Expand All @@ -32,6 +31,7 @@ api_log_config_controller.go
api_log_drilldown_config_controller.go
api_mimir_relabel_rules_config_controller.go
api_model_mapping_controller.go
api_model_rules_configuration.go
api_monitoring_status_controller.go
api_otel_config_controller.go
api_product_activation_controller.go
Expand Down Expand Up @@ -110,6 +110,7 @@ docs/AssertionScoreRequestDto.md
docs/AssertionScoresDto.md
docs/AssertionSearchControllerAPI.md
docs/AssertionSearchRequestDto.md
docs/AssertionSourceMetricLabelDto.md
docs/AssertionSourceMetricRequestDto.md
docs/AssertionSourceMetricResponseDto.md
docs/AssertionStateDto.md
Expand All @@ -127,7 +128,6 @@ docs/CustomDashConfigControllerAPI.md
docs/CustomDashConfigDto.md
docs/CustomDashConfigsDto.md
docs/CustomKpiDashConfigDto.md
docs/CustomModelRulesConfigurationAPI.md
docs/CustomerMetricControllerAPI.md
docs/CustomerMetricRequestDto.md
docs/CustomerMetricResponseDto.md
Expand Down Expand Up @@ -247,6 +247,7 @@ docs/ModelMappingRequestRateDto.md
docs/ModelMappingSignalDto.md
docs/ModelMappingSignalFilterDto.md
docs/ModelRuleNamesDto.md
docs/ModelRulesConfigurationAPI.md
docs/ModelRulesDto.md
docs/MonitoringStatusControllerAPI.md
docs/MonitoringStatusRequestDto.md
Expand Down Expand Up @@ -417,6 +418,7 @@ model_assertion_rollup_dto.go
model_assertion_score_request_dto.go
model_assertion_scores_dto.go
model_assertion_search_request_dto.go
model_assertion_source_metric_label_dto.go
model_assertion_source_metric_request_dto.go
model_assertion_source_metric_response_dto.go
model_assertion_state_dto.go
Expand Down Expand Up @@ -641,7 +643,6 @@ test/api_assertion_search_controller_test.go
test/api_auto_complete_controller_test.go
test/api_config_export_import_controller_test.go
test/api_custom_dash_config_controller_test.go
test/api_custom_model_rules_configuration_test.go
test/api_customer_metric_controller_test.go
test/api_data_sources_config_controller_test.go
test/api_drilldown_config_migration_controller_test.go
Expand All @@ -660,6 +661,7 @@ test/api_log_config_controller_test.go
test/api_log_drilldown_config_controller_test.go
test/api_mimir_relabel_rules_config_controller_test.go
test/api_model_mapping_controller_test.go
test/api_model_rules_configuration_test.go
test/api_monitoring_status_controller_test.go
test/api_otel_config_controller_test.go
test/api_product_activation_controller_test.go
Expand Down
14 changes: 8 additions & 6 deletions go/gcom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Asserts Public API
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 2025.11.24-113232
- API version: 2025.12.11-145809
- Package version: 1.0.0
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Expand Down Expand Up @@ -114,11 +114,6 @@ Class | Method | HTTP request | Description
*CustomDashConfigControllerAPI* | [**GetAllCustomDashConfig**](docs/CustomDashConfigControllerAPI.md#getallcustomdashconfig) | **Get** /v1/config/dashboard |
*CustomDashConfigControllerAPI* | [**GetCustomDashConfig**](docs/CustomDashConfigControllerAPI.md#getcustomdashconfig) | **Get** /v1/config/dashboard/{entity_type} |
*CustomDashConfigControllerAPI* | [**UpdateCustomDashConfig**](docs/CustomDashConfigControllerAPI.md#updatecustomdashconfig) | **Post** /v1/config/dashboard/{entity_type} |
*CustomModelRulesConfigurationAPI* | [**DeleteModelRules**](docs/CustomModelRulesConfigurationAPI.md#deletemodelrules) | **Delete** /v1/config/model-rules/{name} | Delete model rules by name
*CustomModelRulesConfigurationAPI* | [**GetModelRules**](docs/CustomModelRulesConfigurationAPI.md#getmodelrules) | **Get** /v1/config/model-rules/{name} | Get model rules by name
*CustomModelRulesConfigurationAPI* | [**ListModelRules**](docs/CustomModelRulesConfigurationAPI.md#listmodelrules) | **Get** /v1/config/model-rules | List all model rule names
*CustomModelRulesConfigurationAPI* | [**PutModelRules**](docs/CustomModelRulesConfigurationAPI.md#putmodelrules) | **Put** /v1/config/model-rules | Create or update model rules
*CustomModelRulesConfigurationAPI* | [**PutModelRules1**](docs/CustomModelRulesConfigurationAPI.md#putmodelrules1) | **Put** /v1/config/model-rules/{name} | Create or update model rules by name
*CustomerMetricControllerAPI* | [**GetAllMetrics**](docs/CustomerMetricControllerAPI.md#getallmetrics) | **Get** /v1/customer/metric |
*CustomerMetricControllerAPI* | [**GetAllMetrics1**](docs/CustomerMetricControllerAPI.md#getallmetrics1) | **Post** /v1/customer/metric |
*CustomerMetricControllerAPI* | [**GetClientMetrics**](docs/CustomerMetricControllerAPI.md#getclientmetrics) | **Get** /v1/customer/metric/client |
Expand Down Expand Up @@ -173,6 +168,12 @@ Class | Method | HTTP request | Description
*ModelMappingControllerAPI* | [**Delete**](docs/ModelMappingControllerAPI.md#delete) | **Delete** /v1/config/model-mapping/{name} |
*ModelMappingControllerAPI* | [**Get**](docs/ModelMappingControllerAPI.md#get) | **Get** /v1/config/model-mapping/{name} |
*ModelMappingControllerAPI* | [**Put**](docs/ModelMappingControllerAPI.md#put) | **Put** /v1/config/model-mapping/{name} |
*ModelRulesConfigurationAPI* | [**DeleteModelRules**](docs/ModelRulesConfigurationAPI.md#deletemodelrules) | **Delete** /v1/config/model-rules/{name} | Delete custom model rules by name
*ModelRulesConfigurationAPI* | [**GetModelRules**](docs/ModelRulesConfigurationAPI.md#getmodelrules) | **Get** /v1/config/model-rules/{name} | Get custom model rules by name
*ModelRulesConfigurationAPI* | [**GetModelRulesByType**](docs/ModelRulesConfigurationAPI.md#getmodelrulesbytype) | **Get** /v1/config/model-rules-types/{type} | Get base, active, or custom model rules
*ModelRulesConfigurationAPI* | [**ListModelRules**](docs/ModelRulesConfigurationAPI.md#listmodelrules) | **Get** /v1/config/model-rules | List all custom model rule names
*ModelRulesConfigurationAPI* | [**PutModelRules**](docs/ModelRulesConfigurationAPI.md#putmodelrules) | **Put** /v1/config/model-rules | Create or update custom model rules
*ModelRulesConfigurationAPI* | [**PutModelRules1**](docs/ModelRulesConfigurationAPI.md#putmodelrules1) | **Put** /v1/config/model-rules/{name} | Create or update custom model rules by name
*MonitoringStatusControllerAPI* | [**GetEntityMonitoringStatus**](docs/MonitoringStatusControllerAPI.md#getentitymonitoringstatus) | **Post** /v1/monitoring-status/for-entities |
*OtelConfigControllerAPI* | [**DeleteOtelCollectorConfig**](docs/OtelConfigControllerAPI.md#deleteotelcollectorconfig) | **Delete** /v1/config/otel-collector |
*OtelConfigControllerAPI* | [**GetOtelCollectorConfig**](docs/OtelConfigControllerAPI.md#getotelcollectorconfig) | **Get** /v1/config/otel-collector |
Expand Down Expand Up @@ -313,6 +314,7 @@ Class | Method | HTTP request | Description
- [AssertionScoreRequestDto](docs/AssertionScoreRequestDto.md)
- [AssertionScoresDto](docs/AssertionScoresDto.md)
- [AssertionSearchRequestDto](docs/AssertionSearchRequestDto.md)
- [AssertionSourceMetricLabelDto](docs/AssertionSourceMetricLabelDto.md)
- [AssertionSourceMetricRequestDto](docs/AssertionSourceMetricRequestDto.md)
- [AssertionSourceMetricResponseDto](docs/AssertionSourceMetricResponseDto.md)
- [AssertionStateDto](docs/AssertionStateDto.md)
Expand Down
116 changes: 84 additions & 32 deletions go/gcom/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ info:
description: Asserts Public API
termsOfService: https://www.asserts.ai/terms-of-service
title: "Asserts, Inc"
version: 2025.11.24-113232
version: 2025.12.11-145809
servers:
- description: Generated server url
url: http://localhost:8030/asserts/api-server
tags:
- description: APIs for managing custom model rule configurations
name: Custom Model Rules Configuration
- description: APIs for managing model rule configurations
name: Model Rules Configuration
- description: APIs for managing alert configurations
name: Alert Configuration
paths:
Expand Down Expand Up @@ -321,8 +321,8 @@ paths:
- prom-rules-config-controller
/v1/config/model-rules:
get:
description: Retrieves a list of all available model rule configuration names
for the current tenant.
description: Retrieves a list of all available custom model rule configuration
names for the current tenant.
operationId: listModelRules
parameters:
- $ref: '#/components/parameters/TenantId'
Expand All @@ -338,13 +338,13 @@ paths:
application/x-yaml:
schema:
$ref: '#/components/schemas/ModelRuleNamesDto'
description: Successfully retrieved list of model rule names
summary: List all model rule names
description: Successfully retrieved list of custom model rule names
summary: List all custom model rule names
tags:
- Custom Model Rules Configuration
- Model Rules Configuration
put:
description: Creates or updates model rules using the name specified in the
request body.
description: Creates or updates custom model rules using the name specified
in the request body.
operationId: putModelRules
parameters:
- $ref: '#/components/parameters/TenantId'
Expand All @@ -362,7 +362,7 @@ paths:
required: true
responses:
"200":
description: Successfully created or updated model rules
description: Successfully created or updated custom model rules
"422":
content:
application/json:
Expand All @@ -387,13 +387,13 @@ paths:
schema:
$ref: '#/components/schemas/ApiError'
description: Internal server error
summary: Create or update model rules
summary: Create or update custom model rules
tags:
- Custom Model Rules Configuration
- Model Rules Configuration
/v1/config/model-rules/{name}:
delete:
description: Permanently deletes a specific model rules configuration by its
name.
description: Permanently deletes a specific custom model rules configuration
by its name.
operationId: deleteModelRules
parameters:
- description: The name of the model rules configuration to delete
Expand All @@ -407,12 +407,12 @@ paths:
- $ref: '#/components/parameters/TenantId'
responses:
"204":
description: Successfully deleted model rules
summary: Delete model rules by name
description: Successfully deleted custom model rules
summary: Delete custom model rules by name
tags:
- Custom Model Rules Configuration
- Model Rules Configuration
get:
description: Retrieves a specific model rules configuration by its name.
description: Retrieves a specific custom model rules configuration by its name.
operationId: getModelRules
parameters:
- description: The name of the model rules configuration to retrieve
Expand All @@ -436,7 +436,7 @@ paths:
application/x-yaml:
schema:
$ref: '#/components/schemas/ModelRulesDto'
description: Successfully retrieved model rules
description: Successfully retrieved custom model rules
"404":
content:
application/json:
Expand All @@ -448,13 +448,13 @@ paths:
application/x-yaml:
schema:
$ref: '#/components/schemas/ModelRulesDto'
description: Model rules not found
summary: Get model rules by name
description: Custom model rules not found
summary: Get custom model rules by name
tags:
- Custom Model Rules Configuration
- Model Rules Configuration
put:
description: "Creates or updates model rules with a specific name. If the dto\
\ also contains a name, it will be used instead (save as operation)."
description: "Creates or updates custom model rules with a specific name. If\
\ the dto also contains a name, it will be used instead (save as operation)."
operationId: putModelRules_1
parameters:
- description: The name of the model rules configuration
Expand All @@ -474,7 +474,7 @@ paths:
required: true
responses:
"200":
description: Successfully created or updated model rules
description: Successfully created or updated custom model rules
"422":
content:
application/json:
Expand All @@ -499,9 +499,9 @@ paths:
schema:
$ref: '#/components/schemas/ApiError'
description: Internal server error
summary: Create or update model rules by name
summary: Create or update custom model rules by name
tags:
- Custom Model Rules Configuration
- Model Rules Configuration
/v1/config/model-mapping/{name}:
delete:
operationId: delete
Expand Down Expand Up @@ -3700,6 +3700,36 @@ paths:
description: OK
tags:
- prom-rules-config-controller
/v1/config/model-rules-types/{type}:
get:
description: "Retrieves base, active, or custom model rules for the current\
\ tenant."
operationId: getModelRulesByType
parameters:
- explode: false
in: path
name: type
required: true
schema:
type: string
style: simple
- $ref: '#/components/parameters/TenantId'
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ModelRulesDto'
application/x-yml:
schema:
$ref: '#/components/schemas/ModelRulesDto'
application/x-yaml:
schema:
$ref: '#/components/schemas/ModelRulesDto'
description: Successfully retrieved typed model rules
summary: "Get base, active, or custom model rules"
tags:
- Model Rules Configuration
/v1/config/failure-rules:
get:
description: Retrieves Prometheus rule groups related to failures. Can be filtered
Expand Down Expand Up @@ -4640,6 +4670,7 @@ components:
type: string
ProductActivationDto:
example:
createdAt: 2000-01-23T04:56:07.000+00:00
product: appo11y
enabled: true
properties:
Expand All @@ -4650,6 +4681,9 @@ components:
type: string
enabled:
type: boolean
createdAt:
format: date-time
type: string
required:
- enabled
- product
Expand Down Expand Up @@ -5441,7 +5475,7 @@ components:
type: string
entityType:
minLength: 1
pattern: Service|DataSource|Topic
pattern: Service|Database|Topic
type: string
signals:
items:
Expand Down Expand Up @@ -15351,17 +15385,35 @@ components:
labels:
additionalProperties:
type: string
AssertionSourceMetricLabelDto:
example:
op: op
label: label
value: value
properties:
label:
type: string
op:
type: string
value:
type: string
AssertionSourceMetricResponseDto:
example:
metricName: metricName
labels:
key: labels
- op: op
label: label
value: value
- op: op
label: label
value: value
properties:
metricName:
type: string
labels:
additionalProperties:
type: string
items:
$ref: '#/components/schemas/AssertionSourceMetricLabelDto'
type: array
AffectedEntityNamesDto:
example:
entityNames:
Expand Down
2 changes: 1 addition & 1 deletion go/gcom/api_alert_configuration.go

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

2 changes: 1 addition & 1 deletion go/gcom/api_alert_entity_controller.go

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

2 changes: 1 addition & 1 deletion go/gcom/api_alert_manager_config_controller.go

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

2 changes: 1 addition & 1 deletion go/gcom/api_alert_manager_versioned_config_controller.go

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

2 changes: 1 addition & 1 deletion go/gcom/api_assertion_info_controller.go

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

Loading
Loading