|
841 | 841 | ], |
842 | 842 | "type": "object" |
843 | 843 | }, |
| 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 | + }, |
844 | 870 | "CreateAlertgroupsPayload": { |
845 | 871 | "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.", |
846 | 872 | "properties": { |
|
910 | 936 | ], |
911 | 937 | "type": "object" |
912 | 938 | }, |
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 | | - }, |
939 | 939 | "CreateAlertrulesPayload": { |
940 | 940 | "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.", |
941 | 941 | "properties": { |
|
4732 | 4732 | ], |
4733 | 4733 | "type": "object" |
4734 | 4734 | }, |
| 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 | + }, |
4735 | 4754 | "UpdateAlertgroupPayload": { |
4736 | 4755 | "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.", |
4737 | 4756 | "properties": { |
|
4794 | 4813 | ], |
4795 | 4814 | "type": "object" |
4796 | 4815 | }, |
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 | | - }, |
4816 | 4816 | "UpdateAlertrulePayload": { |
4817 | 4817 | "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.", |
4818 | 4818 | "properties": { |
|
9049 | 9049 | "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records": { |
9050 | 9050 | "delete": { |
9051 | 9051 | "description": "Delete alert records.", |
9052 | | - "operationId": "DeleteAlertrecords", |
| 9052 | + "operationId": "DeleteAlertRecords", |
9053 | 9053 | "parameters": [ |
9054 | 9054 | { |
9055 | 9055 | "in": "path", |
|
9138 | 9138 | }, |
9139 | 9139 | "get": { |
9140 | 9140 | "description": "Get alert records.", |
9141 | | - "operationId": "ListAlertrecords", |
| 9141 | + "operationId": "ListAlertRecords", |
9142 | 9142 | "parameters": [ |
9143 | 9143 | { |
9144 | 9144 | "in": "path", |
|
9213 | 9213 | }, |
9214 | 9214 | "patch": { |
9215 | 9215 | "description": "Patch alert records.", |
9216 | | - "operationId": "PartialUpdateAlertrecords", |
| 9216 | + "operationId": "PartialUpdateAlertRecords", |
9217 | 9217 | "parameters": [ |
9218 | 9218 | { |
9219 | 9219 | "in": "path", |
|
9338 | 9338 | }, |
9339 | 9339 | "post": { |
9340 | 9340 | "description": "Create alert record.", |
9341 | | - "operationId": "CreateAlertrecord", |
| 9341 | + "operationId": "CreateAlertRecord", |
9342 | 9342 | "parameters": [ |
9343 | 9343 | { |
9344 | 9344 | "in": "path", |
|
9369 | 9369 | "content": { |
9370 | 9370 | "application/json": { |
9371 | 9371 | "schema": { |
9372 | | - "$ref": "#/components/schemas/CreateAlertrecordPayload" |
| 9372 | + "$ref": "#/components/schemas/CreateAlertRecordPayload" |
9373 | 9373 | } |
9374 | 9374 | } |
9375 | 9375 | }, |
|
9438 | 9438 | "/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/records/{alertRecord}": { |
9439 | 9439 | "delete": { |
9440 | 9440 | "description": "Delete alert record.", |
9441 | | - "operationId": "DeleteAlertrecord", |
| 9441 | + "operationId": "DeleteAlertRecord", |
9442 | 9442 | "parameters": [ |
9443 | 9443 | { |
9444 | 9444 | "in": "path", |
|
9534 | 9534 | }, |
9535 | 9535 | "get": { |
9536 | 9536 | "description": "Get alert record.", |
9537 | | - "operationId": "GetAlertrecord", |
| 9537 | + "operationId": "GetAlertRecord", |
9538 | 9538 | "parameters": [ |
9539 | 9539 | { |
9540 | 9540 | "in": "path", |
|
9641 | 9641 | }, |
9642 | 9642 | "put": { |
9643 | 9643 | "description": "Update alert record.", |
9644 | | - "operationId": "UpdateAlertrecord", |
| 9644 | + "operationId": "UpdateAlertRecord", |
9645 | 9645 | "parameters": [ |
9646 | 9646 | { |
9647 | 9647 | "in": "path", |
|
9680 | 9680 | "content": { |
9681 | 9681 | "application/json": { |
9682 | 9682 | "schema": { |
9683 | | - "$ref": "#/components/schemas/UpdateAlertrecordPayload" |
| 9683 | + "$ref": "#/components/schemas/UpdateAlertRecordPayload" |
9684 | 9684 | } |
9685 | 9685 | } |
9686 | 9686 | }, |
|
0 commit comments