mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-30 14:25:22 -05:00
mount SetUsersInUserGroup
This commit is contained in:
@@ -51,6 +51,7 @@ enum WriteRequest {
|
|||||||
DeleteUserGroup(DeleteUserGroup),
|
DeleteUserGroup(DeleteUserGroup),
|
||||||
AddUserToUserGroup(AddUserToUserGroup),
|
AddUserToUserGroup(AddUserToUserGroup),
|
||||||
RemoveUserFromUserGroup(RemoveUserFromUserGroup),
|
RemoveUserFromUserGroup(RemoveUserFromUserGroup),
|
||||||
|
SetUsersInUserGroup(SetUsersInUserGroup),
|
||||||
|
|
||||||
// ==== PERMISSIONS ====
|
// ==== PERMISSIONS ====
|
||||||
UpdateUserBasePermissions(UpdateUserBasePermissions),
|
UpdateUserBasePermissions(UpdateUserBasePermissions),
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ export type WriteResponses = {
|
|||||||
DeleteUserGroup: Types.UserGroup;
|
DeleteUserGroup: Types.UserGroup;
|
||||||
AddUserToUserGroup: Types.UserGroup;
|
AddUserToUserGroup: Types.UserGroup;
|
||||||
RemoveUserFromUserGroup: Types.UserGroup;
|
RemoveUserFromUserGroup: Types.UserGroup;
|
||||||
|
SetUsersInUserGroup: Types.UserGroup;
|
||||||
|
|
||||||
// ==== PERMISSIONS ====
|
// ==== PERMISSIONS ====
|
||||||
UpdateUserBasePermissions: Types.UpdateUserBasePermissionsResponse;
|
UpdateUserBasePermissions: Types.UpdateUserBasePermissionsResponse;
|
||||||
|
|||||||
@@ -60,13 +60,19 @@ export interface User {
|
|||||||
|
|
||||||
export type GetUserResponse = User;
|
export type GetUserResponse = User;
|
||||||
|
|
||||||
|
/** Severity level of problem. */
|
||||||
export enum SeverityLevel {
|
export enum SeverityLevel {
|
||||||
|
/** No problem. */
|
||||||
Ok = "OK",
|
Ok = "OK",
|
||||||
|
/** Problem is imminent. */
|
||||||
Warning = "WARNING",
|
Warning = "WARNING",
|
||||||
|
/** Problem fully realized. */
|
||||||
Critical = "CRITICAL",
|
Critical = "CRITICAL",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The variants of data related to the alert. */
|
||||||
export type AlertData =
|
export type AlertData =
|
||||||
|
/** A server could not be reached. */
|
||||||
| { type: "ServerUnreachable", data: {
|
| { type: "ServerUnreachable", data: {
|
||||||
/** The id of the server */
|
/** The id of the server */
|
||||||
id: string;
|
id: string;
|
||||||
@@ -77,6 +83,7 @@ export type AlertData =
|
|||||||
/** The error data */
|
/** The error data */
|
||||||
err?: _Serror;
|
err?: _Serror;
|
||||||
}}
|
}}
|
||||||
|
/** A server has high CPU usage. */
|
||||||
| { type: "ServerCpu", data: {
|
| { type: "ServerCpu", data: {
|
||||||
/** The id of the server */
|
/** The id of the server */
|
||||||
id: string;
|
id: string;
|
||||||
@@ -87,6 +94,7 @@ export type AlertData =
|
|||||||
/** The cpu usage percentage */
|
/** The cpu usage percentage */
|
||||||
percentage: number;
|
percentage: number;
|
||||||
}}
|
}}
|
||||||
|
/** A server has high memory usage. */
|
||||||
| { type: "ServerMem", data: {
|
| { type: "ServerMem", data: {
|
||||||
/** The id of the server */
|
/** The id of the server */
|
||||||
id: string;
|
id: string;
|
||||||
@@ -99,6 +107,7 @@ export type AlertData =
|
|||||||
/** The total memory */
|
/** The total memory */
|
||||||
total_gb: number;
|
total_gb: number;
|
||||||
}}
|
}}
|
||||||
|
/** A server has high disk usage. */
|
||||||
| { type: "ServerDisk", data: {
|
| { type: "ServerDisk", data: {
|
||||||
/** The id of the server */
|
/** The id of the server */
|
||||||
id: string;
|
id: string;
|
||||||
@@ -113,6 +122,7 @@ export type AlertData =
|
|||||||
/** The total size of the disk in GB */
|
/** The total size of the disk in GB */
|
||||||
total_gb: number;
|
total_gb: number;
|
||||||
}}
|
}}
|
||||||
|
/** A container's state has changed unexpectedly. */
|
||||||
| { type: "ContainerStateChange", data: {
|
| { type: "ContainerStateChange", data: {
|
||||||
/** The id of the deployment */
|
/** The id of the deployment */
|
||||||
id: string;
|
id: string;
|
||||||
@@ -127,6 +137,7 @@ export type AlertData =
|
|||||||
/** The current container state */
|
/** The current container state */
|
||||||
to: DockerContainerState;
|
to: DockerContainerState;
|
||||||
}}
|
}}
|
||||||
|
/** An AWS builder failed to terminate. */
|
||||||
| { type: "AwsBuilderTerminationFailed", data: {
|
| { type: "AwsBuilderTerminationFailed", data: {
|
||||||
/** The id of the aws instance which failed to terminate */
|
/** The id of the aws instance which failed to terminate */
|
||||||
instance_id: string;
|
instance_id: string;
|
||||||
@@ -134,6 +145,7 @@ export type AlertData =
|
|||||||
| { type: "None", data: {
|
| { type: "None", data: {
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
/** Representation of an alert in the system. */
|
||||||
export interface Alert {
|
export interface Alert {
|
||||||
/**
|
/**
|
||||||
* The Mongo ID of the alert.
|
* The Mongo ID of the alert.
|
||||||
@@ -177,7 +189,9 @@ export interface Resource<Config, Info> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type AlerterConfig =
|
export type AlerterConfig =
|
||||||
|
/** Send alert serialized to JSON to an http endpoint. */
|
||||||
| { type: "Custom", params: CustomAlerterConfig }
|
| { type: "Custom", params: CustomAlerterConfig }
|
||||||
|
/** Send alert to a slack app */
|
||||||
| { type: "Slack", params: SlackAlerterConfig };
|
| { type: "Slack", params: SlackAlerterConfig };
|
||||||
|
|
||||||
export interface AlerterInfo {
|
export interface AlerterInfo {
|
||||||
@@ -227,6 +241,7 @@ export interface EnvironmentVar {
|
|||||||
value: string;
|
value: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** The build configuration. */
|
||||||
export interface BuildConfig {
|
export interface BuildConfig {
|
||||||
/** Which builder is used to build the image. */
|
/** Which builder is used to build the image. */
|
||||||
builder_id?: string;
|
builder_id?: string;
|
||||||
@@ -312,7 +327,9 @@ export type GetBuildVersionsResponse = BuildVersionResponseItem[];
|
|||||||
export type ListDockerOrganizationsResponse = string[];
|
export type ListDockerOrganizationsResponse = string[];
|
||||||
|
|
||||||
export type BuilderConfig =
|
export type BuilderConfig =
|
||||||
|
/** Use a connected server an image builder. */
|
||||||
| { type: "Server", params: ServerBuilderConfig }
|
| { type: "Server", params: ServerBuilderConfig }
|
||||||
|
/** Use EC2 instances spawned on demand as an image builder. */
|
||||||
| { type: "Aws", params: AwsBuilderConfig };
|
| { type: "Aws", params: AwsBuilderConfig };
|
||||||
|
|
||||||
export type Builder = Resource<BuilderConfig, undefined>;
|
export type Builder = Resource<BuilderConfig, undefined>;
|
||||||
@@ -329,10 +346,12 @@ export type BuilderListItem = ResourceListItem<BuilderListItemInfo>;
|
|||||||
export type ListBuildersResponse = BuilderListItem[];
|
export type ListBuildersResponse = BuilderListItem[];
|
||||||
|
|
||||||
export type DeploymentImage =
|
export type DeploymentImage =
|
||||||
|
/** Deploy any external image. */
|
||||||
| { type: "Image", params: {
|
| { type: "Image", params: {
|
||||||
/** The docker image, can be from any registry that works with docker and that the host server can reach. */
|
/** The docker image, can be from any registry that works with docker and that the host server can reach. */
|
||||||
image?: string;
|
image?: string;
|
||||||
}}
|
}}
|
||||||
|
/** Deploy a monitor build. */
|
||||||
| { type: "Build", params: {
|
| { type: "Build", params: {
|
||||||
/** The id of the build */
|
/** The id of the build */
|
||||||
build_id?: string;
|
build_id?: string;
|
||||||
@@ -356,7 +375,9 @@ export interface TerminationSignalLabel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface Conversion {
|
export interface Conversion {
|
||||||
|
/** reference on the server. */
|
||||||
local: string;
|
local: string;
|
||||||
|
/** reference in the container. */
|
||||||
container: string;
|
container: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -370,7 +391,7 @@ export enum RestartMode {
|
|||||||
export interface DeploymentConfig {
|
export interface DeploymentConfig {
|
||||||
/** The id of server the deployment is deployed on. */
|
/** The id of server the deployment is deployed on. */
|
||||||
server_id?: string;
|
server_id?: string;
|
||||||
/** Whether to send ContainerStateChange alerts for this deployment */
|
/** Whether to send ContainerStateChange alerts for this deployment. */
|
||||||
send_alerts: boolean;
|
send_alerts: boolean;
|
||||||
/**
|
/**
|
||||||
* The image which the deployment deploys.
|
* The image which the deployment deploys.
|
||||||
@@ -451,10 +472,15 @@ export enum DockerContainerState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface DeploymentListItemInfo {
|
export interface DeploymentListItemInfo {
|
||||||
|
/** The state of the docker container. */
|
||||||
state: DockerContainerState;
|
state: DockerContainerState;
|
||||||
|
/** The status of the docker container (eg. up 12 hours, exited 5 minutes ago.) */
|
||||||
status?: string;
|
status?: string;
|
||||||
|
/** The image attached to the deployment. */
|
||||||
image: string;
|
image: string;
|
||||||
|
/** The server that deployment sits on. */
|
||||||
server_id: string;
|
server_id: string;
|
||||||
|
/** An attached monitor build, if it exists. */
|
||||||
build_id?: string;
|
build_id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -643,6 +669,7 @@ export interface RepoActionState {
|
|||||||
|
|
||||||
export type GetRepoActionStateResponse = RepoActionState;
|
export type GetRepoActionStateResponse = RepoActionState;
|
||||||
|
|
||||||
|
/** Server configuration. */
|
||||||
export interface ServerConfig {
|
export interface ServerConfig {
|
||||||
/**
|
/**
|
||||||
* The http address of the periphery client.
|
* The http address of the periphery client.
|
||||||
@@ -695,17 +722,26 @@ export type Server = Resource<ServerConfig, undefined>;
|
|||||||
export type GetServerResponse = Server;
|
export type GetServerResponse = Server;
|
||||||
|
|
||||||
export enum ServerStatus {
|
export enum ServerStatus {
|
||||||
|
/** Server is unreachable. */
|
||||||
NotOk = "NotOk",
|
NotOk = "NotOk",
|
||||||
|
/** Server health check passing. */
|
||||||
Ok = "Ok",
|
Ok = "Ok",
|
||||||
|
/** Server is disabled. */
|
||||||
Disabled = "Disabled",
|
Disabled = "Disabled",
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServerListItemInfo {
|
export interface ServerListItemInfo {
|
||||||
|
/** The server's status. */
|
||||||
status: ServerStatus;
|
status: ServerStatus;
|
||||||
|
/** Region of the server. */
|
||||||
region: string;
|
region: string;
|
||||||
|
/** Whether server is configured to send unreachable alerts. */
|
||||||
send_unreachable_alerts: boolean;
|
send_unreachable_alerts: boolean;
|
||||||
|
/** Whether server is configured to send cpu alerts. */
|
||||||
send_cpu_alerts: boolean;
|
send_cpu_alerts: boolean;
|
||||||
|
/** Whether server is configured to send mem alerts. */
|
||||||
send_mem_alerts: boolean;
|
send_mem_alerts: boolean;
|
||||||
|
/** Whether server is configured to send disk alerts. */
|
||||||
send_disk_alerts: boolean;
|
send_disk_alerts: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -713,15 +749,21 @@ export type ServerListItem = ResourceListItem<ServerListItemInfo>;
|
|||||||
|
|
||||||
export type ListServersResponse = ServerListItem[];
|
export type ListServersResponse = ServerListItem[];
|
||||||
|
|
||||||
|
/** Current pending actions on the server. */
|
||||||
export interface ServerActionState {
|
export interface ServerActionState {
|
||||||
|
/** Server currently pruning networks */
|
||||||
pruning_networks: boolean;
|
pruning_networks: boolean;
|
||||||
|
/** Server currently pruning containers */
|
||||||
pruning_containers: boolean;
|
pruning_containers: boolean;
|
||||||
|
/** Server currently pruning images */
|
||||||
pruning_images: boolean;
|
pruning_images: boolean;
|
||||||
|
/** Server currently stopping all containers. */
|
||||||
stopping_containers: boolean;
|
stopping_containers: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GetServerActionStateResponse = ServerActionState;
|
export type GetServerActionStateResponse = ServerActionState;
|
||||||
|
|
||||||
|
/** Ipam Configuration. */
|
||||||
export interface IpamConfig {
|
export interface IpamConfig {
|
||||||
Subnet?: string;
|
Subnet?: string;
|
||||||
IPRange?: string;
|
IPRange?: string;
|
||||||
@@ -729,6 +771,7 @@ export interface IpamConfig {
|
|||||||
AuxiliaryAddresses?: Record<string, string>;
|
AuxiliaryAddresses?: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Ipam related information */
|
||||||
export interface Ipam {
|
export interface Ipam {
|
||||||
/** Name of the IPAM driver to use. */
|
/** Name of the IPAM driver to use. */
|
||||||
Driver?: string;
|
Driver?: string;
|
||||||
@@ -738,6 +781,7 @@ export interface Ipam {
|
|||||||
Options?: Record<string, string>;
|
Options?: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** A container on a network. */
|
||||||
export interface NetworkContainer {
|
export interface NetworkContainer {
|
||||||
Name?: string;
|
Name?: string;
|
||||||
EndpointID?: string;
|
EndpointID?: string;
|
||||||
@@ -746,6 +790,7 @@ export interface NetworkContainer {
|
|||||||
IPv6Address?: string;
|
IPv6Address?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Summary of a docker network on a server. */
|
||||||
export interface DockerNetwork {
|
export interface DockerNetwork {
|
||||||
/** The name of the docker network */
|
/** The name of the docker network */
|
||||||
Name?: string;
|
Name?: string;
|
||||||
@@ -767,7 +812,7 @@ export interface DockerNetwork {
|
|||||||
|
|
||||||
export type GetDockerNetworksResponse = DockerNetwork[];
|
export type GetDockerNetworksResponse = DockerNetwork[];
|
||||||
|
|
||||||
/** Summary of docker image cached on a server */
|
/** Summary of a docker image cached on a server */
|
||||||
export interface ImageSummary {
|
export interface ImageSummary {
|
||||||
/** ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image. */
|
/** ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image. */
|
||||||
Id: string;
|
Id: string;
|
||||||
@@ -793,6 +838,7 @@ export interface ImageSummary {
|
|||||||
|
|
||||||
export type GetDockerImagesResponse = ImageSummary[];
|
export type GetDockerImagesResponse = ImageSummary[];
|
||||||
|
|
||||||
|
/** A summary of a docker container on a server. */
|
||||||
export interface ContainerSummary {
|
export interface ContainerSummary {
|
||||||
/** Name of the container. */
|
/** Name of the container. */
|
||||||
name: string;
|
name: string;
|
||||||
@@ -810,17 +856,25 @@ export interface ContainerSummary {
|
|||||||
|
|
||||||
export type GetDockerContainersResponse = ContainerSummary[];
|
export type GetDockerContainersResponse = ContainerSummary[];
|
||||||
|
|
||||||
|
/** System information of a server */
|
||||||
export interface SystemInformation {
|
export interface SystemInformation {
|
||||||
|
/** The system name */
|
||||||
name?: string;
|
name?: string;
|
||||||
|
/** The system long os version */
|
||||||
os?: string;
|
os?: string;
|
||||||
|
/** System's kernel version */
|
||||||
kernel?: string;
|
kernel?: string;
|
||||||
|
/** Physical core count */
|
||||||
core_count?: number;
|
core_count?: number;
|
||||||
|
/** System hostname based off DNS */
|
||||||
host_name?: string;
|
host_name?: string;
|
||||||
|
/** The CPU's brand */
|
||||||
cpu_brand: string;
|
cpu_brand: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GetSystemInformationResponse = SystemInformation;
|
export type GetSystemInformationResponse = SystemInformation;
|
||||||
|
|
||||||
|
/** Info for a single disk mounted on the system. */
|
||||||
export interface SingleDiskUsage {
|
export interface SingleDiskUsage {
|
||||||
/** The mount point of the disk */
|
/** The mount point of the disk */
|
||||||
mount: string;
|
mount: string;
|
||||||
@@ -854,6 +908,7 @@ export enum Timelength {
|
|||||||
ThirtyDays = "30-day",
|
ThirtyDays = "30-day",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Realtime system stats data. */
|
||||||
export interface SystemStats {
|
export interface SystemStats {
|
||||||
/** Cpu usage percentage */
|
/** Cpu usage percentage */
|
||||||
cpu_perc: number;
|
cpu_perc: number;
|
||||||
@@ -873,6 +928,7 @@ export interface SystemStats {
|
|||||||
|
|
||||||
export type GetSystemStatsResponse = SystemStats;
|
export type GetSystemStatsResponse = SystemStats;
|
||||||
|
|
||||||
|
/** Information about a process on the system. */
|
||||||
export interface SystemProcess {
|
export interface SystemProcess {
|
||||||
/** The process PID */
|
/** The process PID */
|
||||||
pid: number;
|
pid: number;
|
||||||
@@ -986,6 +1042,7 @@ export interface Update {
|
|||||||
|
|
||||||
export type GetUpdateResponse = Update;
|
export type GetUpdateResponse = Update;
|
||||||
|
|
||||||
|
/** An api key used to authenticate requests via request headers. */
|
||||||
export interface ApiKey {
|
export interface ApiKey {
|
||||||
/** Unique key associated with secret */
|
/** Unique key associated with secret */
|
||||||
key: string;
|
key: string;
|
||||||
@@ -1141,6 +1198,7 @@ export type _PartialServerConfig = Partial<ServerConfig>;
|
|||||||
export interface ServerQuerySpecifics {
|
export interface ServerQuerySpecifics {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Server-specific query */
|
||||||
export type ServerQuery = ResourceQuery<ServerQuerySpecifics>;
|
export type ServerQuery = ResourceQuery<ServerQuerySpecifics>;
|
||||||
|
|
||||||
export type _PartialTag = Partial<Tag>;
|
export type _PartialTag = Partial<Tag>;
|
||||||
@@ -1603,6 +1661,7 @@ export interface GetHistoricalServerStats {
|
|||||||
page?: number;
|
page?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** System stats stored on the database. */
|
||||||
export interface SystemStatsRecord {
|
export interface SystemStatsRecord {
|
||||||
/** Unix timestamp in milliseconds */
|
/** Unix timestamp in milliseconds */
|
||||||
ts: I64;
|
ts: I64;
|
||||||
@@ -1802,6 +1861,7 @@ export interface UpdateBuild {
|
|||||||
config: _PartialBuildConfig;
|
config: _PartialBuildConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Partial representation of [BuilderConfig] */
|
||||||
export type PartialBuilderConfig =
|
export type PartialBuilderConfig =
|
||||||
| { type: "Server", params: _PartialServerBuilderConfig }
|
| { type: "Server", params: _PartialServerBuilderConfig }
|
||||||
| { type: "Aws", params: _PartialAwsBuilderConfig };
|
| { type: "Aws", params: _PartialAwsBuilderConfig };
|
||||||
@@ -2018,13 +2078,13 @@ export interface UpdateServiceUserDescription {
|
|||||||
description: string;
|
description: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Admin only */
|
/** **Admin only.** Response: [UserGroup] */
|
||||||
export interface CreateUserGroup {
|
export interface CreateUserGroup {
|
||||||
/** The name to assign to the new UserGroup */
|
/** The name to assign to the new UserGroup */
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Admin only */
|
/** **Admin only.** Response: [UserGroup] */
|
||||||
export interface RenameUserGroup {
|
export interface RenameUserGroup {
|
||||||
/** The id of the UserGroup */
|
/** The id of the UserGroup */
|
||||||
id: string;
|
id: string;
|
||||||
@@ -2032,28 +2092,35 @@ export interface RenameUserGroup {
|
|||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Admin only */
|
/** **Admin only.** Response: [UserGroup] */
|
||||||
export interface DeleteUserGroup {
|
export interface DeleteUserGroup {
|
||||||
/** The id of the UserGroup */
|
/** The id of the UserGroup */
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Admin only */
|
/** **Admin only.** Response: [UserGroup] */
|
||||||
export interface AddUserToUserGroup {
|
export interface AddUserToUserGroup {
|
||||||
/** The name or id of UserGroup that user should be added to. */
|
/** The name or id of UserGroup that user should be added to. */
|
||||||
user_group: string;
|
user_group: string;
|
||||||
/** The id of the user to add */
|
/** The id or username of the user to add */
|
||||||
user_id: string;
|
user: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Admin only */
|
/** **Admin only.** Response: [UserGroup] */
|
||||||
export interface RemoveUserFromUserGroup {
|
export interface RemoveUserFromUserGroup {
|
||||||
/** The name or id of UserGroup that user should be removed from. */
|
/** The name or id of UserGroup that user should be removed from. */
|
||||||
user_group: string;
|
user_group: string;
|
||||||
/** The id of the user to remove */
|
/** The id or username of the user to remove */
|
||||||
user_id: string;
|
user: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** **Admin only.** Response: [UserGroup] */
|
||||||
|
export interface SetUsersInUserGroup {
|
||||||
|
user_group: string;
|
||||||
|
users: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configuration for a custom alerter. */
|
||||||
export interface CustomAlerterConfig {
|
export interface CustomAlerterConfig {
|
||||||
/** The http/s endpoint to send the POST to */
|
/** The http/s endpoint to send the POST to */
|
||||||
url: string;
|
url: string;
|
||||||
@@ -2061,6 +2128,7 @@ export interface CustomAlerterConfig {
|
|||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Configuration for a slack alerter. */
|
||||||
export interface SlackAlerterConfig {
|
export interface SlackAlerterConfig {
|
||||||
/** The slack app url */
|
/** The slack app url */
|
||||||
url: string;
|
url: string;
|
||||||
@@ -2068,11 +2136,13 @@ export interface SlackAlerterConfig {
|
|||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Configuration for a monitor server builder. */
|
||||||
export interface ServerBuilderConfig {
|
export interface ServerBuilderConfig {
|
||||||
/** The server id of the builder */
|
/** The server id of the builder */
|
||||||
server_id: string;
|
server_id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Configuration for an AWS builder. */
|
||||||
export interface AwsBuilderConfig {
|
export interface AwsBuilderConfig {
|
||||||
/** The AWS region to create the instance in */
|
/** The AWS region to create the instance in */
|
||||||
region: string;
|
region: string;
|
||||||
@@ -2085,7 +2155,7 @@ export interface AwsBuilderConfig {
|
|||||||
/**
|
/**
|
||||||
* The EC2 ami id to create.
|
* The EC2 ami id to create.
|
||||||
* The ami should have the periphery client configured to start on startup,
|
* The ami should have the periphery client configured to start on startup,
|
||||||
* and should have the necessary github / dockerhub accounts configured
|
* and should have the necessary github / dockerhub accounts configured.
|
||||||
*/
|
*/
|
||||||
ami_id: string;
|
ami_id: string;
|
||||||
/** The subnet id to create the instance in. */
|
/** The subnet id to create the instance in. */
|
||||||
@@ -2122,6 +2192,7 @@ export interface CloneArgs {
|
|||||||
github_account?: string;
|
github_account?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Info for the all system disks combined. */
|
||||||
export interface TotalDiskUsage {
|
export interface TotalDiskUsage {
|
||||||
/** Used portion in GB */
|
/** Used portion in GB */
|
||||||
used_gb: number;
|
used_gb: number;
|
||||||
@@ -2129,6 +2200,7 @@ export interface TotalDiskUsage {
|
|||||||
total_gb: number;
|
total_gb: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Summary of the health of the server. */
|
||||||
export interface ServerHealth {
|
export interface ServerHealth {
|
||||||
cpu: SeverityLevel;
|
cpu: SeverityLevel;
|
||||||
mem: SeverityLevel;
|
mem: SeverityLevel;
|
||||||
@@ -2237,6 +2309,7 @@ export type WriteRequest =
|
|||||||
| { type: "DeleteUserGroup", params: DeleteUserGroup }
|
| { type: "DeleteUserGroup", params: DeleteUserGroup }
|
||||||
| { type: "AddUserToUserGroup", params: AddUserToUserGroup }
|
| { type: "AddUserToUserGroup", params: AddUserToUserGroup }
|
||||||
| { type: "RemoveUserFromUserGroup", params: RemoveUserFromUserGroup }
|
| { type: "RemoveUserFromUserGroup", params: RemoveUserFromUserGroup }
|
||||||
|
| { type: "SetUsersInUserGroup", params: SetUsersInUserGroup }
|
||||||
| { type: "UpdateUserBasePermissions", params: UpdateUserBasePermissions }
|
| { type: "UpdateUserBasePermissions", params: UpdateUserBasePermissions }
|
||||||
| { type: "UpdatePermissionOnTarget", params: UpdatePermissionOnTarget }
|
| { type: "UpdatePermissionOnTarget", params: UpdatePermissionOnTarget }
|
||||||
| { type: "UpdateDescription", params: UpdateDescription }
|
| { type: "UpdateDescription", params: UpdateDescription }
|
||||||
|
|||||||
Reference in New Issue
Block a user