diff --git a/Makefile b/Makefile index c75ddf54aea..b1cc517b409 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,7 @@ $(SPEC_TARGET): $(API_DEFINITION_FILES) ## Generate API spec -e SWAGGER_GENERATE_EXTENSION=false \ -v ${HOME}/go:/go \ -v $$(pwd):/grafana \ + -v $$(pwd)/../grafana-enterprise:$$(pwd)/../grafana-enterprise \ -w $$(pwd)/pkg/api/docs quay.io/goswagger/swagger:$(SWAGGER_TAG) \ generate spec -m -o /grafana/public/api-spec.json \ -w /grafana/pkg/server \ @@ -62,7 +63,7 @@ ensure_go-swagger_mac: @hash swagger &>/dev/null || (brew tap go-swagger/go-swagger && brew install go-swagger) --swagger-api-spec-mac: ensure_go-swagger_mac $(API_DEFINITION_FILES) ## Generate API spec (for M1 Mac) - swagger generate spec -m -w pkg/server -o public/api-spec.json \ + SWAGGER_GENERATE_EXTENSION=false swagger generate spec -m -w pkg/server -o public/api-spec.json \ -x "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions" \ -x "github.com/prometheus/alertmanager" \ -i pkg/api/docs/tags.json diff --git a/public/api-merged.json b/public/api-merged.json index 8b1ceb434a9..58a4a345080 100644 --- a/public/api-merged.json +++ b/public/api-merged.json @@ -44,7 +44,6 @@ "operationId": "addBuiltinRole", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -78,21 +77,18 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true }, { "type": "string", - "x-go-name": "RoleUID", "name": "builtinRole", "in": "path", "required": true }, { "type": "boolean", - "x-go-name": "Global", "description": "A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to remove assignment.", "name": "global", "in": "query" @@ -142,7 +138,6 @@ "operationId": "createRoleWithPermissions", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -176,7 +171,6 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true @@ -202,13 +196,11 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -243,7 +235,6 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true @@ -297,7 +288,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true @@ -327,7 +317,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true @@ -360,13 +349,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -403,7 +390,6 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true @@ -411,7 +397,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true @@ -446,7 +431,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -476,7 +460,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -507,7 +490,6 @@ "operationId": "addUserRole", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -518,7 +500,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -549,14 +530,12 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true }, { "type": "boolean", - "x-go-name": "Global", "description": "A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to remove assignment.", "name": "global", "in": "query" @@ -564,7 +543,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -680,7 +658,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -716,7 +693,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UserID", "name": "user_name", "in": "path", "required": true @@ -750,7 +726,6 @@ "operationId": "pauseAllAlerts", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -987,7 +962,6 @@ "operationId": "createUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1033,7 +1007,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1073,7 +1046,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1110,7 +1082,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1150,7 +1121,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1190,7 +1160,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1231,7 +1200,6 @@ "operationId": "setPassword", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1242,7 +1210,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1275,7 +1242,6 @@ "operationId": "setPermissions", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1286,7 +1252,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1326,7 +1291,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1365,13 +1329,11 @@ "parameters": [ { "type": "string", - "x-go-name": "QuotaTarget", "name": "quota_target", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1382,7 +1344,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1420,7 +1381,6 @@ "operationId": "revokeAuthToken", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1431,7 +1391,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1487,7 +1446,6 @@ "operationId": "createAlertNotificationChannel", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1545,7 +1503,6 @@ "operationId": "notificationChannelTest", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1585,7 +1542,6 @@ "parameters": [ { "type": "string", - "x-go-name": "NotificationUID", "name": "notification_channel_uid", "in": "path", "required": true @@ -1617,13 +1573,11 @@ "parameters": [ { "type": "string", - "x-go-name": "NotificationUID", "name": "notification_channel_uid", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1658,7 +1612,6 @@ "parameters": [ { "type": "string", - "x-go-name": "NotificationUID", "name": "notification_channel_uid", "in": "path", "required": true @@ -1693,7 +1646,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "NotificationID", "name": "notification_channel_id", "in": "path", "required": true @@ -1726,13 +1678,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "NotificationID", "name": "notification_channel_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1768,7 +1718,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "NotificationID", "name": "notification_channel_id", "in": "path", "required": true @@ -1804,7 +1753,6 @@ "items": { "type": "string" }, - "x-go-name": "DashboardID", "description": "Limit response to alerts in specified dashboard(s). You can specify multiple dashboards.", "name": "dashboardId", "in": "query" @@ -1812,14 +1760,12 @@ { "type": "integer", "format": "int64", - "x-go-name": "PanelID", "description": "Limit response to alert for a specified panel on a dashboard.", "name": "panelId", "in": "query" }, { "type": "string", - "x-go-name": "Query", "description": "Limit response to alerts having a name like this value.", "name": "query", "in": "query" @@ -1827,7 +1773,6 @@ { "enum": ["all", "no_data", "paused", "alerting", "ok", "pending", "unknown"], "type": "string", - "x-go-name": "State", "description": "Return alerts with one or more of the following alert states", "name": "state", "in": "query" @@ -1835,7 +1780,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "Limit", "description": "Limit response to X number of alerts.", "name": "limit", "in": "query" @@ -1846,14 +1790,12 @@ "type": "string" }, "collectionFormat": "multi", - "x-go-name": "FolderID", "description": "Limit response to alerts of dashboards in specified folder(s). You can specify multiple folders", "name": "folderId", "in": "query" }, { "type": "string", - "x-go-name": "DashboardQuery", "description": "Limit response to alerts having a dashboard name like this value./ Limit response to alerts having a dashboard name like this value.", "name": "dashboardQuery", "in": "query" @@ -1864,7 +1806,6 @@ "type": "string" }, "collectionFormat": "multi", - "x-go-name": "DashboardTag", "description": "Limit response to alerts of dashboards with specified tags. To do an “AND” filtering with multiple tags, specify the tags parameter multiple times", "name": "dashboardTag", "in": "query" @@ -1892,7 +1833,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "DashboardID", "name": "dashboardId", "in": "query", "required": true @@ -1918,7 +1858,6 @@ "operationId": "testAlert", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "schema": { @@ -1954,7 +1893,6 @@ "parameters": [ { "type": "string", - "x-go-name": "AlertID", "name": "alert_id", "in": "path", "required": true @@ -1981,13 +1919,11 @@ "parameters": [ { "type": "string", - "x-go-name": "AlertID", "name": "alert_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2025,7 +1961,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "From", "description": "Find annotations created after specific epoch datetime in milliseconds.", "name": "from", "in": "query" @@ -2033,7 +1968,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "To", "description": "Find annotations created before specific epoch datetime in milliseconds.", "name": "to", "in": "query" @@ -2041,7 +1975,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "description": "Limit response to annotations created by specific user.", "name": "userId", "in": "query" @@ -2049,7 +1982,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "AlertID", "description": "Find annotations for a specified alert.", "name": "alertId", "in": "query" @@ -2057,7 +1989,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "DashboardID", "description": "Find annotations that are scoped to a specific dashboard", "name": "dashboardId", "in": "query" @@ -2065,7 +1996,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "PanelID", "description": "Find annotations that are scoped to a specific panel", "name": "panelId", "in": "query" @@ -2073,7 +2003,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "Limit", "description": "Max limit for results returned.", "name": "limit", "in": "query" @@ -2084,7 +2013,6 @@ "type": "string" }, "collectionFormat": "multi", - "x-go-name": "Tags", "description": "Use this to filter organization annotations. Organization annotations are annotations from an annotation data source that are not connected specifically to a dashboard or panel. You can filter by multiple tags.", "name": "tags", "in": "query" @@ -2092,14 +2020,12 @@ { "enum": ["alert", "annotation"], "type": "string", - "x-go-name": "Type", "description": "Return alerts or user created annotations", "name": "type", "in": "query" }, { "type": "boolean", - "x-go-name": "MatchAny", "description": "Match any or all tags", "name": "matchAny", "in": "query" @@ -2124,7 +2050,6 @@ "operationId": "createAnnotation", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2160,7 +2085,6 @@ "operationId": "createGraphiteAnnotation", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2195,7 +2119,6 @@ "operationId": "massDeleteAnnotations", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2226,7 +2149,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Tag", "description": "Tag is a string that you can use to filter tags.", "name": "tag", "in": "query" @@ -2234,7 +2156,6 @@ { "type": "string", "default": "100", - "x-go-name": "Limit", "description": "Max limit for results returned.", "name": "limit", "in": "query" @@ -2261,7 +2182,6 @@ "parameters": [ { "type": "string", - "x-go-name": "AnnotationID", "name": "annotation_id", "in": "path", "required": true @@ -2287,13 +2207,11 @@ "parameters": [ { "type": "string", - "x-go-name": "AnnotationID", "name": "annotation_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2328,7 +2246,6 @@ "parameters": [ { "type": "string", - "x-go-name": "AnnotationID", "name": "annotation_id", "in": "path", "required": true @@ -2357,13 +2274,11 @@ "parameters": [ { "type": "string", - "x-go-name": "AnnotationID", "name": "annotation_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2401,7 +2316,6 @@ { "type": "boolean", "default": false, - "x-go-name": "IncludeExpired", "description": "Show expired keys", "name": "includeExpired", "in": "query" @@ -2471,7 +2385,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "ID", "name": "id", "in": "path", "required": true @@ -2504,7 +2417,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Query", "description": "Search Query", "name": "query", "in": "query" @@ -2513,7 +2425,6 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "Limit", "description": "Limit the number of returned results", "name": "limit", "in": "query" @@ -2549,8 +2460,7 @@ "diffType": { "description": "The type of diff to return\nDescription:\n`basic`\n`json`", "type": "string", - "enum": ["basic", "json"], - "x-go-name": "DiffType" + "enum": ["basic", "json"] }, "new": { "$ref": "#/definitions/CalculateDiffTarget" @@ -2778,7 +2688,6 @@ "type": "integer", "format": "int64", "default": 0, - "x-go-name": "Limit", "description": "Maximum number of results to return", "name": "limit", "in": "query" @@ -2787,7 +2696,6 @@ "type": "integer", "format": "int64", "default": 0, - "x-go-name": "Start", "description": "Version to start from when returning queries", "name": "start", "in": "query" @@ -2946,7 +2854,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -2978,7 +2885,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3011,7 +2917,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3043,7 +2948,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3087,7 +2991,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3128,7 +3031,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3137,7 +3039,6 @@ "type": "integer", "format": "int64", "default": 0, - "x-go-name": "Limit", "description": "Maximum number of results to return", "name": "limit", "in": "query" @@ -3146,7 +3047,6 @@ "type": "integer", "format": "int64", "default": 0, - "x-go-name": "Start", "description": "Version to start from when returning queries", "name": "start", "in": "query" @@ -3179,7 +3079,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3275,7 +3174,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceName", "name": "name", "in": "path", "required": true @@ -3309,7 +3207,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceName", "name": "name", "in": "path", "required": true @@ -3338,7 +3235,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceName", "name": "name", "in": "path", "required": true @@ -3372,14 +3268,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3414,14 +3308,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3459,14 +3351,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3504,14 +3394,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3547,14 +3435,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3601,14 +3487,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3645,7 +3529,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true @@ -3680,7 +3563,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true @@ -3717,7 +3599,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true @@ -3750,7 +3631,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true @@ -3783,14 +3663,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3827,7 +3705,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "datasourceId", "in": "path", "required": true @@ -3864,7 +3741,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "datasourceId", "in": "path", "required": true @@ -3901,7 +3777,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "datasourceId", "in": "path", "required": true @@ -3935,14 +3810,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "datasourceId", "in": "path", "required": true }, { "type": "string", - "x-go-name": "PermissionID", "name": "permissionId", "in": "path", "required": true @@ -3977,7 +3850,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true @@ -4013,7 +3885,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true @@ -4051,7 +3922,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true @@ -4086,7 +3956,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true @@ -4121,14 +3990,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -4164,7 +4031,6 @@ "operationId": "queryMetricsWithExpressions", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4206,7 +4072,6 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "Limit", "description": "Limit the maximum number of folders to return", "name": "limit", "in": "query" @@ -4215,7 +4080,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "description": "Page index for starting fetching folders", "name": "page", "in": "query" @@ -4242,7 +4106,6 @@ "operationId": "createFolder", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4283,7 +4146,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "FolderID", "name": "folder_id", "in": "path", "required": true @@ -4316,7 +4178,6 @@ "parameters": [ { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true @@ -4347,13 +4208,11 @@ "parameters": [ { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true }, { - "x-go-name": "Body", "description": "To change the unique identifier (uid), provide another one.\nTo overwrite an existing folder with newer version, set `overwrite` to `true`.\nProvide the current version to safelly update the folder: if the provided version differs from the stored one the request will fail, unless `overwrite` is `true`.", "name": "body", "in": "body", @@ -4395,7 +4254,6 @@ "parameters": [ { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true @@ -4403,7 +4261,6 @@ { "type": "boolean", "default": false, - "x-go-name": "ForceDeleteRules", "description": "If `true` any Grafana 8 Alerts under this folder will be deleted.\nSet to `false` so that the request will fail if the folder contains any Grafana 8 Alerts.", "name": "forceDeleteRules", "in": "query" @@ -4439,7 +4296,6 @@ "parameters": [ { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true @@ -4478,7 +4334,6 @@ }, { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true @@ -4512,7 +4367,6 @@ "parameters": [ { "type": "string", - "x-go-name": "SearchString", "description": "Part of the name or description searched for.", "name": "searchString", "in": "query" @@ -4521,7 +4375,6 @@ "enum": [1, 2], "type": "integer", "format": "int64", - "x-go-name": "Kind", "description": "Kind of element to search for.", "name": "kind", "in": "query" @@ -4529,28 +4382,24 @@ { "enum": ["alpha-asc", "alpha-desc"], "type": "string", - "x-go-name": "SortDirection", "description": "Sort order of elements.", "name": "sortDirection", "in": "query" }, { "type": "string", - "x-go-name": "TypeFilter", "description": "A comma separated list of types to filter the elements by", "name": "typeFilter", "in": "query" }, { "type": "string", - "x-go-name": "ExcludeUID", "description": "Element UID to exclude from search results.", "name": "excludeUid", "in": "query" }, { "type": "string", - "x-go-name": "FolderFilter", "description": "A comma separated list of folder ID(s) to filter the elements by.", "name": "folderFilter", "in": "query" @@ -4559,7 +4408,6 @@ "type": "integer", "format": "int64", "default": 100, - "x-go-name": "PerPage", "description": "The number of results per page.", "name": "perPage", "in": "query" @@ -4568,7 +4416,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "description": "The page for a set of records, given that only perPage records are returned at a time. Numbering starts at 1.", "name": "page", "in": "query" @@ -4593,7 +4440,6 @@ "operationId": "createLibraryElement", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4633,7 +4479,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Name", "name": "library_element_name", "in": "path", "required": true @@ -4664,7 +4509,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "library_element_uid", "in": "path", "required": true @@ -4693,7 +4537,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "library_element_uid", "in": "path", "required": true @@ -4728,13 +4571,11 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "library_element_uid", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4777,7 +4618,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "library_element_uid", "in": "path", "required": true @@ -4879,7 +4719,6 @@ "operationId": "postLicenseToken", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4904,7 +4743,6 @@ "operationId": "deleteLicenseToken", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4943,7 +4781,6 @@ "operationId": "postRenewLicenseToken", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5027,7 +4864,6 @@ "operationId": "updateOrg", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5062,7 +4898,6 @@ "operationId": "updateOrgAddress", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5116,7 +4951,6 @@ "operationId": "addInvite", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5173,7 +5007,6 @@ "operationId": "updateOrgPreferences", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5206,7 +5039,6 @@ "operationId": "patchOrgPreferences", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5262,7 +5094,6 @@ "operationId": "addOrgUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5296,14 +5127,12 @@ "parameters": [ { "type": "string", - "x-go-name": "Query", "name": "query", "in": "query" }, { "type": "integer", "format": "int64", - "x-go-name": "Limit", "name": "limit", "in": "query" } @@ -5334,7 +5163,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -5365,7 +5193,6 @@ "operationId": "updateOrgUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5376,7 +5203,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -5409,7 +5235,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Code", "name": "invitation_code", "in": "path", "required": true @@ -5449,7 +5274,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "name": "page", "in": "query" }, @@ -5457,20 +5281,17 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "PerPage", "description": "Number of items per page\nThe totalCount field in the response can be used for pagination list E.g. if totalCount is equal to 100 teams and the perpage parameter is set to 10 then there are 10 pages of teams.", "name": "perpage", "in": "query" }, { "type": "string", - "x-go-name": "Name", "name": "name", "in": "query" }, { "type": "string", - "x-go-name": "Query", "description": "If set it will return results where the query value is contained in the name field. Query values with spaces need to be URL encoded.", "name": "query", "in": "query" @@ -5501,7 +5322,6 @@ "operationId": "createOrg", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5542,7 +5362,6 @@ "parameters": [ { "type": "string", - "x-go-name": "OrgName", "name": "org_name", "in": "path", "required": true @@ -5578,7 +5397,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5610,7 +5428,6 @@ "operationId": "adminUpdateOrg", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5621,7 +5438,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5658,7 +5474,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5693,7 +5508,6 @@ "operationId": "adminUpdateOrgAddress", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5704,7 +5518,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5739,7 +5552,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5778,7 +5590,6 @@ "parameters": [ { "type": "string", - "x-go-name": "QuotaTarget", "name": "quota_target", "in": "path", "required": true @@ -5786,13 +5597,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5835,7 +5644,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5863,7 +5671,6 @@ "operationId": "adminAddOrgUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5874,7 +5681,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5906,7 +5712,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5914,7 +5719,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -5945,7 +5749,6 @@ "operationId": "adminUpdateOrgUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5956,7 +5759,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5964,7 +5766,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -6018,7 +5819,6 @@ "operationId": "updateRecordingRule", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6051,7 +5851,6 @@ "operationId": "createRecordingRule", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6086,7 +5885,6 @@ "operationId": "testCreateRecordingRule", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6146,7 +5944,6 @@ "operationId": "createRecordingRuleWriteTarget", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6208,7 +6005,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "RecordingRuleID", "name": "recordingRuleID", "in": "path", "required": true @@ -6261,7 +6057,6 @@ "operationId": "createReport", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6300,7 +6095,6 @@ "operationId": "sendReport", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6415,7 +6209,6 @@ "operationId": "saveReportSettings", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6451,7 +6244,6 @@ "operationId": "sendTestEmail", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6492,7 +6284,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "ReportID", "name": "reportID", "in": "path", "required": true @@ -6528,13 +6319,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "ReportID", "name": "reportID", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6573,7 +6362,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "ReportID", "name": "reportID", "in": "path", "required": true @@ -6679,7 +6467,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Query", "description": "Search Query", "name": "query", "in": "query" @@ -6690,7 +6477,6 @@ "type": "string" }, "collectionFormat": "multi", - "x-go-name": "Tag", "description": "List of tags to search for", "name": "tag", "in": "query" @@ -6698,7 +6484,6 @@ { "enum": ["dash-folder", "dash-db"], "type": "string", - "x-go-name": "Type", "description": "Type to search for, dash-folder or dash-db", "name": "type", "in": "query" @@ -6709,7 +6494,6 @@ "type": "integer", "format": "int64" }, - "x-go-name": "DashboardIds", "description": "List of dashboard id’s to search for", "name": "dashboardIds", "in": "query" @@ -6720,14 +6504,12 @@ "type": "integer", "format": "int64" }, - "x-go-name": "FolderIds", "description": "List of folder id’s to search in for dashboards", "name": "folderIds", "in": "query" }, { "type": "boolean", - "x-go-name": "Starred", "description": "Flag indicating if only starred Dashboards should be returned", "name": "starred", "in": "query" @@ -6735,7 +6517,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "Limit", "description": "Limit the number of returned results (max 5000)", "name": "limit", "in": "query" @@ -6743,7 +6524,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "Page", "description": "Use this parameter to access hits beyond limit. Numbering starts at 1. limit param acts as page size. Only available in Grafana v6.2+.", "name": "page", "in": "query" @@ -6752,7 +6532,6 @@ "enum": ["Edit", "View"], "type": "string", "default": "View", - "x-go-name": "Permission", "description": "Set to `Edit` to return dashboards/folders that the user can edit", "name": "permission", "in": "query" @@ -6761,7 +6540,6 @@ "enum": ["alpha-asc", "alpha-desc"], "type": "string", "default": "alpha-asc", - "x-go-name": "Sort", "description": "Sort method; for listing all the possible sort methods use the search sorting endpoint.", "name": "sort", "in": "query" @@ -6821,7 +6599,6 @@ "operationId": "createSnapshot", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6855,7 +6632,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DeleteKey", "name": "deleteKey", "in": "path", "required": true @@ -6888,7 +6664,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Key", "name": "key", "in": "path", "required": true @@ -6913,7 +6688,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Key", "name": "key", "in": "path", "required": true @@ -6942,7 +6716,6 @@ "operationId": "createTeam", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6980,7 +6753,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "name": "page", "in": "query" }, @@ -6988,20 +6760,17 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "PerPage", "description": "Number of items per page\nThe totalCount field in the response can be used for pagination list E.g. if totalCount is equal to 100 teams and the perpage parameter is set to 10 then there are 10 pages of teams.", "name": "perpage", "in": "query" }, { "type": "string", - "x-go-name": "Name", "name": "name", "in": "query" }, { "type": "string", - "x-go-name": "Query", "description": "If set it will return results where the query value is contained in the name field. Query values with spaces need to be URL encoded.", "name": "query", "in": "query" @@ -7032,7 +6801,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true @@ -7065,21 +6833,19 @@ "operationId": "addTeamGroupApi", "parameters": [ { - "x-go-name": "Body", + "type": "integer", + "format": "int64", + "name": "teamId", + "in": "path", + "required": true + }, + { "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/TeamGroupMapping" } - }, - { - "type": "integer", - "format": "int64", - "x-go-name": "TeamID", - "name": "teamId", - "in": "path", - "required": true } ], "responses": { @@ -7113,16 +6879,14 @@ { "type": "integer", "format": "int64", - "x-go-name": "GroupID", - "name": "groupId", + "name": "teamId", "in": "path", "required": true }, { "type": "integer", "format": "int64", - "x-go-name": "TeamID", - "name": "teamId", + "name": "groupId", "in": "path", "required": true } @@ -7157,7 +6921,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7188,13 +6951,11 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7231,7 +6992,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7264,7 +7024,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7295,7 +7054,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7328,13 +7086,11 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7345,7 +7101,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -7376,7 +7131,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7384,7 +7138,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -7417,7 +7170,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7442,13 +7194,11 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7502,7 +7252,6 @@ "operationId": "updateSignedInUser", "parameters": [ { - "x-go-name": "Body", "description": "To change the email, name, login, theme, provide another one.", "name": "body", "in": "body", @@ -7579,7 +7328,6 @@ "parameters": [ { "type": "string", - "x-go-name": "FlagID", "name": "flag_id", "in": "path", "required": true @@ -7641,7 +7389,6 @@ "operationId": "changeUserPassword", "parameters": [ { - "x-go-name": "Body", "description": "To change the email, name, login, theme, provide another one.", "name": "body", "in": "body", @@ -7694,7 +7441,6 @@ "operationId": "updateUserPreferences", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7724,7 +7470,6 @@ "operationId": "patchUserPreferences", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7781,7 +7526,6 @@ "operationId": "revokeSignedINAuthTokenCmd", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7818,7 +7562,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DashboardID", "name": "dashboard_id", "in": "path", "required": true @@ -7850,7 +7593,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DashboardID", "name": "dashboard_id", "in": "path", "required": true @@ -7907,7 +7649,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -7943,7 +7684,6 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "Limit", "description": "Limit the maximum number of users to return per page", "name": "perpage", "in": "query" @@ -7952,7 +7692,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "description": "Page index for starting fetching users", "name": "page", "in": "query" @@ -7982,7 +7721,6 @@ "parameters": [ { "type": "string", - "x-go-name": "LoginOrEmail", "description": "loginOrEmail of the user", "name": "loginOrEmail", "in": "query", @@ -8041,7 +7779,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -8074,13 +7811,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true }, { - "x-go-name": "Body", "description": "To change the email, name, login, theme, provide another one.", "name": "body", "in": "body", @@ -8119,7 +7854,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -8154,7 +7888,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -8190,44 +7923,36 @@ "type": "object", "properties": { "enabled": { - "type": "boolean", - "x-go-name": "Enabled" + "type": "boolean" }, "nextSync": { "type": "string", - "format": "date-time", - "x-go-name": "NextSync" + "format": "date-time" }, "prevSync": { "$ref": "#/definitions/SyncResult" }, "schedule": { - "type": "string", - "x-go-name": "Schedule" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/ldapdebug" + } }, "ActiveUserStats": { "type": "object", "properties": { "active_admins_and_editors": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveAdminsAndEditors" + "format": "int64" }, "active_users": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveUsers" + "format": "int64" }, "active_viewers": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveViewers" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + } }, "AddApiKeyCommand": { "description": "COMMANDS", @@ -8256,20 +7981,16 @@ "properties": { "builtInRole": { "type": "string", - "enum": ["Viewer", " Editor", " Admin", " Grafana Admin"], - "x-go-name": "BuiltinRole" + "enum": ["Viewer", " Editor", " Admin", " Grafana Admin"] }, "global": { "description": "A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to create organization local assignment. Refer to the Built-in role assignments for more information.", - "type": "boolean", - "x-go-name": "Global" + "type": "boolean" }, "roleUid": { - "type": "string", - "x-go-name": "RoleUID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "AddDataSourceCommand": { "description": "Also acts as api DTO", @@ -8279,361 +8000,285 @@ "$ref": "#/definitions/DsAccess" }, "basicAuth": { - "type": "boolean", - "x-go-name": "BasicAuth" + "type": "boolean" }, "basicAuthPassword": { - "type": "string", - "x-go-name": "BasicAuthPassword" + "type": "string" }, "basicAuthUser": { - "type": "string", - "x-go-name": "BasicAuthUser" + "type": "string" }, "database": { - "type": "string", - "x-go-name": "Database" + "type": "string" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "jsonData": { "$ref": "#/definitions/Json" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" }, "secureJsonData": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureJsonData" + } }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "user": { - "type": "string", - "x-go-name": "User" + "type": "string" }, "withCredentials": { - "type": "boolean", - "x-go-name": "WithCredentials" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AddInviteForm": { "type": "object", "properties": { "loginOrEmail": { - "type": "string", - "x-go-name": "LoginOrEmail" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "sendEmail": { - "type": "boolean", - "x-go-name": "SendEmail" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AddOrgUserCommand": { "type": "object", "properties": { "loginOrEmail": { - "type": "string", - "x-go-name": "LoginOrEmail" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AddPermissionDTO": { "type": "object", "properties": { "builtinRole": { - "type": "string", - "x-go-name": "BuiltinRole" + "type": "string" }, "permission": { "$ref": "#/definitions/DsPermissionType" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/dspermissions" + } }, "AddTeamMemberCommand": { "type": "object", "properties": { "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AddTeamRoleCommand": { "type": "object", "properties": { "roleUid": { - "type": "string", - "x-go-name": "RoleUID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "AddUserRoleCommand": { "type": "object", "properties": { "global": { - "type": "boolean", - "x-go-name": "Global" + "type": "boolean" }, "roleUid": { - "type": "string", - "x-go-name": "RoleUID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "Address": { "type": "object", "properties": { "address1": { - "type": "string", - "x-go-name": "Address1" + "type": "string" }, "address2": { - "type": "string", - "x-go-name": "Address2" + "type": "string" }, "city": { - "type": "string", - "x-go-name": "City" + "type": "string" }, "country": { - "type": "string", - "x-go-name": "Country" + "type": "string" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "zipCode": { - "type": "string", - "x-go-name": "ZipCode" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AdminCreateUserForm": { "type": "object", "properties": { "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AdminStats": { "type": "object", "properties": { "activeAdmins": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveAdmins" + "format": "int64" }, "activeEditors": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveEditors" + "format": "int64" }, "activeSessions": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveSessions" + "format": "int64" }, "activeUsers": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveUsers" + "format": "int64" }, "activeViewers": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveViewers" + "format": "int64" }, "admins": { "type": "integer", - "format": "int64", - "x-go-name": "Admins" + "format": "int64" }, "alerts": { "type": "integer", - "format": "int64", - "x-go-name": "Alerts" + "format": "int64" }, "dailyActiveAdmins": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveAdmins" + "format": "int64" }, "dailyActiveEditors": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveEditors" + "format": "int64" }, "dailyActiveSessions": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveSessions" + "format": "int64" }, "dailyActiveUsers": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveUsers" + "format": "int64" }, "dailyActiveViewers": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveViewers" + "format": "int64" }, "dashboards": { "type": "integer", - "format": "int64", - "x-go-name": "Dashboards" + "format": "int64" }, "datasources": { "type": "integer", - "format": "int64", - "x-go-name": "Datasources" + "format": "int64" }, "editors": { "type": "integer", - "format": "int64", - "x-go-name": "Editors" + "format": "int64" }, "monthlyActiveUsers": { "type": "integer", - "format": "int64", - "x-go-name": "MonthlyActiveUsers" + "format": "int64" }, "orgs": { "type": "integer", - "format": "int64", - "x-go-name": "Orgs" + "format": "int64" }, "playlists": { "type": "integer", - "format": "int64", - "x-go-name": "Playlists" + "format": "int64" }, "snapshots": { "type": "integer", - "format": "int64", - "x-go-name": "Snapshots" + "format": "int64" }, "stars": { "type": "integer", - "format": "int64", - "x-go-name": "Stars" + "format": "int64" }, "tags": { "type": "integer", - "format": "int64", - "x-go-name": "Tags" + "format": "int64" }, "users": { "type": "integer", - "format": "int64", - "x-go-name": "Users" + "format": "int64" }, "viewers": { "type": "integer", - "format": "int64", - "x-go-name": "Viewers" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AdminUpdateUserPasswordForm": { "type": "object", "properties": { "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AdminUpdateUserPermissionsForm": { "type": "object", "properties": { "isGrafanaAdmin": { - "type": "boolean", - "x-go-name": "IsGrafanaAdmin" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Alert": { "type": "object", @@ -8700,57 +8345,46 @@ "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardSlug": { - "type": "string", - "x-go-name": "DashboardSlug" + "type": "string" }, "dashboardUid": { - "type": "string", - "x-go-name": "DashboardUid" + "type": "string" }, "evalData": { "$ref": "#/definitions/Json" }, "evalDate": { "type": "string", - "format": "date-time", - "x-go-name": "EvalDate" + "format": "date-time" }, "executionError": { - "type": "string", - "x-go-name": "ExecutionError" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "newStateDate": { "type": "string", - "format": "date-time", - "x-go-name": "NewStateDate" + "format": "date-time" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" }, "state": { "$ref": "#/definitions/AlertStateType" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AlertManager": { "type": "object", @@ -8797,86 +8431,68 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureFields": { "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "SecureFields" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertNotificationLookup": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertQuery": { "type": "object", @@ -8934,33 +8550,27 @@ "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "newStateDate": { "type": "string", - "format": "date-time", - "x-go-name": "NewStateDate" + "format": "date-time" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" }, "state": { "$ref": "#/definitions/AlertStateType" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AlertStateType": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "type": "string" }, "AlertTestCommand": { "type": "object", @@ -8970,64 +8580,52 @@ }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertTestResult": { "type": "object", "properties": { "conditionEvals": { - "type": "string", - "x-go-name": "ConditionEvals" + "type": "string" }, "error": { - "type": "string", - "x-go-name": "Error" + "type": "string" }, "firing": { - "type": "boolean", - "x-go-name": "Firing" + "type": "boolean" }, "logs": { "type": "array", "items": { "$ref": "#/definitions/AlertTestResultLog" - }, - "x-go-name": "Logs" + } }, "matches": { "type": "array", "items": { "$ref": "#/definitions/EvalMatch" - }, - "x-go-name": "EvalMatches" + } }, "state": { "$ref": "#/definitions/AlertStateType" }, "timeMs": { - "type": "string", - "x-go-name": "TimeMs" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertTestResultLog": { "type": "object", "properties": { "data": { - "type": "object", - "x-go-name": "Data" + "type": "object" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertingRule": { "description": "adapted from cortex", @@ -9093,19 +8691,15 @@ "type": "object", "properties": { "canAdd": { - "type": "boolean", - "x-go-name": "CanAdd" + "type": "boolean" }, "canDelete": { - "type": "boolean", - "x-go-name": "CanDelete" + "type": "boolean" }, "canEdit": { - "type": "boolean", - "x-go-name": "CanEdit" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AnnotationPermission": { "type": "object", @@ -9116,8 +8710,7 @@ "organization": { "$ref": "#/definitions/AnnotationActions" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "ApiKeyDTO": { "type": "object", @@ -9127,26 +8720,20 @@ }, "expiration": { "type": "string", - "format": "date-time", - "x-go-name": "Expiration" + "format": "date-time" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "ApiRuleNode": { "type": "object", @@ -9223,66 +8810,53 @@ "type": "object", "properties": { "emailFooterLink": { - "type": "string", - "x-go-name": "EmailFooterLink" + "type": "string" }, "emailFooterMode": { - "type": "string", - "x-go-name": "EmailFooterMode" + "type": "string" }, "emailFooterText": { - "type": "string", - "x-go-name": "EmailFooterText" + "type": "string" }, "emailLogoUrl": { - "type": "string", - "x-go-name": "EmailLogo" + "type": "string" }, "reportLogoUrl": { - "type": "string", - "x-go-name": "ReportLogo" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "CalculateDiffTarget": { "type": "object", "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "unsavedDashboard": { "$ref": "#/definitions/Json" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "ChangeUserPasswordCommand": { "type": "object", "properties": { "newPassword": { - "type": "string", - "x-go-name": "NewPassword" + "type": "string" }, "oldPassword": { - "type": "string", - "x-go-name": "OldPassword" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "ConfFloat64": { "description": "ConfFloat64 is a float64. It Marshals float64 values of NaN of Inf\nto null.", "type": "number", - "format": "double", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "format": "double" }, "Config": { "type": "object", @@ -9324,140 +8898,112 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardID" + "format": "int64" }, "dashboardName": { - "type": "string", - "x-go-name": "DashboardName" + "type": "string" }, "dashboardUid": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "dashboards": { "type": "array", "items": { "$ref": "#/definitions/DashboardDTO" - }, - "x-go-name": "Dashboards" + } }, "enableCsv": { - "type": "boolean", - "x-go-name": "EnableCSV" + "type": "boolean" }, "enableDashboardUrl": { - "type": "boolean", - "x-go-name": "EnableDashboardURL" + "type": "boolean" }, "formats": { "type": "array", "items": { "$ref": "#/definitions/Type" - }, - "x-go-name": "Formats" + } }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "options": { "$ref": "#/definitions/ReportOptionsDTO" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgID" + "format": "int64" }, "recipients": { - "type": "string", - "x-go-name": "Recipients" + "type": "string" }, "replyTo": { - "type": "string", - "x-go-name": "ReplyTo" + "type": "string" }, "schedule": { "$ref": "#/definitions/ScheduleDTO" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "templateVars": { - "type": "object", - "x-go-name": "TemplateVars" + "type": "object" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserID" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "CreateAlertNotificationCommand": { "type": "object", "properties": { "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureSettings": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureSettings" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CreateDashboardSnapshotCommand": { "type": "object", @@ -9504,15 +9050,12 @@ "type": "object", "properties": { "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CreateLibraryElementCommand": { "description": "CreateLibraryElementCommand is the command for adding a LibraryElement", @@ -9521,328 +9064,258 @@ "folderId": { "description": "ID of the folder where the library element is stored.", "type": "integer", - "format": "int64", - "x-go-name": "FolderID" + "format": "int64" }, "folderUid": { "description": "UID of the folder where the library element is stored.", - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "kind": { "description": "Kind of element to create, Use 1 for library panels or 2 for c.\nDescription:\n1 - library panels\n2 - library variables", "type": "integer", "format": "int64", - "enum": [1, 2], - "x-go-name": "Kind" + "enum": [1, 2] }, "model": { "description": "The JSON model for the library element.", - "type": "object", - "x-go-name": "Model" + "type": "object" }, "name": { "description": "Name of the library element.", - "type": "string", - "x-go-name": "Name" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "CreateOrUpdateConfigCmd": { "type": "object", "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardID" + "format": "int64" }, "dashboardUid": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "dashboards": { "type": "array", "items": { "$ref": "#/definitions/DashboardDTO" - }, - "x-go-name": "Dashboards" + } }, "enableCsv": { - "type": "boolean", - "x-go-name": "EnableCSV" + "type": "boolean" }, "enableDashboardUrl": { - "type": "boolean", - "x-go-name": "EnableDashboardURL" + "type": "boolean" }, "formats": { "type": "array", "items": { "$ref": "#/definitions/Type" - }, - "x-go-name": "Formats" + } }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "options": { "$ref": "#/definitions/ReportOptionsDTO" }, "recipients": { - "type": "string", - "x-go-name": "Recipients" + "type": "string" }, "replyTo": { - "type": "string", - "x-go-name": "ReplyTo" + "type": "string" }, "schedule": { "$ref": "#/definitions/ScheduleDTO" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "templateVars": { - "type": "object", - "x-go-name": "TemplateVars" + "type": "object" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "CreateOrgCommand": { "type": "object", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CreateRoleWithPermissionsCommand": { "type": "object", "properties": { "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "group": { - "type": "string", - "x-go-name": "Group" + "type": "string" }, "hidden": { - "type": "boolean", - "x-go-name": "Hidden" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/Permission" - }, - "x-go-name": "Permissions" + } }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "CreateTeamCommand": { "type": "object", "properties": { "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CustomPermissionsRecordDTO": { "type": "object", "properties": { "customPermissions": { - "type": "string", - "x-go-name": "CustomPermissions" + "type": "string" }, "granteeName": { - "type": "string", - "x-go-name": "GranteeName" + "type": "string" }, "granteeType": { - "type": "string", - "x-go-name": "GranteeType" + "type": "string" }, "granteeUrl": { - "type": "string", - "x-go-name": "GranteeURL" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "isFolder": { - "type": "boolean", - "x-go-name": "IsFolder" + "type": "boolean" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgID" + "format": "int64" }, "orgRole": { - "type": "string", - "x-go-name": "OrgRole" + "type": "string" }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "URL" + "type": "string" }, "usersCount": { "type": "integer", - "format": "int64", - "x-go-name": "UsersCount" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + } }, "DashboardAclInfoDTO": { "type": "object", "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "inherited": { - "type": "boolean", - "x-go-name": "Inherited" + "type": "boolean" }, "isFolder": { - "type": "boolean", - "x-go-name": "IsFolder" + "type": "boolean" }, "permission": { "$ref": "#/definitions/PermissionType" }, "permissionName": { - "type": "string", - "x-go-name": "PermissionName" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "team": { - "type": "string", - "x-go-name": "Team" + "type": "string" }, "teamAvatarUrl": { - "type": "string", - "x-go-name": "TeamAvatarUrl" + "type": "string" }, "teamEmail": { - "type": "string", - "x-go-name": "TeamEmail" + "type": "string" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "userAvatarUrl": { - "type": "string", - "x-go-name": "UserAvatarUrl" + "type": "string" }, "userEmail": { - "type": "string", - "x-go-name": "UserEmail" + "type": "string" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" }, "userLogin": { - "type": "string", - "x-go-name": "UserLogin" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardAclUpdateItem": { "type": "object", @@ -9852,22 +9325,17 @@ }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamID" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserID" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DashboardDTO": { "type": "object", @@ -9876,14 +9344,12 @@ "$ref": "#/definitions/DashboardReportDTO" }, "reportVariables": { - "type": "object", - "x-go-name": "ReportVariables" + "type": "object" }, "timeRange": { "$ref": "#/definitions/TimeRangeDTO" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "DashboardFullWithMeta": { "type": "object", @@ -9894,8 +9360,7 @@ "meta": { "$ref": "#/definitions/DashboardMeta" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DashboardMeta": { "type": "object", @@ -9904,145 +9369,112 @@ "$ref": "#/definitions/AnnotationPermission" }, "canAdmin": { - "type": "boolean", - "x-go-name": "CanAdmin" + "type": "boolean" }, "canDelete": { - "type": "boolean", - "x-go-name": "CanDelete" + "type": "boolean" }, "canEdit": { - "type": "boolean", - "x-go-name": "CanEdit" + "type": "boolean" }, "canSave": { - "type": "boolean", - "x-go-name": "CanSave" + "type": "boolean" }, "canStar": { - "type": "boolean", - "x-go-name": "CanStar" + "type": "boolean" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { - "type": "string", - "x-go-name": "CreatedBy" + "type": "string" }, "expires": { "type": "string", - "format": "date-time", - "x-go-name": "Expires" + "format": "date-time" }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "folderTitle": { - "type": "string", - "x-go-name": "FolderTitle" + "type": "string" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUid" + "type": "string" }, "folderUrl": { - "type": "string", - "x-go-name": "FolderUrl" + "type": "string" }, "hasAcl": { - "type": "boolean", - "x-go-name": "HasAcl" + "type": "boolean" }, "isFolder": { - "type": "boolean", - "x-go-name": "IsFolder" + "type": "boolean" }, "isHome": { - "type": "boolean", - "x-go-name": "IsHome" + "type": "boolean" }, "isPublic": { - "type": "boolean", - "x-go-name": "IsPublic" + "type": "boolean" }, "isSnapshot": { - "type": "boolean", - "x-go-name": "IsSnapshot" + "type": "boolean" }, "isStarred": { - "type": "boolean", - "x-go-name": "IsStarred" + "type": "boolean" }, "provisioned": { - "type": "boolean", - "x-go-name": "Provisioned" + "type": "boolean" }, "provisionedExternalId": { - "type": "string", - "x-go-name": "ProvisionedExternalId" + "type": "string" }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "updatedBy": { - "type": "string", - "x-go-name": "UpdatedBy" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DashboardRedirect": { "type": "object", "properties": { "redirectUri": { - "type": "string", - "x-go-name": "RedirectUri" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DashboardReportDTO": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "DashboardSnapshot": { "description": "DashboardSnapshot model", @@ -10109,67 +9541,53 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "expires": { "type": "string", - "format": "date-time", - "x-go-name": "Expires" + "format": "date-time" }, "external": { - "type": "boolean", - "x-go-name": "External" + "type": "boolean" }, "externalUrl": { - "type": "string", - "x-go-name": "ExternalUrl" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "key": { - "type": "string", - "x-go-name": "Key" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardTagCloudItem": { "type": "object", "properties": { "count": { "type": "integer", - "format": "int64", - "x-go-name": "Count" + "format": "int64" }, "term": { - "type": "string", - "x-go-name": "Term" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardVersionDTO": { "description": "DashboardVersionDTO represents a dashboard version, without the dashboard\nmap.", @@ -10177,48 +9595,38 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { - "type": "string", - "x-go-name": "CreatedBy" + "type": "string" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardUid": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "parentVersion": { "type": "integer", - "format": "int64", - "x-go-name": "ParentVersion" + "format": "int64" }, "restoredFrom": { "type": "integer", - "format": "int64", - "x-go-name": "RestoredFrom" + "format": "int64" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardVersionMeta": { "description": "DashboardVersionMeta extends the dashboard version model with the names\nassociated with the UserIds, overriding the field with the same name from\nthe DashboardVersion model.", @@ -10226,70 +9634,56 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { - "type": "string", - "x-go-name": "CreatedBy" + "type": "string" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "data": { "$ref": "#/definitions/Json" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "parentVersion": { "type": "integer", - "format": "int64", - "x-go-name": "ParentVersion" + "format": "int64" }, "restoredFrom": { "type": "integer", - "format": "int64", - "x-go-name": "RestoredFrom" + "format": "int64" }, "uid": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DataLink": { "description": "DataLink define what", "type": "object", "properties": { "targetBlank": { - "type": "boolean", - "x-go-name": "TargetBlank" + "type": "boolean" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "URL" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "DataResponse": { "description": "A map of RefIDs (unique query identifers) to this type makes up the Responses property of a QueryDataResponse.\nThe Error property is used to allow for partial success responses from the containing QueryDataResponse.", @@ -10303,8 +9697,7 @@ "Frames": { "$ref": "#/definitions/Frames" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/backend" + } }, "DataSource": { "type": "object", @@ -10316,95 +9709,75 @@ "$ref": "#/definitions/Metadata" }, "basicAuth": { - "type": "boolean", - "x-go-name": "BasicAuth" + "type": "boolean" }, "basicAuthPassword": { - "type": "string", - "x-go-name": "BasicAuthPassword" + "type": "string" }, "basicAuthUser": { - "type": "string", - "x-go-name": "BasicAuthUser" + "type": "string" }, "database": { - "type": "string", - "x-go-name": "Database" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "jsonData": { "$ref": "#/definitions/Json" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" }, "readOnly": { - "type": "boolean", - "x-go-name": "ReadOnly" + "type": "boolean" }, "secureJsonFields": { "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "SecureJsonFields" + } }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "typeLogoUrl": { - "type": "string", - "x-go-name": "TypeLogoUrl" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "user": { - "type": "string", - "x-go-name": "User" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" }, "withCredentials": { - "type": "boolean", - "x-go-name": "WithCredentials" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DataSourceList": { "type": "array", "items": { "$ref": "#/definitions/DataSourceListItemDTO" - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DataSourceListItemDTO": { "type": "object", @@ -10413,68 +9786,53 @@ "$ref": "#/definitions/DsAccess" }, "basicAuth": { - "type": "boolean", - "x-go-name": "BasicAuth" + "type": "boolean" }, "database": { - "type": "string", - "x-go-name": "Database" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "jsonData": { "$ref": "#/definitions/Json" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" }, "readOnly": { - "type": "boolean", - "x-go-name": "ReadOnly" + "type": "boolean" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "typeLogoUrl": { - "type": "string", - "x-go-name": "TypeLogoUrl" + "type": "string" }, "typeName": { - "type": "string", - "x-go-name": "TypeName" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "user": { - "type": "string", - "x-go-name": "User" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DateTime": { "description": "DateTime is a time but it serializes to ISO8601 format with millis\nIt knows how to read 3 different variations of a RFC3339 date time.\nMost APIs we encounter want either millisecond or second precision times.\nThis just tries to make it worry-free.", @@ -10501,11 +9859,9 @@ "type": "object", "properties": { "instance": { - "type": "string", - "x-go-name": "Instance" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + } }, "DiscoveryBase": { "type": "object", @@ -10526,8 +9882,7 @@ "x-go-package": "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions" }, "DsAccess": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "type": "string" }, "DsPermissionType": { "description": "Datasource permission\nDescription:\n`0` - No Access\n`1` - Query\nEnum: 0,1", @@ -10641,21 +9996,17 @@ "properties": { "error": { "description": "Error An optional detailed description of the actual error. Only included if running in developer mode.", - "type": "string", - "x-go-name": "Error" + "type": "string" }, "message": { "description": "a human readable version of the error", - "type": "string", - "x-go-name": "Message" + "type": "string" }, "status": { "description": "Status An optional status to denote the cause of the error.\n\nFor example, a 412 Precondition Failed error may include additional information of why that error happened.", - "type": "string", - "x-go-name": "Status" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/docs/definitions" + } }, "ErrorType": { "type": "string", @@ -10689,21 +10040,18 @@ "type": "object", "properties": { "metric": { - "type": "string", - "x-go-name": "Metric" + "type": "string" }, "tags": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "Tags" + } }, "value": { "$ref": "#/definitions/Float" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "EvalQueriesPayload": { "type": "object", @@ -10767,8 +10115,7 @@ "Login": { "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/ldapsync" + } }, "Failure": { "$ref": "#/definitions/ResponseDetails" @@ -10786,11 +10133,9 @@ }, "name": { "description": "Name is default identifier of the field. The name does not have to be unique, but the combination\nof name and Labels should be unique for proper behavior in all situations.", - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "FieldConfig": { "type": "object", @@ -10801,55 +10146,46 @@ "type": "object", "additionalProperties": { "type": "object" - }, - "x-go-name": "Color" + } }, "custom": { "description": "Panel Specific Values", "type": "object", "additionalProperties": { "type": "object" - }, - "x-go-name": "Custom" + } }, "decimals": { "type": "integer", - "format": "uint16", - "x-go-name": "Decimals" + "format": "uint16" }, "description": { "description": "Description is human readable field metadata", - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { "description": "DisplayName overrides Grafana default naming, should not be used from a data source", - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "displayNameFromDS": { "description": "DisplayNameFromDS overrides Grafana default naming in a better way that allows users to override it easily.", - "type": "string", - "x-go-name": "DisplayNameFromDS" + "type": "string" }, "filterable": { "description": "Filterable indicates if the Field's data can be filtered by additional calls.", - "type": "boolean", - "x-go-name": "Filterable" + "type": "boolean" }, "interval": { "description": "Interval indicates the expected regular step between values in the series.\nWhen an interval exists, consumers can identify \"missing\" values when the expected value is not present.\nThe grafana timeseries visualization will render disconnected values when missing values are found it the time field.\nThe interval uses the same units as the values. For time.Time, this is defined in milliseconds.", "type": "number", - "format": "double", - "x-go-name": "Interval" + "format": "double" }, "links": { "description": "The behavior when clicking on a result", "type": "array", "items": { "$ref": "#/definitions/DataLink" - }, - "x-go-name": "Links" + } }, "mappings": { "$ref": "#/definitions/ValueMappings" @@ -10862,29 +10198,24 @@ }, "noValue": { "description": "Alternative to empty string", - "type": "string", - "x-go-name": "NoValue" + "type": "string" }, "path": { "description": "Path is an explicit path to the field in the datasource. When the frame meta includes a path,\nthis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used as an identifier to update values in a subsequent request", - "type": "string", - "x-go-name": "Path" + "type": "string" }, "thresholds": { "$ref": "#/definitions/ThresholdsConfig" }, "unit": { "description": "Numeric Options", - "type": "string", - "x-go-name": "Unit" + "type": "string" }, "writeable": { "description": "Writeable indicates that the datasource knows how to update this value", - "type": "boolean", - "x-go-name": "Writeable" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "FindTagsResult": { "type": "object", @@ -10894,11 +10225,9 @@ "type": "array", "items": { "$ref": "#/definitions/TagsDTO" - }, - "x-go-name": "Tags" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/annotations" + } }, "Float": { "description": "It does not consider zero values to be null.\nIt will decode to null, not zero, if null.", @@ -10912,93 +10241,73 @@ "Valid": { "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/components/null" + } }, "Folder": { "type": "object", "properties": { "canAdmin": { - "type": "boolean", - "x-go-name": "CanAdmin" + "type": "boolean" }, "canDelete": { - "type": "boolean", - "x-go-name": "CanDelete" + "type": "boolean" }, "canEdit": { - "type": "boolean", - "x-go-name": "CanEdit" + "type": "boolean" }, "canSave": { - "type": "boolean", - "x-go-name": "CanSave" + "type": "boolean" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { - "type": "string", - "x-go-name": "CreatedBy" + "type": "string" }, "hasAcl": { - "type": "boolean", - "x-go-name": "HasAcl" + "type": "boolean" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "updatedBy": { - "type": "string", - "x-go-name": "UpdatedBy" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "FolderSearchHit": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Frame": { "description": "Each Field is well typed by its FieldType and supports optional Labels.\n\nA Frame is a general data container for Grafana. A Frame can be table data\nor time series data depending on its content and field types.", @@ -11023,8 +10332,7 @@ "description": "RefID is a property that can be set to match a Frame to its originating query.", "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "FrameMeta": { "description": "https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/types/data.ts#L11\nNOTE -- in javascript this can accept any `[key: string]: any;` however\nthis interface only exposes the values we want to be exposed", @@ -11033,36 +10341,30 @@ "properties": { "channel": { "description": "Channel is the path to a stream in grafana live that has real-time updates for this data.", - "type": "string", - "x-go-name": "Channel" + "type": "string" }, "custom": { "description": "Custom datasource specific values.", - "type": "object", - "x-go-name": "Custom" + "type": "object" }, "executedQueryString": { "description": "ExecutedQueryString is the raw query sent to the underlying system. All macros and templating\nhave been applied. When metadata contains this value, it will be shown in the query inspector.", - "type": "string", - "x-go-name": "ExecutedQueryString" + "type": "string" }, "notices": { "description": "Notices provide additional information about the data in the Frame that\nGrafana can display to the user in the user interface.", "type": "array", "items": { "$ref": "#/definitions/Notice" - }, - "x-go-name": "Notices" + } }, "path": { "description": "Path is a browsable path on the datasource.", - "type": "string", - "x-go-name": "Path" + "type": "string" }, "pathSeparator": { "description": "PathSeparator defines the separator pattern to decode a hiearchy. The default separator is '/'.", - "type": "string", - "x-go-name": "PathSeparator" + "type": "string" }, "preferredVisualisationType": { "$ref": "#/definitions/VisType" @@ -11072,19 +10374,16 @@ "type": "array", "items": { "$ref": "#/definitions/QueryStat" - }, - "x-go-name": "Stats" + } }, "type": { "$ref": "#/definitions/FrameType" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "FrameType": { "description": "A FrameType string, when present in a frame's metadata, asserts that the\nframe's structure conforms to the FrameType's specification.\nThis property is currently optional, so FrameType may be FrameTypeUnknown even if the properties of\nthe Frame correspond to a defined FrameType.", - "type": "string", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "type": "string" }, "Frames": { "description": "It is the main data container within a backend.DataResponse.", @@ -11092,8 +10391,7 @@ "title": "Frames is a slice of Frame pointers.", "items": { "$ref": "#/definitions/Frame" - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "GetAnnotationTagsResponse": { "type": "object", @@ -11102,8 +10400,7 @@ "result": { "$ref": "#/definitions/FindTagsResult" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/annotations" + } }, "GetHomeDashboardResponse": { "title": "Get home dashboard response.", @@ -11123,14 +10420,11 @@ "type": "object", "properties": { "redirectUri": { - "type": "string", - "x-go-name": "RedirectUri" + "type": "string" } } } - ], - "x-go-name": "GetHomeDashboardResponseBody", - "x-go-package": "github.com/grafana/grafana/pkg/api/docs/definitions" + ] }, "GettableAlertmanagers": { "type": "object", @@ -11640,82 +10934,65 @@ "properties": { "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderID" + "format": "int64" }, "folderTitle": { - "type": "string", - "x-go-name": "FolderTitle" + "type": "string" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "folderUrl": { - "type": "string", - "x-go-name": "FolderURL" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "isStarred": { - "type": "boolean", - "x-go-name": "IsStarred" + "type": "boolean" }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "sortMeta": { "type": "integer", - "format": "int64", - "x-go-name": "SortMeta" + "format": "int64" }, "sortMetaName": { - "type": "string", - "x-go-name": "SortMetaName" + "type": "string" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "type": { "$ref": "#/definitions/HitType" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "uri": { - "type": "string", - "x-go-name": "URI" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "URL" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "HitList": { "type": "array", "items": { "$ref": "#/definitions/Hit" - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "HitType": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "type": "string" }, "HostPort": { "type": "object", @@ -11735,23 +11012,18 @@ "title": "ImportDashboardInput definition of input parameters when importing a dashboard.", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "pluginId": { - "type": "string", - "x-go-name": "PluginId" + "type": "string" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "value": { - "type": "string", - "x-go-name": "Value" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/dashboardimport" + } }, "ImportDashboardRequest": { "type": "object", @@ -11762,34 +11034,27 @@ }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUid" + "type": "string" }, "inputs": { "type": "array", "items": { "$ref": "#/definitions/ImportDashboardInput" - }, - "x-go-name": "Inputs" + } }, "overwrite": { - "type": "boolean", - "x-go-name": "Overwrite" + "type": "boolean" }, "path": { - "type": "string", - "x-go-name": "Path" + "type": "string" }, "pluginId": { - "type": "string", - "x-go-name": "PluginId" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/dashboardimport" + } }, "ImportDashboardResponse": { "type": "object", @@ -11797,66 +11062,51 @@ "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "imported": { - "type": "boolean", - "x-go-name": "Imported" + "type": "boolean" }, "importedRevision": { "type": "integer", - "format": "int64", - "x-go-name": "ImportedRevision" + "format": "int64" }, "importedUri": { - "type": "string", - "x-go-name": "ImportedUri" + "type": "string" }, "importedUrl": { - "type": "string", - "x-go-name": "ImportedUrl" + "type": "string" }, "path": { - "type": "string", - "x-go-name": "Path" + "type": "string" }, "pluginId": { - "type": "string", - "x-go-name": "PluginId" + "type": "string" }, "removed": { - "type": "boolean", - "x-go-name": "Removed" + "type": "boolean" }, "revision": { "type": "integer", - "format": "int64", - "x-go-name": "Revision" + "format": "int64" }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/dashboardimport" + } }, "InclusiveRange": { "type": "object", @@ -11914,101 +11164,81 @@ "InspectType": { "type": "integer", "format": "int64", - "title": "InspectType is a type for the Inspect property of a Notice.", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "title": "InspectType is a type for the Inspect property of a Notice." }, "ItemDTO": { "type": "object", "properties": { "alertId": { "type": "integer", - "format": "int64", - "x-go-name": "AlertId" + "format": "int64" }, "alertName": { - "type": "string", - "x-go-name": "AlertName" + "type": "string" }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "created": { "type": "integer", - "format": "int64", - "x-go-name": "Created" + "format": "int64" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardUID": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "data": { "$ref": "#/definitions/Json" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "newState": { - "type": "string", - "x-go-name": "NewState" + "type": "string" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" }, "prevState": { - "type": "string", - "x-go-name": "PrevState" + "type": "string" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "time": { "type": "integer", - "format": "int64", - "x-go-name": "Time" + "format": "int64" }, "timeEnd": { "type": "integer", - "format": "int64", - "x-go-name": "TimeEnd" + "format": "int64" }, "updated": { "type": "integer", - "format": "int64", - "x-go-name": "Updated" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/annotations" + } }, "Json": { "type": "object", @@ -12065,34 +11295,28 @@ "properties": { "connectionId": { "type": "integer", - "format": "int64", - "x-go-name": "ConnectionID" + "format": "int64" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { "$ref": "#/definitions/LibraryElementDTOMetaUser" }, "elementId": { "type": "integer", - "format": "int64", - "x-go-name": "ElementID" + "format": "int64" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "kind": { "type": "integer", - "format": "int64", - "x-go-name": "Kind" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementConnectionsResponse": { "type": "object", @@ -12102,70 +11326,56 @@ "type": "array", "items": { "$ref": "#/definitions/LibraryElementConnectionDTO" - }, - "x-go-name": "Result" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementDTO": { "type": "object", "title": "LibraryElementDTO is the frontend DTO for entities.", "properties": { "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderID" + "format": "int64" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "kind": { "type": "integer", - "format": "int64", - "x-go-name": "Kind" + "format": "int64" }, "meta": { "$ref": "#/definitions/LibraryElementDTOMeta" }, "model": { - "type": "object", - "x-go-name": "Model" + "type": "object" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgID" + "format": "int64" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementDTOMeta": { "type": "object", @@ -12173,55 +11383,45 @@ "properties": { "connectedDashboards": { "type": "integer", - "format": "int64", - "x-go-name": "ConnectedDashboards" + "format": "int64" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { "$ref": "#/definitions/LibraryElementDTOMetaUser" }, "folderName": { - "type": "string", - "x-go-name": "FolderName" + "type": "string" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "updatedBy": { "$ref": "#/definitions/LibraryElementDTOMetaUser" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementDTOMetaUser": { "type": "object", "title": "LibraryElementDTOMetaUser is the meta information for user that creates/changes the library element.", "properties": { "avatarUrl": { - "type": "string", - "x-go-name": "AvatarURL" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementResponse": { "type": "object", @@ -12230,8 +11430,7 @@ "result": { "$ref": "#/definitions/LibraryElementDTO" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementSearchResponse": { "type": "object", @@ -12240,8 +11439,7 @@ "result": { "$ref": "#/definitions/LibraryElementSearchResult" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementSearchResult": { "type": "object", @@ -12251,51 +11449,41 @@ "type": "array", "items": { "$ref": "#/definitions/LibraryElementDTO" - }, - "x-go-name": "Elements" + } }, "page": { "type": "integer", - "format": "int64", - "x-go-name": "Page" + "format": "int64" }, "perPage": { "type": "integer", - "format": "int64", - "x-go-name": "PerPage" + "format": "int64" }, "totalCount": { "type": "integer", - "format": "int64", - "x-go-name": "TotalCount" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "MassDeleteAnnotationsCmd": { "type": "object", "properties": { "annotationId": { "type": "integer", - "format": "int64", - "x-go-name": "AnnotationId" + "format": "int64" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardUID": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "MatchRegexps": { "type": "object", @@ -12370,21 +11558,18 @@ "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/accesscontrol" + } }, "MetricRequest": { "type": "object", "required": ["from", "to", "queries"], "properties": { "debug": { - "type": "boolean", - "x-go-name": "Debug" + "type": "boolean" }, "from": { "description": "From Start time in epoch timestamps in milliseconds or relative using Grafana time units.", "type": "string", - "x-go-name": "From", "example": "now-1h" }, "queries": { @@ -12393,7 +11578,6 @@ "items": { "$ref": "#/definitions/Json" }, - "x-go-name": "Queries", "example": [ { "datasource": { @@ -12410,11 +11594,9 @@ "to": { "description": "To End time in epoch timestamps in milliseconds or relative using Grafana time units.", "type": "string", - "x-go-name": "To", "example": "now" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "MonthRange": { "type": "object", @@ -12474,23 +11656,18 @@ "type": "object", "properties": { "id": { - "type": "string", - "x-go-name": "ID" + "type": "string" }, "target": { - "type": "string", - "x-go-name": "Target" + "type": "string" }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/preference" + } }, "NavbarPreference": { "type": "object", @@ -12499,30 +11676,24 @@ "type": "array", "items": { "$ref": "#/definitions/NavLink" - }, - "x-go-name": "SavedItems" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/preference" + } }, "NewApiKeyResult": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "key": { - "type": "string", - "x-go-name": "Key" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "NotFound": { "type": "object", @@ -12537,66 +11708,54 @@ }, "link": { "description": "Link is an optional link for display in the user interface and can be an\nabsolute URL or a path relative to Grafana's root url.", - "type": "string", - "x-go-name": "Link" + "type": "string" }, "severity": { "$ref": "#/definitions/NoticeSeverity" }, "text": { "description": "Text is freeform descriptive text for the notice.", - "type": "string", - "x-go-name": "Text" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "NoticeSeverity": { "type": "integer", "format": "int64", - "title": "NoticeSeverity is a type for the Severity property of a Notice.", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "title": "NoticeSeverity is a type for the Severity property of a Notice." }, "NotificationTestCommand": { "type": "object", "properties": { "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureSettings": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureSettings" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "NotifierConfig": { "type": "object", @@ -12755,15 +11914,12 @@ "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "OrgDetailsDTO": { "type": "object", @@ -12773,15 +11929,12 @@ }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "OrgUserDTO": { "type": "object", @@ -12790,50 +11943,39 @@ "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "AccessControl" + } }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "lastSeenAt": { "type": "string", - "format": "date-time", - "x-go-name": "LastSeenAt" + "format": "date-time" }, "lastSeenAtAge": { - "type": "string", - "x-go-name": "LastSeenAtAge" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "role": { - "type": "string", - "x-go-name": "Role" + "type": "string" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "PagerdutyConfig": { "type": "object", @@ -12946,32 +12088,26 @@ "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "time": { "type": "integer", - "format": "int64", - "x-go-name": "Time" + "format": "int64" }, "timeEnd": { "type": "integer", - "format": "int64", - "x-go-name": "TimeEnd" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PatchLibraryElementCommand": { "description": "PatchLibraryElementCommand is the command for patching a LibraryElement", @@ -12980,43 +12116,35 @@ "folderId": { "description": "ID of the folder where the library element is stored.", "type": "integer", - "format": "int64", - "x-go-name": "FolderID" + "format": "int64" }, "folderUid": { "description": "UID of the folder where the library element is stored.", - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "kind": { "description": "Kind of element to create, Use 1 for library panels or 2 for c.\nDescription:\n1 - library panels\n2 - library variables", "type": "integer", "format": "int64", - "enum": [1, 2], - "x-go-name": "Kind" + "enum": [1, 2] }, "model": { "description": "The JSON model for the library element.", - "type": "object", - "x-go-name": "Model" + "type": "object" }, "name": { "description": "Name of the library element.", - "type": "string", - "x-go-name": "Name" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "version": { "description": "Version of the library element you are updating.", "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "PatchPrefsCmd": { "type": "object", @@ -13025,12 +12153,10 @@ "description": "The numerical :id of a favorited dashboard", "type": "integer", "format": "int64", - "default": 0, - "x-go-name": "HomeDashboardID" + "default": 0 }, "homeDashboardUID": { - "type": "string", - "x-go-name": "HomeDashboardUID" + "type": "string" }, "navbar": { "$ref": "#/definitions/NavbarPreference" @@ -13040,70 +12166,56 @@ }, "theme": { "type": "string", - "enum": ["light", "dark"], - "x-go-name": "Theme" + "enum": ["light", "dark"] }, "timezone": { "type": "string", - "enum": ["utc", "browser"], - "x-go-name": "Timezone" + "enum": ["utc", "browser"] }, "weekStart": { - "type": "string", - "x-go-name": "WeekStart" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PauseAlertCommand": { "type": "object", "properties": { "alertId": { "type": "integer", - "format": "int64", - "x-go-name": "AlertId" + "format": "int64" }, "paused": { - "type": "boolean", - "x-go-name": "Paused" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PauseAllAlertsCommand": { "type": "object", "properties": { "paused": { - "type": "boolean", - "x-go-name": "Paused" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Permission": { "type": "object", "title": "Permission is the model for access control permissions.", "properties": { "action": { - "type": "string", - "x-go-name": "Action" + "type": "string" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "scope": { - "type": "string", - "x-go-name": "Scope" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/accesscontrol" + } }, "PermissionDenied": { "type": "object", @@ -13111,8 +12223,7 @@ }, "PermissionType": { "type": "integer", - "format": "int64", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "format": "int64" }, "Point": { "type": "object", @@ -13134,67 +12245,54 @@ "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardUID": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "data": { "$ref": "#/definitions/Json" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "time": { "type": "integer", - "format": "int64", - "x-go-name": "Time" + "format": "int64" }, "timeEnd": { "type": "integer", - "format": "int64", - "x-go-name": "TimeEnd" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PostGraphiteAnnotationsCmd": { "type": "object", "properties": { "data": { - "type": "string", - "x-go-name": "Data" + "type": "string" }, "tags": { - "type": "object", - "x-go-name": "Tags" + "type": "object" }, "what": { - "type": "string", - "x-go-name": "What" + "type": "string" }, "when": { "type": "integer", - "format": "int64", - "x-go-name": "When" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PostableApiAlertingConfig": { "type": "object", @@ -13498,12 +12596,10 @@ "properties": { "homeDashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "HomeDashboardID" + "format": "int64" }, "homeDashboardUID": { - "type": "string", - "x-go-name": "HomeDashboardUID" + "type": "string" }, "navbar": { "$ref": "#/definitions/NavbarPreference" @@ -13512,37 +12608,29 @@ "$ref": "#/definitions/QueryHistoryPreference" }, "theme": { - "type": "string", - "x-go-name": "Theme" + "type": "string" }, "timezone": { - "type": "string", - "x-go-name": "Timezone" + "type": "string" }, "weekStart": { - "type": "string", - "x-go-name": "WeekStart" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PrometheusRemoteWriteTargetJSON": { "type": "object", "properties": { "data_source_uid": { - "type": "string", - "x-go-name": "DatasourceUID" + "type": "string" }, "id": { - "type": "string", - "x-go-name": "ID" + "type": "string" }, "remote_write_path": { - "type": "string", - "x-go-name": "WritePath" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/recordedqueries/api" + } }, "Provenance": { "type": "string", @@ -13609,18 +12697,15 @@ "Responses": { "$ref": "#/definitions/Responses" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/backend" + } }, "QueryHistoryPreference": { "type": "object", "properties": { "homeTab": { - "type": "string", - "x-go-name": "HomeTab" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/preference" + } }, "QueryStat": { "description": "The embedded FieldConfig's display name must be set.\nIt corresponds to the QueryResultMetaStat on the frontend (https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/types/data.ts#L53).", @@ -13632,55 +12717,46 @@ "type": "object", "additionalProperties": { "type": "object" - }, - "x-go-name": "Color" + } }, "custom": { "description": "Panel Specific Values", "type": "object", "additionalProperties": { "type": "object" - }, - "x-go-name": "Custom" + } }, "decimals": { "type": "integer", - "format": "uint16", - "x-go-name": "Decimals" + "format": "uint16" }, "description": { "description": "Description is human readable field metadata", - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { "description": "DisplayName overrides Grafana default naming, should not be used from a data source", - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "displayNameFromDS": { "description": "DisplayNameFromDS overrides Grafana default naming in a better way that allows users to override it easily.", - "type": "string", - "x-go-name": "DisplayNameFromDS" + "type": "string" }, "filterable": { "description": "Filterable indicates if the Field's data can be filtered by additional calls.", - "type": "boolean", - "x-go-name": "Filterable" + "type": "boolean" }, "interval": { "description": "Interval indicates the expected regular step between values in the series.\nWhen an interval exists, consumers can identify \"missing\" values when the expected value is not present.\nThe grafana timeseries visualization will render disconnected values when missing values are found it the time field.\nThe interval uses the same units as the values. For time.Time, this is defined in milliseconds.", "type": "number", - "format": "double", - "x-go-name": "Interval" + "format": "double" }, "links": { "description": "The behavior when clicking on a result", "type": "array", "items": { "$ref": "#/definitions/DataLink" - }, - "x-go-name": "Links" + } }, "mappings": { "$ref": "#/definitions/ValueMappings" @@ -13693,34 +12769,28 @@ }, "noValue": { "description": "Alternative to empty string", - "type": "string", - "x-go-name": "NoValue" + "type": "string" }, "path": { "description": "Path is an explicit path to the field in the datasource. When the frame meta includes a path,\nthis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used as an identifier to update values in a subsequent request", - "type": "string", - "x-go-name": "Path" + "type": "string" }, "thresholds": { "$ref": "#/definitions/ThresholdsConfig" }, "unit": { "description": "Numeric Options", - "type": "string", - "x-go-name": "Unit" + "type": "string" }, "value": { "type": "number", - "format": "double", - "x-go-name": "Value" + "format": "double" }, "writeable": { "description": "Writeable indicates that the datasource knows how to update this value", - "type": "boolean", - "x-go-name": "Writeable" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "Receiver": { "type": "object", @@ -13802,37 +12872,29 @@ "type": "object", "properties": { "active": { - "type": "boolean", - "x-go-name": "Active" + "type": "boolean" }, "count": { - "type": "boolean", - "x-go-name": "Count" + "type": "boolean" }, "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "dest_data_source_uid": { - "type": "string", - "x-go-name": "DestDataSourceUID" + "type": "string" }, "id": { - "type": "string", - "x-go-name": "ID" + "type": "string" }, "interval": { "type": "integer", - "format": "int64", - "x-go-name": "Interval" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "prom_name": { - "type": "string", - "x-go-name": "PromName" + "type": "string" }, "queries": { "type": "array", @@ -13841,20 +12903,16 @@ "additionalProperties": { "type": "object" } - }, - "x-go-name": "Queries" + } }, "range": { "type": "integer", - "format": "int64", - "x-go-name": "Range" + "format": "int64" }, "target_ref_id": { - "type": "string", - "x-go-name": "TargetRefID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/recordedqueries/api" + } }, "Regexp": { "description": "A Regexp is safe for concurrent use by multiple goroutines,\nexcept for configuration methods, such as Longest.", @@ -13879,44 +12937,36 @@ "type": "object", "properties": { "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "emails": { "description": "Comma-separated list of emails to which to send the report to.", - "type": "string", - "x-go-name": "Emails" + "type": "string" }, "id": { "description": "Send the report to the emails specified in the report. Required if emails is not present.", "type": "string", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "useEmailsFromReport": { "description": "Send the report to the emails specified in the report. Required if emails is not present.", - "type": "boolean", - "x-go-name": "UseEmailsFromReport" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "ReportOptionsDTO": { "type": "object", "properties": { "layout": { - "type": "string", - "x-go-name": "Layout" + "type": "string" }, "orientation": { - "type": "string", - "x-go-name": "Orientation" + "type": "string" }, "timeRange": { "$ref": "#/definitions/TimeRangeDTO" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "ResponseDetails": { "type": "object", @@ -13934,86 +12984,69 @@ "title": "Responses is a map of RefIDs (Unique Query ID) to DataResponses.", "additionalProperties": { "$ref": "#/definitions/DataResponse" - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/backend" + } }, "RestoreDashboardVersionCommand": { "type": "object", "properties": { "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "RevokeAuthTokenCmd": { "type": "object", "properties": { "authTokenId": { "type": "integer", - "format": "int64", - "x-go-name": "AuthTokenId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "RoleDTO": { "type": "object", "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "delegatable": { - "type": "boolean", - "x-go-name": "Delegatable" + "type": "boolean" }, "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "group": { - "type": "string", - "x-go-name": "Group" + "type": "string" }, "hidden": { - "type": "boolean", - "x-go-name": "Hidden" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/Permission" - }, - "x-go-name": "Permissions" + } }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/accesscontrol" + } }, "Route": { "description": "A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.", @@ -14302,143 +13335,114 @@ }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUid" + "type": "string" }, "isFolder": { - "type": "boolean", - "x-go-name": "IsFolder" + "type": "boolean" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "overwrite": { - "type": "boolean", - "x-go-name": "Overwrite" + "type": "boolean" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "ScheduleDTO": { "type": "object", "properties": { "day": { - "type": "string", - "x-go-name": "Day" + "type": "string" }, "dayOfMonth": { - "type": "string", - "x-go-name": "DayOfMonth" + "type": "string" }, "endDate": { "type": "string", - "format": "date-time", - "x-go-name": "EndDate" + "format": "date-time" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "hour": { "type": "integer", - "format": "int64", - "x-go-name": "Hour" + "format": "int64" }, "intervalAmount": { "type": "integer", - "format": "int64", - "x-go-name": "IntervalAmount" + "format": "int64" }, "intervalFrequency": { - "type": "string", - "x-go-name": "IntervalFrequency" + "type": "string" }, "minute": { "type": "integer", - "format": "int64", - "x-go-name": "Minute" + "format": "int64" }, "startDate": { "type": "string", - "format": "date-time", - "x-go-name": "StartDate" + "format": "date-time" }, "timeZone": { - "type": "string", - "x-go-name": "TimeZone" + "type": "string" }, "workdaysOnly": { - "type": "boolean", - "x-go-name": "WorkdaysOnly" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "SearchTeamQueryResult": { "type": "object", "properties": { "page": { "type": "integer", - "format": "int64", - "x-go-name": "Page" + "format": "int64" }, "perPage": { "type": "integer", - "format": "int64", - "x-go-name": "PerPage" + "format": "int64" }, "teams": { "type": "array", "items": { "$ref": "#/definitions/TeamDTO" - }, - "x-go-name": "Teams" + } }, "totalCount": { "type": "integer", - "format": "int64", - "x-go-name": "TotalCount" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "SearchUserQueryResult": { "type": "object", "properties": { "page": { "type": "integer", - "format": "int64", - "x-go-name": "Page" + "format": "int64" }, "perPage": { "type": "integer", - "format": "int64", - "x-go-name": "PerPage" + "format": "int64" }, "totalCount": { "type": "integer", - "format": "int64", - "x-go-name": "TotalCount" + "format": "int64" }, "users": { "type": "array", "items": { "$ref": "#/definitions/UserSearchHitDTO" - }, - "x-go-name": "Users" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "Secret": { "type": "string", @@ -14453,22 +13457,18 @@ "type": "object", "properties": { "global": { - "type": "boolean", - "x-go-name": "Global" + "type": "boolean" }, "includeHidden": { - "type": "boolean", - "x-go-name": "IncludeHidden" + "type": "boolean" }, "roleUids": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "RoleUIDs" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "SettingsBag": { "type": "object", @@ -14477,8 +13477,7 @@ "additionalProperties": { "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/setting" + } }, "SettingsDTO": { "type": "object", @@ -14488,21 +13487,17 @@ }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgID" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserID" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "SigV4Config": { "description": "SigV4Config is the configuration for signing remote write requests with\nAWS's SigV4 verification process. Empty values will be retrieved using the\nAWS default credentials chain.", @@ -14718,11 +13713,9 @@ "type": "object", "properties": { "enabled": { - "type": "boolean", - "x-go-name": "Enabled" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "Success": { "$ref": "#/definitions/ResponseDetails" @@ -14731,11 +13724,9 @@ "type": "object", "properties": { "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/docs/definitions" + } }, "SyncResult": { "type": "object", @@ -14768,8 +13759,7 @@ "format": "int64" } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/ldapsync" + } }, "TLSConfig": { "type": "object", @@ -14809,15 +13799,12 @@ "properties": { "count": { "type": "integer", - "format": "int64", - "x-go-name": "Count" + "format": "int64" }, "tag": { - "type": "string", - "x-go-name": "Tag" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/annotations" + } }, "TeamDTO": { "type": "object", @@ -14826,193 +13813,153 @@ "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "AccessControl" + } }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "memberCount": { "type": "integer", - "format": "int64", - "x-go-name": "MemberCount" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "permission": { "$ref": "#/definitions/PermissionType" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "TeamGroupDTO": { "type": "object", "properties": { "groupId": { - "type": "string", - "x-go-name": "GroupId" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/teamgroupsync/models" + } }, "TeamGroupMapping": { "type": "object", "properties": { "groupId": { - "type": "string", - "x-go-name": "GroupId" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/teamgroupsync/models" + } }, "TeamMemberDTO": { "type": "object", "properties": { "auth_module": { - "type": "string", - "x-go-name": "AuthModule" + "type": "string" }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "labels": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Labels" + } }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "permission": { "$ref": "#/definitions/PermissionType" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "TempUserDTO": { "type": "object", "properties": { "code": { - "type": "string", - "x-go-name": "Code" + "type": "string" }, "createdOn": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "emailSent": { - "type": "boolean", - "x-go-name": "EmailSent" + "type": "boolean" }, "emailSentOn": { "type": "string", - "format": "date-time", - "x-go-name": "EmailSentOn" + "format": "date-time" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "invitedByEmail": { - "type": "string", - "x-go-name": "InvitedByEmail" + "type": "string" }, "invitedByLogin": { - "type": "string", - "x-go-name": "InvitedByLogin" + "type": "string" }, "invitedByName": { - "type": "string", - "x-go-name": "InvitedByName" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "status": { "$ref": "#/definitions/TempUserStatus" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "TempUserStatus": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "type": "string" }, "TestReceiverConfigResult": { "type": "object", @@ -15133,18 +14080,15 @@ "type": "object", "properties": { "color": { - "type": "string", - "x-go-name": "Color" + "type": "string" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "value": { "$ref": "#/definitions/ConfFloat64" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "ThresholdsConfig": { "description": "ThresholdsConfig setup thresholds", @@ -15158,16 +14102,13 @@ "type": "array", "items": { "$ref": "#/definitions/Threshold" - }, - "x-go-name": "Steps" + } } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "ThresholdsMode": { "description": "ThresholdsMode absolute or percentage", - "type": "string", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "type": "string" }, "TimeInterval": { "description": "TimeInterval describes intervals of time. ContainsTime will tell you if a golang time is contained\nwithin the interval.", @@ -15231,130 +14172,103 @@ "type": "object", "properties": { "from": { - "type": "string", - "x-go-name": "From" + "type": "string" }, "to": { - "type": "string", - "x-go-name": "To" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "Token": { "type": "object", "properties": { "account": { - "type": "string", - "x-go-name": "Account" + "type": "string" }, "company": { - "type": "string", - "x-go-name": "Company" + "type": "string" }, "details_url": { - "type": "string", - "x-go-name": "DetailsURL" + "type": "string" }, "exp": { "type": "integer", - "format": "int64", - "x-go-name": "Expires" + "format": "int64" }, "iat": { "type": "integer", - "format": "int64", - "x-go-name": "Issued" + "format": "int64" }, "included_users": { "type": "integer", - "format": "int64", - "x-go-name": "IncludedUsers" + "format": "int64" }, "iss": { - "type": "string", - "x-go-name": "Issuer" + "type": "string" }, "jti": { - "type": "string", - "x-go-name": "ID" + "type": "string" }, "lexp": { "type": "integer", - "format": "int64", - "x-go-name": "LicenseExpires" + "format": "int64" }, "lic_exp_warn_days": { "type": "integer", - "format": "int64", - "x-go-name": "LicenseExpiresWarnDays" + "format": "int64" }, "lid": { - "type": "string", - "x-go-name": "LicenseID" + "type": "string" }, "limit_by": { - "type": "string", - "x-go-name": "LimitBy" + "type": "string" }, "max_concurrent_user_sessions": { "type": "integer", - "format": "int64", - "x-go-name": "MaxConcurrentUserSessions" + "format": "int64" }, "nbf": { "type": "integer", - "format": "int64", - "x-go-name": "LicenseIssued" + "format": "int64" }, "prod": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Products" + } }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "status": { "$ref": "#/definitions/TokenStatus" }, "sub": { - "type": "string", - "x-go-name": "Subject" + "type": "string" }, "tok_exp_warn_days": { "type": "integer", - "format": "int64", - "x-go-name": "TokenExpiresWarnDays" + "format": "int64" }, "trial": { - "type": "boolean", - "x-go-name": "Trial" + "type": "boolean" }, "trial_exp": { "type": "integer", - "format": "int64", - "x-go-name": "TrialExpires" + "format": "int64" }, "update_days": { "type": "integer", - "format": "int64", - "x-go-name": "UpdateDays" + "format": "int64" }, "usage_billing": { - "type": "boolean", - "x-go-name": "UsageBilling" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + } }, "TokenStatus": { "type": "integer", - "format": "int64", - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + "format": "int64" }, "TrimDashboardCommand": { "type": "object", @@ -15365,8 +14279,7 @@ "meta": { "$ref": "#/definitions/Json" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "TrimDashboardFullWithMeta": { "type": "object", @@ -15377,12 +14290,10 @@ "meta": { "$ref": "#/definitions/Json" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Type": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/models" + "type": "string" }, "URL": { "description": "The general form represented is:\n\n[scheme:][//[userinfo@]host][/]path[?query][#fragment]\n\nURLs that do not start with a slash after the scheme are interpreted as:\n\nscheme:opaque[?query][#fragment]\n\nNote that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/.\nA consequence is that it is impossible to tell which slashes in the Path were\nslashes in the raw URL and which were %2f. This distinction is rarely important,\nbut when it is, the code should use RawPath, an optional field which only gets\nset if the default encoding is different from Path.\n\nURL's String method uses the EscapedPath method to obtain the path. See the\nEscapedPath method for more details.", @@ -15426,126 +14337,101 @@ "type": "object", "properties": { "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureSettings": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureSettings" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateAlertNotificationWithUidCommand": { "type": "object", "properties": { "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureSettings": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureSettings" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "NewUid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateAnnotationsCmd": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "time": { "type": "integer", - "format": "int64", - "x-go-name": "Time" + "format": "int64" }, "timeEnd": { "type": "integer", - "format": "int64", - "x-go-name": "TimeEnd" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateDashboardAclCommand": { "type": "object", @@ -15554,11 +14440,9 @@ "type": "array", "items": { "$ref": "#/definitions/DashboardAclUpdateItem" - }, - "x-go-name": "Items" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateDataSourceCommand": { "description": "Also acts as api DTO", @@ -15568,160 +14452,125 @@ "$ref": "#/definitions/DsAccess" }, "basicAuth": { - "type": "boolean", - "x-go-name": "BasicAuth" + "type": "boolean" }, "basicAuthPassword": { - "type": "string", - "x-go-name": "BasicAuthPassword" + "type": "string" }, "basicAuthUser": { - "type": "string", - "x-go-name": "BasicAuthUser" + "type": "string" }, "database": { - "type": "string", - "x-go-name": "Database" + "type": "string" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "jsonData": { "$ref": "#/definitions/Json" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" }, "secureJsonData": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureJsonData" + } }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "user": { - "type": "string", - "x-go-name": "User" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" }, "withCredentials": { - "type": "boolean", - "x-go-name": "WithCredentials" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateFolderCommand": { "type": "object", "properties": { "overwrite": { - "type": "boolean", - "x-go-name": "Overwrite" + "type": "boolean" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateOrgAddressForm": { "type": "object", "properties": { "address1": { - "type": "string", - "x-go-name": "Address1" + "type": "string" }, "address2": { - "type": "string", - "x-go-name": "Address2" + "type": "string" }, "city": { - "type": "string", - "x-go-name": "City" + "type": "string" }, "country": { - "type": "string", - "x-go-name": "Country" + "type": "string" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "zipcode": { - "type": "string", - "x-go-name": "ZipCode" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateOrgForm": { "type": "object", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateOrgQuotaCmd": { "type": "object", "properties": { "limit": { "type": "integer", - "format": "int64", - "x-go-name": "Limit" + "format": "int64" }, "target": { - "type": "string", - "x-go-name": "Target" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateOrgUserCommand": { "type": "object", "properties": { "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdatePrefsCmd": { "type": "object", @@ -15730,12 +14579,10 @@ "description": "The numerical :id of a favorited dashboard", "type": "integer", "format": "int64", - "default": 0, - "x-go-name": "HomeDashboardID" + "default": 0 }, "homeDashboardUID": { - "type": "string", - "x-go-name": "HomeDashboardUID" + "type": "string" }, "navbar": { "$ref": "#/definitions/NavbarPreference" @@ -15745,62 +14592,49 @@ }, "theme": { "type": "string", - "enum": ["light", "dark"], - "x-go-name": "Theme" + "enum": ["light", "dark"] }, "timezone": { "type": "string", - "enum": ["utc", "browser"], - "x-go-name": "Timezone" + "enum": ["utc", "browser"] }, "weekStart": { - "type": "string", - "x-go-name": "WeekStart" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateRoleCommand": { "type": "object", "properties": { "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "global": { - "type": "boolean", - "x-go-name": "Global" + "type": "boolean" }, "group": { - "type": "string", - "x-go-name": "Group" + "type": "string" }, "hidden": { - "type": "boolean", - "x-go-name": "Hidden" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/Permission" - }, - "x-go-name": "Permissions" + } }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "UpdateTeamCommand": { "type": "object", @@ -15815,8 +14649,7 @@ "Name": { "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateTeamMemberCommand": { "type": "object", @@ -15824,100 +14657,79 @@ "permission": { "$ref": "#/definitions/PermissionType" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateUserCommand": { "type": "object", "properties": { "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "theme": { - "type": "string", - "x-go-name": "Theme" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateUserQuotaCmd": { "type": "object", "properties": { "limit": { "type": "integer", - "format": "int64", - "x-go-name": "Limit" + "format": "int64" }, "target": { - "type": "string", - "x-go-name": "Target" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserIdDTO": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserLookupDTO": { "type": "object", "properties": { "avatarUrl": { - "type": "string", - "x-go-name": "AvatarURL" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserID" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UserOrgDTO": { "type": "object", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserProfileDTO": { "type": "object", @@ -15926,95 +14738,75 @@ "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "AccessControl" + } }, "authLabels": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "AuthLabels" + } }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "createdAt": { "type": "string", - "format": "date-time", - "x-go-name": "CreatedAt" + "format": "date-time" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDisabled": { - "type": "boolean", - "x-go-name": "IsDisabled" + "type": "boolean" }, "isExternal": { - "type": "boolean", - "x-go-name": "IsExternal" + "type": "boolean" }, "isGrafanaAdmin": { - "type": "boolean", - "x-go-name": "IsGrafanaAdmin" + "type": "boolean" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "theme": { - "type": "string", - "x-go-name": "Theme" + "type": "string" }, "updatedAt": { "type": "string", - "format": "date-time", - "x-go-name": "UpdatedAt" + "format": "date-time" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserQuotaDTO": { "type": "object", "properties": { "limit": { "type": "integer", - "format": "int64", - "x-go-name": "Limit" + "format": "int64" }, "target": { - "type": "string", - "x-go-name": "Target" + "type": "string" }, "used": { "type": "integer", - "format": "int64", - "x-go-name": "Used" + "format": "int64" }, "user_id": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserSearchHitDTO": { "type": "object", @@ -16023,49 +14815,38 @@ "type": "array", "items": { "type": "string" - }, - "x-go-name": "AuthLabels" + } }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isAdmin": { - "type": "boolean", - "x-go-name": "IsAdmin" + "type": "boolean" }, "isDisabled": { - "type": "boolean", - "x-go-name": "IsDisabled" + "type": "boolean" }, "lastSeenAt": { "type": "string", - "format": "date-time", - "x-go-name": "LastSeenAt" + "format": "date-time" }, "lastSeenAtAge": { - "type": "string", - "x-go-name": "LastSeenAtAge" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserToken": { "description": "UserToken represents a user token", @@ -16117,8 +14898,7 @@ "type": "integer", "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "Userinfo": { "description": "The Userinfo type is an immutable encapsulation of username and\npassword details for a URL. An existing Userinfo value is guaranteed\nto have a username set (potentially empty, as allowed by RFC 2396),\nand optionally a password.", @@ -16137,15 +14917,13 @@ }, "ValueMapping": { "description": "ValueMapping allows mapping input values to text and color", - "type": "object", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "type": "object" }, "ValueMappings": { "type": "array", "items": { "$ref": "#/definitions/ValueMapping" - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "Vector": { "description": "Vector is basically only an alias for model.Samples, but the\ncontract is that in a Vector, all Samples have the same timestamp.", @@ -16207,8 +14985,7 @@ }, "VisType": { "type": "string", - "title": "VisType is used to indicate how the data should be visualized in explore.", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "title": "VisType is used to indicate how the data should be visualized in explore." }, "WebhookConfig": { "type": "object", @@ -16849,13 +15626,11 @@ "description": "ID Identifier of the added user.", "type": "integer", "format": "int64", - "x-go-name": "UsedID", "example": 65 }, "message": { "description": "Message Message of the added user.", "type": "string", - "x-go-name": "Message", "example": "Data source added" } } @@ -16893,13 +15668,11 @@ "description": "ID Identifier of the created annotation.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the created annotation.", - "type": "string", - "x-go-name": "Message" + "type": "string" } } } @@ -16917,19 +15690,16 @@ "description": "ID Identifier of the new data source.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted dashboard.", "type": "string", - "x-go-name": "Message", "example": "Data source added" }, "name": { "description": "Name of the new data source.", "type": "string", - "x-go-name": "Name", "example": "My Data source" } } @@ -16944,14 +15714,12 @@ "message": { "description": "Message Message of the created org.", "type": "string", - "x-go-name": "Message", "example": "Data source added" }, "orgId": { "description": "ID Identifier of the created org.", "type": "integer", "format": "int64", - "x-go-name": "OrgID", "example": 65 } } @@ -16970,27 +15738,22 @@ "properties": { "deleteKey": { "description": "Unique key used to delete the snapshot. It is different from the key so that only the creator can delete the snapshot.", - "type": "string", - "x-go-name": "DeleteKey" + "type": "string" }, "deleteUrl": { - "type": "string", - "x-go-name": "DeleteUrl" + "type": "string" }, "id": { "description": "Snapshot id", "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "key": { "description": "Unique key", - "type": "string", - "x-go-name": "Key" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "URL" + "type": "string" } } } @@ -17001,13 +15764,11 @@ "type": "object", "properties": { "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" } } } @@ -17068,13 +15829,11 @@ "description": "ID Identifier of the deleted notification channel.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted notificatiton channel.", - "type": "string", - "x-go-name": "Message" + "type": "string" } } } @@ -17089,19 +15848,16 @@ "description": "ID Identifier of the deleted dashboard.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted dashboard.", "type": "string", - "x-go-name": "Message", "example": "Dashboard My Dashboard deleted" }, "title": { "description": "Title Title of the deleted dashboard.", "type": "string", - "x-go-name": "Title", "example": "My Dashboard" } } @@ -17117,13 +15873,11 @@ "description": "ID Identifier of the deleted data source.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted dashboard.", "type": "string", - "x-go-name": "Message", "example": "Dashboard My Dashboard deleted" } } @@ -17139,19 +15893,16 @@ "description": "ID Identifier of the deleted folder.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted folder.", "type": "string", - "x-go-name": "Message", "example": "Folder My Folder deleted" }, "title": { "description": "Title of the deleted folder.", "type": "string", - "x-go-name": "Title", "example": "My Folder" } } @@ -17299,7 +16050,6 @@ "description": "ID Identifier of the data source.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 } } @@ -17449,16 +16199,13 @@ "type": "object", "properties": { "externalEnabled": { - "type": "boolean", - "x-go-name": "ExternalEnabled" + "type": "boolean" }, "externalSnapshotName": { - "type": "string", - "x-go-name": "ExternalSnapshotName" + "type": "string" }, "externalSnapshotURL": { - "type": "string", - "x-go-name": "ExternalSnapshotURL" + "type": "string" } } } @@ -17527,12 +16274,10 @@ "properties": { "helpFlags1": { "type": "integer", - "format": "int64", - "x-go-name": "HelpFlags1" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" } } } @@ -17608,17 +16353,14 @@ "properties": { "alertId": { "type": "integer", - "format": "int64", - "x-go-name": "AlertID" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "state": { "description": "Alert result state\nrequired true", - "type": "string", - "x-go-name": "State" + "type": "string" } } } @@ -17632,17 +16374,14 @@ "alertsAffected": { "description": "AlertsAffected is the number of the affected alerts.", "type": "integer", - "format": "int64", - "x-go-name": "AlertsAffected" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "state": { "description": "Alert result state\nrequired true", - "type": "string", - "x-go-name": "State" + "type": "string" } } } @@ -17662,38 +16401,32 @@ "id": { "description": "ID The unique identifier (id) of the created/updated dashboard.", "type": "string", - "x-go-name": "ID", "example": "1" }, "status": { "description": "Status status of the response.", "type": "string", - "x-go-name": "Status", "example": "success" }, "title": { "description": "Slug The slug of the dashboard.", "type": "string", - "x-go-name": "Slug", "example": "my-dashboard" }, "uid": { "description": "UID The unique identifier (uid) of the created/updated dashboard.", "type": "string", - "x-go-name": "UID", "example": "nHz3SXiiz" }, "url": { "description": "URL The relative URL for accessing the created/updated dashboard.", "type": "string", - "x-go-name": "URL", "example": "/d/nHz3SXiiz/my-dashboard" }, "version": { "description": "Version The version of the dashboard.", "type": "integer", "format": "int64", - "x-go-name": "Verion", "example": 2 } } @@ -17753,20 +16486,16 @@ "type": "object", "properties": { "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "meta": { - "type": "string", - "x-go-name": "Meta" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } } } diff --git a/public/api-spec.json b/public/api-spec.json index ed857c22670..72d83fb5c56 100644 --- a/public/api-spec.json +++ b/public/api-spec.json @@ -44,7 +44,6 @@ "operationId": "addBuiltinRole", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -78,21 +77,18 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true }, { "type": "string", - "x-go-name": "RoleUID", "name": "builtinRole", "in": "path", "required": true }, { "type": "boolean", - "x-go-name": "Global", "description": "A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to remove assignment.", "name": "global", "in": "query" @@ -142,7 +138,6 @@ "operationId": "createRoleWithPermissions", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -176,7 +171,6 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true @@ -202,13 +196,11 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -243,7 +235,6 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true @@ -297,7 +288,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true @@ -327,7 +317,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true @@ -360,13 +349,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -403,7 +390,6 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true @@ -411,7 +397,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true @@ -446,7 +431,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -476,7 +460,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -507,7 +490,6 @@ "operationId": "addUserRole", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -518,7 +500,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -549,14 +530,12 @@ "parameters": [ { "type": "string", - "x-go-name": "RoleUID", "name": "roleUID", "in": "path", "required": true }, { "type": "boolean", - "x-go-name": "Global", "description": "A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to remove assignment.", "name": "global", "in": "query" @@ -564,7 +543,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -680,7 +658,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -716,7 +693,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UserID", "name": "user_name", "in": "path", "required": true @@ -750,7 +726,6 @@ "operationId": "pauseAllAlerts", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -987,7 +962,6 @@ "operationId": "createUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1033,7 +1007,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1073,7 +1046,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1110,7 +1082,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1150,7 +1121,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1190,7 +1160,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1231,7 +1200,6 @@ "operationId": "setPassword", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1242,7 +1210,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1275,7 +1242,6 @@ "operationId": "setPermissions", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1286,7 +1252,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1326,7 +1291,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1365,13 +1329,11 @@ "parameters": [ { "type": "string", - "x-go-name": "QuotaTarget", "name": "quota_target", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1382,7 +1344,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1420,7 +1381,6 @@ "operationId": "revokeAuthToken", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1431,7 +1391,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -1487,7 +1446,6 @@ "operationId": "createAlertNotificationChannel", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1545,7 +1503,6 @@ "operationId": "notificationChannelTest", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1585,7 +1542,6 @@ "parameters": [ { "type": "string", - "x-go-name": "NotificationUID", "name": "notification_channel_uid", "in": "path", "required": true @@ -1617,13 +1573,11 @@ "parameters": [ { "type": "string", - "x-go-name": "NotificationUID", "name": "notification_channel_uid", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1658,7 +1612,6 @@ "parameters": [ { "type": "string", - "x-go-name": "NotificationUID", "name": "notification_channel_uid", "in": "path", "required": true @@ -1693,7 +1646,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "NotificationID", "name": "notification_channel_id", "in": "path", "required": true @@ -1726,13 +1678,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "NotificationID", "name": "notification_channel_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -1768,7 +1718,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "NotificationID", "name": "notification_channel_id", "in": "path", "required": true @@ -1804,7 +1753,6 @@ "items": { "type": "string" }, - "x-go-name": "DashboardID", "description": "Limit response to alerts in specified dashboard(s). You can specify multiple dashboards.", "name": "dashboardId", "in": "query" @@ -1812,14 +1760,12 @@ { "type": "integer", "format": "int64", - "x-go-name": "PanelID", "description": "Limit response to alert for a specified panel on a dashboard.", "name": "panelId", "in": "query" }, { "type": "string", - "x-go-name": "Query", "description": "Limit response to alerts having a name like this value.", "name": "query", "in": "query" @@ -1827,7 +1773,6 @@ { "enum": ["all", "no_data", "paused", "alerting", "ok", "pending", "unknown"], "type": "string", - "x-go-name": "State", "description": "Return alerts with one or more of the following alert states", "name": "state", "in": "query" @@ -1835,7 +1780,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "Limit", "description": "Limit response to X number of alerts.", "name": "limit", "in": "query" @@ -1846,14 +1790,12 @@ "type": "string" }, "collectionFormat": "multi", - "x-go-name": "FolderID", "description": "Limit response to alerts of dashboards in specified folder(s). You can specify multiple folders", "name": "folderId", "in": "query" }, { "type": "string", - "x-go-name": "DashboardQuery", "description": "Limit response to alerts having a dashboard name like this value./ Limit response to alerts having a dashboard name like this value.", "name": "dashboardQuery", "in": "query" @@ -1864,7 +1806,6 @@ "type": "string" }, "collectionFormat": "multi", - "x-go-name": "DashboardTag", "description": "Limit response to alerts of dashboards with specified tags. To do an “AND” filtering with multiple tags, specify the tags parameter multiple times", "name": "dashboardTag", "in": "query" @@ -1892,7 +1833,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "DashboardID", "name": "dashboardId", "in": "query", "required": true @@ -1918,7 +1858,6 @@ "operationId": "testAlert", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "schema": { @@ -1954,7 +1893,6 @@ "parameters": [ { "type": "string", - "x-go-name": "AlertID", "name": "alert_id", "in": "path", "required": true @@ -1981,13 +1919,11 @@ "parameters": [ { "type": "string", - "x-go-name": "AlertID", "name": "alert_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2025,7 +1961,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "From", "description": "Find annotations created after specific epoch datetime in milliseconds.", "name": "from", "in": "query" @@ -2033,7 +1968,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "To", "description": "Find annotations created before specific epoch datetime in milliseconds.", "name": "to", "in": "query" @@ -2041,7 +1975,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "description": "Limit response to annotations created by specific user.", "name": "userId", "in": "query" @@ -2049,7 +1982,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "AlertID", "description": "Find annotations for a specified alert.", "name": "alertId", "in": "query" @@ -2057,7 +1989,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "DashboardID", "description": "Find annotations that are scoped to a specific dashboard", "name": "dashboardId", "in": "query" @@ -2065,7 +1996,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "PanelID", "description": "Find annotations that are scoped to a specific panel", "name": "panelId", "in": "query" @@ -2073,7 +2003,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "Limit", "description": "Max limit for results returned.", "name": "limit", "in": "query" @@ -2084,7 +2013,6 @@ "type": "string" }, "collectionFormat": "multi", - "x-go-name": "Tags", "description": "Use this to filter organization annotations. Organization annotations are annotations from an annotation data source that are not connected specifically to a dashboard or panel. You can filter by multiple tags.", "name": "tags", "in": "query" @@ -2092,14 +2020,12 @@ { "enum": ["alert", "annotation"], "type": "string", - "x-go-name": "Type", "description": "Return alerts or user created annotations", "name": "type", "in": "query" }, { "type": "boolean", - "x-go-name": "MatchAny", "description": "Match any or all tags", "name": "matchAny", "in": "query" @@ -2124,7 +2050,6 @@ "operationId": "createAnnotation", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2160,7 +2085,6 @@ "operationId": "createGraphiteAnnotation", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2195,7 +2119,6 @@ "operationId": "massDeleteAnnotations", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2226,7 +2149,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Tag", "description": "Tag is a string that you can use to filter tags.", "name": "tag", "in": "query" @@ -2234,7 +2156,6 @@ { "type": "string", "default": "100", - "x-go-name": "Limit", "description": "Max limit for results returned.", "name": "limit", "in": "query" @@ -2261,7 +2182,6 @@ "parameters": [ { "type": "string", - "x-go-name": "AnnotationID", "name": "annotation_id", "in": "path", "required": true @@ -2287,13 +2207,11 @@ "parameters": [ { "type": "string", - "x-go-name": "AnnotationID", "name": "annotation_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2328,7 +2246,6 @@ "parameters": [ { "type": "string", - "x-go-name": "AnnotationID", "name": "annotation_id", "in": "path", "required": true @@ -2357,13 +2274,11 @@ "parameters": [ { "type": "string", - "x-go-name": "AnnotationID", "name": "annotation_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -2401,7 +2316,6 @@ { "type": "boolean", "default": false, - "x-go-name": "IncludeExpired", "description": "Show expired keys", "name": "includeExpired", "in": "query" @@ -2471,7 +2385,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "ID", "name": "id", "in": "path", "required": true @@ -2504,7 +2417,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Query", "description": "Search Query", "name": "query", "in": "query" @@ -2513,7 +2425,6 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "Limit", "description": "Limit the number of returned results", "name": "limit", "in": "query" @@ -2549,8 +2460,7 @@ "diffType": { "description": "The type of diff to return\nDescription:\n`basic`\n`json`", "type": "string", - "enum": ["basic", "json"], - "x-go-name": "DiffType" + "enum": ["basic", "json"] }, "new": { "$ref": "#/definitions/CalculateDiffTarget" @@ -2778,7 +2688,6 @@ "type": "integer", "format": "int64", "default": 0, - "x-go-name": "Limit", "description": "Maximum number of results to return", "name": "limit", "in": "query" @@ -2787,7 +2696,6 @@ "type": "integer", "format": "int64", "default": 0, - "x-go-name": "Start", "description": "Version to start from when returning queries", "name": "start", "in": "query" @@ -2946,7 +2854,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -2978,7 +2885,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3011,7 +2917,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3043,7 +2948,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3087,7 +2991,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3128,7 +3031,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3137,7 +3039,6 @@ "type": "integer", "format": "int64", "default": 0, - "x-go-name": "Limit", "description": "Maximum number of results to return", "name": "limit", "in": "query" @@ -3146,7 +3047,6 @@ "type": "integer", "format": "int64", "default": 0, - "x-go-name": "Start", "description": "Version to start from when returning queries", "name": "start", "in": "query" @@ -3179,7 +3079,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "uid", "in": "path", "required": true @@ -3275,7 +3174,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceName", "name": "name", "in": "path", "required": true @@ -3309,7 +3207,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceName", "name": "name", "in": "path", "required": true @@ -3338,7 +3235,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceName", "name": "name", "in": "path", "required": true @@ -3372,14 +3268,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3414,14 +3308,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3459,14 +3351,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3504,14 +3394,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3547,14 +3435,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3601,14 +3487,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3645,7 +3529,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true @@ -3680,7 +3563,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true @@ -3717,7 +3599,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true @@ -3750,7 +3631,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true @@ -3783,14 +3663,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceUID", "name": "uid", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -3827,7 +3705,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "datasourceId", "in": "path", "required": true @@ -3864,7 +3741,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "datasourceId", "in": "path", "required": true @@ -3901,7 +3777,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "datasourceId", "in": "path", "required": true @@ -3935,14 +3810,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "datasourceId", "in": "path", "required": true }, { "type": "string", - "x-go-name": "PermissionID", "name": "permissionId", "in": "path", "required": true @@ -3977,7 +3850,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true @@ -4013,7 +3885,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true @@ -4051,7 +3922,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true @@ -4086,7 +3956,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true @@ -4121,14 +3990,12 @@ "parameters": [ { "type": "string", - "x-go-name": "DatasourceID", "name": "id", "in": "path", "required": true }, { "type": "string", - "x-go-name": "DatasourceProxyRoute", "name": "datasource_proxy_route", "in": "path", "required": true @@ -4164,7 +4031,6 @@ "operationId": "queryMetricsWithExpressions", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4206,7 +4072,6 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "Limit", "description": "Limit the maximum number of folders to return", "name": "limit", "in": "query" @@ -4215,7 +4080,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "description": "Page index for starting fetching folders", "name": "page", "in": "query" @@ -4242,7 +4106,6 @@ "operationId": "createFolder", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4283,7 +4146,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "FolderID", "name": "folder_id", "in": "path", "required": true @@ -4316,7 +4178,6 @@ "parameters": [ { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true @@ -4347,13 +4208,11 @@ "parameters": [ { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true }, { - "x-go-name": "Body", "description": "To change the unique identifier (uid), provide another one.\nTo overwrite an existing folder with newer version, set `overwrite` to `true`.\nProvide the current version to safelly update the folder: if the provided version differs from the stored one the request will fail, unless `overwrite` is `true`.", "name": "body", "in": "body", @@ -4395,7 +4254,6 @@ "parameters": [ { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true @@ -4403,7 +4261,6 @@ { "type": "boolean", "default": false, - "x-go-name": "ForceDeleteRules", "description": "If `true` any Grafana 8 Alerts under this folder will be deleted.\nSet to `false` so that the request will fail if the folder contains any Grafana 8 Alerts.", "name": "forceDeleteRules", "in": "query" @@ -4439,7 +4296,6 @@ "parameters": [ { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true @@ -4478,7 +4334,6 @@ }, { "type": "string", - "x-go-name": "FolderUID", "name": "folder_uid", "in": "path", "required": true @@ -4512,7 +4367,6 @@ "parameters": [ { "type": "string", - "x-go-name": "SearchString", "description": "Part of the name or description searched for.", "name": "searchString", "in": "query" @@ -4521,7 +4375,6 @@ "enum": [1, 2], "type": "integer", "format": "int64", - "x-go-name": "Kind", "description": "Kind of element to search for.", "name": "kind", "in": "query" @@ -4529,28 +4382,24 @@ { "enum": ["alpha-asc", "alpha-desc"], "type": "string", - "x-go-name": "SortDirection", "description": "Sort order of elements.", "name": "sortDirection", "in": "query" }, { "type": "string", - "x-go-name": "TypeFilter", "description": "A comma separated list of types to filter the elements by", "name": "typeFilter", "in": "query" }, { "type": "string", - "x-go-name": "ExcludeUID", "description": "Element UID to exclude from search results.", "name": "excludeUid", "in": "query" }, { "type": "string", - "x-go-name": "FolderFilter", "description": "A comma separated list of folder ID(s) to filter the elements by.", "name": "folderFilter", "in": "query" @@ -4559,7 +4408,6 @@ "type": "integer", "format": "int64", "default": 100, - "x-go-name": "PerPage", "description": "The number of results per page.", "name": "perPage", "in": "query" @@ -4568,7 +4416,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "description": "The page for a set of records, given that only perPage records are returned at a time. Numbering starts at 1.", "name": "page", "in": "query" @@ -4593,7 +4440,6 @@ "operationId": "createLibraryElement", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4633,7 +4479,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Name", "name": "library_element_name", "in": "path", "required": true @@ -4664,7 +4509,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "library_element_uid", "in": "path", "required": true @@ -4693,7 +4537,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "library_element_uid", "in": "path", "required": true @@ -4728,13 +4571,11 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "library_element_uid", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4777,7 +4618,6 @@ "parameters": [ { "type": "string", - "x-go-name": "UID", "name": "library_element_uid", "in": "path", "required": true @@ -4879,7 +4719,6 @@ "operationId": "postLicenseToken", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4904,7 +4743,6 @@ "operationId": "deleteLicenseToken", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -4943,7 +4781,6 @@ "operationId": "postRenewLicenseToken", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5027,7 +4864,6 @@ "operationId": "updateOrg", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5062,7 +4898,6 @@ "operationId": "updateOrgAddress", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5116,7 +4951,6 @@ "operationId": "addInvite", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5173,7 +5007,6 @@ "operationId": "updateOrgPreferences", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5206,7 +5039,6 @@ "operationId": "patchOrgPreferences", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5262,7 +5094,6 @@ "operationId": "addOrgUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5296,14 +5127,12 @@ "parameters": [ { "type": "string", - "x-go-name": "Query", "name": "query", "in": "query" }, { "type": "integer", "format": "int64", - "x-go-name": "Limit", "name": "limit", "in": "query" } @@ -5334,7 +5163,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -5365,7 +5193,6 @@ "operationId": "updateOrgUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5376,7 +5203,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -5409,7 +5235,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Code", "name": "invitation_code", "in": "path", "required": true @@ -5449,7 +5274,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "name": "page", "in": "query" }, @@ -5457,20 +5281,17 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "PerPage", "description": "Number of items per page\nThe totalCount field in the response can be used for pagination list E.g. if totalCount is equal to 100 teams and the perpage parameter is set to 10 then there are 10 pages of teams.", "name": "perpage", "in": "query" }, { "type": "string", - "x-go-name": "Name", "name": "name", "in": "query" }, { "type": "string", - "x-go-name": "Query", "description": "If set it will return results where the query value is contained in the name field. Query values with spaces need to be URL encoded.", "name": "query", "in": "query" @@ -5501,7 +5322,6 @@ "operationId": "createOrg", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5542,7 +5362,6 @@ "parameters": [ { "type": "string", - "x-go-name": "OrgName", "name": "org_name", "in": "path", "required": true @@ -5578,7 +5397,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5610,7 +5428,6 @@ "operationId": "adminUpdateOrg", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5621,7 +5438,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5658,7 +5474,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5693,7 +5508,6 @@ "operationId": "adminUpdateOrgAddress", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5704,7 +5518,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5739,7 +5552,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5778,7 +5590,6 @@ "parameters": [ { "type": "string", - "x-go-name": "QuotaTarget", "name": "quota_target", "in": "path", "required": true @@ -5786,13 +5597,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5835,7 +5644,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5863,7 +5671,6 @@ "operationId": "adminAddOrgUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5874,7 +5681,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5906,7 +5712,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5914,7 +5719,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -5945,7 +5749,6 @@ "operationId": "adminUpdateOrgUser", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -5956,7 +5759,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -5964,7 +5766,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -6018,7 +5819,6 @@ "operationId": "updateRecordingRule", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6051,7 +5851,6 @@ "operationId": "createRecordingRule", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6086,7 +5885,6 @@ "operationId": "testCreateRecordingRule", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6146,7 +5944,6 @@ "operationId": "createRecordingRuleWriteTarget", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6208,7 +6005,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "RecordingRuleID", "name": "recordingRuleID", "in": "path", "required": true @@ -6261,7 +6057,6 @@ "operationId": "createReport", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6300,7 +6095,6 @@ "operationId": "sendReport", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6415,7 +6209,6 @@ "operationId": "saveReportSettings", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6451,7 +6244,6 @@ "operationId": "sendTestEmail", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6492,7 +6284,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "ReportID", "name": "reportID", "in": "path", "required": true @@ -6528,13 +6319,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "ReportID", "name": "reportID", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6573,7 +6362,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "ReportID", "name": "reportID", "in": "path", "required": true @@ -6679,7 +6467,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Query", "description": "Search Query", "name": "query", "in": "query" @@ -6690,7 +6477,6 @@ "type": "string" }, "collectionFormat": "multi", - "x-go-name": "Tag", "description": "List of tags to search for", "name": "tag", "in": "query" @@ -6698,7 +6484,6 @@ { "enum": ["dash-folder", "dash-db"], "type": "string", - "x-go-name": "Type", "description": "Type to search for, dash-folder or dash-db", "name": "type", "in": "query" @@ -6709,7 +6494,6 @@ "type": "integer", "format": "int64" }, - "x-go-name": "DashboardIds", "description": "List of dashboard id’s to search for", "name": "dashboardIds", "in": "query" @@ -6720,14 +6504,12 @@ "type": "integer", "format": "int64" }, - "x-go-name": "FolderIds", "description": "List of folder id’s to search in for dashboards", "name": "folderIds", "in": "query" }, { "type": "boolean", - "x-go-name": "Starred", "description": "Flag indicating if only starred Dashboards should be returned", "name": "starred", "in": "query" @@ -6735,7 +6517,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "Limit", "description": "Limit the number of returned results (max 5000)", "name": "limit", "in": "query" @@ -6743,7 +6524,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "Page", "description": "Use this parameter to access hits beyond limit. Numbering starts at 1. limit param acts as page size. Only available in Grafana v6.2+.", "name": "page", "in": "query" @@ -6752,7 +6532,6 @@ "enum": ["Edit", "View"], "type": "string", "default": "View", - "x-go-name": "Permission", "description": "Set to `Edit` to return dashboards/folders that the user can edit", "name": "permission", "in": "query" @@ -6761,7 +6540,6 @@ "enum": ["alpha-asc", "alpha-desc"], "type": "string", "default": "alpha-asc", - "x-go-name": "Sort", "description": "Sort method; for listing all the possible sort methods use the search sorting endpoint.", "name": "sort", "in": "query" @@ -6821,7 +6599,6 @@ "operationId": "createSnapshot", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6855,7 +6632,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DeleteKey", "name": "deleteKey", "in": "path", "required": true @@ -6888,7 +6664,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Key", "name": "key", "in": "path", "required": true @@ -6913,7 +6688,6 @@ "parameters": [ { "type": "string", - "x-go-name": "Key", "name": "key", "in": "path", "required": true @@ -6942,7 +6716,6 @@ "operationId": "createTeam", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -6980,7 +6753,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "name": "page", "in": "query" }, @@ -6988,20 +6760,17 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "PerPage", "description": "Number of items per page\nThe totalCount field in the response can be used for pagination list E.g. if totalCount is equal to 100 teams and the perpage parameter is set to 10 then there are 10 pages of teams.", "name": "perpage", "in": "query" }, { "type": "string", - "x-go-name": "Name", "name": "name", "in": "query" }, { "type": "string", - "x-go-name": "Query", "description": "If set it will return results where the query value is contained in the name field. Query values with spaces need to be URL encoded.", "name": "query", "in": "query" @@ -7032,7 +6801,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "TeamID", "name": "teamId", "in": "path", "required": true @@ -7065,21 +6833,19 @@ "operationId": "addTeamGroupApi", "parameters": [ { - "x-go-name": "Body", + "type": "integer", + "format": "int64", + "name": "teamId", + "in": "path", + "required": true + }, + { "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/TeamGroupMapping" } - }, - { - "type": "integer", - "format": "int64", - "x-go-name": "TeamID", - "name": "teamId", - "in": "path", - "required": true } ], "responses": { @@ -7113,16 +6879,14 @@ { "type": "integer", "format": "int64", - "x-go-name": "GroupID", - "name": "groupId", + "name": "teamId", "in": "path", "required": true }, { "type": "integer", "format": "int64", - "x-go-name": "TeamID", - "name": "teamId", + "name": "groupId", "in": "path", "required": true } @@ -7157,7 +6921,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7188,13 +6951,11 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7231,7 +6992,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7264,7 +7024,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7295,7 +7054,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7328,13 +7086,11 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7345,7 +7101,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -7376,7 +7131,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7384,7 +7138,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -7417,7 +7170,6 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true @@ -7442,13 +7194,11 @@ "parameters": [ { "type": "string", - "x-go-name": "TeamID", "name": "team_id", "in": "path", "required": true }, { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7502,7 +7252,6 @@ "operationId": "updateSignedInUser", "parameters": [ { - "x-go-name": "Body", "description": "To change the email, name, login, theme, provide another one.", "name": "body", "in": "body", @@ -7579,7 +7328,6 @@ "parameters": [ { "type": "string", - "x-go-name": "FlagID", "name": "flag_id", "in": "path", "required": true @@ -7641,7 +7389,6 @@ "operationId": "changeUserPassword", "parameters": [ { - "x-go-name": "Body", "description": "To change the email, name, login, theme, provide another one.", "name": "body", "in": "body", @@ -7694,7 +7441,6 @@ "operationId": "updateUserPreferences", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7724,7 +7470,6 @@ "operationId": "patchUserPreferences", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7781,7 +7526,6 @@ "operationId": "revokeSignedINAuthTokenCmd", "parameters": [ { - "x-go-name": "Body", "name": "body", "in": "body", "required": true, @@ -7818,7 +7562,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DashboardID", "name": "dashboard_id", "in": "path", "required": true @@ -7850,7 +7593,6 @@ "parameters": [ { "type": "string", - "x-go-name": "DashboardID", "name": "dashboard_id", "in": "path", "required": true @@ -7907,7 +7649,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "OrgID", "name": "org_id", "in": "path", "required": true @@ -7943,7 +7684,6 @@ "type": "integer", "format": "int64", "default": 1000, - "x-go-name": "Limit", "description": "Limit the maximum number of users to return per page", "name": "perpage", "in": "query" @@ -7952,7 +7692,6 @@ "type": "integer", "format": "int64", "default": 1, - "x-go-name": "Page", "description": "Page index for starting fetching users", "name": "page", "in": "query" @@ -7982,7 +7721,6 @@ "parameters": [ { "type": "string", - "x-go-name": "LoginOrEmail", "description": "loginOrEmail of the user", "name": "loginOrEmail", "in": "query", @@ -8041,7 +7779,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -8074,13 +7811,11 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true }, { - "x-go-name": "Body", "description": "To change the email, name, login, theme, provide another one.", "name": "body", "in": "body", @@ -8119,7 +7854,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -8154,7 +7888,6 @@ { "type": "integer", "format": "int64", - "x-go-name": "UserID", "name": "user_id", "in": "path", "required": true @@ -8186,86 +7919,69 @@ "type": "object", "properties": { "enabled": { - "type": "boolean", - "x-go-name": "Enabled" + "type": "boolean" }, "nextSync": { "type": "string", - "format": "date-time", - "x-go-name": "NextSync" + "format": "date-time" }, "prevSync": { "$ref": "#/definitions/SyncResult" }, "schedule": { - "type": "string", - "x-go-name": "Schedule" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/ldapdebug" + } }, "ActiveUserStats": { "type": "object", "properties": { "active_admins_and_editors": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveAdminsAndEditors" + "format": "int64" }, "active_users": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveUsers" + "format": "int64" }, "active_viewers": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveViewers" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + } }, "AddApiKeyCommand": { "description": "COMMANDS", "type": "object", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "secondsToLive": { "type": "integer", - "format": "int64", - "x-go-name": "SecondsToLive" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AddBuiltInRoleCommand": { "type": "object", "properties": { "builtInRole": { "type": "string", - "enum": ["Viewer", " Editor", " Admin", " Grafana Admin"], - "x-go-name": "BuiltinRole" + "enum": ["Viewer", " Editor", " Admin", " Grafana Admin"] }, "global": { "description": "A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to create organization local assignment. Refer to the Built-in role assignments for more information.", - "type": "boolean", - "x-go-name": "Global" + "type": "boolean" }, "roleUid": { - "type": "string", - "x-go-name": "RoleUID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "AddDataSourceCommand": { "description": "Also acts as api DTO", @@ -8275,361 +7991,285 @@ "$ref": "#/definitions/DsAccess" }, "basicAuth": { - "type": "boolean", - "x-go-name": "BasicAuth" + "type": "boolean" }, "basicAuthPassword": { - "type": "string", - "x-go-name": "BasicAuthPassword" + "type": "string" }, "basicAuthUser": { - "type": "string", - "x-go-name": "BasicAuthUser" + "type": "string" }, "database": { - "type": "string", - "x-go-name": "Database" + "type": "string" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "jsonData": { "$ref": "#/definitions/Json" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" }, "secureJsonData": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureJsonData" + } }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "user": { - "type": "string", - "x-go-name": "User" + "type": "string" }, "withCredentials": { - "type": "boolean", - "x-go-name": "WithCredentials" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AddInviteForm": { "type": "object", "properties": { "loginOrEmail": { - "type": "string", - "x-go-name": "LoginOrEmail" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "sendEmail": { - "type": "boolean", - "x-go-name": "SendEmail" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AddOrgUserCommand": { "type": "object", "properties": { "loginOrEmail": { - "type": "string", - "x-go-name": "LoginOrEmail" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AddPermissionDTO": { "type": "object", "properties": { "builtinRole": { - "type": "string", - "x-go-name": "BuiltinRole" + "type": "string" }, "permission": { "$ref": "#/definitions/DsPermissionType" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/dspermissions" + } }, "AddTeamMemberCommand": { "type": "object", "properties": { "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AddTeamRoleCommand": { "type": "object", "properties": { "roleUid": { - "type": "string", - "x-go-name": "RoleUID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "AddUserRoleCommand": { "type": "object", "properties": { "global": { - "type": "boolean", - "x-go-name": "Global" + "type": "boolean" }, "roleUid": { - "type": "string", - "x-go-name": "RoleUID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "Address": { "type": "object", "properties": { "address1": { - "type": "string", - "x-go-name": "Address1" + "type": "string" }, "address2": { - "type": "string", - "x-go-name": "Address2" + "type": "string" }, "city": { - "type": "string", - "x-go-name": "City" + "type": "string" }, "country": { - "type": "string", - "x-go-name": "Country" + "type": "string" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "zipCode": { - "type": "string", - "x-go-name": "ZipCode" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AdminCreateUserForm": { "type": "object", "properties": { "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AdminStats": { "type": "object", "properties": { "activeAdmins": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveAdmins" + "format": "int64" }, "activeEditors": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveEditors" + "format": "int64" }, "activeSessions": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveSessions" + "format": "int64" }, "activeUsers": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveUsers" + "format": "int64" }, "activeViewers": { "type": "integer", - "format": "int64", - "x-go-name": "ActiveViewers" + "format": "int64" }, "admins": { "type": "integer", - "format": "int64", - "x-go-name": "Admins" + "format": "int64" }, "alerts": { "type": "integer", - "format": "int64", - "x-go-name": "Alerts" + "format": "int64" }, "dailyActiveAdmins": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveAdmins" + "format": "int64" }, "dailyActiveEditors": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveEditors" + "format": "int64" }, "dailyActiveSessions": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveSessions" + "format": "int64" }, "dailyActiveUsers": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveUsers" + "format": "int64" }, "dailyActiveViewers": { "type": "integer", - "format": "int64", - "x-go-name": "DailyActiveViewers" + "format": "int64" }, "dashboards": { "type": "integer", - "format": "int64", - "x-go-name": "Dashboards" + "format": "int64" }, "datasources": { "type": "integer", - "format": "int64", - "x-go-name": "Datasources" + "format": "int64" }, "editors": { "type": "integer", - "format": "int64", - "x-go-name": "Editors" + "format": "int64" }, "monthlyActiveUsers": { "type": "integer", - "format": "int64", - "x-go-name": "MonthlyActiveUsers" + "format": "int64" }, "orgs": { "type": "integer", - "format": "int64", - "x-go-name": "Orgs" + "format": "int64" }, "playlists": { "type": "integer", - "format": "int64", - "x-go-name": "Playlists" + "format": "int64" }, "snapshots": { "type": "integer", - "format": "int64", - "x-go-name": "Snapshots" + "format": "int64" }, "stars": { "type": "integer", - "format": "int64", - "x-go-name": "Stars" + "format": "int64" }, "tags": { "type": "integer", - "format": "int64", - "x-go-name": "Tags" + "format": "int64" }, "users": { "type": "integer", - "format": "int64", - "x-go-name": "Users" + "format": "int64" }, "viewers": { "type": "integer", - "format": "int64", - "x-go-name": "Viewers" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AdminUpdateUserPasswordForm": { "type": "object", "properties": { "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AdminUpdateUserPermissionsForm": { "type": "object", "properties": { "isGrafanaAdmin": { - "type": "boolean", - "x-go-name": "IsGrafanaAdmin" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Alert": { "type": "object", @@ -8705,184 +8345,148 @@ "type": "integer", "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AlertListItemDTO": { "type": "object", "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardSlug": { - "type": "string", - "x-go-name": "DashboardSlug" + "type": "string" }, "dashboardUid": { - "type": "string", - "x-go-name": "DashboardUid" + "type": "string" }, "evalData": { "$ref": "#/definitions/Json" }, "evalDate": { "type": "string", - "format": "date-time", - "x-go-name": "EvalDate" + "format": "date-time" }, "executionError": { - "type": "string", - "x-go-name": "ExecutionError" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "newStateDate": { "type": "string", - "format": "date-time", - "x-go-name": "NewStateDate" + "format": "date-time" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" }, "state": { "$ref": "#/definitions/AlertStateType" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AlertNotification": { "type": "object", "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureFields": { "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "SecureFields" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertNotificationLookup": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertStateInfoDTO": { "type": "object", "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "newStateDate": { "type": "string", - "format": "date-time", - "x-go-name": "NewStateDate" + "format": "date-time" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" }, "state": { "$ref": "#/definitions/AlertStateType" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "AlertStateType": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "type": "string" }, "AlertTestCommand": { "type": "object", @@ -8892,82 +8496,66 @@ }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertTestResult": { "type": "object", "properties": { "conditionEvals": { - "type": "string", - "x-go-name": "ConditionEvals" + "type": "string" }, "error": { - "type": "string", - "x-go-name": "Error" + "type": "string" }, "firing": { - "type": "boolean", - "x-go-name": "Firing" + "type": "boolean" }, "logs": { "type": "array", "items": { "$ref": "#/definitions/AlertTestResultLog" - }, - "x-go-name": "Logs" + } }, "matches": { "type": "array", "items": { "$ref": "#/definitions/EvalMatch" - }, - "x-go-name": "EvalMatches" + } }, "state": { "$ref": "#/definitions/AlertStateType" }, "timeMs": { - "type": "string", - "x-go-name": "TimeMs" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AlertTestResultLog": { "type": "object", "properties": { "data": { - "type": "object", - "x-go-name": "Data" + "type": "object" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AnnotationActions": { "type": "object", "properties": { "canAdd": { - "type": "boolean", - "x-go-name": "CanAdd" + "type": "boolean" }, "canDelete": { - "type": "boolean", - "x-go-name": "CanDelete" + "type": "boolean" }, "canEdit": { - "type": "boolean", - "x-go-name": "CanEdit" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "AnnotationPermission": { "type": "object", @@ -8978,8 +8566,7 @@ "organization": { "$ref": "#/definitions/AnnotationActions" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "ApiKeyDTO": { "type": "object", @@ -8989,91 +8576,72 @@ }, "expiration": { "type": "string", - "format": "date-time", - "x-go-name": "Expiration" + "format": "date-time" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "BrandingOptionsDTO": { "type": "object", "properties": { "emailFooterLink": { - "type": "string", - "x-go-name": "EmailFooterLink" + "type": "string" }, "emailFooterMode": { - "type": "string", - "x-go-name": "EmailFooterMode" + "type": "string" }, "emailFooterText": { - "type": "string", - "x-go-name": "EmailFooterText" + "type": "string" }, "emailLogoUrl": { - "type": "string", - "x-go-name": "EmailLogo" + "type": "string" }, "reportLogoUrl": { - "type": "string", - "x-go-name": "ReportLogo" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "CalculateDiffTarget": { "type": "object", "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "unsavedDashboard": { "$ref": "#/definitions/Json" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "ChangeUserPasswordCommand": { "type": "object", "properties": { "newPassword": { - "type": "string", - "x-go-name": "NewPassword" + "type": "string" }, "oldPassword": { - "type": "string", - "x-go-name": "OldPassword" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "ConfFloat64": { "description": "ConfFloat64 is a float64. It Marshals float64 values of NaN of Inf\nto null.", "type": "number", - "format": "double", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "format": "double" }, "ConfigDTO": { "description": "ConfigDTO is model representation in transfer", @@ -9081,140 +8649,112 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardID" + "format": "int64" }, "dashboardName": { - "type": "string", - "x-go-name": "DashboardName" + "type": "string" }, "dashboardUid": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "dashboards": { "type": "array", "items": { "$ref": "#/definitions/DashboardDTO" - }, - "x-go-name": "Dashboards" + } }, "enableCsv": { - "type": "boolean", - "x-go-name": "EnableCSV" + "type": "boolean" }, "enableDashboardUrl": { - "type": "boolean", - "x-go-name": "EnableDashboardURL" + "type": "boolean" }, "formats": { "type": "array", "items": { "$ref": "#/definitions/Type" - }, - "x-go-name": "Formats" + } }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "options": { "$ref": "#/definitions/ReportOptionsDTO" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgID" + "format": "int64" }, "recipients": { - "type": "string", - "x-go-name": "Recipients" + "type": "string" }, "replyTo": { - "type": "string", - "x-go-name": "ReplyTo" + "type": "string" }, "schedule": { "$ref": "#/definitions/ScheduleDTO" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "templateVars": { - "type": "object", - "x-go-name": "TemplateVars" + "type": "object" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserID" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "CreateAlertNotificationCommand": { "type": "object", "properties": { "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureSettings": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureSettings" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CreateDashboardSnapshotCommand": { "type": "object", @@ -9228,48 +8768,39 @@ }, "deleteKey": { "description": "Unique key used to delete the snapshot. It is different from the `key` so that only the creator can delete the snapshot. Required if `external` is `true`.", - "type": "string", - "x-go-name": "DeleteKey" + "type": "string" }, "expires": { "description": "When the snapshot should expire in seconds in seconds. Default is never to expire.", "type": "integer", "format": "int64", - "default": 0, - "x-go-name": "Expires" + "default": 0 }, "external": { "description": "these are passed when storing an external snapshot ref\nSave the snapshot on an external server rather than locally.", "type": "boolean", - "default": false, - "x-go-name": "External" + "default": false }, "key": { "description": "Define the unique key. Required if `external` is `true`.", - "type": "string", - "x-go-name": "Key" + "type": "string" }, "name": { "description": "Snapshot name", - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CreateFolderCommand": { "type": "object", "properties": { "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CreateLibraryElementCommand": { "description": "CreateLibraryElementCommand is the command for adding a LibraryElement", @@ -9278,328 +8809,258 @@ "folderId": { "description": "ID of the folder where the library element is stored.", "type": "integer", - "format": "int64", - "x-go-name": "FolderID" + "format": "int64" }, "folderUid": { "description": "UID of the folder where the library element is stored.", - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "kind": { "description": "Kind of element to create, Use 1 for library panels or 2 for c.\nDescription:\n1 - library panels\n2 - library variables", "type": "integer", "format": "int64", - "enum": [1, 2], - "x-go-name": "Kind" + "enum": [1, 2] }, "model": { "description": "The JSON model for the library element.", - "type": "object", - "x-go-name": "Model" + "type": "object" }, "name": { "description": "Name of the library element.", - "type": "string", - "x-go-name": "Name" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "CreateOrUpdateConfigCmd": { "type": "object", "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardID" + "format": "int64" }, "dashboardUid": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "dashboards": { "type": "array", "items": { "$ref": "#/definitions/DashboardDTO" - }, - "x-go-name": "Dashboards" + } }, "enableCsv": { - "type": "boolean", - "x-go-name": "EnableCSV" + "type": "boolean" }, "enableDashboardUrl": { - "type": "boolean", - "x-go-name": "EnableDashboardURL" + "type": "boolean" }, "formats": { "type": "array", "items": { "$ref": "#/definitions/Type" - }, - "x-go-name": "Formats" + } }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "options": { "$ref": "#/definitions/ReportOptionsDTO" }, "recipients": { - "type": "string", - "x-go-name": "Recipients" + "type": "string" }, "replyTo": { - "type": "string", - "x-go-name": "ReplyTo" + "type": "string" }, "schedule": { "$ref": "#/definitions/ScheduleDTO" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "templateVars": { - "type": "object", - "x-go-name": "TemplateVars" + "type": "object" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "CreateOrgCommand": { "type": "object", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CreateRoleWithPermissionsCommand": { "type": "object", "properties": { "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "group": { - "type": "string", - "x-go-name": "Group" + "type": "string" }, "hidden": { - "type": "boolean", - "x-go-name": "Hidden" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/Permission" - }, - "x-go-name": "Permissions" + } }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "CreateTeamCommand": { "type": "object", "properties": { "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "CustomPermissionsRecordDTO": { "type": "object", "properties": { "customPermissions": { - "type": "string", - "x-go-name": "CustomPermissions" + "type": "string" }, "granteeName": { - "type": "string", - "x-go-name": "GranteeName" + "type": "string" }, "granteeType": { - "type": "string", - "x-go-name": "GranteeType" + "type": "string" }, "granteeUrl": { - "type": "string", - "x-go-name": "GranteeURL" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "isFolder": { - "type": "boolean", - "x-go-name": "IsFolder" + "type": "boolean" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgID" + "format": "int64" }, "orgRole": { - "type": "string", - "x-go-name": "OrgRole" + "type": "string" }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "URL" + "type": "string" }, "usersCount": { "type": "integer", - "format": "int64", - "x-go-name": "UsersCount" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + } }, "DashboardAclInfoDTO": { "type": "object", "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "inherited": { - "type": "boolean", - "x-go-name": "Inherited" + "type": "boolean" }, "isFolder": { - "type": "boolean", - "x-go-name": "IsFolder" + "type": "boolean" }, "permission": { "$ref": "#/definitions/PermissionType" }, "permissionName": { - "type": "string", - "x-go-name": "PermissionName" + "type": "string" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "team": { - "type": "string", - "x-go-name": "Team" + "type": "string" }, "teamAvatarUrl": { - "type": "string", - "x-go-name": "TeamAvatarUrl" + "type": "string" }, "teamEmail": { - "type": "string", - "x-go-name": "TeamEmail" + "type": "string" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "userAvatarUrl": { - "type": "string", - "x-go-name": "UserAvatarUrl" + "type": "string" }, "userEmail": { - "type": "string", - "x-go-name": "UserEmail" + "type": "string" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" }, "userLogin": { - "type": "string", - "x-go-name": "UserLogin" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardAclUpdateItem": { "type": "object", @@ -9609,22 +9070,17 @@ }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamID" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserID" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DashboardDTO": { "type": "object", @@ -9633,14 +9089,12 @@ "$ref": "#/definitions/DashboardReportDTO" }, "reportVariables": { - "type": "object", - "x-go-name": "ReportVariables" + "type": "object" }, "timeRange": { "$ref": "#/definitions/TimeRangeDTO" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "DashboardFullWithMeta": { "type": "object", @@ -9651,8 +9105,7 @@ "meta": { "$ref": "#/definitions/DashboardMeta" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DashboardMeta": { "type": "object", @@ -9661,145 +9114,112 @@ "$ref": "#/definitions/AnnotationPermission" }, "canAdmin": { - "type": "boolean", - "x-go-name": "CanAdmin" + "type": "boolean" }, "canDelete": { - "type": "boolean", - "x-go-name": "CanDelete" + "type": "boolean" }, "canEdit": { - "type": "boolean", - "x-go-name": "CanEdit" + "type": "boolean" }, "canSave": { - "type": "boolean", - "x-go-name": "CanSave" + "type": "boolean" }, "canStar": { - "type": "boolean", - "x-go-name": "CanStar" + "type": "boolean" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { - "type": "string", - "x-go-name": "CreatedBy" + "type": "string" }, "expires": { "type": "string", - "format": "date-time", - "x-go-name": "Expires" + "format": "date-time" }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "folderTitle": { - "type": "string", - "x-go-name": "FolderTitle" + "type": "string" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUid" + "type": "string" }, "folderUrl": { - "type": "string", - "x-go-name": "FolderUrl" + "type": "string" }, "hasAcl": { - "type": "boolean", - "x-go-name": "HasAcl" + "type": "boolean" }, "isFolder": { - "type": "boolean", - "x-go-name": "IsFolder" + "type": "boolean" }, "isHome": { - "type": "boolean", - "x-go-name": "IsHome" + "type": "boolean" }, "isPublic": { - "type": "boolean", - "x-go-name": "IsPublic" + "type": "boolean" }, "isSnapshot": { - "type": "boolean", - "x-go-name": "IsSnapshot" + "type": "boolean" }, "isStarred": { - "type": "boolean", - "x-go-name": "IsStarred" + "type": "boolean" }, "provisioned": { - "type": "boolean", - "x-go-name": "Provisioned" + "type": "boolean" }, "provisionedExternalId": { - "type": "string", - "x-go-name": "ProvisionedExternalId" + "type": "string" }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "updatedBy": { - "type": "string", - "x-go-name": "UpdatedBy" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DashboardRedirect": { "type": "object", "properties": { "redirectUri": { - "type": "string", - "x-go-name": "RedirectUri" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DashboardReportDTO": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "DashboardSnapshot": { "description": "DashboardSnapshot model", @@ -9857,8 +9277,7 @@ "type": "integer", "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardSnapshotDTO": { "description": "DashboardSnapshotDTO without dashboard map", @@ -9866,67 +9285,53 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "expires": { "type": "string", - "format": "date-time", - "x-go-name": "Expires" + "format": "date-time" }, "external": { - "type": "boolean", - "x-go-name": "External" + "type": "boolean" }, "externalUrl": { - "type": "string", - "x-go-name": "ExternalUrl" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "key": { - "type": "string", - "x-go-name": "Key" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardTagCloudItem": { "type": "object", "properties": { "count": { "type": "integer", - "format": "int64", - "x-go-name": "Count" + "format": "int64" }, "term": { - "type": "string", - "x-go-name": "Term" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardVersionDTO": { "description": "DashboardVersionDTO represents a dashboard version, without the dashboard\nmap.", @@ -9934,48 +9339,38 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { - "type": "string", - "x-go-name": "CreatedBy" + "type": "string" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardUid": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "parentVersion": { "type": "integer", - "format": "int64", - "x-go-name": "ParentVersion" + "format": "int64" }, "restoredFrom": { "type": "integer", - "format": "int64", - "x-go-name": "RestoredFrom" + "format": "int64" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DashboardVersionMeta": { "description": "DashboardVersionMeta extends the dashboard version model with the names\nassociated with the UserIds, overriding the field with the same name from\nthe DashboardVersion model.", @@ -9983,70 +9378,56 @@ "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { - "type": "string", - "x-go-name": "CreatedBy" + "type": "string" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "data": { "$ref": "#/definitions/Json" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "parentVersion": { "type": "integer", - "format": "int64", - "x-go-name": "ParentVersion" + "format": "int64" }, "restoredFrom": { "type": "integer", - "format": "int64", - "x-go-name": "RestoredFrom" + "format": "int64" }, "uid": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "DataLink": { "description": "DataLink define what", "type": "object", "properties": { "targetBlank": { - "type": "boolean", - "x-go-name": "TargetBlank" + "type": "boolean" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "URL" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "DataResponse": { "description": "A map of RefIDs (unique query identifers) to this type makes up the Responses property of a QueryDataResponse.\nThe Error property is used to allow for partial success responses from the containing QueryDataResponse.", @@ -10060,8 +9441,7 @@ "Frames": { "$ref": "#/definitions/Frames" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/backend" + } }, "DataSource": { "type": "object", @@ -10073,95 +9453,75 @@ "$ref": "#/definitions/Metadata" }, "basicAuth": { - "type": "boolean", - "x-go-name": "BasicAuth" + "type": "boolean" }, "basicAuthPassword": { - "type": "string", - "x-go-name": "BasicAuthPassword" + "type": "string" }, "basicAuthUser": { - "type": "string", - "x-go-name": "BasicAuthUser" + "type": "string" }, "database": { - "type": "string", - "x-go-name": "Database" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "jsonData": { "$ref": "#/definitions/Json" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" }, "readOnly": { - "type": "boolean", - "x-go-name": "ReadOnly" + "type": "boolean" }, "secureJsonFields": { "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "SecureJsonFields" + } }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "typeLogoUrl": { - "type": "string", - "x-go-name": "TypeLogoUrl" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "user": { - "type": "string", - "x-go-name": "User" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" }, "withCredentials": { - "type": "boolean", - "x-go-name": "WithCredentials" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DataSourceList": { "type": "array", "items": { "$ref": "#/definitions/DataSourceListItemDTO" - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DataSourceListItemDTO": { "type": "object", @@ -10170,94 +9530,74 @@ "$ref": "#/definitions/DsAccess" }, "basicAuth": { - "type": "boolean", - "x-go-name": "BasicAuth" + "type": "boolean" }, "database": { - "type": "string", - "x-go-name": "Database" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "jsonData": { "$ref": "#/definitions/Json" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" }, "readOnly": { - "type": "boolean", - "x-go-name": "ReadOnly" + "type": "boolean" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "typeLogoUrl": { - "type": "string", - "x-go-name": "TypeLogoUrl" + "type": "string" }, "typeName": { - "type": "string", - "x-go-name": "TypeName" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "user": { - "type": "string", - "x-go-name": "User" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "DeleteTokenCommand": { "type": "object", "properties": { "instance": { - "type": "string", - "x-go-name": "Instance" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + } }, "DsAccess": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "type": "string" }, "DsPermissionType": { "description": "Datasource permission\nDescription:\n`0` - No Access\n`1` - Query\nEnum: 0,1", "type": "integer", - "format": "int64", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "format": "int64" }, "Duration": { "description": "A Duration represents the elapsed time between two instants\nas an int64 nanosecond count. The representation limits the\nlargest representable duration to approximately 290 years.", "type": "integer", - "format": "int64", - "x-go-package": "time" + "format": "int64" }, "ErrorResponseBody": { "type": "object", @@ -10265,41 +9605,34 @@ "properties": { "error": { "description": "Error An optional detailed description of the actual error. Only included if running in developer mode.", - "type": "string", - "x-go-name": "Error" + "type": "string" }, "message": { "description": "a human readable version of the error", - "type": "string", - "x-go-name": "Message" + "type": "string" }, "status": { "description": "Status An optional status to denote the cause of the error.\n\nFor example, a 412 Precondition Failed error may include additional information of why that error happened.", - "type": "string", - "x-go-name": "Status" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/docs/definitions" + } }, "EvalMatch": { "type": "object", "properties": { "metric": { - "type": "string", - "x-go-name": "Metric" + "type": "string" }, "tags": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "Tags" + } }, "value": { "$ref": "#/definitions/Float" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "FailedUser": { "description": "FailedUser holds the information of an user that failed", @@ -10311,8 +9644,7 @@ "Login": { "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/ldapsync" + } }, "Field": { "description": "A Field is essentially a slice of various types with extra properties and methods.\nSee NewField() for supported types.\n\nThe slice data in the Field is a not exported, so methods on the Field are used to to manipulate its data.", @@ -10327,11 +9659,9 @@ }, "name": { "description": "Name is default identifier of the field. The name does not have to be unique, but the combination\nof name and Labels should be unique for proper behavior in all situations.", - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "FieldConfig": { "type": "object", @@ -10342,55 +9672,46 @@ "type": "object", "additionalProperties": { "type": "object" - }, - "x-go-name": "Color" + } }, "custom": { "description": "Panel Specific Values", "type": "object", "additionalProperties": { "type": "object" - }, - "x-go-name": "Custom" + } }, "decimals": { "type": "integer", - "format": "uint16", - "x-go-name": "Decimals" + "format": "uint16" }, "description": { "description": "Description is human readable field metadata", - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { "description": "DisplayName overrides Grafana default naming, should not be used from a data source", - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "displayNameFromDS": { "description": "DisplayNameFromDS overrides Grafana default naming in a better way that allows users to override it easily.", - "type": "string", - "x-go-name": "DisplayNameFromDS" + "type": "string" }, "filterable": { "description": "Filterable indicates if the Field's data can be filtered by additional calls.", - "type": "boolean", - "x-go-name": "Filterable" + "type": "boolean" }, "interval": { "description": "Interval indicates the expected regular step between values in the series.\nWhen an interval exists, consumers can identify \"missing\" values when the expected value is not present.\nThe grafana timeseries visualization will render disconnected values when missing values are found it the time field.\nThe interval uses the same units as the values. For time.Time, this is defined in milliseconds.", "type": "number", - "format": "double", - "x-go-name": "Interval" + "format": "double" }, "links": { "description": "The behavior when clicking on a result", "type": "array", "items": { "$ref": "#/definitions/DataLink" - }, - "x-go-name": "Links" + } }, "mappings": { "$ref": "#/definitions/ValueMappings" @@ -10403,29 +9724,24 @@ }, "noValue": { "description": "Alternative to empty string", - "type": "string", - "x-go-name": "NoValue" + "type": "string" }, "path": { "description": "Path is an explicit path to the field in the datasource. When the frame meta includes a path,\nthis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used as an identifier to update values in a subsequent request", - "type": "string", - "x-go-name": "Path" + "type": "string" }, "thresholds": { "$ref": "#/definitions/ThresholdsConfig" }, "unit": { "description": "Numeric Options", - "type": "string", - "x-go-name": "Unit" + "type": "string" }, "writeable": { "description": "Writeable indicates that the datasource knows how to update this value", - "type": "boolean", - "x-go-name": "Writeable" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "FindTagsResult": { "type": "object", @@ -10435,11 +9751,9 @@ "type": "array", "items": { "$ref": "#/definitions/TagsDTO" - }, - "x-go-name": "Tags" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/annotations" + } }, "Float": { "description": "It does not consider zero values to be null.\nIt will decode to null, not zero, if null.", @@ -10453,93 +9767,73 @@ "Valid": { "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/components/null" + } }, "Folder": { "type": "object", "properties": { "canAdmin": { - "type": "boolean", - "x-go-name": "CanAdmin" + "type": "boolean" }, "canDelete": { - "type": "boolean", - "x-go-name": "CanDelete" + "type": "boolean" }, "canEdit": { - "type": "boolean", - "x-go-name": "CanEdit" + "type": "boolean" }, "canSave": { - "type": "boolean", - "x-go-name": "CanSave" + "type": "boolean" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { - "type": "string", - "x-go-name": "CreatedBy" + "type": "string" }, "hasAcl": { - "type": "boolean", - "x-go-name": "HasAcl" + "type": "boolean" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "updatedBy": { - "type": "string", - "x-go-name": "UpdatedBy" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "FolderSearchHit": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Frame": { "description": "Each Field is well typed by its FieldType and supports optional Labels.\n\nA Frame is a general data container for Grafana. A Frame can be table data\nor time series data depending on its content and field types.", @@ -10564,8 +9858,7 @@ "description": "RefID is a property that can be set to match a Frame to its originating query.", "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "FrameMeta": { "description": "https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/types/data.ts#L11\nNOTE -- in javascript this can accept any `[key: string]: any;` however\nthis interface only exposes the values we want to be exposed", @@ -10574,36 +9867,30 @@ "properties": { "channel": { "description": "Channel is the path to a stream in grafana live that has real-time updates for this data.", - "type": "string", - "x-go-name": "Channel" + "type": "string" }, "custom": { "description": "Custom datasource specific values.", - "type": "object", - "x-go-name": "Custom" + "type": "object" }, "executedQueryString": { "description": "ExecutedQueryString is the raw query sent to the underlying system. All macros and templating\nhave been applied. When metadata contains this value, it will be shown in the query inspector.", - "type": "string", - "x-go-name": "ExecutedQueryString" + "type": "string" }, "notices": { "description": "Notices provide additional information about the data in the Frame that\nGrafana can display to the user in the user interface.", "type": "array", "items": { "$ref": "#/definitions/Notice" - }, - "x-go-name": "Notices" + } }, "path": { "description": "Path is a browsable path on the datasource.", - "type": "string", - "x-go-name": "Path" + "type": "string" }, "pathSeparator": { "description": "PathSeparator defines the separator pattern to decode a hiearchy. The default separator is '/'.", - "type": "string", - "x-go-name": "PathSeparator" + "type": "string" }, "preferredVisualisationType": { "$ref": "#/definitions/VisType" @@ -10613,19 +9900,16 @@ "type": "array", "items": { "$ref": "#/definitions/QueryStat" - }, - "x-go-name": "Stats" + } }, "type": { "$ref": "#/definitions/FrameType" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "FrameType": { "description": "A FrameType string, when present in a frame's metadata, asserts that the\nframe's structure conforms to the FrameType's specification.\nThis property is currently optional, so FrameType may be FrameTypeUnknown even if the properties of\nthe Frame correspond to a defined FrameType.", - "type": "string", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "type": "string" }, "Frames": { "description": "It is the main data container within a backend.DataResponse.", @@ -10633,8 +9917,7 @@ "title": "Frames is a slice of Frame pointers.", "items": { "$ref": "#/definitions/Frame" - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "GetAnnotationTagsResponse": { "type": "object", @@ -10643,8 +9926,7 @@ "result": { "$ref": "#/definitions/FindTagsResult" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/annotations" + } }, "GetHomeDashboardResponse": { "title": "Get home dashboard response.", @@ -10664,119 +9946,94 @@ "type": "object", "properties": { "redirectUri": { - "type": "string", - "x-go-name": "RedirectUri" + "type": "string" } } } - ], - "x-go-name": "GetHomeDashboardResponseBody", - "x-go-package": "github.com/grafana/grafana/pkg/api/docs/definitions" + ] }, "Hit": { "type": "object", "properties": { "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderID" + "format": "int64" }, "folderTitle": { - "type": "string", - "x-go-name": "FolderTitle" + "type": "string" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "folderUrl": { - "type": "string", - "x-go-name": "FolderURL" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "isStarred": { - "type": "boolean", - "x-go-name": "IsStarred" + "type": "boolean" }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "sortMeta": { "type": "integer", - "format": "int64", - "x-go-name": "SortMeta" + "format": "int64" }, "sortMetaName": { - "type": "string", - "x-go-name": "SortMetaName" + "type": "string" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "type": { "$ref": "#/definitions/HitType" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "uri": { - "type": "string", - "x-go-name": "URI" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "URL" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "HitList": { "type": "array", "items": { "$ref": "#/definitions/Hit" - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "HitType": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "type": "string" }, "ImportDashboardInput": { "type": "object", "title": "ImportDashboardInput definition of input parameters when importing a dashboard.", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "pluginId": { - "type": "string", - "x-go-name": "PluginId" + "type": "string" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "value": { - "type": "string", - "x-go-name": "Value" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/dashboardimport" + } }, "ImportDashboardRequest": { "type": "object", @@ -10787,34 +10044,27 @@ }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUid" + "type": "string" }, "inputs": { "type": "array", "items": { "$ref": "#/definitions/ImportDashboardInput" - }, - "x-go-name": "Inputs" + } }, "overwrite": { - "type": "boolean", - "x-go-name": "Overwrite" + "type": "boolean" }, "path": { - "type": "string", - "x-go-name": "Path" + "type": "string" }, "pluginId": { - "type": "string", - "x-go-name": "PluginId" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/dashboardimport" + } }, "ImportDashboardResponse": { "type": "object", @@ -10822,177 +10072,140 @@ "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "imported": { - "type": "boolean", - "x-go-name": "Imported" + "type": "boolean" }, "importedRevision": { "type": "integer", - "format": "int64", - "x-go-name": "ImportedRevision" + "format": "int64" }, "importedUri": { - "type": "string", - "x-go-name": "ImportedUri" + "type": "string" }, "importedUrl": { - "type": "string", - "x-go-name": "ImportedUrl" + "type": "string" }, "path": { - "type": "string", - "x-go-name": "Path" + "type": "string" }, "pluginId": { - "type": "string", - "x-go-name": "PluginId" + "type": "string" }, "removed": { - "type": "boolean", - "x-go-name": "Removed" + "type": "boolean" }, "revision": { "type": "integer", - "format": "int64", - "x-go-name": "Revision" + "format": "int64" }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/dashboardimport" + } }, "InspectType": { "type": "integer", "format": "int64", - "title": "InspectType is a type for the Inspect property of a Notice.", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "title": "InspectType is a type for the Inspect property of a Notice." }, "ItemDTO": { "type": "object", "properties": { "alertId": { "type": "integer", - "format": "int64", - "x-go-name": "AlertId" + "format": "int64" }, "alertName": { - "type": "string", - "x-go-name": "AlertName" + "type": "string" }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "created": { "type": "integer", - "format": "int64", - "x-go-name": "Created" + "format": "int64" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardUID": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "data": { "$ref": "#/definitions/Json" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "newState": { - "type": "string", - "x-go-name": "NewState" + "type": "string" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" }, "prevState": { - "type": "string", - "x-go-name": "PrevState" + "type": "string" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "time": { "type": "integer", - "format": "int64", - "x-go-name": "Time" + "format": "int64" }, "timeEnd": { "type": "integer", - "format": "int64", - "x-go-name": "TimeEnd" + "format": "int64" }, "updated": { "type": "integer", - "format": "int64", - "x-go-name": "Updated" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/annotations" + } }, "Json": { - "type": "object", - "x-go-package": "github.com/grafana/grafana/pkg/components/simplejson" + "type": "object" }, "Labels": { "description": "Labels are used to add metadata to an object. The JSON will always be sorted keys", "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "LibraryElementConnectionDTO": { "type": "object", @@ -11000,34 +10213,28 @@ "properties": { "connectionId": { "type": "integer", - "format": "int64", - "x-go-name": "ConnectionID" + "format": "int64" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { "$ref": "#/definitions/LibraryElementDTOMetaUser" }, "elementId": { "type": "integer", - "format": "int64", - "x-go-name": "ElementID" + "format": "int64" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "kind": { "type": "integer", - "format": "int64", - "x-go-name": "Kind" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementConnectionsResponse": { "type": "object", @@ -11037,70 +10244,56 @@ "type": "array", "items": { "$ref": "#/definitions/LibraryElementConnectionDTO" - }, - "x-go-name": "Result" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementDTO": { "type": "object", "title": "LibraryElementDTO is the frontend DTO for entities.", "properties": { "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderID" + "format": "int64" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "kind": { "type": "integer", - "format": "int64", - "x-go-name": "Kind" + "format": "int64" }, "meta": { "$ref": "#/definitions/LibraryElementDTOMeta" }, "model": { - "type": "object", - "x-go-name": "Model" + "type": "object" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgID" + "format": "int64" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementDTOMeta": { "type": "object", @@ -11108,55 +10301,45 @@ "properties": { "connectedDashboards": { "type": "integer", - "format": "int64", - "x-go-name": "ConnectedDashboards" + "format": "int64" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "createdBy": { "$ref": "#/definitions/LibraryElementDTOMetaUser" }, "folderName": { - "type": "string", - "x-go-name": "FolderName" + "type": "string" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "updatedBy": { "$ref": "#/definitions/LibraryElementDTOMetaUser" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementDTOMetaUser": { "type": "object", "title": "LibraryElementDTOMetaUser is the meta information for user that creates/changes the library element.", "properties": { "avatarUrl": { - "type": "string", - "x-go-name": "AvatarURL" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementResponse": { "type": "object", @@ -11165,8 +10348,7 @@ "result": { "$ref": "#/definitions/LibraryElementDTO" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementSearchResponse": { "type": "object", @@ -11175,8 +10357,7 @@ "result": { "$ref": "#/definitions/LibraryElementSearchResult" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "LibraryElementSearchResult": { "type": "object", @@ -11186,72 +10367,59 @@ "type": "array", "items": { "$ref": "#/definitions/LibraryElementDTO" - }, - "x-go-name": "Elements" + } }, "page": { "type": "integer", - "format": "int64", - "x-go-name": "Page" + "format": "int64" }, "perPage": { "type": "integer", - "format": "int64", - "x-go-name": "PerPage" + "format": "int64" }, "totalCount": { "type": "integer", - "format": "int64", - "x-go-name": "TotalCount" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "MassDeleteAnnotationsCmd": { "type": "object", "properties": { "annotationId": { "type": "integer", - "format": "int64", - "x-go-name": "AnnotationId" + "format": "int64" }, "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardUID": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Metadata": { "description": "Metadata contains user accesses for a given resource\nEx: map[string]bool{\"create\":true, \"delete\": true}", "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/accesscontrol" + } }, "MetricRequest": { "type": "object", "required": ["from", "to", "queries"], "properties": { "debug": { - "type": "boolean", - "x-go-name": "Debug" + "type": "boolean" }, "from": { "description": "From Start time in epoch timestamps in milliseconds or relative using Grafana time units.", "type": "string", - "x-go-name": "From", "example": "now-1h" }, "queries": { @@ -11260,7 +10428,6 @@ "items": { "$ref": "#/definitions/Json" }, - "x-go-name": "Queries", "example": [ { "datasource": { @@ -11277,33 +10444,26 @@ "to": { "description": "To End time in epoch timestamps in milliseconds or relative using Grafana time units.", "type": "string", - "x-go-name": "To", "example": "now" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "NavLink": { "type": "object", "properties": { "id": { - "type": "string", - "x-go-name": "ID" + "type": "string" }, "target": { - "type": "string", - "x-go-name": "Target" + "type": "string" }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/preference" + } }, "NavbarPreference": { "type": "object", @@ -11312,30 +10472,24 @@ "type": "array", "items": { "$ref": "#/definitions/NavLink" - }, - "x-go-name": "SavedItems" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/preference" + } }, "NewApiKeyResult": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "key": { - "type": "string", - "x-go-name": "Key" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Notice": { "type": "object", @@ -11346,81 +10500,66 @@ }, "link": { "description": "Link is an optional link for display in the user interface and can be an\nabsolute URL or a path relative to Grafana's root url.", - "type": "string", - "x-go-name": "Link" + "type": "string" }, "severity": { "$ref": "#/definitions/NoticeSeverity" }, "text": { "description": "Text is freeform descriptive text for the notice.", - "type": "string", - "x-go-name": "Text" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "NoticeSeverity": { "type": "integer", "format": "int64", - "title": "NoticeSeverity is a type for the Severity property of a Notice.", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "title": "NoticeSeverity is a type for the Severity property of a Notice." }, "NotificationTestCommand": { "type": "object", "properties": { "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureSettings": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureSettings" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "OrgDTO": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "OrgDetailsDTO": { "type": "object", @@ -11430,15 +10569,12 @@ }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "OrgUserDTO": { "type": "object", @@ -11447,82 +10583,65 @@ "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "AccessControl" + } }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "lastSeenAt": { "type": "string", - "format": "date-time", - "x-go-name": "LastSeenAt" + "format": "date-time" }, "lastSeenAtAge": { - "type": "string", - "x-go-name": "LastSeenAtAge" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "role": { - "type": "string", - "x-go-name": "Role" + "type": "string" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "PatchAnnotationsCmd": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "time": { "type": "integer", - "format": "int64", - "x-go-name": "Time" + "format": "int64" }, "timeEnd": { "type": "integer", - "format": "int64", - "x-go-name": "TimeEnd" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PatchLibraryElementCommand": { "description": "PatchLibraryElementCommand is the command for patching a LibraryElement", @@ -11531,43 +10650,35 @@ "folderId": { "description": "ID of the folder where the library element is stored.", "type": "integer", - "format": "int64", - "x-go-name": "FolderID" + "format": "int64" }, "folderUid": { "description": "UID of the folder where the library element is stored.", - "type": "string", - "x-go-name": "FolderUID" + "type": "string" }, "kind": { "description": "Kind of element to create, Use 1 for library panels or 2 for c.\nDescription:\n1 - library panels\n2 - library variables", "type": "integer", "format": "int64", - "enum": [1, 2], - "x-go-name": "Kind" + "enum": [1, 2] }, "model": { "description": "The JSON model for the library element.", - "type": "object", - "x-go-name": "Model" + "type": "object" }, "name": { "description": "Name of the library element.", - "type": "string", - "x-go-name": "Name" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "version": { "description": "Version of the library element you are updating.", "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/libraryelements" + } }, "PatchPrefsCmd": { "type": "object", @@ -11576,12 +10687,10 @@ "description": "The numerical :id of a favorited dashboard", "type": "integer", "format": "int64", - "default": 0, - "x-go-name": "HomeDashboardID" + "default": 0 }, "homeDashboardUID": { - "type": "string", - "x-go-name": "HomeDashboardUID" + "type": "string" }, "navbar": { "$ref": "#/definitions/NavbarPreference" @@ -11591,154 +10700,124 @@ }, "theme": { "type": "string", - "enum": ["light", "dark"], - "x-go-name": "Theme" + "enum": ["light", "dark"] }, "timezone": { "type": "string", - "enum": ["utc", "browser"], - "x-go-name": "Timezone" + "enum": ["utc", "browser"] }, "weekStart": { - "type": "string", - "x-go-name": "WeekStart" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PauseAlertCommand": { "type": "object", "properties": { "alertId": { "type": "integer", - "format": "int64", - "x-go-name": "AlertId" + "format": "int64" }, "paused": { - "type": "boolean", - "x-go-name": "Paused" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PauseAllAlertsCommand": { "type": "object", "properties": { "paused": { - "type": "boolean", - "x-go-name": "Paused" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Permission": { "type": "object", "title": "Permission is the model for access control permissions.", "properties": { "action": { - "type": "string", - "x-go-name": "Action" + "type": "string" }, "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "scope": { - "type": "string", - "x-go-name": "Scope" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/accesscontrol" + } }, "PermissionType": { "type": "integer", - "format": "int64", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "format": "int64" }, "PostAnnotationsCmd": { "type": "object", "properties": { "dashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "DashboardId" + "format": "int64" }, "dashboardUID": { - "type": "string", - "x-go-name": "DashboardUID" + "type": "string" }, "data": { "$ref": "#/definitions/Json" }, "panelId": { "type": "integer", - "format": "int64", - "x-go-name": "PanelId" + "format": "int64" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "time": { "type": "integer", - "format": "int64", - "x-go-name": "Time" + "format": "int64" }, "timeEnd": { "type": "integer", - "format": "int64", - "x-go-name": "TimeEnd" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PostGraphiteAnnotationsCmd": { "type": "object", "properties": { "data": { - "type": "string", - "x-go-name": "Data" + "type": "string" }, "tags": { - "type": "object", - "x-go-name": "Tags" + "type": "object" }, "what": { - "type": "string", - "x-go-name": "What" + "type": "string" }, "when": { "type": "integer", - "format": "int64", - "x-go-name": "When" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Prefs": { "type": "object", "properties": { "homeDashboardId": { "type": "integer", - "format": "int64", - "x-go-name": "HomeDashboardID" + "format": "int64" }, "homeDashboardUID": { - "type": "string", - "x-go-name": "HomeDashboardUID" + "type": "string" }, "navbar": { "$ref": "#/definitions/NavbarPreference" @@ -11747,37 +10826,29 @@ "$ref": "#/definitions/QueryHistoryPreference" }, "theme": { - "type": "string", - "x-go-name": "Theme" + "type": "string" }, "timezone": { - "type": "string", - "x-go-name": "Timezone" + "type": "string" }, "weekStart": { - "type": "string", - "x-go-name": "WeekStart" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "PrometheusRemoteWriteTargetJSON": { "type": "object", "properties": { "data_source_uid": { - "type": "string", - "x-go-name": "DatasourceUID" + "type": "string" }, "id": { - "type": "string", - "x-go-name": "ID" + "type": "string" }, "remote_write_path": { - "type": "string", - "x-go-name": "WritePath" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/recordedqueries/api" + } }, "QueryDataResponse": { "description": "It is the return type of a QueryData call.", @@ -11787,18 +10858,15 @@ "Responses": { "$ref": "#/definitions/Responses" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/backend" + } }, "QueryHistoryPreference": { "type": "object", "properties": { "homeTab": { - "type": "string", - "x-go-name": "HomeTab" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/preference" + } }, "QueryStat": { "description": "The embedded FieldConfig's display name must be set.\nIt corresponds to the QueryResultMetaStat on the frontend (https://github.com/grafana/grafana/blob/master/packages/grafana-data/src/types/data.ts#L53).", @@ -11810,55 +10878,46 @@ "type": "object", "additionalProperties": { "type": "object" - }, - "x-go-name": "Color" + } }, "custom": { "description": "Panel Specific Values", "type": "object", "additionalProperties": { "type": "object" - }, - "x-go-name": "Custom" + } }, "decimals": { "type": "integer", - "format": "uint16", - "x-go-name": "Decimals" + "format": "uint16" }, "description": { "description": "Description is human readable field metadata", - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { "description": "DisplayName overrides Grafana default naming, should not be used from a data source", - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "displayNameFromDS": { "description": "DisplayNameFromDS overrides Grafana default naming in a better way that allows users to override it easily.", - "type": "string", - "x-go-name": "DisplayNameFromDS" + "type": "string" }, "filterable": { "description": "Filterable indicates if the Field's data can be filtered by additional calls.", - "type": "boolean", - "x-go-name": "Filterable" + "type": "boolean" }, "interval": { "description": "Interval indicates the expected regular step between values in the series.\nWhen an interval exists, consumers can identify \"missing\" values when the expected value is not present.\nThe grafana timeseries visualization will render disconnected values when missing values are found it the time field.\nThe interval uses the same units as the values. For time.Time, this is defined in milliseconds.", "type": "number", - "format": "double", - "x-go-name": "Interval" + "format": "double" }, "links": { "description": "The behavior when clicking on a result", "type": "array", "items": { "$ref": "#/definitions/DataLink" - }, - "x-go-name": "Links" + } }, "mappings": { "$ref": "#/definitions/ValueMappings" @@ -11871,71 +10930,57 @@ }, "noValue": { "description": "Alternative to empty string", - "type": "string", - "x-go-name": "NoValue" + "type": "string" }, "path": { "description": "Path is an explicit path to the field in the datasource. When the frame meta includes a path,\nthis will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and\nmay be used as an identifier to update values in a subsequent request", - "type": "string", - "x-go-name": "Path" + "type": "string" }, "thresholds": { "$ref": "#/definitions/ThresholdsConfig" }, "unit": { "description": "Numeric Options", - "type": "string", - "x-go-name": "Unit" + "type": "string" }, "value": { "type": "number", - "format": "double", - "x-go-name": "Value" + "format": "double" }, "writeable": { "description": "Writeable indicates that the datasource knows how to update this value", - "type": "boolean", - "x-go-name": "Writeable" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "RecordingRuleJSON": { "description": "RecordingRuleJSON is the external representation of a recording rule", "type": "object", "properties": { "active": { - "type": "boolean", - "x-go-name": "Active" + "type": "boolean" }, "count": { - "type": "boolean", - "x-go-name": "Count" + "type": "boolean" }, "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "dest_data_source_uid": { - "type": "string", - "x-go-name": "DestDataSourceUID" + "type": "string" }, "id": { - "type": "string", - "x-go-name": "ID" + "type": "string" }, "interval": { "type": "integer", - "format": "int64", - "x-go-name": "Interval" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "prom_name": { - "type": "string", - "x-go-name": "PromName" + "type": "string" }, "queries": { "type": "array", @@ -11944,63 +10989,51 @@ "additionalProperties": { "type": "object" } - }, - "x-go-name": "Queries" + } }, "range": { "type": "integer", - "format": "int64", - "x-go-name": "Range" + "format": "int64" }, "target_ref_id": { - "type": "string", - "x-go-name": "TargetRefID" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/recordedqueries/api" + } }, "ReportEmailDTO": { "type": "object", "properties": { "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "emails": { "description": "Comma-separated list of emails to which to send the report to.", - "type": "string", - "x-go-name": "Emails" + "type": "string" }, "id": { "description": "Send the report to the emails specified in the report. Required if emails is not present.", "type": "string", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "useEmailsFromReport": { "description": "Send the report to the emails specified in the report. Required if emails is not present.", - "type": "boolean", - "x-go-name": "UseEmailsFromReport" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "ReportOptionsDTO": { "type": "object", "properties": { "layout": { - "type": "string", - "x-go-name": "Layout" + "type": "string" }, "orientation": { - "type": "string", - "x-go-name": "Orientation" + "type": "string" }, "timeRange": { "$ref": "#/definitions/TimeRangeDTO" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "Responses": { "description": "The QueryData method the QueryDataHandler method will set the RefId\nproperty on the DataRespones' frames based on these RefIDs.", @@ -12008,86 +11041,69 @@ "title": "Responses is a map of RefIDs (Unique Query ID) to DataResponses.", "additionalProperties": { "$ref": "#/definitions/DataResponse" - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/backend" + } }, "RestoreDashboardVersionCommand": { "type": "object", "properties": { "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "RevokeAuthTokenCmd": { "type": "object", "properties": { "authTokenId": { "type": "integer", - "format": "int64", - "x-go-name": "AuthTokenId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "RoleDTO": { "type": "object", "properties": { "created": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "delegatable": { - "type": "boolean", - "x-go-name": "Delegatable" + "type": "boolean" }, "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "group": { - "type": "string", - "x-go-name": "Group" + "type": "string" }, "hidden": { - "type": "boolean", - "x-go-name": "Hidden" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/Permission" - }, - "x-go-name": "Permissions" + } }, "uid": { - "type": "string", - "x-go-name": "UID" + "type": "string" }, "updated": { "type": "string", - "format": "date-time", - "x-go-name": "Updated" + "format": "date-time" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/accesscontrol" + } }, "SaveDashboardCommand": { "type": "object", @@ -12101,164 +11117,131 @@ }, "folderId": { "type": "integer", - "format": "int64", - "x-go-name": "FolderId" + "format": "int64" }, "folderUid": { - "type": "string", - "x-go-name": "FolderUid" + "type": "string" }, "isFolder": { - "type": "boolean", - "x-go-name": "IsFolder" + "type": "boolean" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "overwrite": { - "type": "boolean", - "x-go-name": "Overwrite" + "type": "boolean" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "ScheduleDTO": { "type": "object", "properties": { "day": { - "type": "string", - "x-go-name": "Day" + "type": "string" }, "dayOfMonth": { - "type": "string", - "x-go-name": "DayOfMonth" + "type": "string" }, "endDate": { "type": "string", - "format": "date-time", - "x-go-name": "EndDate" + "format": "date-time" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "hour": { "type": "integer", - "format": "int64", - "x-go-name": "Hour" + "format": "int64" }, "intervalAmount": { "type": "integer", - "format": "int64", - "x-go-name": "IntervalAmount" + "format": "int64" }, "intervalFrequency": { - "type": "string", - "x-go-name": "IntervalFrequency" + "type": "string" }, "minute": { "type": "integer", - "format": "int64", - "x-go-name": "Minute" + "format": "int64" }, "startDate": { "type": "string", - "format": "date-time", - "x-go-name": "StartDate" + "format": "date-time" }, "timeZone": { - "type": "string", - "x-go-name": "TimeZone" + "type": "string" }, "workdaysOnly": { - "type": "boolean", - "x-go-name": "WorkdaysOnly" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "SearchTeamQueryResult": { "type": "object", "properties": { "page": { "type": "integer", - "format": "int64", - "x-go-name": "Page" + "format": "int64" }, "perPage": { "type": "integer", - "format": "int64", - "x-go-name": "PerPage" + "format": "int64" }, "teams": { "type": "array", "items": { "$ref": "#/definitions/TeamDTO" - }, - "x-go-name": "Teams" + } }, "totalCount": { "type": "integer", - "format": "int64", - "x-go-name": "TotalCount" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "SearchUserQueryResult": { "type": "object", "properties": { "page": { "type": "integer", - "format": "int64", - "x-go-name": "Page" + "format": "int64" }, "perPage": { "type": "integer", - "format": "int64", - "x-go-name": "PerPage" + "format": "int64" }, "totalCount": { "type": "integer", - "format": "int64", - "x-go-name": "TotalCount" + "format": "int64" }, "users": { "type": "array", "items": { "$ref": "#/definitions/UserSearchHitDTO" - }, - "x-go-name": "Users" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "SetUserRolesCommand": { "type": "object", "properties": { "global": { - "type": "boolean", - "x-go-name": "Global" + "type": "boolean" }, "includeHidden": { - "type": "boolean", - "x-go-name": "IncludeHidden" + "type": "boolean" }, "roleUids": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "RoleUIDs" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "SettingsBag": { "type": "object", @@ -12267,8 +11250,7 @@ "additionalProperties": { "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/setting" + } }, "SettingsDTO": { "type": "object", @@ -12278,41 +11260,33 @@ }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgID" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserID" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "Status": { "type": "object", "properties": { "enabled": { - "type": "boolean", - "x-go-name": "Enabled" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "SuccessResponseBody": { "type": "object", "properties": { "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/docs/definitions" + } }, "SyncResult": { "type": "object", @@ -12345,8 +11319,7 @@ "format": "int64" } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/ldapsync" + } }, "TagsDTO": { "type": "object", @@ -12354,15 +11327,12 @@ "properties": { "count": { "type": "integer", - "format": "int64", - "x-go-name": "Count" + "format": "int64" }, "tag": { - "type": "string", - "x-go-name": "Tag" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/services/annotations" + } }, "TeamDTO": { "type": "object", @@ -12371,211 +11341,168 @@ "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "AccessControl" + } }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "memberCount": { "type": "integer", - "format": "int64", - "x-go-name": "MemberCount" + "format": "int64" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "permission": { "$ref": "#/definitions/PermissionType" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "TeamGroupDTO": { "type": "object", "properties": { "groupId": { - "type": "string", - "x-go-name": "GroupId" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/teamgroupsync/models" + } }, "TeamGroupMapping": { "type": "object", "properties": { "groupId": { - "type": "string", - "x-go-name": "GroupId" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/teamgroupsync/models" + } }, "TeamMemberDTO": { "type": "object", "properties": { "auth_module": { - "type": "string", - "x-go-name": "AuthModule" + "type": "string" }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "labels": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Labels" + } }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "permission": { "$ref": "#/definitions/PermissionType" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "TempUserDTO": { "type": "object", "properties": { "code": { - "type": "string", - "x-go-name": "Code" + "type": "string" }, "createdOn": { "type": "string", - "format": "date-time", - "x-go-name": "Created" + "format": "date-time" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "emailSent": { - "type": "boolean", - "x-go-name": "EmailSent" + "type": "boolean" }, "emailSentOn": { "type": "string", - "format": "date-time", - "x-go-name": "EmailSentOn" + "format": "date-time" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "invitedByEmail": { - "type": "string", - "x-go-name": "InvitedByEmail" + "type": "string" }, "invitedByLogin": { - "type": "string", - "x-go-name": "InvitedByLogin" + "type": "string" }, "invitedByName": { - "type": "string", - "x-go-name": "InvitedByName" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] }, "status": { "$ref": "#/definitions/TempUserStatus" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "TempUserStatus": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/models" + "type": "string" }, "Threshold": { "description": "Threshold a single step on the threshold list", "type": "object", "properties": { "color": { - "type": "string", - "x-go-name": "Color" + "type": "string" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "value": { "$ref": "#/definitions/ConfFloat64" } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "ThresholdsConfig": { "description": "ThresholdsConfig setup thresholds", @@ -12589,145 +11516,115 @@ "type": "array", "items": { "$ref": "#/definitions/Threshold" - }, - "x-go-name": "Steps" + } } - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "ThresholdsMode": { "description": "ThresholdsMode absolute or percentage", - "type": "string", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "type": "string" }, "TimeRangeDTO": { "type": "object", "properties": { "from": { - "type": "string", - "x-go-name": "From" + "type": "string" }, "to": { - "type": "string", - "x-go-name": "To" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/api" + } }, "Token": { "type": "object", "properties": { "account": { - "type": "string", - "x-go-name": "Account" + "type": "string" }, "company": { - "type": "string", - "x-go-name": "Company" + "type": "string" }, "details_url": { - "type": "string", - "x-go-name": "DetailsURL" + "type": "string" }, "exp": { "type": "integer", - "format": "int64", - "x-go-name": "Expires" + "format": "int64" }, "iat": { "type": "integer", - "format": "int64", - "x-go-name": "Issued" + "format": "int64" }, "included_users": { "type": "integer", - "format": "int64", - "x-go-name": "IncludedUsers" + "format": "int64" }, "iss": { - "type": "string", - "x-go-name": "Issuer" + "type": "string" }, "jti": { - "type": "string", - "x-go-name": "ID" + "type": "string" }, "lexp": { "type": "integer", - "format": "int64", - "x-go-name": "LicenseExpires" + "format": "int64" }, "lic_exp_warn_days": { "type": "integer", - "format": "int64", - "x-go-name": "LicenseExpiresWarnDays" + "format": "int64" }, "lid": { - "type": "string", - "x-go-name": "LicenseID" + "type": "string" }, "limit_by": { - "type": "string", - "x-go-name": "LimitBy" + "type": "string" }, "max_concurrent_user_sessions": { "type": "integer", - "format": "int64", - "x-go-name": "MaxConcurrentUserSessions" + "format": "int64" }, "nbf": { "type": "integer", - "format": "int64", - "x-go-name": "LicenseIssued" + "format": "int64" }, "prod": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Products" + } }, "slug": { - "type": "string", - "x-go-name": "Slug" + "type": "string" }, "status": { "$ref": "#/definitions/TokenStatus" }, "sub": { - "type": "string", - "x-go-name": "Subject" + "type": "string" }, "tok_exp_warn_days": { "type": "integer", - "format": "int64", - "x-go-name": "TokenExpiresWarnDays" + "format": "int64" }, "trial": { - "type": "boolean", - "x-go-name": "Trial" + "type": "boolean" }, "trial_exp": { "type": "integer", - "format": "int64", - "x-go-name": "TrialExpires" + "format": "int64" }, "update_days": { "type": "integer", - "format": "int64", - "x-go-name": "UpdateDays" + "format": "int64" }, "usage_billing": { - "type": "boolean", - "x-go-name": "UsageBilling" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + } }, "TokenStatus": { "type": "integer", - "format": "int64", - "x-go-package": "github.com/grafana/grafana/pkg/extensions/licensing" + "format": "int64" }, "TrimDashboardCommand": { "type": "object", @@ -12738,8 +11635,7 @@ "meta": { "$ref": "#/definitions/Json" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "TrimDashboardFullWithMeta": { "type": "object", @@ -12750,137 +11646,110 @@ "meta": { "$ref": "#/definitions/Json" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "Type": { - "type": "string", - "x-go-package": "github.com/grafana/grafana/pkg/extensions/report/models" + "type": "string" }, "UpdateAlertNotificationCommand": { "type": "object", "properties": { "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureSettings": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureSettings" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateAlertNotificationWithUidCommand": { "type": "object", "properties": { "disableResolveMessage": { - "type": "boolean", - "x-go-name": "DisableResolveMessage" + "type": "boolean" }, "frequency": { - "type": "string", - "x-go-name": "Frequency" + "type": "string" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "secureSettings": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureSettings" + } }, "sendReminder": { - "type": "boolean", - "x-go-name": "SendReminder" + "type": "boolean" }, "settings": { "$ref": "#/definitions/Json" }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "NewUid" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateAnnotationsCmd": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "tags": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "Tags" + } }, "text": { - "type": "string", - "x-go-name": "Text" + "type": "string" }, "time": { "type": "integer", - "format": "int64", - "x-go-name": "Time" + "format": "int64" }, "timeEnd": { "type": "integer", - "format": "int64", - "x-go-name": "TimeEnd" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateDashboardAclCommand": { "type": "object", @@ -12889,11 +11758,9 @@ "type": "array", "items": { "$ref": "#/definitions/DashboardAclUpdateItem" - }, - "x-go-name": "Items" + } } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateDataSourceCommand": { "description": "Also acts as api DTO", @@ -12903,160 +11770,125 @@ "$ref": "#/definitions/DsAccess" }, "basicAuth": { - "type": "boolean", - "x-go-name": "BasicAuth" + "type": "boolean" }, "basicAuthPassword": { - "type": "string", - "x-go-name": "BasicAuthPassword" + "type": "string" }, "basicAuthUser": { - "type": "string", - "x-go-name": "BasicAuthUser" + "type": "string" }, "database": { - "type": "string", - "x-go-name": "Database" + "type": "string" }, "isDefault": { - "type": "boolean", - "x-go-name": "IsDefault" + "type": "boolean" }, "jsonData": { "$ref": "#/definitions/Json" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "password": { - "type": "string", - "x-go-name": "Password" + "type": "string" }, "secureJsonData": { "type": "object", "additionalProperties": { "type": "string" - }, - "x-go-name": "SecureJsonData" + } }, "type": { - "type": "string", - "x-go-name": "Type" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "Url" + "type": "string" }, "user": { - "type": "string", - "x-go-name": "User" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" }, "withCredentials": { - "type": "boolean", - "x-go-name": "WithCredentials" + "type": "boolean" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateFolderCommand": { "type": "object", "properties": { "overwrite": { - "type": "boolean", - "x-go-name": "Overwrite" + "type": "boolean" }, "title": { - "type": "string", - "x-go-name": "Title" + "type": "string" }, "uid": { - "type": "string", - "x-go-name": "Uid" + "type": "string" }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateOrgAddressForm": { "type": "object", "properties": { "address1": { - "type": "string", - "x-go-name": "Address1" + "type": "string" }, "address2": { - "type": "string", - "x-go-name": "Address2" + "type": "string" }, "city": { - "type": "string", - "x-go-name": "City" + "type": "string" }, "country": { - "type": "string", - "x-go-name": "Country" + "type": "string" }, "state": { - "type": "string", - "x-go-name": "State" + "type": "string" }, "zipcode": { - "type": "string", - "x-go-name": "ZipCode" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateOrgForm": { "type": "object", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateOrgQuotaCmd": { "type": "object", "properties": { "limit": { "type": "integer", - "format": "int64", - "x-go-name": "Limit" + "format": "int64" }, "target": { - "type": "string", - "x-go-name": "Target" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateOrgUserCommand": { "type": "object", "properties": { "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdatePrefsCmd": { "type": "object", @@ -13065,12 +11897,10 @@ "description": "The numerical :id of a favorited dashboard", "type": "integer", "format": "int64", - "default": 0, - "x-go-name": "HomeDashboardID" + "default": 0 }, "homeDashboardUID": { - "type": "string", - "x-go-name": "HomeDashboardUID" + "type": "string" }, "navbar": { "$ref": "#/definitions/NavbarPreference" @@ -13080,62 +11910,49 @@ }, "theme": { "type": "string", - "enum": ["light", "dark"], - "x-go-name": "Theme" + "enum": ["light", "dark"] }, "timezone": { "type": "string", - "enum": ["utc", "browser"], - "x-go-name": "Timezone" + "enum": ["utc", "browser"] }, "weekStart": { - "type": "string", - "x-go-name": "WeekStart" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UpdateRoleCommand": { "type": "object", "properties": { "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "global": { - "type": "boolean", - "x-go-name": "Global" + "type": "boolean" }, "group": { - "type": "string", - "x-go-name": "Group" + "type": "string" }, "hidden": { - "type": "boolean", - "x-go-name": "Hidden" + "type": "boolean" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/Permission" - }, - "x-go-name": "Permissions" + } }, "version": { "type": "integer", - "format": "int64", - "x-go-name": "Version" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/extensions/accesscontrol" + } }, "UpdateTeamCommand": { "type": "object", @@ -13150,8 +11967,7 @@ "Name": { "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateTeamMemberCommand": { "type": "object", @@ -13159,100 +11975,79 @@ "permission": { "$ref": "#/definitions/PermissionType" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateUserCommand": { "type": "object", "properties": { "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "theme": { - "type": "string", - "x-go-name": "Theme" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UpdateUserQuotaCmd": { "type": "object", "properties": { "limit": { "type": "integer", - "format": "int64", - "x-go-name": "Limit" + "format": "int64" }, "target": { - "type": "string", - "x-go-name": "Target" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserIdDTO": { "type": "object", "properties": { "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserLookupDTO": { "type": "object", "properties": { "avatarUrl": { - "type": "string", - "x-go-name": "AvatarURL" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "userId": { "type": "integer", - "format": "int64", - "x-go-name": "UserID" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/api/dtos" + } }, "UserOrgDTO": { "type": "object", "properties": { "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "role": { "type": "string", - "enum": ["Viewer", "Editor", "Admin"], - "x-go-enum-desc": "Viewer ROLE_VIEWER\nEditor ROLE_EDITOR\nAdmin ROLE_ADMIN", - "x-go-name": "Role" + "enum": ["Viewer", "Editor", "Admin"] } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserProfileDTO": { "type": "object", @@ -13261,95 +12056,75 @@ "type": "object", "additionalProperties": { "type": "boolean" - }, - "x-go-name": "AccessControl" + } }, "authLabels": { "type": "array", "items": { "type": "string" - }, - "x-go-name": "AuthLabels" + } }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "createdAt": { "type": "string", - "format": "date-time", - "x-go-name": "CreatedAt" + "format": "date-time" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isDisabled": { - "type": "boolean", - "x-go-name": "IsDisabled" + "type": "boolean" }, "isExternal": { - "type": "boolean", - "x-go-name": "IsExternal" + "type": "boolean" }, "isGrafanaAdmin": { - "type": "boolean", - "x-go-name": "IsGrafanaAdmin" + "type": "boolean" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" }, "orgId": { "type": "integer", - "format": "int64", - "x-go-name": "OrgId" + "format": "int64" }, "theme": { - "type": "string", - "x-go-name": "Theme" + "type": "string" }, "updatedAt": { "type": "string", - "format": "date-time", - "x-go-name": "UpdatedAt" + "format": "date-time" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserQuotaDTO": { "type": "object", "properties": { "limit": { "type": "integer", - "format": "int64", - "x-go-name": "Limit" + "format": "int64" }, "target": { - "type": "string", - "x-go-name": "Target" + "type": "string" }, "used": { "type": "integer", - "format": "int64", - "x-go-name": "Used" + "format": "int64" }, "user_id": { "type": "integer", - "format": "int64", - "x-go-name": "UserId" + "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserSearchHitDTO": { "type": "object", @@ -13358,49 +12133,38 @@ "type": "array", "items": { "type": "string" - }, - "x-go-name": "AuthLabels" + } }, "avatarUrl": { - "type": "string", - "x-go-name": "AvatarUrl" + "type": "string" }, "email": { - "type": "string", - "x-go-name": "Email" + "type": "string" }, "id": { "type": "integer", - "format": "int64", - "x-go-name": "Id" + "format": "int64" }, "isAdmin": { - "type": "boolean", - "x-go-name": "IsAdmin" + "type": "boolean" }, "isDisabled": { - "type": "boolean", - "x-go-name": "IsDisabled" + "type": "boolean" }, "lastSeenAt": { "type": "string", - "format": "date-time", - "x-go-name": "LastSeenAt" + "format": "date-time" }, "lastSeenAtAge": { - "type": "string", - "x-go-name": "LastSeenAtAge" + "type": "string" }, "login": { - "type": "string", - "x-go-name": "Login" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "UserToken": { "description": "UserToken represents a user token", @@ -13452,25 +12216,21 @@ "type": "integer", "format": "int64" } - }, - "x-go-package": "github.com/grafana/grafana/pkg/models" + } }, "ValueMapping": { "description": "ValueMapping allows mapping input values to text and color", - "type": "object", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "type": "object" }, "ValueMappings": { "type": "array", "items": { "$ref": "#/definitions/ValueMapping" - }, - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + } }, "VisType": { "type": "string", - "title": "VisType is used to indicate how the data should be visualized in explore.", - "x-go-package": "github.com/grafana/grafana-plugin-sdk-go/data" + "title": "VisType is used to indicate how the data should be visualized in explore." } }, "responses": { @@ -13493,13 +12253,11 @@ "description": "ID Identifier of the added user.", "type": "integer", "format": "int64", - "x-go-name": "UsedID", "example": 65 }, "message": { "description": "Message Message of the added user.", "type": "string", - "x-go-name": "Message", "example": "Data source added" } } @@ -13537,13 +12295,11 @@ "description": "ID Identifier of the created annotation.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the created annotation.", - "type": "string", - "x-go-name": "Message" + "type": "string" } } } @@ -13561,19 +12317,16 @@ "description": "ID Identifier of the new data source.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted dashboard.", "type": "string", - "x-go-name": "Message", "example": "Data source added" }, "name": { "description": "Name of the new data source.", "type": "string", - "x-go-name": "Name", "example": "My Data source" } } @@ -13588,14 +12341,12 @@ "message": { "description": "Message Message of the created org.", "type": "string", - "x-go-name": "Message", "example": "Data source added" }, "orgId": { "description": "ID Identifier of the created org.", "type": "integer", "format": "int64", - "x-go-name": "OrgID", "example": 65 } } @@ -13614,27 +12365,22 @@ "properties": { "deleteKey": { "description": "Unique key used to delete the snapshot. It is different from the key so that only the creator can delete the snapshot.", - "type": "string", - "x-go-name": "DeleteKey" + "type": "string" }, "deleteUrl": { - "type": "string", - "x-go-name": "DeleteUrl" + "type": "string" }, "id": { "description": "Snapshot id", "type": "integer", - "format": "int64", - "x-go-name": "ID" + "format": "int64" }, "key": { "description": "Unique key", - "type": "string", - "x-go-name": "Key" + "type": "string" }, "url": { - "type": "string", - "x-go-name": "URL" + "type": "string" } } } @@ -13645,13 +12391,11 @@ "type": "object", "properties": { "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "teamId": { "type": "integer", - "format": "int64", - "x-go-name": "TeamId" + "format": "int64" } } } @@ -13712,13 +12456,11 @@ "description": "ID Identifier of the deleted notification channel.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted notificatiton channel.", - "type": "string", - "x-go-name": "Message" + "type": "string" } } } @@ -13733,19 +12475,16 @@ "description": "ID Identifier of the deleted dashboard.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted dashboard.", "type": "string", - "x-go-name": "Message", "example": "Dashboard My Dashboard deleted" }, "title": { "description": "Title Title of the deleted dashboard.", "type": "string", - "x-go-name": "Title", "example": "My Dashboard" } } @@ -13761,13 +12500,11 @@ "description": "ID Identifier of the deleted data source.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted dashboard.", "type": "string", - "x-go-name": "Message", "example": "Dashboard My Dashboard deleted" } } @@ -13783,19 +12520,16 @@ "description": "ID Identifier of the deleted folder.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 }, "message": { "description": "Message Message of the deleted folder.", "type": "string", - "x-go-name": "Message", "example": "Folder My Folder deleted" }, "title": { "description": "Title of the deleted folder.", "type": "string", - "x-go-name": "Title", "example": "My Folder" } } @@ -13943,7 +12677,6 @@ "description": "ID Identifier of the data source.", "type": "integer", "format": "int64", - "x-go-name": "ID", "example": 65 } } @@ -14093,16 +12826,13 @@ "type": "object", "properties": { "externalEnabled": { - "type": "boolean", - "x-go-name": "ExternalEnabled" + "type": "boolean" }, "externalSnapshotName": { - "type": "string", - "x-go-name": "ExternalSnapshotName" + "type": "string" }, "externalSnapshotURL": { - "type": "string", - "x-go-name": "ExternalSnapshotURL" + "type": "string" } } } @@ -14171,12 +12901,10 @@ "properties": { "helpFlags1": { "type": "integer", - "format": "int64", - "x-go-name": "HelpFlags1" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" } } } @@ -14252,17 +12980,14 @@ "properties": { "alertId": { "type": "integer", - "format": "int64", - "x-go-name": "AlertID" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "state": { "description": "Alert result state\nrequired true", - "type": "string", - "x-go-name": "State" + "type": "string" } } } @@ -14276,17 +13001,14 @@ "alertsAffected": { "description": "AlertsAffected is the number of the affected alerts.", "type": "integer", - "format": "int64", - "x-go-name": "AlertsAffected" + "format": "int64" }, "message": { - "type": "string", - "x-go-name": "Message" + "type": "string" }, "state": { "description": "Alert result state\nrequired true", - "type": "string", - "x-go-name": "State" + "type": "string" } } } @@ -14306,38 +13028,32 @@ "id": { "description": "ID The unique identifier (id) of the created/updated dashboard.", "type": "string", - "x-go-name": "ID", "example": "1" }, "status": { "description": "Status status of the response.", "type": "string", - "x-go-name": "Status", "example": "success" }, "title": { "description": "Slug The slug of the dashboard.", "type": "string", - "x-go-name": "Slug", "example": "my-dashboard" }, "uid": { "description": "UID The unique identifier (uid) of the created/updated dashboard.", "type": "string", - "x-go-name": "UID", "example": "nHz3SXiiz" }, "url": { "description": "URL The relative URL for accessing the created/updated dashboard.", "type": "string", - "x-go-name": "URL", "example": "/d/nHz3SXiiz/my-dashboard" }, "version": { "description": "Version The version of the dashboard.", "type": "integer", "format": "int64", - "x-go-name": "Verion", "example": 2 } } @@ -14397,20 +13113,16 @@ "type": "object", "properties": { "description": { - "type": "string", - "x-go-name": "Description" + "type": "string" }, "displayName": { - "type": "string", - "x-go-name": "DisplayName" + "type": "string" }, "meta": { - "type": "string", - "x-go-name": "Meta" + "type": "string" }, "name": { - "type": "string", - "x-go-name": "Name" + "type": "string" } } }