UNPKG

@canonical/jujulib

Version:
65 lines (63 loc) 1.89 kB
/** Juju ActionPruner version 1. This facade is available on: Controller-machine-agent Machine-agent Unit-agent Models NOTE: This file was generated using the Juju schema from Juju 3.3 at the git SHA 65fa4c1ee5. Do not manually edit this file. */ import { ConnectionInfo, Transport } from "../../client.js"; import { Facade } from "../../types.js"; export interface ActionPruneArgs { "max-history-mb": number; "max-history-time": number; } export interface Error { code: string; info?: AdditionalProperties; message: string; } export interface ModelConfigResult { config: AdditionalProperties; } export interface NotifyWatchResult { NotifyWatcherId: string; error?: Error; } export interface AdditionalProperties { [key: string]: any; } /** API provides access to the action pruner API. */ declare class ActionPrunerV1 implements Facade { static NAME: string; static VERSION: number; NAME: string; VERSION: number; _transport: Transport; _info: ConnectionInfo; constructor(transport: Transport, info: ConnectionInfo); /** ModelConfig returns the current model's configuration. */ modelConfig(params: any): Promise<ModelConfigResult>; /** Prune endpoint removes action entries until only the ones newer than now - p.MaxHistoryTime remain and the history is smaller than p.MaxHistoryMB. */ prune(params: ActionPruneArgs): Promise<any>; /** WatchForModelConfigChanges returns a NotifyWatcher that observes changes to the model configuration. Note that although the NotifyWatchResult contains an Error field, it's not used because we are only returning a single watcher, so we use the regular error return. */ watchForModelConfigChanges(params: any): Promise<NotifyWatchResult>; } export default ActionPrunerV1;