Skip to content

Commit fe212a1

Browse files
OAS Update
1 parent 37b3b22 commit fe212a1

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

services/observability/v1/observability.json

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,32 @@
841841
],
842842
"type": "object"
843843
},
844+
"CreateAlertRecordPayload": {
845+
"description": "Record.\n`Additional Validators:`\n* total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus.",
846+
"properties": {
847+
"expr": {
848+
"description": "The PromQL expression to evaluate. Every evaluation\ncycle this is evaluated at the current time, and all resultant\ntime series become pending/firing alerts.",
849+
"maxLength": 2000,
850+
"minLength": 1,
851+
"type": "string"
852+
},
853+
"labels": {
854+
"description": "map of key:value. Labels to add or overwrite for each alert.\n`Additional Validators:`\n* should not contain more than 10 keys\n* each key and value should not be longer than 200 characters\n",
855+
"type": "object"
856+
},
857+
"record": {
858+
"description": "The name of the record.\n`Additional Validators:`\n* is the identifier and so unique in the group\n",
859+
"maxLength": 200,
860+
"minLength": 1,
861+
"type": "string"
862+
}
863+
},
864+
"required": [
865+
"expr",
866+
"record"
867+
],
868+
"type": "object"
869+
},
844870
"CreateAlertgroupsPayload": {
845871
"description": "Alert group that should be created or updated.\n`Additional Validators:`\n* total config should not be bigger than 500000 characters as string since this the limitation of prometheus.",
846872
"properties": {
@@ -910,32 +936,6 @@
910936
],
911937
"type": "object"
912938
},
913-
"CreateAlertrecordPayload": {
914-
"description": "Record.\n`Additional Validators:`\n* total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus.",
915-
"properties": {
916-
"expr": {
917-
"description": "The PromQL expression to evaluate. Every evaluation\ncycle this is evaluated at the current time, and all resultant\ntime series become pending/firing alerts.",
918-
"maxLength": 2000,
919-
"minLength": 1,
920-
"type": "string"
921-
},
922-
"labels": {
923-
"description": "map of key:value. Labels to add or overwrite for each alert.\n`Additional Validators:`\n* should not contain more than 10 keys\n* each key and value should not be longer than 200 characters\n",
924-
"type": "object"
925-
},
926-
"record": {
927-
"description": "The name of the record.\n`Additional Validators:`\n* is the identifier and so unique in the group\n",
928-
"maxLength": 200,
929-
"minLength": 1,
930-
"type": "string"
931-
}
932-
},
933-
"required": [
934-
"expr",
935-
"record"
936-
],
937-
"type": "object"
938-
},
939939
"CreateAlertrulesPayload": {
940940
"description": "Alert rule.\n`Additional Validators:`\n* total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus.",
941941
"properties": {
@@ -4732,6 +4732,25 @@
47324732
],
47334733
"type": "object"
47344734
},
4735+
"UpdateAlertRecordPayload": {
4736+
"description": "Record.\n`Additional Validators:`\n* total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus.",
4737+
"properties": {
4738+
"expr": {
4739+
"description": "The PromQL expression to evaluate. Every evaluation\ncycle this is evaluated at the current time, and all resultant\ntime series become pending/firing alerts.",
4740+
"maxLength": 2000,
4741+
"minLength": 1,
4742+
"type": "string"
4743+
},
4744+
"labels": {
4745+
"description": "map of key:value. Labels to add or overwrite for each alert.\n`Additional Validators:`\n* should not contain more than 5 keys\n* each key and value should not be longer than 200 characters\n",
4746+
"type": "object"
4747+
}
4748+
},
4749+
"required": [
4750+
"expr"
4751+
],
4752+
"type": "object"
4753+
},
47354754
"UpdateAlertgroupPayload": {
47364755
"description": "Alert group that should be created or updated.\n`Additional Validators:`\n* total config should not be bigger than 500000 characters as string since this the limitation of prometheus.",
47374756
"properties": {
@@ -4794,25 +4813,6 @@
47944813
],
47954814
"type": "object"
47964815
},
4797-
"UpdateAlertrecordPayload": {
4798-
"description": "Record.\n`Additional Validators:`\n* total config (all alert groups/rules/records) should not be bigger than 500000 characters as string since this the limitation of prometheus.",
4799-
"properties": {
4800-
"expr": {
4801-
"description": "The PromQL expression to evaluate. Every evaluation\ncycle this is evaluated at the current time, and all resultant\ntime series become pending/firing alerts.",
4802-
"maxLength": 2000,
4803-
"minLength": 1,
4804-
"type": "string"
4805-
},
4806-
"labels": {
4807-
"description": "map of key:value. Labels to add or overwrite for each alert.\n`Additional Validators:`\n* should not contain more than 5 keys\n* each key and value should not be longer than 200 characters\n",
4808-
"type": "object"
4809-
}
4810-
},
4811-
"required": [
4812-
"expr"
4813-
],
4814-
"type": "object"
4815-
},
48164816
"UpdateAlertrulePayload": {
48174817
"description": "Alert rule.\n`Additional Validators:`\n* total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus.",
48184818
"properties": {
@@ -9049,7 +9049,7 @@
90499049
"/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records": {
90509050
"delete": {
90519051
"description": "Delete alert records.",
9052-
"operationId": "DeleteAlertrecords",
9052+
"operationId": "DeleteAlertRecords",
90539053
"parameters": [
90549054
{
90559055
"in": "path",
@@ -9138,7 +9138,7 @@
91389138
},
91399139
"get": {
91409140
"description": "Get alert records.",
9141-
"operationId": "ListAlertrecords",
9141+
"operationId": "ListAlertRecords",
91429142
"parameters": [
91439143
{
91449144
"in": "path",
@@ -9213,7 +9213,7 @@
92139213
},
92149214
"patch": {
92159215
"description": "Patch alert records.",
9216-
"operationId": "PartialUpdateAlertrecords",
9216+
"operationId": "PartialUpdateAlertRecords",
92179217
"parameters": [
92189218
{
92199219
"in": "path",
@@ -9338,7 +9338,7 @@
93389338
},
93399339
"post": {
93409340
"description": "Create alert record.",
9341-
"operationId": "CreateAlertrecord",
9341+
"operationId": "CreateAlertRecord",
93429342
"parameters": [
93439343
{
93449344
"in": "path",
@@ -9369,7 +9369,7 @@
93699369
"content": {
93709370
"application/json": {
93719371
"schema": {
9372-
"$ref": "#/components/schemas/CreateAlertrecordPayload"
9372+
"$ref": "#/components/schemas/CreateAlertRecordPayload"
93739373
}
93749374
}
93759375
},
@@ -9438,7 +9438,7 @@
94389438
"/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records/{alertRecord}": {
94399439
"delete": {
94409440
"description": "Delete alert record.",
9441-
"operationId": "DeleteAlertrecord",
9441+
"operationId": "DeleteAlertRecord",
94429442
"parameters": [
94439443
{
94449444
"in": "path",
@@ -9534,7 +9534,7 @@
95349534
},
95359535
"get": {
95369536
"description": "Get alert record.",
9537-
"operationId": "GetAlertrecord",
9537+
"operationId": "GetAlertRecord",
95389538
"parameters": [
95399539
{
95409540
"in": "path",
@@ -9641,7 +9641,7 @@
96419641
},
96429642
"put": {
96439643
"description": "Update alert record.",
9644-
"operationId": "UpdateAlertrecord",
9644+
"operationId": "UpdateAlertRecord",
96459645
"parameters": [
96469646
{
96479647
"in": "path",
@@ -9680,7 +9680,7 @@
96809680
"content": {
96819681
"application/json": {
96829682
"schema": {
9683-
"$ref": "#/components/schemas/UpdateAlertrecordPayload"
9683+
"$ref": "#/components/schemas/UpdateAlertRecordPayload"
96849684
}
96859685
}
96869686
},

0 commit comments

Comments
 (0)