Skip to content

fix: [DTOSS-9703] update diagnostics setting module#1835

Open
MacMur85 wants to merge 1 commit intomainfrom
fix/DTOSS-9703-update-diagnostic-settings-configuration
Open

fix: [DTOSS-9703] update diagnostics setting module#1835
MacMur85 wants to merge 1 commit intomainfrom
fix/DTOSS-9703-update-diagnostic-settings-configuration

Conversation

@MacMur85
Copy link
Contributor

@MacMur85 MacMur85 commented Feb 11, 2026

Description

A change to the implementation of the Diagnostic Setting module required to eliminate the deprecated form of metric definition. This PR does not result in any changes, it just deals with some technical debt.

Old implementation:

module "diagnostic-settings" {
  source = "../diagnostic-settings"

  name                       = "${var.name}-diagnostic-setting"
  target_resource_id         = azurerm_api_management.apim.id
  log_analytics_workspace_id = var.log_analytics_workspace_id
  enabled_log                = var.monitor_diagnostic_setting_apim_enabled_logs
  metric                     = var.monitor_diagnostic_setting_apim_metrics
  metric_enabled             = var.metric_enabled
}

New implementation:

module "diagnostic-settings" {

  source = "../diagnostic-settings"

  name                       = "${var.name}-diagnostic-setting"
  target_resource_id         = azurerm_api_management.apim.id
  log_analytics_workspace_id = var.log_analytics_workspace_id
  enabled_log                = var.monitor_diagnostic_setting_apim_enabled_logs
  enabled_metric             = var.monitor_diagnostic_setting_apim_metric

}

Context

Plan:
image
https://dev.azure.com/nhse-dtos/dtos-cohort-manager/_build/results?buildId=33996&view=logs&j=2e61fdd4-29ab-51b4-3516-655c0df6fcf2&t=430e7011-249c-5e1a-31f4-0c3babbc029d

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@MacMur85 MacMur85 force-pushed the fix/DTOSS-9703-update-diagnostic-settings-configuration branch from d750ece to c68c405 Compare February 11, 2026 12:37
@MacMur85 MacMur85 marked this pull request as ready for review February 11, 2026 12:38
@github-actions
Copy link

github-actions bot commented Feb 11, 2026

Unit Test Results

✔️ Tests 975 / 975 - passed in 72.9s
📝 Coverage 47.76%
📏 4755 / 10228 lines covered 🌿 1167 / 2172 branches covered
🔍 click here for more details

✏️ updated for commit c68c405

@sonarqubecloud
Copy link

1 similar comment
@sonarqubecloud
Copy link

Copy link
Contributor

@nc-shahidazim nc-shahidazim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants