Alerting: Remove transitional notifications API endpoints (#102713)

* Remove transitional notifications API endpoints

* Fix openapi spec

* Fix path test

* Remove API tests related to removed endpoints
This commit is contained in:
William Wernert
2025-03-26 12:26:50 -04:00
committed by GitHub
parent 44c471d10c
commit 88d23fe5be
16 changed files with 1 additions and 1901 deletions
-265
View File
@@ -2671,155 +2671,6 @@
}
}
},
"/v1/notifications/receivers": {
"get": {
"description": "This API is designated to internal use only and can be removed or changed at any time without prior notice.",
"tags": [
"notifications"
],
"summary": "Get all receivers.",
"operationId": "RouteGetReceivers",
"deprecated": true,
"parameters": [
{
"type": "array",
"items": {
"type": "string"
},
"name": "names",
"in": "query"
},
{
"type": "integer",
"format": "int64",
"name": "limit",
"in": "query"
},
{
"type": "integer",
"format": "int64",
"name": "offset",
"in": "query"
},
{
"type": "boolean",
"name": "decrypt",
"in": "query"
}
],
"responses": {
"200": {
"$ref": "#/responses/GetReceiversResponse"
},
"403": {
"description": "PermissionDenied",
"schema": {
"$ref": "#/definitions/PermissionDenied"
}
}
}
}
},
"/v1/notifications/receivers/{Name}": {
"get": {
"description": "This API is designated to internal use only and can be removed or changed at any time without prior notice.",
"tags": [
"notifications"
],
"summary": "Get a receiver by name.",
"operationId": "RouteGetReceiver",
"deprecated": true,
"parameters": [
{
"type": "string",
"name": "name",
"in": "path",
"required": true
},
{
"type": "boolean",
"name": "decrypt",
"in": "query"
}
],
"responses": {
"200": {
"$ref": "#/responses/GetReceiverResponse"
},
"403": {
"description": "PermissionDenied",
"schema": {
"$ref": "#/definitions/PermissionDenied"
}
},
"404": {
"description": "NotFound",
"schema": {
"$ref": "#/definitions/NotFound"
}
}
}
}
},
"/v1/notifications/time-intervals": {
"get": {
"description": "This API is designated to internal use only and can be removed or changed at any time without prior notice.",
"tags": [
"notifications"
],
"summary": "Get all the time intervals",
"operationId": "RouteNotificationsGetTimeIntervals",
"deprecated": true,
"responses": {
"200": {
"$ref": "#/responses/GetAllIntervalsResponse"
},
"403": {
"description": "ForbiddenError",
"schema": {
"$ref": "#/definitions/ForbiddenError"
}
}
}
}
},
"/v1/notifications/time-intervals/{name}": {
"get": {
"description": "This API is designated to internal use only and can be removed or changed at any time without prior notice.",
"tags": [
"notifications"
],
"summary": "Get a time interval by name.",
"operationId": "RouteNotificationsGetTimeInterval",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "Time interval name",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"$ref": "#/responses/GetIntervalsByNameResponse"
},
"403": {
"description": "ForbiddenError",
"schema": {
"$ref": "#/definitions/ForbiddenError"
}
},
"404": {
"description": "NotFound",
"schema": {
"$ref": "#/definitions/NotFound"
}
}
}
}
},
"/v1/provisioning/alert-rules": {
"get": {
"tags": [
@@ -6013,26 +5864,6 @@
}
}
},
"GettableTimeIntervals": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},
"time_intervals": {
"type": "array",
"items": {
"$ref": "#/definitions/TimeIntervalItem"
}
},
"version": {
"type": "string"
}
}
},
"GettableUserConfig": {
"type": "object",
"properties": {
@@ -7175,23 +7006,6 @@
}
}
},
"PostableTimeIntervals": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"time_intervals": {
"type": "array",
"items": {
"$ref": "#/definitions/TimeIntervalItem"
}
},
"version": {
"type": "string"
}
}
},
"PostableUserConfig": {
"type": "object",
"properties": {
@@ -8717,55 +8531,6 @@
}
}
},
"TimeIntervalItem": {
"type": "object",
"properties": {
"days_of_month": {
"type": "array",
"items": {
"type": "string"
}
},
"location": {
"type": "string"
},
"months": {
"type": "array",
"items": {
"type": "string"
}
},
"times": {
"type": "array",
"items": {
"$ref": "#/definitions/TimeIntervalTimeRange"
}
},
"weekdays": {
"type": "array",
"items": {
"type": "string"
}
},
"years": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"TimeIntervalTimeRange": {
"type": "object",
"properties": {
"end_time": {
"type": "string"
},
"start_time": {
"type": "string"
}
}
},
"TimeRange": {
"description": "Redefining this to avoid an import cycle",
"type": "object",
@@ -9595,36 +9360,6 @@
}
},
"responses": {
"GetAllIntervalsResponse": {
"description": "",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/GettableTimeIntervals"
}
}
},
"GetIntervalsByNameResponse": {
"description": "",
"schema": {
"$ref": "#/definitions/GettableTimeIntervals"
}
},
"GetReceiverResponse": {
"description": "",
"schema": {
"$ref": "#/definitions/GettableApiReceiver"
}
},
"GetReceiversResponse": {
"description": "",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/GettableApiReceiver"
}
}
},
"GettableHistoricUserConfigs": {
"description": "",
"schema": {