* Use suggested value for uid
* update the snapshot
* use __expr__
* replace all -100 with __expr__
* update snapshot
* more changes
* revert redundant change
* Use expr.DatasourceUID where it's possible
* generate files
| datasourceUid | string | `string` | | | Grafana data source unique identifier; it should be '-100' for a Server Side Expression operation. | |
| model | [interface{}](#interface) | `interface{}` | | | JSON is the raw JSON query and includes the above properties as well as custom properties. | |
| queryType | string | `string` | | | QueryType is an optional identifier for the type of query. |
| Name | Type | Go type | Required | Default | Description | Example |
| datasourceUid | string | `string` | | | Grafana data source unique identifier; it should be '**expr**' for a Server Side Expression operation. | |
| model | [interface{}](#interface) | `interface{}` | | | JSON is the raw JSON query and includes the above properties as well as custom properties. | |
| queryType | string | `string` | | | QueryType is an optional identifier for the type of query. |
| It can be used to distinguish different types of queries. | |
| refId | string | `string` | | | RefID is the unique identifier of the query, set by the frontend call. | |
"description":"Grafana data source unique identifier; it should be '-100' for a Server Side Expression operation.",
"description":"Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation.",
"type":"string"
},
"model":{
@ -2212,7 +2212,7 @@
"data":{
"example":[
{
"datasourceUid":"-100",
"datasourceUid":"__expr__",
"model":{
"conditions":[
{
@ -3284,7 +3284,6 @@
"type":"object"
},
"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.",
"properties":{
"ForceQuery":{
"type":"boolean"
@ -3320,7 +3319,7 @@
"$ref":"#/definitions/Userinfo"
}
},
"title":"A URL represents a parsed URL (technically, a URI reference).",
"title":"URL is a custom URL type that allows validation at configuration load time.",
"description":"Grafana data source unique identifier; it should be '-100' for a Server Side Expression operation.",
"description":"Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation.",
"type":"string"
},
"model":{
@ -2212,7 +2212,7 @@
"data":{
"example":[
{
"datasourceUid":"-100",
"datasourceUid":"__expr__",
"model":{
"conditions":[
{
@ -3284,7 +3284,6 @@
"type":"object"
},
"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.",
"properties":{
"ForceQuery":{
"type":"boolean"
@ -3320,7 +3319,7 @@
"$ref":"#/definitions/Userinfo"
}
},
"title":"A URL represents a parsed URL (technically, a URI reference).",
"title":"URL is a custom URL type that allows validation at configuration load time.",
"type":"object"
},
"Userinfo":{
@ -3497,7 +3496,6 @@
"type":"object"
},
"alertGroup":{
"description":"AlertGroup alert group",
"properties":{
"alerts":{
"description":"alerts",
@ -3742,6 +3740,7 @@
"type":"array"
},
"integration":{
"description":"Integration integration",
"properties":{
"lastNotifyAttempt":{
"description":"A timestamp indicating the last attempt to deliver a notification regardless of the outcome.\nFormat: date-time",
"title":"AlertQuery represents a single query associated with an alert definition.",
"properties":{
"datasourceUid":{
"description":"Grafana data source unique identifier; it should be '-100' for a Server Side Expression operation.",
"description":"Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation.",
"type":"string"
},
"model":{
@ -4843,7 +4843,7 @@
},
"example":[
{
"datasourceUid":"-100",
"datasourceUid":"__expr__",
"model":{
"conditions":[
{
@ -5899,9 +5899,8 @@
}
},
"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.",
"type":"object",
"title":"A URL represents a parsed URL (technically, a URI reference).",
"title":"URL is a custom URL type that allows validation at configuration load time.",
"title":"AlertQuery represents a single query associated with an alert definition.",
"properties":{
"datasourceUid":{
"description":"Grafana data source unique identifier; it should be '-100' for a Server Side Expression operation.",
"description":"Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation.",
"type":"string"
},
"model":{
@ -15886,7 +15886,7 @@
},
"example":[
{
"datasourceUid":"-100",
"datasourceUid":"__expr__",
"model":{
"conditions":[
{
@ -18056,9 +18056,8 @@
"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.",
"type":"object",
"title":"A URL represents a parsed URL (technically, a URI reference).",
"title":"URL is a custom URL type that allows validation at configuration load time.",
"description":"Grafana data source unique identifier; it should be '-100' for a Server Side Expression operation.",
"description":"Grafana data source unique identifier; it should be '__expr__' for a Server Side Expression operation.",
"type":"string"
},
"model":{
@ -7056,7 +7056,7 @@
"data":{
"example":[
{
"datasourceUid":"-100",
"datasourceUid":"__expr__",
"model":{
"conditions":[
{
@ -9241,7 +9241,6 @@
"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.",
"properties":{
"ForceQuery":{
"type":"boolean"
@ -9277,7 +9276,7 @@
"$ref":"#/components/schemas/Userinfo"
}
},
"title":"A URL represents a parsed URL (technically, a URI reference).",
"title":"URL is a custom URL type that allows validation at configuration load time.",