rename app telemetry constants file
This commit is contained in:
Родитель
3293a43300
Коммит
0348b16bcf
|
@ -26,7 +26,7 @@ import { dataPlaneConnectionHelper, dataPlaneResponseHelper, request, DATAPLANE_
|
|||
import { getDeviceInterface, getEventHubInterface } from '../shared/interfaceUtils';
|
||||
import { parseEventHubMessage } from './eventHubMessageHelper';
|
||||
import { AppInsightsClient } from '../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_EVENTS } from '../../constants/telemetry';
|
||||
import { TELEMETRY_EVENTS } from '../../constants/appTelemetry';
|
||||
|
||||
const PAGE_SIZE = 100;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ import { useBreadcrumbEntry } from '../../navigation/hooks/useBreadcrumbEntry';
|
|||
import '../../css/_layouts.scss';
|
||||
import './connectionStringsView.scss';
|
||||
import { AppInsightsClient } from '../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../constants/appTelemetry';
|
||||
|
||||
// tslint:disable-next-line: cyclomatic-complexity
|
||||
export const ConnectionStringsView: React.FC = () => {
|
||||
|
|
|
@ -24,7 +24,7 @@ import { ROUTE_PARTS, ROUTE_PARAMS } from '../../../constants/routes';
|
|||
import '../../../css/_addDevice.scss';
|
||||
import '../../../css/_layouts.scss';
|
||||
import { AppInsightsClient } from '../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_USER_ACTIONS } from '../../../constants/telemetry';
|
||||
import { TELEMETRY_USER_ACTIONS } from '../../../constants/appTelemetry';
|
||||
|
||||
const initialKeyValue = {
|
||||
error: '',
|
||||
|
|
|
@ -19,7 +19,7 @@ import { useAsyncSagaReducer } from '../../../shared/hooks/useAsyncSagaReducer';
|
|||
import { cloudToDeviceMessageSaga } from '../saga';
|
||||
import '../../../css/_deviceDetail.scss';
|
||||
import { AppInsightsClient } from '../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../constants/appTelemetry';
|
||||
|
||||
interface PropertyItem {
|
||||
isSystemProperty: boolean;
|
||||
|
|
|
@ -16,7 +16,7 @@ import { usePnpStateContext } from '../../../shared/contexts/pnpStateContext';
|
|||
import './deviceEvents.scss';
|
||||
import { getBackUrl } from '../../pnp/utils';
|
||||
import { AppInsightsClient } from '../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_USER_ACTIONS } from '../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_USER_ACTIONS } from '../../../constants/appTelemetry';
|
||||
|
||||
export interface CommandsProps {
|
||||
startDisabled: boolean;
|
||||
|
|
|
@ -20,7 +20,7 @@ import { SasTokenGenerationView } from '../../shared/components/sasTokenGenerati
|
|||
import { useIotHubContext } from '../../../iotHub/hooks/useIotHubContext';
|
||||
import '../../../css/_deviceDetail.scss';
|
||||
import { AppInsightsClient } from '../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../constants/appTelemetry';
|
||||
|
||||
export interface DeviceIdentityDispatchProps {
|
||||
updateDeviceIdentity: (deviceIdentity: DeviceIdentity) => void;
|
||||
|
|
|
@ -23,7 +23,7 @@ import { listDevicesAction, deleteDevicesAction } from '../actions';
|
|||
import { SynchronizationStatus } from '../../../api/models/synchronizationStatus';
|
||||
import { LARGE_COLUMN_WIDTH, EXTRA_SMALL_COLUMN_WIDTH, SMALL_COLUMN_WIDTH, MEDIUM_COLUMN_WIDTH } from '../../../constants/columnWidth';
|
||||
import { AppInsightsClient } from '../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../constants/appTelemetry';
|
||||
import '../../../css/_deviceList.scss';
|
||||
import '../../../css/_layouts.scss';
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import { deviceTwinStateInitial } from '../state';
|
|||
import { useBreadcrumbEntry } from '../../../navigation/hooks/useBreadcrumbEntry';
|
||||
import '../../../css/_deviceTwin.scss';
|
||||
import { AppInsightsClient } from '../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../constants/appTelemetry';
|
||||
|
||||
export const DeviceTwin: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -16,7 +16,7 @@ import { invokeDirectMethodAction } from '../actions';
|
|||
import { DirectMethodForm } from './directMethodForm';
|
||||
import '../../../css/_deviceDetail.scss';
|
||||
import { AppInsightsClient } from '../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../constants/appTelemetry';
|
||||
|
||||
const DEFAULT_TIMEOUT = 10;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import { addModuleStateInitial } from '../state';
|
|||
import { addModuleIdentityAction } from '../actions';
|
||||
import '../../../../css/_deviceDetail.scss';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_USER_ACTIONS } from '../../../../constants/telemetry';
|
||||
import { TELEMETRY_USER_ACTIONS } from '../../../../constants/appTelemetry';
|
||||
|
||||
const initialKeyValue = {
|
||||
error: '',
|
||||
|
|
|
@ -16,7 +16,7 @@ import { DirectMethodForm } from '../../../../devices/directMethod/components/di
|
|||
import { ROUTE_PARAMS, ROUTE_PARTS } from '../../../../constants/routes';
|
||||
import '../../../../css/_deviceDetail.scss';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../constants/appTelemetry';
|
||||
|
||||
const DEFAULT_TIMEOUT = 10;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import { moduleIdentityListReducer } from '../reducer';
|
|||
import { getModuleIdentitiesAction } from '../actions';
|
||||
import '../../../../css/_deviceDetail.scss';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../constants/appTelemetry';
|
||||
|
||||
export const ModuleIdentityList: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -19,7 +19,7 @@ import { moduleIdentityTwinSagas } from '../saga';
|
|||
import { moduleTwinStateInitial } from '../state';
|
||||
import '../../../../css/_deviceDetail.scss';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../constants/appTelemetry';
|
||||
|
||||
export const ModuleIdentityTwin: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -22,7 +22,7 @@ import { moduleIdentityDetailStateInterfaceInitial } from '../state';
|
|||
import { deleteModuleIdentityAction, getModuleIdentityAction } from '../actions';
|
||||
import { useIotHubContext } from '../../../../iotHub/hooks/useIotHubContext';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../constants/appTelemetry';
|
||||
import '../../../../css/_deviceDetail.scss';
|
||||
|
||||
export const ModuleIdentityDetail: React.FC = () => {
|
||||
|
|
|
@ -17,7 +17,7 @@ import { InvokeCommandActionParameters, invokeCommandAction } from '../../action
|
|||
import { getDeviceCommandPairs } from './dataHelper';
|
||||
import { getBackUrl } from '../../utils';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../constants/appTelemetry';
|
||||
|
||||
export const DeviceCommands: React.FC = () => {
|
||||
const { search, pathname } = useLocation();
|
||||
|
|
|
@ -21,7 +21,7 @@ import { SynchronizationStatus } from '../../../../api/models/synchronizationSta
|
|||
import { getBackUrl } from '../../utils';
|
||||
import '../../../../css/_deviceInterface.scss';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../constants/appTelemetry';
|
||||
|
||||
export const DeviceInterfaces: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -16,7 +16,7 @@ import { SynchronizationStatus } from '../../../../api/models/synchronizationSta
|
|||
import { generateReportedTwinSchemaAndInterfaceTuple } from './dataHelper';
|
||||
import { dispatchGetTwinAction, getBackUrl } from '../../utils';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../constants/appTelemetry';
|
||||
|
||||
export const DeviceProperties: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -18,7 +18,7 @@ import { generateTwinSchemaAndInterfaceTuple } from './dataHelper';
|
|||
import { Twin } from '../../../../api/models/device';
|
||||
import { dispatchGetTwinAction, getBackUrl } from '../../utils';
|
||||
import { AppInsightsClient } from '../../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES, TELEMETRY_USER_ACTIONS } from '../../../../constants/appTelemetry';
|
||||
|
||||
// tslint:disable-next-line:cyclomatic-complexity
|
||||
export const DeviceSettings: React.FC = () => {
|
||||
|
|
|
@ -26,7 +26,7 @@ import { ErrorBoundary } from '../../shared/components/errorBoundary';
|
|||
import '../../../css/_digitalTwinInterfaces.scss';
|
||||
import { dispatchGetTwinAction } from '../utils';
|
||||
import { AppInsightsClient } from '../../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../constants/appTelemetry';
|
||||
|
||||
interface ModelContent {
|
||||
link: string;
|
||||
|
|
|
@ -10,7 +10,7 @@ import { fetchLatestReleaseTagName, latestReleaseUrlPath } from '../../api/servi
|
|||
import * as packageJson from '../../../../package.json';
|
||||
import { isNewReleaseVersionHigher } from '../utils/appVersionHelper';
|
||||
import { AppInsightsClient } from '../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_EVENTS } from '../../constants/telemetry';
|
||||
import { TELEMETRY_EVENTS } from '../../constants/appTelemetry';
|
||||
|
||||
export const AppVersionMessageBar: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -21,7 +21,7 @@ import { RepositoryLocationSettings } from '../../shared/global/state';
|
|||
import { useBreadcrumbEntry } from '../../navigation/hooks/useBreadcrumbEntry';
|
||||
import '../../css/_layouts.scss';
|
||||
import { AppInsightsClient } from '../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../constants/appTelemetry';
|
||||
|
||||
export const ModelRepositoryLocationView: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -15,7 +15,7 @@ import { ROUTE_PARAMS } from '../../constants/routes';
|
|||
import { CANCEL, NAVIGATE_BACK } from '../../constants/iconNames';
|
||||
import '../../css/_notification.scss';
|
||||
import { AppInsightsClient } from '../../shared/appTelemetry/appInsightsClient';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../../app/constants/telemetry';
|
||||
import { TELEMETRY_PAGE_NAMES } from '../../constants/appTelemetry';
|
||||
|
||||
export const NotificationList: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { ApplicationInsights } from '@microsoft/applicationinsights-web';
|
||||
import { TELEMETRY_EVENTS, TELEMETRY_USER_ACTIONS } from '../../constants/telemetry';
|
||||
import { TELEMETRY_EVENTS, TELEMETRY_USER_ACTIONS } from '../../constants/appTelemetry';
|
||||
import { appConfig } from '../../../appConfig/appConfig';
|
||||
import { isMicrosoftInternalDomain } from '../utils/utils';
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче