@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
131 lines • 2.74 kB
TypeScript
export interface MonitoringQueryFilter {
/**
* Cluster's ID or SLUG
*/
cluster?: string;
/**
* Resource's name
*/
name?: string;
/**
* Namespace's name
*/
namespace?: string;
/**
* Filter by labels
*/
labels?: Record<string, string>;
}
export interface MonitoringQueryOptions {
/**
* Sort the results based on metadata.
* @example { order: { "metadata.creationTimestamp": -1 } }
*/
order?: Record<string, 1 | -1>;
/**
* Alias of `order`
*/
sort?: Record<string, 1 | -1>;
/**
* If `TRUE`, return the closest results of filter
* @default false
*/
search?: boolean;
/**
* Output data type (JSON or YAML)
* @default "json"
*/
output?: "json" | "yaml";
/**
* Return full data, default is `FALSE` and returns compact data.
* @default false
*/
full?: boolean;
/**
* Debug mode enabling
* @default false
*/
isDebugging?: boolean;
}
export type MonitoringCreateOptions = Pick<MonitoringQueryOptions, "isDebugging" | "output">;
export interface MonitoringQueryParams {
/**
* Cluster's ID or SLUG
*/
cluster?: string;
/**
* Resource's name
*/
name?: string;
/**
* Namespace's name
*/
namespace?: string;
/**
* Filter by labels
*/
labels?: any;
/**
* Sort the results based on metadata.
* @example { order: { "metadata.creationTimestamp": -1 } }
*/
order?: any;
/**
* Alias of `order`
*/
sort?: any;
/**
* Output data type (JSON or YAML)
* @default "json"
*/
output?: "json" | "yaml";
/**
* Return full data, default is `FALSE` and returns compact data.
* @default false
*/
full?: boolean;
/**
* Debug mode enabling
* @default false
*/
isDebugging?: boolean;
}
export interface MonitoringNamespaceQueryFilter {
/**
* Cluster's ID or SLUG
*/
cluster?: string;
/**
* Namespace's name
*/
name?: string;
/**
* Filter by labels
*/
labels?: any;
/**
* Sort the results based on metadata.
* @example { order: { "metadata.creationTimestamp": -1 } }
*/
order?: any;
/**
* Alias of `order`
*/
sort?: any;
/**
* Output data type (JSON or YAML)
* @default "json"
*/
output?: "json" | "yaml";
/**
* Return full data, default is `FALSE` and returns compact data.
* @default false
*/
full?: boolean;
/**
* Debug mode enabling
* @default false
*/
isDebugging?: boolean;
}
//# sourceMappingURL=MonitoringQuery.d.ts.map