Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing app insights alert branch #108

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

cpareek
Copy link
Contributor

@cpareek cpareek commented Feb 8, 2024

This is just for test, do not MERGE

@cpareek cpareek requested a review from a team as a code owner February 8, 2024 11:30
Copy link
Contributor

hmcts-jenkins-cnp bot commented Feb 8, 2024

Plan Result

Plan: 0 to add, 2 to change, 0 to destroy.
  • Update
    • module.application_insights.azurerm_application_insights.this
    • module.application_insights.azurerm_monitor_activity_log_alert.main
Change Result (Click me)
  # module.application_insights.azurerm_application_insights.this will be updated in-place
  ~ resource "azurerm_application_insights" "this" {
        id                                    = "/subscriptions/74dacd4f-a248-45bb-a2f0-af700dc4cf68/resourceGroups/toffee-shared-infrastructure-stg/providers/Microsoft.Insights/components/toffee-stg"
        name                                  = "toffee-stg"
      ~ tags                                  = {
            "application"         = "core"
            "autoShutdown"        = "true"
            "builtFrom"           = "https://github.com/HMCTS/sds-toffee-shared-infrastructure.git"
            "businessArea"        = "Cross-Cutting"
            "contactSlackChannel" = "#platops-help"
            "environment"         = "staging"
            "managedBy"           = "Platform Operations"
          - "test"                = "test" -> null
        }
        # (16 unchanged attributes hidden)
    }

  # module.application_insights.azurerm_monitor_activity_log_alert.main will be updated in-place
  ~ resource "azurerm_monitor_activity_log_alert" "main" {
        id                  = "/subscriptions/74dacd4f-a248-45bb-a2f0-af700dc4cf68/resourceGroups/toffee-shared-infrastructure-stg/providers/Microsoft.Insights/activityLogAlerts/Application Insights daily cap reached"
        name                = "Application Insights daily cap reached"
      ~ tags                = {
            "application"         = "core"
            "autoShutdown"        = "true"
            "builtFrom"           = "https://github.com/HMCTS/sds-toffee-shared-infrastructure.git"
            "businessArea"        = "Cross-Cutting"
            "contactSlackChannel" = "#platops-help"
            "environment"         = "staging"
            "managedBy"           = "Platform Operations"
          - "testing"             = "testing" -> null
        }
        # (4 unchanged attributes hidden)

      ~ action {
          ~ action_group_id    = "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourcegroups/sds-alerts-slack-ptl/providers/microsoft.insights/actiongroups/sds-alerts-slack-warning-alerts" -> "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourceGroups/sds-alerts-slack-ptl/providers/Microsoft.Insights/actionGroups/sds-alerts-slack-warning-alerts"
            # (1 unchanged attribute hidden)
        }

      ~ criteria {
          + level              = "Warning"
          + operation_name     = "Microsoft.Insights/Components/DailyCapReached/Action"
          + resource_id        = "/subscriptions/74dacd4f-a248-45bb-a2f0-af700dc4cf68/resourceGroups/toffee-shared-infrastructure-stg/providers/Microsoft.Insights/components/toffee-stg"
            # (8 unchanged attributes hidden)
        }
    }

Plan: 0 to add, 2 to change, 0 to destroy.

@hannah38 hannah38 marked this pull request as draft April 2, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant