import { createTrackingEvent } from './creator.js';
import { AnalyticsEventType } from './types.js';
const targetServerSwitchEvent = createTrackingEvent(AnalyticsEventType.TargetServerSwitched);
export const createTargetServerSwitchEvent = ({ operation, serverUrl, }) => targetServerSwitchEvent({
    resource: 'Redocly_CodeSample',
    action: 'TargetServerSwitched',
    operationId: operation.id,
    operationPath: operation.path,
    operationHttpVerb: operation.httpVerb,
    operationSummary: operation.name,
    serverUrl,
});
//# sourceMappingURL=serverSwitch.js.map