spektate v1.0.16
Spektate
This library contains the modules that extract information from an Azure storage table containing deployments for Bedrock's observability.
This is currently being used as a backend to Spektate dashboard and CLI and can be extended to other applications.
Getting started
To add this package to your project, run yarn add spektate or npm install spektate depending on your package manager.
To get a list of all deployments, run
const getPipeline = () => {
return new AzureDevOpsPipeline(
config.AZURE_ORG,
config.AZURE_PROJECT,
config.AZURE_PIPELINE_ACCESS_TOKEN
);
};
const deployments: IDeployment[] = await getDeployments(
config.STORAGE_ACCOUNT_NAME,
config.STORAGE_ACCOUNT_KEY,
config.STORAGE_TABLE_NAME,
config.STORAGE_PARTITION_KEY,
getPipeline(), // SRC pipeline
getPipeline(), // ACR pipeline
getPipeline(), // HLD pipeline
undefined
);To see examples of how this library is used, refer to code here.
Development
- Clone the project and run
yarn. - Run
yarn buildto build the lib folder that contains all the built files - To publish a change, you must be logged into npm. Run
yarn publishto publish a new version to this package.
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago