@pulumiverse/grafana 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/alerting/contactPoint.d.ts +1 -1
  2. package/alerting/contactPoint.js +1 -1
  3. package/alerting/messageTemplate.d.ts +2 -2
  4. package/alerting/messageTemplate.js +2 -2
  5. package/alerting/muteTiming.d.ts +2 -2
  6. package/alerting/muteTiming.js +2 -2
  7. package/alerting/notificationPolicy.d.ts +2 -2
  8. package/alerting/notificationPolicy.js +2 -2
  9. package/alerting/ruleGroup.d.ts +1 -1
  10. package/alerting/ruleGroup.js +1 -1
  11. package/cloud/getAccessPolicies.d.ts +50 -0
  12. package/cloud/getAccessPolicies.js +46 -0
  13. package/cloud/getAccessPolicies.js.map +1 -0
  14. package/cloud/getProviderAwsAccount.d.ts +92 -0
  15. package/cloud/getProviderAwsAccount.js +74 -0
  16. package/cloud/getProviderAwsAccount.js.map +1 -0
  17. package/cloud/getProviderAwsCloudwatchScrapeJob.d.ts +211 -0
  18. package/cloud/getProviderAwsCloudwatchScrapeJob.js +160 -0
  19. package/cloud/getProviderAwsCloudwatchScrapeJob.js.map +1 -0
  20. package/cloud/getProviderAwsCloudwatchScrapeJobs.d.ts +66 -0
  21. package/cloud/getProviderAwsCloudwatchScrapeJobs.js +54 -0
  22. package/cloud/getProviderAwsCloudwatchScrapeJobs.js.map +1 -0
  23. package/cloud/index.d.ts +18 -0
  24. package/cloud/index.js +23 -1
  25. package/cloud/index.js.map +1 -1
  26. package/cloud/providerAwsAccount.d.ts +103 -0
  27. package/cloud/providerAwsAccount.js +96 -0
  28. package/cloud/providerAwsAccount.js.map +1 -0
  29. package/cloud/providerAwsCloudwatchScrapeJob.d.ts +192 -0
  30. package/cloud/providerAwsCloudwatchScrapeJob.js +139 -0
  31. package/cloud/providerAwsCloudwatchScrapeJob.js.map +1 -0
  32. package/config/vars.d.ts +19 -0
  33. package/config/vars.js +24 -0
  34. package/config/vars.js.map +1 -1
  35. package/connectionsMetricsEndpointScrapeJob.d.ts +151 -0
  36. package/connectionsMetricsEndpointScrapeJob.js +101 -0
  37. package/connectionsMetricsEndpointScrapeJob.js.map +1 -0
  38. package/contactPoint.d.ts +1 -1
  39. package/contactPoint.js +1 -1
  40. package/dashboardPermissionItem.d.ts +3 -3
  41. package/dataSource.d.ts +9 -0
  42. package/dataSource.js +9 -0
  43. package/dataSource.js.map +1 -1
  44. package/dataSourcePermissionItem.d.ts +3 -3
  45. package/enterprise/dataSourcePermissionItem.d.ts +3 -3
  46. package/enterprise/roleAssignmentItem.d.ts +3 -3
  47. package/folderPermissionItem.d.ts +3 -3
  48. package/getConnectionsMetricsEndpointScrapeJob.d.ts +79 -0
  49. package/getConnectionsMetricsEndpointScrapeJob.js +50 -0
  50. package/getConnectionsMetricsEndpointScrapeJob.js.map +1 -0
  51. package/getLibraryPanels.d.ts +114 -0
  52. package/getLibraryPanels.js +102 -0
  53. package/getLibraryPanels.js.map +1 -0
  54. package/getOncallUser.d.ts +1 -1
  55. package/getTeam.d.ts +1 -0
  56. package/getTeam.js.map +1 -1
  57. package/getUser.d.ts +2 -0
  58. package/getUser.js +2 -0
  59. package/getUser.js.map +1 -1
  60. package/getUsers.d.ts +2 -0
  61. package/getUsers.js +2 -0
  62. package/getUsers.js.map +1 -1
  63. package/index.d.ts +9 -0
  64. package/index.js +14 -3
  65. package/index.js.map +1 -1
  66. package/machineLearningHoliday.d.ts +42 -0
  67. package/machineLearningHoliday.js +42 -0
  68. package/machineLearningHoliday.js.map +1 -1
  69. package/machineLearningJob.d.ts +137 -9
  70. package/machineLearningJob.js +125 -0
  71. package/machineLearningJob.js.map +1 -1
  72. package/machineLearningOutlierDetector.d.ts +64 -6
  73. package/machineLearningOutlierDetector.js +55 -0
  74. package/machineLearningOutlierDetector.js.map +1 -1
  75. package/machinelearning/alert.d.ts +236 -0
  76. package/machinelearning/alert.js +138 -0
  77. package/machinelearning/alert.js.map +1 -0
  78. package/machinelearning/holiday.d.ts +42 -0
  79. package/machinelearning/holiday.js +42 -0
  80. package/machinelearning/holiday.js.map +1 -1
  81. package/machinelearning/index.d.ts +3 -0
  82. package/machinelearning/index.js +6 -1
  83. package/machinelearning/index.js.map +1 -1
  84. package/machinelearning/job.d.ts +137 -9
  85. package/machinelearning/job.js +125 -0
  86. package/machinelearning/job.js.map +1 -1
  87. package/machinelearning/outlierDetector.d.ts +64 -6
  88. package/machinelearning/outlierDetector.js +55 -0
  89. package/machinelearning/outlierDetector.js.map +1 -1
  90. package/messageTemplate.d.ts +2 -2
  91. package/messageTemplate.js +2 -2
  92. package/muteTiming.d.ts +2 -2
  93. package/muteTiming.js +2 -2
  94. package/notificationPolicy.d.ts +2 -2
  95. package/notificationPolicy.js +2 -2
  96. package/oncall/escalation.d.ts +18 -6
  97. package/oncall/escalation.js +2 -0
  98. package/oncall/escalation.js.map +1 -1
  99. package/oncall/getUser.d.ts +1 -1
  100. package/oncall/getUsers.d.ts +20 -0
  101. package/oncall/getUsers.js +24 -0
  102. package/oncall/getUsers.js.map +1 -0
  103. package/oncall/index.d.ts +3 -0
  104. package/oncall/index.js +4 -1
  105. package/oncall/index.js.map +1 -1
  106. package/oncall/integration.d.ts +1 -1
  107. package/oncall/integration.js +1 -1
  108. package/oncall/onCallShift.d.ts +12 -0
  109. package/oncall/onCallShift.js +2 -0
  110. package/oncall/onCallShift.js.map +1 -1
  111. package/oncallEscalation.d.ts +18 -6
  112. package/oncallEscalation.js +2 -0
  113. package/oncallEscalation.js.map +1 -1
  114. package/oncallIntegration.d.ts +1 -1
  115. package/oncallIntegration.js +1 -1
  116. package/oncallOnCallShift.d.ts +12 -0
  117. package/oncallOnCallShift.js +2 -0
  118. package/oncallOnCallShift.js.map +1 -1
  119. package/organization.d.ts +1 -0
  120. package/organization.js +1 -0
  121. package/organization.js.map +1 -1
  122. package/oss/dashboardPermissionItem.d.ts +3 -3
  123. package/oss/dataSource.d.ts +9 -0
  124. package/oss/dataSource.js +9 -0
  125. package/oss/dataSource.js.map +1 -1
  126. package/oss/folderPermissionItem.d.ts +3 -3
  127. package/oss/getTeam.d.ts +1 -0
  128. package/oss/getTeam.js.map +1 -1
  129. package/oss/getUser.d.ts +2 -0
  130. package/oss/getUser.js +2 -0
  131. package/oss/getUser.js.map +1 -1
  132. package/oss/getUsers.d.ts +2 -0
  133. package/oss/getUsers.js +2 -0
  134. package/oss/getUsers.js.map +1 -1
  135. package/oss/organization.d.ts +1 -0
  136. package/oss/organization.js +1 -0
  137. package/oss/organization.js.map +1 -1
  138. package/oss/serviceAccountPermissionItem.d.ts +3 -3
  139. package/oss/ssoSettings.d.ts +56 -4
  140. package/oss/ssoSettings.js +43 -1
  141. package/oss/ssoSettings.js.map +1 -1
  142. package/oss/team.d.ts +8 -0
  143. package/oss/team.js +2 -0
  144. package/oss/team.js.map +1 -1
  145. package/oss/user.d.ts +1 -0
  146. package/oss/user.js +1 -0
  147. package/oss/user.js.map +1 -1
  148. package/package.json +2 -2
  149. package/provider.d.ts +38 -0
  150. package/provider.js +5 -1
  151. package/provider.js.map +1 -1
  152. package/roleAssignmentItem.d.ts +3 -3
  153. package/ruleGroup.d.ts +1 -1
  154. package/ruleGroup.js +1 -1
  155. package/serviceAccountPermissionItem.d.ts +3 -3
  156. package/slo/slo.d.ts +14 -2
  157. package/slo/slo.js +5 -0
  158. package/slo/slo.js.map +1 -1
  159. package/slo.d.ts +14 -2
  160. package/slo.js +5 -0
  161. package/slo.js.map +1 -1
  162. package/ssoSettings.d.ts +56 -4
  163. package/ssoSettings.js +43 -1
  164. package/ssoSettings.js.map +1 -1
  165. package/team.d.ts +8 -0
  166. package/team.js +2 -0
  167. package/team.js.map +1 -1
  168. package/types/input.d.ts +894 -10
  169. package/types/output.d.ts +837 -14
  170. package/user.d.ts +1 -0
  171. package/user.js +1 -0
  172. package/user.js.map +1 -1
