Skip to content

Commit

Permalink
Merge pull request #47 from hopinc/feat/container-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
alii authored Oct 26, 2022
2 parents aafd90a + 7882842 commit 2468c4e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-comics-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@onehop/js': patch
---

added container metrics
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
8 changes: 8 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

1 comment on commit 2468c4e

@vercel
Copy link

@vercel vercel bot commented on 2468c4e Oct 26, 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.