mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-05 18:47:41 +00:00
Add telemetry to track execute cell from <Prompt/> (#15)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ContentRef } from "@nteract/core";
|
||||
import { CellId } from "@nteract/commutable";
|
||||
import { ContentRef } from "@nteract/core";
|
||||
import { Action } from "../../../Shared/Telemetry/TelemetryConstants";
|
||||
|
||||
export const CLOSE_NOTEBOOK = "CLOSE_NOTEBOOK";
|
||||
export interface CloseNotebookAction {
|
||||
@@ -81,3 +82,24 @@ export const setHoveredCell = (payload: { cellId: CellId }): SetHoveredCellActio
|
||||
payload
|
||||
};
|
||||
};
|
||||
|
||||
export const TRACE_NOTEBOOK_TELEMETRY = "TRACE_NOTEBOOK_TELEMETRY";
|
||||
export interface TraceNotebookTelemetryAction {
|
||||
type: "TRACE_NOTEBOOK_TELEMETRY";
|
||||
payload: {
|
||||
action: Action;
|
||||
actionModifier?: string;
|
||||
data?: any;
|
||||
};
|
||||
}
|
||||
|
||||
export const traceNotebookTelemetry = (payload: {
|
||||
action: Action;
|
||||
actionModifier?: string;
|
||||
data?: any;
|
||||
}): TraceNotebookTelemetryAction => {
|
||||
return {
|
||||
type: TRACE_NOTEBOOK_TELEMETRY,
|
||||
payload
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user