@daocloud-proto/kpanda 0.21.0-dev-19470018 → 0.21.0-dev-cf9e76c1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -334,7 +334,7 @@ export class Cluster {
|
|
|
334
334
|
}
|
|
335
335
|
export class insight {
|
|
336
336
|
static GetPodContainerLog(req: KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogRequest, initReq?: fm.InitReq): Promise<KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogResponse> {
|
|
337
|
-
return fm.fetchReq<KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogRequest, KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/
|
|
337
|
+
return fm.fetchReq<KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogRequest, KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pods/${req["name"]}/log?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
338
338
|
}
|
|
339
339
|
static QueryClusterMetricsRange(req: KpandaIoApiInsightV1alpha1Insight.ClusterMetricsRangeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiInsightV1alpha1Insight.MetricRangeResponse> {
|
|
340
340
|
return fm.fetchReq<KpandaIoApiInsightV1alpha1Insight.ClusterMetricsRangeRequest, KpandaIoApiInsightV1alpha1Insight.MetricRangeResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/metricrange`, {...initReq, method: "POST", body: JSON.stringify(req)})
|