From f03bedb5c5f89c688052298cfe2dff401b655c62 Mon Sep 17 00:00:00 2001 From: Alena Khineika Date: Mon, 29 Jul 2024 17:26:38 +0200 Subject: [PATCH] refactor: rename to atlas_hostname --- src/telemetry/connectionTelemetry.ts | 4 ++-- src/test/suite/telemetry/connectionTelemetry.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/telemetry/connectionTelemetry.ts b/src/telemetry/connectionTelemetry.ts index 2a3f8f9c6..ef3b5218f 100644 --- a/src/telemetry/connectionTelemetry.ts +++ b/src/telemetry/connectionTelemetry.ts @@ -16,7 +16,7 @@ export type NewConnectionTelemetryEventProperties = { auth_strategy?: string; is_atlas?: boolean; is_local_atlas?: boolean; - atlas_host_id?: string | null; + atlas_hostname?: string | null; is_data_lake?: boolean; is_enterprise?: boolean; dl_version?: string | null; @@ -154,7 +154,7 @@ export async function getConnectionTelemetryProperties( ...(await getHostInformation(resolvedHostname)), auth_strategy: authStrategy, is_atlas: isAtlas, - atlas_host_id: atlasHostId, + atlas_hostname: atlasHostId, is_local_atlas: isLocalAtlas, is_data_lake: dataLake.isDataLake, dl_version: dataLake.version, diff --git a/src/test/suite/telemetry/connectionTelemetry.test.ts b/src/test/suite/telemetry/connectionTelemetry.test.ts index 842028eb4..47d51dde6 100644 --- a/src/test/suite/telemetry/connectionTelemetry.test.ts +++ b/src/test/suite/telemetry/connectionTelemetry.test.ts @@ -118,7 +118,7 @@ suite('ConnectionTelemetry Controller Test Suite', function () { ); expect(instanceTelemetry.is_atlas).to.equal(false); - expect(instanceTelemetry.atlas_host_id).to.equal(null); + expect(instanceTelemetry.atlas_hostname).to.equal(null); expect(instanceTelemetry.is_atlas_url).to.equal(false); expect(instanceTelemetry.is_local_atlas).to.equal(true); }); @@ -152,7 +152,7 @@ suite('ConnectionTelemetry Controller Test Suite', function () { ); expect(instanceTelemetry.is_atlas).to.equal(true); - expect(instanceTelemetry.atlas_host_id).to.equal( + expect(instanceTelemetry.atlas_hostname).to.equal( 'test-data-sets-a011bb.mongodb.net' ); expect(instanceTelemetry.is_atlas_url).to.equal(true);