update yml for job

This commit is contained in:
aliamerj
2025-09-23 21:03:06 +03:00
parent 2eba4af5ba
commit 4eeaf95ab8
2 changed files with 45 additions and 12 deletions

View File

@@ -32,28 +32,43 @@ tags:
- name: Ingress Ports - name: Ingress Ports
description: Interact with and view information about the ingress peers and ports. description: Interact with and view information about the ingress peers and ports.
x-cloud-only: true x-cloud-only: true
- name: Jobs
description: Interact with and view information about remote jobs.
x-experimental: true
components: components:
schemas: schemas:
WorkloadType: WorkloadType:
type: string type: string
description: |
Identifies the type of workload the job will execute.
Currently only `"bundle"` is supported.
enum: enum:
- bundle - bundle
example: "bundle"
BundleParameters: BundleParameters:
type: object type: object
description: These parameters control what gets included in the bundle and how it is processed.
properties: properties:
bundle_for: bundle_for:
type: boolean type: boolean
description: Whether to generate a bundle for the given timeframe.
example: true example: true
bundle_for_time: bundle_for_time:
type: integer type: integer
minimum: 0 minimum: 1
maximum: 5
description: Time period in minutes for which to generate the bundle.
example: 2 example: 2
log_file_count: log_file_count:
type: integer type: integer
minimum: 0 minimum: 1
maximum: 1000
description: Maximum number of log files to include in the bundle.
example: 100 example: 100
anonymize: anonymize:
type: boolean type: boolean
description: Whether sensitive data should be anonymized in the bundle.
example: false example: false
required: required:
- bundle_for - bundle_for
@@ -2286,10 +2301,10 @@ paths:
parameters: parameters:
- in: path - in: path
name: peerId name: peerId
description: The unique identifier of a peer
required: true required: true
schema: schema:
type: string type: string
description: The unique identifier of a peer
responses: responses:
'200': '200':
description: List of jobs description: List of jobs
@@ -2317,10 +2332,10 @@ paths:
parameters: parameters:
- in: path - in: path
name: peerId name: peerId
description: The unique identifier of a peer
required: true required: true
schema: schema:
type: string type: string
description: The unique identifier of a peer
requestBody: requestBody:
description: Create job request description: Create job request
content: content:
@@ -2355,11 +2370,13 @@ paths:
- in: path - in: path
name: peerId name: peerId
required: true required: true
description: The unique identifier of a peer
schema: schema:
type: string type: string
- in: path - in: path
name: jobId name: jobId
required: true required: true
description: The unique identifier of a job
schema: schema:
type: string type: string
responses: responses:

View File

@@ -353,12 +353,19 @@ type AvailablePorts struct {
Udp int `json:"udp"` Udp int `json:"udp"`
} }
// BundleParameters defines model for BundleParameters. // BundleParameters These parameters control what gets included in the bundle and how it is processed.
type BundleParameters struct { type BundleParameters struct {
Anonymize bool `json:"anonymize"` // Anonymize Whether sensitive data should be anonymized in the bundle.
BundleFor bool `json:"bundle_for"` Anonymize bool `json:"anonymize"`
BundleForTime int `json:"bundle_for_time"`
LogFileCount int `json:"log_file_count"` // BundleFor Whether to generate a bundle for the given timeframe.
BundleFor bool `json:"bundle_for"`
// BundleForTime Time period in minutes for which to generate the bundle.
BundleForTime int `json:"bundle_for_time"`
// LogFileCount Maximum number of log files to include in the bundle.
LogFileCount int `json:"log_file_count"`
} }
// BundleResult defines model for BundleResult. // BundleResult defines model for BundleResult.
@@ -368,15 +375,23 @@ type BundleResult struct {
// BundleWorkloadRequest defines model for BundleWorkloadRequest. // BundleWorkloadRequest defines model for BundleWorkloadRequest.
type BundleWorkloadRequest struct { type BundleWorkloadRequest struct {
// Parameters These parameters control what gets included in the bundle and how it is processed.
Parameters BundleParameters `json:"parameters"` Parameters BundleParameters `json:"parameters"`
Type WorkloadType `json:"type"`
// Type Identifies the type of workload the job will execute.
// Currently only `"bundle"` is supported.
Type WorkloadType `json:"type"`
} }
// BundleWorkloadResponse defines model for BundleWorkloadResponse. // BundleWorkloadResponse defines model for BundleWorkloadResponse.
type BundleWorkloadResponse struct { type BundleWorkloadResponse struct {
// Parameters These parameters control what gets included in the bundle and how it is processed.
Parameters BundleParameters `json:"parameters"` Parameters BundleParameters `json:"parameters"`
Result BundleResult `json:"result"` Result BundleResult `json:"result"`
Type WorkloadType `json:"type"`
// Type Identifies the type of workload the job will execute.
// Currently only `"bundle"` is supported.
Type WorkloadType `json:"type"`
} }
// Checks List of objects that perform the actual checks // Checks List of objects that perform the actual checks
@@ -1891,7 +1906,8 @@ type WorkloadResponse struct {
union json.RawMessage union json.RawMessage
} }
// WorkloadType defines model for WorkloadType. // WorkloadType Identifies the type of workload the job will execute.
// Currently only `"bundle"` is supported.
type WorkloadType string type WorkloadType string
// GetApiEventsNetworkTrafficParams defines parameters for GetApiEventsNetworkTraffic. // GetApiEventsNetworkTrafficParams defines parameters for GetApiEventsNetworkTraffic.