Skip to content

Commit

Permalink
Add dual stack fix's presence for AZR in CNS heartbeat metric (#3414)
Browse files Browse the repository at this point in the history
add dual stack fix's presence for azr in cns heartbeat metric
  • Loading branch information
smittal22 authored Feb 13, 2025
1 parent 921c11c commit 93dcca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cns/logger/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const (
NodeIDStr = "NodeID"
HomeAZStr = "HomeAZ"
IsAZRSupportedStr = "IsAZRSupported"
IsAZRDualStackFixPresentStr = "IsAZRDualStackFixPresent"
HomeAZErrorCodeStr = "HomeAZErrorCode"
HomeAZErrorMsgStr = "HomeAZErrorMsg"
CNSConfigPropertyStr = "CNSConfiguration"
Expand Down
1 change: 1 addition & 0 deletions cns/metric/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func SendHeartBeat(ctx context.Context, heartbeatInterval time.Duration, homeAzM
case types.Success:
metric.CustomDimensions[logger.IsAZRSupportedStr] = strconv.FormatBool(getHomeAzResp.HomeAzResponse.IsSupported)
metric.CustomDimensions[logger.HomeAZStr] = strconv.FormatUint(uint64(getHomeAzResp.HomeAzResponse.HomeAz), 10)
metric.CustomDimensions[logger.IsAZRDualStackFixPresentStr] = strconv.FormatBool(getHomeAzResp.HomeAzResponse.NmaAppliedTheIPV6Fix)
default:
metric.CustomDimensions[logger.HomeAZErrorCodeStr] = getHomeAzResp.Response.ReturnCode.String()
metric.CustomDimensions[logger.HomeAZErrorMsgStr] = getHomeAzResp.Response.Message
Expand Down

0 comments on commit 93dcca1

Please sign in to comment.