Skip to content

Commit

Permalink
Fixed column scopes and condition in table azure_log_alert Closes #795 (
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI committed Jul 9, 2024
1 parent c10c7bd commit 09908aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions azure/table_azure_log_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ func tableAzureLogAlert(_ context.Context) *plugin.Table {
Name: "enabled",
Description: "Indicates whether this activity log alert is enabled.",
Type: proto.ColumnType_BOOL,
Transform: transform.FromField("ActivityLogAlert.Enabled"),
Transform: transform.FromField("AlertRuleProperties.Enabled"),
},
{
Name: "description",
Description: "A description of this activity log alert.",
Type: proto.ColumnType_STRING,
Transform: transform.FromField("ActivityLogAlert.Description"),
Transform: transform.FromField("AlertRuleProperties.Description"),
},
{
Name: "location",
Expand All @@ -64,19 +64,19 @@ func tableAzureLogAlert(_ context.Context) *plugin.Table {
Name: "scopes",
Description: "A list of resourceIds that will be used as prefixes.",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("ActivityLogAlert.Scopes"),
Transform: transform.FromField("AlertRuleProperties.Scopes"),
},
{
Name: "condition",
Description: "The condition that will cause this alert to activate.",
Type: proto.ColumnType_JSON,
Transform: transform.FromField("ActivityLogAlert.Condition"),
Transform: transform.FromField("AlertRuleProperties.Condition"),
},
{
Name: "actions",
Description: "The actions that will activate when the condition is met.",
Type: proto.ColumnType_STRING,
Transform: transform.FromField("ActivityLogAlert.Actions"),
Transform: transform.FromField("AlertRuleProperties.Actions"),
},

// Steampipe standard columns
Expand Down

0 comments on commit 09908aa

Please sign in to comment.