Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hopinc/hop-js
Browse files Browse the repository at this point in the history
  • Loading branch information
alii committed Nov 3, 2022
2 parents 8ab833b + e08896d commit d124e34
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @onehop/js

## 1.9.13

### Patch Changes

- d8cd9b3: Force version bump

## 1.9.11

### Patch Changes

- 7882842: added container metrics

## 1.9.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onehop/js",
"version": "1.9.10",
"version": "1.9.13",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
Expand Down
7 changes: 7 additions & 0 deletions src/rest/types/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@ export enum ChannelType {
UNPROTECTED = 'unprotected',
}

/**
* Generic state type of a channel
* @public
*/
export type State = Record<string, unknown>;

/**
* @public
*/
export interface Channel {
/**
* The ID of the channel
Expand Down
13 changes: 13 additions & 0 deletions src/rest/types/ignite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ export interface Container {
last_start: Timestamp;
};

/**
* Metrics for this container
*/
metrics: {
cpu_usage_percent: number;
memory_usage_percent: number;
} | null;

/**
* Information about the container
*/
Expand Down Expand Up @@ -212,6 +220,11 @@ export interface Deployment {
*/
active_build: Build | null;

/**
* The amount of containers in the running state
*/
running_container_count: number;

/**
* The target amount of containers a deployment should run
*/
Expand Down

1 comment on commit d124e34

@vercel
Copy link

@vercel vercel bot commented on d124e34 Nov 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hop-js – ./

hop-js.vercel.app
hop-js-git-master-onehop.vercel.app
js.hop.io
hop-js-onehop.vercel.app

Please sign in to comment.