Azure: Support scope selection in Resource Graph queries (#105835)
* Add scope type * Add scope selector field * Update docs * Use the right field component * Trigger build * Fix import and increase wait * i8n
This commit is contained in:
@@ -407,6 +407,8 @@ type AzureResourceGraphQuery struct {
|
||||
Query *string `json:"query,omitempty"`
|
||||
// Specifies the format results should be returned as. Defaults to table.
|
||||
ResultFormat *string `json:"resultFormat,omitempty"`
|
||||
// Specifies the scope of the query. Defaults to subscription.
|
||||
Scope *ARGScope `json:"scope,omitempty"`
|
||||
}
|
||||
|
||||
// NewAzureResourceGraphQuery creates a new AzureResourceGraphQuery object.
|
||||
@@ -414,6 +416,13 @@ func NewAzureResourceGraphQuery() *AzureResourceGraphQuery {
|
||||
return &AzureResourceGraphQuery{}
|
||||
}
|
||||
|
||||
type ARGScope string
|
||||
|
||||
const (
|
||||
ARGScopeSubscription ARGScope = "subscription"
|
||||
ARGScopeDirectory ARGScope = "directory"
|
||||
)
|
||||
|
||||
// Application Insights Traces sub-query properties
|
||||
type AzureTracesQuery struct {
|
||||
// Specifies the format results should be returned as.
|
||||
|
||||
Reference in New Issue
Block a user