0.0.26 • Published 2 years ago

@sprkl/vscode-agent-mock v0.0.26

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Install

npm install --save @sprkl/vscode-agent-mock # mock
npm install --save-dev @sprkl/vscode-model # types

Usage

/*
There are 2 packages relevant here:
- vscode-agent-mock: which mocks the sprkl agent on vscode
- vscode-model: the data model (interfaces) of the vscode 
*/
import {AgentClient} from '@sprkl/vscode-agent-mock'
import {Dashboard, Histogram} from '@sprkl/vscode-model'

/* 
The agent client exposes 2 APIs: 
- getHistogram(): get histogram data
- getDashboard(): get dashboard data
*/
const agentClient = new AgentClient();

const histogram: Histogram = await agentClient.getHistogram({
  startTime: new Date(),
  endTime: new Date(),
  numOfColumns: 10,
})

const dashboard: Dashboard = await agentClient.getDashboard({
  startTime: new Date(),
  endTime: new Date(),
})
0.0.24

2 years ago

0.0.25

2 years ago

0.0.26

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.10

2 years ago