package/types/output.d.ts CHANGED
@@ -1003,6 +1003,13 @@ export interface GetFoldersFolder {
1003
1003
  */
1004
1004
  url: string;
1005
1005
  }
1006
+ export interface GetLibraryPanelsPanel {
1007
+ description: string;
1008
+ folderUid: string;
1009
+ modelJson: string;
1010
+ name: string;
1011
+ uid: string;
1012
+ }
1006
1013
  export interface GetRolePermission {
1007
1014
  /**
1008
1015
  * Specific action users granted with the role will be allowed to perform (for example: `users:read`)
@@ -1050,6 +1057,10 @@ export interface GetSlosSlo {
1050
1057
  * Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
1051
1058
  */
1052
1059
  queries: outputs.GetSlosSloQuery[];
1060
+ /**
1061
+ * The name of a search expression in Grafana Asserts. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
1062
+ */
1063
+ searchExpression: string;
1053
1064
  /**
1054
1065
  * A unique, random identifier. This value will also be the name of the resource stored in the API server. This value is read-only.
1055
1066
  */
@@ -1084,7 +1095,13 @@ export interface GetSlosSloAlertingAdvancedOptions {
1084
1095
  minFailures?: number;
1085
1096
  }
1086
1097
  export interface GetSlosSloAlertingAnnotation {
1098
+ /**
1099
+ * Key for filtering and identification
1100
+ */
1087
1101
  key: string;
1102
+ /**
1103
+ * Templatable value
1104
+ */
1088
1105
  value: string;
1089
1106
  }
1090
1107
  export interface GetSlosSloAlertingFastburn {
@@ -1098,15 +1115,33 @@ export interface GetSlosSloAlertingFastburn {
1098
1115
  labels?: outputs.GetSlosSloAlertingFastburnLabel[];
1099
1116
  }
1100
1117
  export interface GetSlosSloAlertingFastburnAnnotation {
1118
+ /**
1119
+ * Key for filtering and identification
1120
+ */
1101
1121
  key: string;
1122
+ /**
1123
+ * Templatable value
1124
+ */
1102
1125
  value: string;
1103
1126
  }
1104
1127
  export interface GetSlosSloAlertingFastburnLabel {
1128
+ /**
1129
+ * Key for filtering and identification
1130
+ */
1105
1131
  key: string;
1132
+ /**
1133
+ * Templatable value
1134
+ */
1106
1135
  value: string;
1107
1136
  }
1108
1137
  export interface GetSlosSloAlertingLabel {
1138
+ /**
1139
+ * Key for filtering and identification
1140
+ */
1109
1141
  key: string;
1142
+ /**
1143
+ * Templatable value
1144
+ */
1110
1145
  value: string;
1111
1146
  }
1112
1147
  export interface GetSlosSloAlertingSlowburn {
@@ -1120,21 +1155,39 @@ export interface GetSlosSloAlertingSlowburn {
1120
1155
  labels?: outputs.GetSlosSloAlertingSlowburnLabel[];
1121
1156
  }
1122
1157
  export interface GetSlosSloAlertingSlowburnAnnotation {
1158
+ /**
1159
+ * Key for filtering and identification
1160
+ */
1123
1161
  key: string;
1162
+ /**
1163
+ * Templatable value
1164
+ */
1124
1165
  value: string;
1125
1166
  }
1126
1167
  export interface GetSlosSloAlertingSlowburnLabel {
1168
+ /**
1169
+ * Key for filtering and identification
1170
+ */
1127
1171
  key: string;
1172
+ /**
1173
+ * Templatable value
1174
+ */
1128
1175
  value: string;
1129
1176
  }
1130
1177
  export interface GetSlosSloDestinationDatasource {
1131
1178
  /**
1132
- * UID for the Mimir Datasource
1179
+ * UID for the Datasource
1133
1180
  */
1134
- uid?: string;
1181
+ uid: string;
1135
1182
  }
1136
1183
  export interface GetSlosSloLabel {
1184
+ /**
1185
+ * Key for filtering and identification
1186
+ */
1137
1187
  key: string;
1188
+ /**
1189
+ * Templatable value
1190
+ */
1138
1191
  value: string;
1139
1192
  }
1140
1193
  export interface GetSlosSloObjective {
@@ -1549,9 +1602,13 @@ export interface OncallIntegrationTemplates {
1549
1602
  */
1550
1603
  groupingKey?: string;
1551
1604
  /**
1552
- * Templates for Microsoft Teams.
1605
+ * Templates for Microsoft Teams. **NOTE**: Microsoft Teams templates are only available on Grafana Cloud.
1553
1606
  */
1554
1607
  microsoftTeams?: outputs.OncallIntegrationTemplatesMicrosoftTeams;
1608
+ /**
1609
+ * Templates for Mobile app push notifications.
1610
+ */
1611
+ mobileApp?: outputs.OncallIntegrationTemplatesMobileApp;
1555
1612
  /**
1556
1613
  * Templates for Phone Call.
1557
1614
  */
@@ -1605,6 +1662,16 @@ export interface OncallIntegrationTemplatesMicrosoftTeams {
1605
1662
  */
1606
1663
  title?: string;
1607
1664
  }
1665
+ export interface OncallIntegrationTemplatesMobileApp {
1666
+ /**
1667
+ * Template for Alert message.
1668
+ */
1669
+ message?: string;
1670
+ /**
1671
+ * Template for Alert title.
1672
+ */
1673
+ title?: string;
1674
+ }
1608
1675
  export interface OncallIntegrationTemplatesPhoneCall {
1609
1676
  /**
1610
1677
  * Template for Alert title.
@@ -1775,7 +1842,7 @@ export interface RolePermission {
1775
1842
  }
1776
1843
  export interface RuleGroupRule {
1777
1844
  /**
1778
- * Key-value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to `map[]`.
1845
+ * Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbookUrl`, to help identify and investigate alerts. The `dashboardUId` and `panelId` annotations, which link alerts to a panel, must be set together. Defaults to `map[]`.
1779
1846
  */
1780
1847
  annotations?: {
1781
1848
  [key: string]: string;
@@ -1815,9 +1882,13 @@ export interface RuleGroupRule {
1815
1882
  */
1816
1883
  noDataState?: string;
1817
1884
  /**
1818
- * Notification settings for the rule. If specified, it overrides the notification policies. Available since Grafana 10.4, requires feature flag 'alertingSimplifiedRouting' enabled.
1885
+ * Notification settings for the rule. If specified, it overrides the notification policies. Available since Grafana 10.4, requires feature flag 'alertingSimplifiedRouting' to be enabled.
1819
1886
  */
1820
1887
  notificationSettings?: outputs.RuleGroupRuleNotificationSettings;
1888
+ /**
1889
+ * Settings for a recording rule. Available since Grafana 11.2, requires feature flag 'grafanaManagedRecordingRules' to be enabled.
1890
+ */
1891
+ record?: outputs.RuleGroupRuleRecord;
1821
1892
  /**
1822
1893
  * The unique identifier of the alert rule.
1823
1894
  */
@@ -1881,6 +1952,16 @@ export interface RuleGroupRuleNotificationSettings {
1881
1952
  */
1882
1953
  repeatInterval?: string;
1883
1954
  }
1955
+ export interface RuleGroupRuleRecord {
1956
+ /**
1957
+ * The ref id of the query node in the data field to use as the source of the metric.
1958
+ */
1959
+ from: string;
1960
+ /**
1961
+ * The name of the metric to write to.
1962
+ */
1963
+ metric: string;
1964
+ }
1884
1965
  export interface SLOAlerting {
1885
1966
  /**
1886
1967
  * Advanced Options for Alert Rules
@@ -1910,7 +1991,13 @@ export interface SLOAlertingAdvancedOptions {
1910
1991
  minFailures?: number;
1911
1992
  }
1912
1993
  export interface SLOAlertingAnnotation {
1994
+ /**
1995
+ * Key for filtering and identification
1996
+ */
1913
1997
  key: string;
1998
+ /**
1999
+ * Templatable value
2000
+ */
1914
2001
  value: string;
1915
2002
  }
1916
2003
  export interface SLOAlertingFastburn {
@@ -1924,15 +2011,33 @@ export interface SLOAlertingFastburn {
1924
2011
  labels?: outputs.SLOAlertingFastburnLabel[];
1925
2012
  }
1926
2013
  export interface SLOAlertingFastburnAnnotation {
2014
+ /**
2015
+ * Key for filtering and identification
2016
+ */
1927
2017
  key: string;
2018
+ /**
2019
+ * Templatable value
2020
+ */
1928
2021
  value: string;
1929
2022
  }
1930
2023
  export interface SLOAlertingFastburnLabel {
2024
+ /**
2025
+ * Key for filtering and identification
2026
+ */
1931
2027
  key: string;
2028
+ /**
2029
+ * Templatable value
2030
+ */
1932
2031
  value: string;
1933
2032
  }
1934
2033
  export interface SLOAlertingLabel {
2034
+ /**
2035
+ * Key for filtering and identification
2036
+ */
1935
2037
  key: string;
2038
+ /**
2039
+ * Templatable value
2040
+ */
1936
2041
  value: string;
1937
2042
  }
1938
2043
  export interface SLOAlertingSlowburn {
@@ -1946,21 +2051,39 @@ export interface SLOAlertingSlowburn {
1946
2051
  labels?: outputs.SLOAlertingSlowburnLabel[];
1947
2052
  }
1948
2053
  export interface SLOAlertingSlowburnAnnotation {
2054
+ /**
2055
+ * Key for filtering and identification
2056
+ */
1949
2057
  key: string;
2058
+ /**
2059
+ * Templatable value
2060
+ */
1950
2061
  value: string;
1951
2062
  }
1952
2063
  export interface SLOAlertingSlowburnLabel {
2064
+ /**
2065
+ * Key for filtering and identification
2066
+ */
1953
2067
  key: string;
2068
+ /**
2069
+ * Templatable value
2070
+ */
1954
2071
  value: string;
1955
2072
  }
1956
2073
  export interface SLODestinationDatasource {
1957
2074
  /**
1958
- * UID for the Mimir Datasource
2075
+ * UID for the Datasource
1959
2076
  */
1960
- uid?: string;
2077
+ uid: string;
1961
2078
  }
1962
2079
  export interface SLOLabel {
2080
+ /**
2081
+ * Key for filtering and identification
2082
+ */
1963
2083
  key: string;
2084
+ /**
2085
+ * Templatable value
2086
+ */
1964
2087
  value: string;
1965
2088
  }
1966
2089
  export interface SLOObjective {
@@ -2015,6 +2138,144 @@ export interface ServiceAccountPermissionPermission {
2015
2138
  */
2016
2139
  userId?: string;
2017
2140
  }
2141
+ export interface SsoSettingsLdapSettings {
2142
+ /**
2143
+ * Whether to allow new Grafana user creation through LDAP login. If set to false, then only existing Grafana users can log in with LDAP.
2144
+ */
2145
+ allowSignUp?: boolean;
2146
+ /**
2147
+ * The LDAP configuration.
2148
+ */
2149
+ config: outputs.SsoSettingsLdapSettingsConfig;
2150
+ /**
2151
+ * Define whether this configuration is enabled for LDAP. Defaults to `true`.
2152
+ */
2153
+ enabled?: boolean;
2154
+ /**
2155
+ * Prevent synchronizing users’ organization roles from LDAP.
2156
+ */
2157
+ skipOrgRoleSync?: boolean;
2158
+ }
2159
+ export interface SsoSettingsLdapSettingsConfig {
2160
+ /**
2161
+ * The LDAP servers configuration.
2162
+ */
2163
+ servers: outputs.SsoSettingsLdapSettingsConfigServer[];
2164
+ }
2165
+ export interface SsoSettingsLdapSettingsConfigServer {
2166
+ /**
2167
+ * The LDAP server attributes. The following attributes can be configured: email, member_of, name, surname, username.
2168
+ */
2169
+ attributes?: {
2170
+ [key: string]: string;
2171
+ };
2172
+ /**
2173
+ * The search user bind DN.
2174
+ */
2175
+ bindDn?: string;
2176
+ /**
2177
+ * The search user bind password.
2178
+ */
2179
+ bindPassword?: string;
2180
+ /**
2181
+ * The path to the client certificate.
2182
+ */
2183
+ clientCert?: string;
2184
+ /**
2185
+ * The Base64 encoded value of the client certificate.
2186
+ */
2187
+ clientCertValue?: string;
2188
+ /**
2189
+ * The path to the client private key.
2190
+ */
2191
+ clientKey?: string;
2192
+ /**
2193
+ * The Base64 encoded value of the client private key.
2194
+ */
2195
+ clientKeyValue?: string;
2196
+ /**
2197
+ * For mapping an LDAP group to a Grafana organization and role.
2198
+ */
2199
+ groupMappings?: outputs.SsoSettingsLdapSettingsConfigServerGroupMapping[];
2200
+ /**
2201
+ * An array of the base DNs to search through for groups. Typically uses ou=groups.
2202
+ */
2203
+ groupSearchBaseDns?: string[];
2204
+ /**
2205
+ * Group search filter, to retrieve the groups of which the user is a member (only set if memberOf attribute is not available).
2206
+ */
2207
+ groupSearchFilter?: string;
2208
+ /**
2209
+ * The %s in the search filter will be replaced with the attribute defined in this field.
2210
+ */
2211
+ groupSearchFilterUserAttribute?: string;
2212
+ /**
2213
+ * The LDAP server host.
2214
+ */
2215
+ host: string;
2216
+ /**
2217
+ * Minimum TLS version allowed. Accepted values are: TLS1.2, TLS1.3.
2218
+ */
2219
+ minTlsVersion?: string;
2220
+ /**
2221
+ * The LDAP server port.
2222
+ */
2223
+ port?: number;
2224
+ /**
2225
+ * The path to the root CA certificate.
2226
+ */
2227
+ rootCaCert?: string;
2228
+ /**
2229
+ * The Base64 encoded values of the root CA certificates.
2230
+ */
2231
+ rootCaCertValues?: string[];
2232
+ /**
2233
+ * An array of base DNs to search through.
2234
+ */
2235
+ searchBaseDns: string[];
2236
+ /**
2237
+ * The user search filter, for example "(cn=%s)" or "(sAMAccountName=%s)" or "(uid=%s)".
2238
+ */
2239
+ searchFilter: string;
2240
+ /**
2241
+ * If set to true, the SSL cert validation will be skipped.
2242
+ */
2243
+ sslSkipVerify?: boolean;
2244
+ /**
2245
+ * If set to true, use LDAP with STARTTLS instead of LDAPS.
2246
+ */
2247
+ startTls?: boolean;
2248
+ /**
2249
+ * The timeout in seconds for connecting to the LDAP host.
2250
+ */
2251
+ timeout?: number;
2252
+ /**
2253
+ * Accepted TLS ciphers. For a complete list of supported ciphers, refer to: https://go.dev/src/crypto/tls/cipher_suites.go.
2254
+ */
2255
+ tlsCiphers?: string[];
2256
+ /**
2257
+ * Set to true if LDAP server should use an encrypted TLS connection (either with STARTTLS or LDAPS).
2258
+ */
2259
+ useSsl?: boolean;
2260
+ }
2261
+ export interface SsoSettingsLdapSettingsConfigServerGroupMapping {
2262
+ /**
2263
+ * If set to true, it makes the user of groupDn Grafana server admin.
2264
+ */
2265
+ grafanaAdmin?: boolean;
2266
+ /**
2267
+ * LDAP distinguished name (DN) of LDAP group. If you want to match all (or no LDAP groups) then you can use wildcard ("*").
2268
+ */
2269
+ groupDn: string;
2270
+ /**
2271
+ * The Grafana organization database id.
2272
+ */
2273
+ orgId?: number;
2274
+ /**
2275
+ * Assign users of groupDn the organization role Admin, Editor, or Viewer.
2276
+ */
2277
+ orgRole: string;
2278
+ }
2018
2279
  export interface SsoSettingsOauth2Settings {
2019
2280
  /**
2020
2281
  * If enabled, it will automatically sync the Grafana server administrator role.
@@ -2110,6 +2371,14 @@ export interface SsoSettingsOauth2Settings {
2110
2371
  * JMESPath expression to use for user name lookup from the user ID token. This name will be used as the user’s display name. Only applicable to Generic OAuth.
2111
2372
  */
2112
2373
  nameAttributePath?: string;
2374
+ /**
2375
+ * JMESPath expression to use for the organization mapping lookup from the user ID token. The extracted list will be used for the organization mapping (to match "Organization" in the "orgMapping"). Only applicable to Generic OAuth and Okta.
2376
+ */
2377
+ orgAttributePath?: string;
2378
+ /**
2379
+ * List of comma- or space-separated Organization:OrgIdOrOrgName:Role mappings. Organization can be * meaning “All users”. Role is optional and can have the following values: None, Viewer, Editor or Admin.
2380
+ */
2381
+ orgMapping?: string;
2113
2382
  /**
2114
2383
  * JMESPath expression to use for Grafana role lookup.
2115
2384
  */
@@ -2220,10 +2489,26 @@ export interface SsoSettingsSamlSettings {
2220
2489
  * Path for the SP X.509 certificate.
2221
2490
  */
2222
2491
  certificatePath?: string;
2492
+ /**
2493
+ * The client Id of your OAuth2 app.
2494
+ */
2495
+ clientId?: string;
2496
+ /**
2497
+ * The client secret of your OAuth2 app.
2498
+ */
2499
+ clientSecret?: string;
2223
2500
  /**
2224
2501
  * Define whether this configuration is enabled for SAML. Defaults to `true`.
2225
2502
  */
2226
2503
  enabled?: boolean;
2504
+ /**
2505
+ * The entity ID is a globally unique identifier for the service provider. It is used to identify the service provider to the identity provider. Defaults to the URL of the Grafana instance if not set.
2506
+ */
2507
+ entityId?: string;
2508
+ /**
2509
+ * If enabled, Grafana will fetch groups from Microsoft Graph API instead of using the groups claim from the ID token.
2510
+ */
2511
+ forceUseGraphApi?: boolean;
2227
2512
  /**
2228
2513
  * Base64-encoded string for the IdP SAML metadata XML.
2229
2514
  */
@@ -2300,6 +2585,10 @@ export interface SsoSettingsSamlSettings {
2300
2585
  * Prevent synchronizing users’ organization roles from your IdP.
2301
2586
  */
2302
2587
  skipOrgRoleSync?: boolean;
2588
+ /**
2589
+ * The token endpoint of your OAuth2 provider. Required for Azure AD providers.
2590
+ */
2591
+ tokenUrl?: string;
2303
2592
  }
2304
2593
  export interface SyntheticMonitoringCheckSettings {
2305
2594
  /**
@@ -3965,7 +4254,7 @@ export declare namespace alerting {
3965
4254
  }
3966
4255
  interface RuleGroupRule {
3967
4256
  /**
3968
- * Key-value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to `map[]`.
4257
+ * Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbookUrl`, to help identify and investigate alerts. The `dashboardUId` and `panelId` annotations, which link alerts to a panel, must be set together. Defaults to `map[]`.
3969
4258
  */
3970
4259
  annotations?: {
3971
4260
  [key: string]: string;
@@ -4005,9 +4294,13 @@ export declare namespace alerting {
4005
4294
  */
4006
4295
  noDataState?: string;
4007
4296
  /**
4008
- * Notification settings for the rule. If specified, it overrides the notification policies. Available since Grafana 10.4, requires feature flag 'alertingSimplifiedRouting' enabled.
4297
+ * Notification settings for the rule. If specified, it overrides the notification policies. Available since Grafana 10.4, requires feature flag 'alertingSimplifiedRouting' to be enabled.
4009
4298
  */
4010
4299
  notificationSettings?: outputs.alerting.RuleGroupRuleNotificationSettings;
4300
+ /**
4301
+ * Settings for a recording rule. Available since Grafana 11.2, requires feature flag 'grafanaManagedRecordingRules' to be enabled.
4302
+ */
4303
+ record?: outputs.alerting.RuleGroupRuleRecord;
4011
4304
  /**
4012
4305
  * The unique identifier of the alert rule.
4013
4306
  */
@@ -4071,6 +4364,16 @@ export declare namespace alerting {
4071
4364
  */
4072
4365
  repeatInterval?: string;
4073
4366
  }
4367
+ interface RuleGroupRuleRecord {
4368
+ /**
4369
+ * The ref id of the query node in the data field to use as the source of the metric.
4370
+ */
4371
+ from: string;
4372
+ /**
4373
+ * The name of the metric to write to.
4374
+ */
4375
+ metric: string;
4376
+ }
4074
4377
  }
4075
4378
  export declare namespace cloud {
4076
4379
  interface AccessPolicyRealm {
@@ -4090,6 +4393,252 @@ export declare namespace cloud {
4090
4393
  */
4091
4394
  selector: string;
4092
4395
  }
4396
+ interface GetAccessPoliciesAccessPolicy {
4397
+ displayName: string;
4398
+ id: string;
4399
+ name: string;
4400
+ region: string;
4401
+ status: string;
4402
+ }
4403
+ interface GetProviderAwsCloudwatchScrapeJobCustomNamespace {
4404
+ /**
4405
+ * One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
4406
+ */
4407
+ metrics?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobCustomNamespaceMetric[];
4408
+ /**
4409
+ * The name of the custom namespace to scrape.
4410
+ */
4411
+ name: string;
4412
+ /**
4413
+ * The interval in seconds to scrape the custom namespace.
4414
+ */
4415
+ scrapeIntervalSeconds: number;
4416
+ }
4417
+ interface GetProviderAwsCloudwatchScrapeJobCustomNamespaceMetric {
4418
+ /**
4419
+ * The name of the metric to scrape.
4420
+ */
4421
+ name: string;
4422
+ /**
4423
+ * A set of statistics to scrape.
4424
+ */
4425
+ statistics: string[];
4426
+ }
4427
+ interface GetProviderAwsCloudwatchScrapeJobService {
4428
+ /**
4429
+ * One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
4430
+ */
4431
+ metrics?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobServiceMetric[];
4432
+ /**
4433
+ * The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/aws/cloudwatch-metrics/services/ for supported services, metrics, and their statistics.
4434
+ */
4435
+ name: string;
4436
+ /**
4437
+ * One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.
4438
+ */
4439
+ resourceDiscoveryTagFilters?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilter[];
4440
+ /**
4441
+ * The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/aws/cloudwatch-metrics/services/ for supported scrape intervals.
4442
+ */
4443
+ scrapeIntervalSeconds: number;
4444
+ /**
4445
+ * A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
4446
+ */
4447
+ tagsToAddToMetrics: string[];
4448
+ }
4449
+ interface GetProviderAwsCloudwatchScrapeJobServiceMetric {
4450
+ /**
4451
+ * The name of the metric to scrape.
4452
+ */
4453
+ name: string;
4454
+ /**
4455
+ * A set of statistics to scrape.
4456
+ */
4457
+ statistics: string[];
4458
+ }
4459
+ interface GetProviderAwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilter {
4460
+ /**
4461
+ * The key of the tag filter.
4462
+ */
4463
+ key: string;
4464
+ /**
4465
+ * The value of the tag filter.
4466
+ */
4467
+ value: string;
4468
+ }
4469
+ interface GetProviderAwsCloudwatchScrapeJobsScrapeJob {
4470
+ /**
4471
+ * The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the `resourceId` attribute of the `grafana.cloud.ProviderAwsAccount` resource.
4472
+ */
4473
+ awsAccountResourceId: string;
4474
+ /**
4475
+ * Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects.
4476
+ */
4477
+ customNamespaces?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobsScrapeJobCustomNamespace[];
4478
+ /**
4479
+ * When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
4480
+ */
4481
+ disabledReason: string;
4482
+ /**
4483
+ * Whether the CloudWatch Scrape Job is enabled or not.
4484
+ */
4485
+ enabled: boolean;
4486
+ /**
4487
+ * When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as `aws_<service_name>_info`.
4488
+ */
4489
+ exportTags: boolean;
4490
+ id: string;
4491
+ name: string;
4492
+ /**
4493
+ * The set of AWS region names that this CloudWatch Scrape Job is configured to scrape.
4494
+ */
4495
+ regions: string[];
4496
+ /**
4497
+ * When true, the `regions` attribute will be the set of regions configured in the override. When false, the `regions` attribute will be the set of regions belonging to the AWS Account resource that is associated with this CloudWatch Scrape Job.
4498
+ */
4499
+ regionsSubsetOverrideUsed: boolean;
4500
+ /**
4501
+ * The AWS ARN of the IAM role associated with the AWS Account resource that is being used by this CloudWatch Scrape Job.
4502
+ */
4503
+ roleArn: string;
4504
+ /**
4505
+ * One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct `name` attribute. When accessing this as an attribute reference, it is a list of objects.
4506
+ */
4507
+ services?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobsScrapeJobService[];
4508
+ stackId: string;
4509
+ }
4510
+ interface GetProviderAwsCloudwatchScrapeJobsScrapeJobCustomNamespace {
4511
+ /**
4512
+ * One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
4513
+ */
4514
+ metrics?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobsScrapeJobCustomNamespaceMetric[];
4515
+ /**
4516
+ * The name of the custom namespace to scrape.
4517
+ */
4518
+ name: string;
4519
+ /**
4520
+ * The interval in seconds to scrape the custom namespace.
4521
+ */
4522
+ scrapeIntervalSeconds: number;
4523
+ }
4524
+ interface GetProviderAwsCloudwatchScrapeJobsScrapeJobCustomNamespaceMetric {
4525
+ /**
4526
+ * The name of the metric to scrape.
4527
+ */
4528
+ name: string;
4529
+ /**
4530
+ * A set of statistics to scrape.
4531
+ */
4532
+ statistics: string[];
4533
+ }
4534
+ interface GetProviderAwsCloudwatchScrapeJobsScrapeJobService {
4535
+ /**
4536
+ * One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
4537
+ */
4538
+ metrics?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobsScrapeJobServiceMetric[];
4539
+ /**
4540
+ * The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/aws/cloudwatch-metrics/services/ for supported services, metrics, and their statistics.
4541
+ */
4542
+ name: string;
4543
+ /**
4544
+ * One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.
4545
+ */
4546
+ resourceDiscoveryTagFilters?: outputs.cloud.GetProviderAwsCloudwatchScrapeJobsScrapeJobServiceResourceDiscoveryTagFilter[];
4547
+ /**
4548
+ * The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/aws/cloudwatch-metrics/services/ for supported scrape intervals.
4549
+ */
4550
+ scrapeIntervalSeconds: number;
4551
+ /**
4552
+ * A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
4553
+ */
4554
+ tagsToAddToMetrics: string[];
4555
+ }
4556
+ interface GetProviderAwsCloudwatchScrapeJobsScrapeJobServiceMetric {
4557
+ /**
4558
+ * The name of the metric to scrape.
4559
+ */
4560
+ name: string;
4561
+ /**
4562
+ * A set of statistics to scrape.
4563
+ */
4564
+ statistics: string[];
4565
+ }
4566
+ interface GetProviderAwsCloudwatchScrapeJobsScrapeJobServiceResourceDiscoveryTagFilter {
4567
+ /**
4568
+ * The key of the tag filter.
4569
+ */
4570
+ key: string;
4571
+ /**
4572
+ * The value of the tag filter.
4573
+ */
4574
+ value: string;
4575
+ }
4576
+ interface ProviderAwsCloudwatchScrapeJobCustomNamespace {
4577
+ /**
4578
+ * One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
4579
+ */
4580
+ metrics?: outputs.cloud.ProviderAwsCloudwatchScrapeJobCustomNamespaceMetric[];
4581
+ /**
4582
+ * The name of the custom namespace to scrape.
4583
+ */
4584
+ name: string;
4585
+ /**
4586
+ * The interval in seconds to scrape the custom namespace.
4587
+ */
4588
+ scrapeIntervalSeconds: number;
4589
+ }
4590
+ interface ProviderAwsCloudwatchScrapeJobCustomNamespaceMetric {
4591
+ /**
4592
+ * The name of the metric to scrape.
4593
+ */
4594
+ name: string;
4595
+ /**
4596
+ * A set of statistics to scrape.
4597
+ */
4598
+ statistics: string[];
4599
+ }
4600
+ interface ProviderAwsCloudwatchScrapeJobService {
4601
+ /**
4602
+ * One or more configuration blocks to configure metrics and their statistics to scrape. Please note that AWS metric names must be supplied, and not their PromQL counterparts. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
4603
+ */
4604
+ metrics?: outputs.cloud.ProviderAwsCloudwatchScrapeJobServiceMetric[];
4605
+ /**
4606
+ * The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/aws/cloudwatch-metrics/services/ for supported services.
4607
+ */
4608
+ name: string;
4609
+ /**
4610
+ * One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.
4611
+ */
4612
+ resourceDiscoveryTagFilters?: outputs.cloud.ProviderAwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilter[];
4613
+ /**
4614
+ * The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/aws/cloudwatch-metrics/services/ for supported scrape intervals.
4615
+ */
4616
+ scrapeIntervalSeconds: number;
4617
+ /**
4618
+ * A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
4619
+ */
4620
+ tagsToAddToMetrics: string[];
4621
+ }
4622
+ interface ProviderAwsCloudwatchScrapeJobServiceMetric {
4623
+ /**
4624
+ * The name of the metric to scrape.
4625
+ */
4626
+ name: string;
4627
+ /**
4628
+ * A set of statistics to scrape.
4629
+ */
4630
+ statistics: string[];
4631
+ }
4632
+ interface ProviderAwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilter {
4633
+ /**
4634
+ * The key of the tag filter.
4635
+ */
4636
+ key: string;
4637
+ /**
4638
+ * The value of the tag filter.
4639
+ */
4640
+ value: string;
4641
+ }
4093
4642
  }
4094
4643
  export declare namespace enterprise {
4095
4644
  interface DataSourcePermissionPermission {
@@ -4219,6 +4768,12 @@ export declare namespace machineLearning {
4219
4768
  }
4220
4769
  }
4221
4770
  export declare namespace onCall {
4771
+ interface GetUsersUser {
4772
+ email: string;
4773
+ id: string;
4774
+ role: string;
4775
+ username: string;
4776
+ }
4222
4777
  interface IntegrationDefaultRoute {
4223
4778
  /**
4224
4779
  * The ID of the escalation chain.
@@ -4282,9 +4837,13 @@ export declare namespace onCall {
4282
4837
  */
4283
4838
  groupingKey?: string;
4284
4839
  /**
4285
- * Templates for Microsoft Teams.
4840
+ * Templates for Microsoft Teams. **NOTE**: Microsoft Teams templates are only available on Grafana Cloud.
4286
4841
  */
4287
4842
  microsoftTeams?: outputs.onCall.IntegrationTemplatesMicrosoftTeams;
4843
+ /**
4844
+ * Templates for Mobile app push notifications.
4845
+ */
4846
+ mobileApp?: outputs.onCall.IntegrationTemplatesMobileApp;
4288
4847
  /**
4289
4848
  * Templates for Phone Call.
4290
4849
  */
@@ -4338,6 +4897,16 @@ export declare namespace onCall {
4338
4897
  */
4339
4898
  title?: string;
4340
4899
  }
4900
+ interface IntegrationTemplatesMobileApp {
4901
+ /**
4902
+ * Template for Alert message.
4903
+ */
4904
+ message?: string;
4905
+ /**
4906
+ * Template for Alert title.
4907
+ */
4908
+ title?: string;
4909
+ }
4341
4910
  interface IntegrationTemplatesPhoneCall {
4342
4911
  /**
4343
4912
  * Template for Alert title.
@@ -4557,6 +5126,144 @@ export declare namespace oss {
4557
5126
  */
4558
5127
  userId?: string;
4559
5128
  }
5129
+ interface SsoSettingsLdapSettings {
5130
+ /**
5131
+ * Whether to allow new Grafana user creation through LDAP login. If set to false, then only existing Grafana users can log in with LDAP.
5132
+ */
5133
+ allowSignUp?: boolean;
5134
+ /**
5135
+ * The LDAP configuration.
5136
+ */
5137
+ config: outputs.oss.SsoSettingsLdapSettingsConfig;
5138
+ /**
5139
+ * Define whether this configuration is enabled for LDAP. Defaults to `true`.
5140
+ */
5141
+ enabled?: boolean;
5142
+ /**
5143
+ * Prevent synchronizing users’ organization roles from LDAP.
5144
+ */
5145
+ skipOrgRoleSync?: boolean;
5146
+ }
5147
+ interface SsoSettingsLdapSettingsConfig {
5148
+ /**
5149
+ * The LDAP servers configuration.
5150
+ */
5151
+ servers: outputs.oss.SsoSettingsLdapSettingsConfigServer[];
5152
+ }
5153
+ interface SsoSettingsLdapSettingsConfigServer {
5154
+ /**
5155
+ * The LDAP server attributes. The following attributes can be configured: email, member_of, name, surname, username.
5156
+ */
5157
+ attributes?: {
5158
+ [key: string]: string;
5159
+ };
5160
+ /**
5161
+ * The search user bind DN.
5162
+ */
5163
+ bindDn?: string;
5164
+ /**
5165
+ * The search user bind password.
5166
+ */
5167
+ bindPassword?: string;
5168
+ /**
5169
+ * The path to the client certificate.
5170
+ */
5171
+ clientCert?: string;
5172
+ /**
5173
+ * The Base64 encoded value of the client certificate.
5174
+ */
5175
+ clientCertValue?: string;
5176
+ /**
5177
+ * The path to the client private key.
5178
+ */
5179
+ clientKey?: string;
5180
+ /**
5181
+ * The Base64 encoded value of the client private key.
5182
+ */
5183
+ clientKeyValue?: string;
5184
+ /**
5185
+ * For mapping an LDAP group to a Grafana organization and role.
5186
+ */
5187
+ groupMappings?: outputs.oss.SsoSettingsLdapSettingsConfigServerGroupMapping[];
5188
+ /**
5189
+ * An array of the base DNs to search through for groups. Typically uses ou=groups.
5190
+ */
5191
+ groupSearchBaseDns?: string[];
5192
+ /**
5193
+ * Group search filter, to retrieve the groups of which the user is a member (only set if memberOf attribute is not available).
5194
+ */
5195
+ groupSearchFilter?: string;
5196
+ /**
5197
+ * The %s in the search filter will be replaced with the attribute defined in this field.
5198
+ */
5199
+ groupSearchFilterUserAttribute?: string;
5200
+ /**
5201
+ * The LDAP server host.
5202
+ */
5203
+ host: string;
5204
+ /**
5205
+ * Minimum TLS version allowed. Accepted values are: TLS1.2, TLS1.3.
5206
+ */
5207
+ minTlsVersion?: string;
5208
+ /**
5209
+ * The LDAP server port.
5210
+ */
5211
+ port?: number;
5212
+ /**
5213
+ * The path to the root CA certificate.
5214
+ */
5215
+ rootCaCert?: string;
5216
+ /**
5217
+ * The Base64 encoded values of the root CA certificates.
5218
+ */
5219
+ rootCaCertValues?: string[];
5220
+ /**
5221
+ * An array of base DNs to search through.
5222
+ */
5223
+ searchBaseDns: string[];
5224
+ /**
5225
+ * The user search filter, for example "(cn=%s)" or "(sAMAccountName=%s)" or "(uid=%s)".
5226
+ */
5227
+ searchFilter: string;
5228
+ /**
5229
+ * If set to true, the SSL cert validation will be skipped.
5230
+ */
5231
+ sslSkipVerify?: boolean;
5232
+ /**
5233
+ * If set to true, use LDAP with STARTTLS instead of LDAPS.
5234
+ */
5235
+ startTls?: boolean;
5236
+ /**
5237
+ * The timeout in seconds for connecting to the LDAP host.
5238
+ */
5239
+ timeout?: number;
5240
+ /**
5241
+ * Accepted TLS ciphers. For a complete list of supported ciphers, refer to: https://go.dev/src/crypto/tls/cipher_suites.go.
5242
+ */
5243
+ tlsCiphers?: string[];
5244
+ /**
5245
+ * Set to true if LDAP server should use an encrypted TLS connection (either with STARTTLS or LDAPS).
5246
+ */
5247
+ useSsl?: boolean;
5248
+ }
5249
+ interface SsoSettingsLdapSettingsConfigServerGroupMapping {
5250
+ /**
5251
+ * If set to true, it makes the user of groupDn Grafana server admin.
5252
+ */
5253
+ grafanaAdmin?: boolean;
5254
+ /**
5255
+ * LDAP distinguished name (DN) of LDAP group. If you want to match all (or no LDAP groups) then you can use wildcard ("*").
5256
+ */
5257
+ groupDn: string;
5258
+ /**
5259
+ * The Grafana organization database id.
5260
+ */
5261
+ orgId?: number;
5262
+ /**
5263
+ * Assign users of groupDn the organization role Admin, Editor, or Viewer.
5264
+ */
5265
+ orgRole: string;
5266
+ }
4560
5267
  interface SsoSettingsOauth2Settings {
4561
5268
  /**
4562
5269
  * If enabled, it will automatically sync the Grafana server administrator role.
@@ -4652,6 +5359,14 @@ export declare namespace oss {
4652
5359
  * JMESPath expression to use for user name lookup from the user ID token. This name will be used as the user’s display name. Only applicable to Generic OAuth.
4653
5360
  */
4654
5361
  nameAttributePath?: string;
5362
+ /**
5363
+ * JMESPath expression to use for the organization mapping lookup from the user ID token. The extracted list will be used for the organization mapping (to match "Organization" in the "orgMapping"). Only applicable to Generic OAuth and Okta.
5364
+ */
5365
+ orgAttributePath?: string;
5366
+ /**
5367
+ * List of comma- or space-separated Organization:OrgIdOrOrgName:Role mappings. Organization can be * meaning “All users”. Role is optional and can have the following values: None, Viewer, Editor or Admin.
5368
+ */
5369
+ orgMapping?: string;
4655
5370
  /**
4656
5371
  * JMESPath expression to use for Grafana role lookup.
4657
5372
  */
@@ -4762,10 +5477,26 @@ export declare namespace oss {
4762
5477
  * Path for the SP X.509 certificate.
4763
5478
  */
4764
5479
  certificatePath?: string;
5480
+ /**
5481
+ * The client Id of your OAuth2 app.
5482
+ */
5483
+ clientId?: string;
5484
+ /**
5485
+ * The client secret of your OAuth2 app.
5486
+ */
5487
+ clientSecret?: string;
4765
5488
  /**
4766
5489
  * Define whether this configuration is enabled for SAML. Defaults to `true`.
4767
5490
  */
4768
5491
  enabled?: boolean;
5492
+ /**
5493
+ * The entity ID is a globally unique identifier for the service provider. It is used to identify the service provider to the identity provider. Defaults to the URL of the Grafana instance if not set.
5494
+ */
5495
+ entityId?: string;
5496
+ /**
5497
+ * If enabled, Grafana will fetch groups from Microsoft Graph API instead of using the groups claim from the ID token.
5498
+ */
5499
+ forceUseGraphApi?: boolean;
4769
5500
  /**
4770
5501
  * Base64-encoded string for the IdP SAML metadata XML.
4771
5502
  */
@@ -4842,6 +5573,10 @@ export declare namespace oss {
4842
5573
  * Prevent synchronizing users’ organization roles from your IdP.
4843
5574
  */
4844
5575
  skipOrgRoleSync?: boolean;
5576
+ /**
5577
+ * The token endpoint of your OAuth2 provider. Required for Azure AD providers.
5578
+ */
5579
+ tokenUrl?: string;
4845
5580
  }
4846
5581
  interface TeamPreferences {
4847
5582
  /**
@@ -4903,6 +5638,10 @@ export declare namespace slo {
4903
5638
  * Query describes the indicator that will be measured against the objective. Freeform Query types are currently supported.
4904
5639
  */
4905
5640
  queries: outputs.slo.GetSlosSloQuery[];
5641
+ /**
5642
+ * The name of a search expression in Grafana Asserts. This is used in the SLO UI to open the Asserts RCA workbench and in alerts to link to the RCA workbench.
5643
+ */
5644
+ searchExpression: string;
4906
5645
  /**
4907
5646
  * A unique, random identifier. This value will also be the name of the resource stored in the API server. This value is read-only.
4908
5647
  */
@@ -4937,7 +5676,13 @@ export declare namespace slo {
4937
5676
  minFailures?: number;
4938
5677
  }
4939
5678
  interface GetSlosSloAlertingAnnotation {
5679
+ /**
5680
+ * Key for filtering and identification
5681
+ */
4940
5682
  key: string;
5683
+ /**
5684
+ * Templatable value
5685
+ */
4941
5686
  value: string;
4942
5687
  }
4943
5688
  interface GetSlosSloAlertingFastburn {
@@ -4951,15 +5696,33 @@ export declare namespace slo {
4951
5696
  labels?: outputs.slo.GetSlosSloAlertingFastburnLabel[];
4952
5697
  }
4953
5698
  interface GetSlosSloAlertingFastburnAnnotation {
5699
+ /**
5700
+ * Key for filtering and identification
5701
+ */
4954
5702
  key: string;
5703
+ /**
5704
+ * Templatable value
5705
+ */
4955
5706
  value: string;
4956
5707
  }
4957
5708
  interface GetSlosSloAlertingFastburnLabel {
5709
+ /**
5710
+ * Key for filtering and identification
5711
+ */
4958
5712
  key: string;
5713
+ /**
5714
+ * Templatable value
5715
+ */
4959
5716
  value: string;
4960
5717
  }
4961
5718
  interface GetSlosSloAlertingLabel {
5719
+ /**
5720
+ * Key for filtering and identification
5721
+ */
4962
5722
  key: string;
5723
+ /**
5724
+ * Templatable value
5725
+ */
4963
5726
  value: string;
4964
5727
  }
4965
5728
  interface GetSlosSloAlertingSlowburn {
@@ -4973,21 +5736,39 @@ export declare namespace slo {
4973
5736
  labels?: outputs.slo.GetSlosSloAlertingSlowburnLabel[];
4974
5737
  }
4975
5738
  interface GetSlosSloAlertingSlowburnAnnotation {
5739
+ /**
5740
+ * Key for filtering and identification
5741
+ */
4976
5742
  key: string;
5743
+ /**
5744
+ * Templatable value
5745
+ */
4977
5746
  value: string;
4978
5747
  }
4979
5748
  interface GetSlosSloAlertingSlowburnLabel {
5749
+ /**
5750
+ * Key for filtering and identification
5751
+ */
4980
5752
  key: string;
5753
+ /**
5754
+ * Templatable value
5755
+ */
4981
5756
  value: string;
4982
5757
  }
4983
5758
  interface GetSlosSloDestinationDatasource {
4984
5759
  /**
4985
- * UID for the Mimir Datasource
5760
+ * UID for the Datasource
4986
5761
  */
4987
- uid?: string;
5762
+ uid: string;
4988
5763
  }
4989
5764
  interface GetSlosSloLabel {
5765
+ /**
5766
+ * Key for filtering and identification
5767
+ */
4990
5768
  key: string;
5769
+ /**
5770
+ * Templatable value
5771
+ */
4991
5772
  value: string;
4992
5773
  }
4993
5774
  interface GetSlosSloObjective {
@@ -5057,7 +5838,13 @@ export declare namespace slo {
5057
5838
  minFailures?: number;
5058
5839
  }
5059
5840
  interface SLOAlertingAnnotation {
5841
+ /**
5842
+ * Key for filtering and identification
5843
+ */
5060
5844
  key: string;
5845
+ /**
5846
+ * Templatable value
5847
+ */
5061
5848
  value: string;
5062
5849
  }
5063
5850
  interface SLOAlertingFastburn {
@@ -5071,15 +5858,33 @@ export declare namespace slo {
5071
5858
  labels?: outputs.slo.SLOAlertingFastburnLabel[];
5072
5859
  }
5073
5860
  interface SLOAlertingFastburnAnnotation {
5861
+ /**
5862
+ * Key for filtering and identification
5863
+ */
5074
5864
  key: string;
5865
+ /**
5866
+ * Templatable value
5867
+ */
5075
5868
  value: string;
5076
5869
  }
5077
5870
  interface SLOAlertingFastburnLabel {
5871
+ /**
5872
+ * Key for filtering and identification
5873
+ */
5078
5874
  key: string;
5875
+ /**
5876
+ * Templatable value
5877
+ */
5079
5878
  value: string;
5080
5879
  }
5081
5880
  interface SLOAlertingLabel {
5881
+ /**
5882
+ * Key for filtering and identification
5883
+ */
5082
5884
  key: string;
5885
+ /**
5886
+ * Templatable value
5887
+ */
5083
5888
  value: string;
5084
5889
  }
5085
5890
  interface SLOAlertingSlowburn {
@@ -5093,21 +5898,39 @@ export declare namespace slo {
5093
5898
  labels?: outputs.slo.SLOAlertingSlowburnLabel[];
5094
5899
  }
5095
5900
  interface SLOAlertingSlowburnAnnotation {
5901
+ /**
5902
+ * Key for filtering and identification
5903
+ */
5096
5904
  key: string;
5905
+ /**
5906
+ * Templatable value
5907
+ */
5097
5908
  value: string;
5098
5909
  }
5099
5910
  interface SLOAlertingSlowburnLabel {
5911
+ /**
5912
+ * Key for filtering and identification
5913
+ */
5100
5914
  key: string;
5915
+ /**
5916
+ * Templatable value
5917
+ */
5101
5918
  value: string;
5102
5919
  }
5103
5920
  interface SLODestinationDatasource {
5104
5921
  /**
5105
- * UID for the Mimir Datasource
5922
+ * UID for the Datasource
5106
5923
  */
5107
- uid?: string;
5924
+ uid: string;
5108
5925
  }
5109
5926
  interface SLOLabel {
5927
+ /**
5928
+ * Key for filtering and identification
5929
+ */
5110
5930
  key: string;
5931
+ /**
5932
+ * Templatable value
5933
+ */
5111
5934
  value: string;
5112
5935
  }
5113
5936
  interface SLOObjective {