Skip to content

Commit

Permalink
chore: auto-gen by protobufs
Browse files Browse the repository at this point in the history
triggered by commit: a5a62df
  • Loading branch information
droplet-bot committed Nov 6, 2024
1 parent 6af38dd commit 9371dfc
Showing 1 changed file with 124 additions and 56 deletions.
180 changes: 124 additions & 56 deletions openapi/v2/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2176,13 +2176,57 @@ paths:
tags:
- "\U0001F4CA Metrics"
x-stage: beta
/v1beta/metrics/vdp/pipeline/charts:
/v1beta/pipeline-runs/count:
get:
summary: Get pipeline trigger count
description: |-
Returns the pipeline trigger count of a given requester within a timespan.
Results are grouped by trigger status.
operationId: MgmtPublicService_GetPipelineTriggerCount
responses:
"200":
description: A successful response.
schema:
$ref: '#/definitions/GetPipelineTriggerCountResponse'
"401":
description: Returned when the client credentials are not valid.
schema: {}
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/rpc.Status'
parameters:
- name: namespaceId
description: The ID of the namespace that requested the pipeline triggers.
in: query
required: true
type: string
- name: start
description: |-
Beginning of the time range from which the records will be fetched.
The default value is the beginning of the current day, in UTC.
in: query
required: false
type: string
format: date-time
- name: stop
description: |-
End of the time range from which the records will be fetched.
The default value is the current timestamp.
in: query
required: false
type: string
format: date-time
tags:
- "\U0001F4CA Metrics"
x-stage: beta
/v1beta/pipeline-runs/query-charts:
get:
summary: List pipeline trigger time charts
description: |-
Returns a timeline of pipline trigger counts for the pipelines of a given
owner.
NOTE: This method will soon return the trigger counts of a given requester.
Returns a timeline of pipline trigger counts for a given requester. The
response will contain one set of records (datapoints), representing the
amount of triggers in a time bucket.
operationId: MgmtPublicService_ListPipelineTriggerChartRecords
responses:
"200":
Expand All @@ -2197,20 +2241,36 @@ paths:
schema:
$ref: '#/definitions/rpc.Status'
parameters:
- name: requesterId
description: The ID of the namespace that requested the pipeline triggers.
in: query
required: false
type: string
- name: aggregationWindow
description: Aggregation window in nanoseconds.
description: |-
Aggregation window. The value is a positive duration string, i.e. a
sequence of decimal numbers, each with optional fraction and a unit
suffix, such as "300ms", "1.5h" or "2h45m".
The minimum (and default) window is 1h.
in: query
required: false
type: integer
format: int32
- name: filter
type: string
- name: start
description: |-
Filter can hold an [AIP-160](https://google.aip.dev/160)-compliant filter
expression.
- Example: `create_time>timestamp("2000-06-19T23:31:08.657Z")`.
Beginning of the time range from which the records will be fetched.
The default value is the beginning of the current day, in UTC.
in: query
required: false
type: string
format: date-time
- name: stop
description: |-
End of the time range from which the records will be fetched.
The default value is the current timestamp.
in: query
required: false
type: string
format: date-time
tags:
- "\U0001F4CA Metrics"
x-stage: beta
Expand Down Expand Up @@ -7072,6 +7132,18 @@ definitions:
allOf:
- $ref: '#/definitions/OrganizationSubscription'
description: GetOrganizationSubscriptionResponse contains the requested subscription.
GetPipelineTriggerCountResponse:
type: object
properties:
pipelineTriggerCounts:
type: array
items:
type: object
$ref: '#/definitions/TriggerCount'
description: The trigger counts, grouped by status.
description: |-
GetPipelineTriggerCountResponse contains the trigger count, grouped by
trigger status.
GetPlaygroundConversationResponse:
type: object
properties:
Expand Down Expand Up @@ -7894,7 +7966,11 @@ definitions:
items:
type: object
$ref: '#/definitions/PipelineTriggerChartRecord'
description: A list of pipeline trigger records.
description: |-
Pipeline trigger counts. Until we allow filtering or grouping by fields
like pipeline ID, this list will contain only one element with the
timeline of trigger counts for a given requester, regardless the pipeline
ID, trigger mode, final status or other fields.
description: |-
ListPipelineTriggerChartRecordsResponse contains a list of pipeline trigger
chart records.
Expand Down Expand Up @@ -8376,10 +8452,6 @@ definitions:
type: string
description: Model Run UUID.
readOnly: true
modelUid:
type: string
description: Model UUID.
readOnly: true
status:
description: Model run status.
readOnly: true
Expand All @@ -8402,7 +8474,9 @@ definitions:
readOnly: true
runnerId:
type: string
description: Runner ID. If current viewing requester does not have enough permission, it will return null.
description: |-
Runner ID. The user triggered the run. If current viewing requester does not
have enough permission, it will return null.
readOnly: true
creditAmount:
type: number
Expand Down Expand Up @@ -8446,12 +8520,12 @@ definitions:
requesterId:
type: string
description: |-
Requester ID. This field might be empty if the model run belongs to a
deleted namespace.
Requester ID. The namespace used to trigger the run. This field might be
empty if the model run belongs to a deleted namespace.
readOnly: true
namespaceId:
modelNamespaceId:
type: string
description: Namespace ID.
description: ID of the namespace that owns the model.
readOnly: true
description: ModelRun contains information about a run of models.
ModelTriggerChartRecord:
Expand Down Expand Up @@ -9043,10 +9117,6 @@ definitions:
PipelineRun:
type: object
properties:
pipelineUid:
type: string
description: Unique identifier for the pipeline.
readOnly: true
pipelineRunUid:
type: string
description: Unique identifier for each run.
Expand All @@ -9072,7 +9142,9 @@ definitions:
readOnly: true
runnerId:
type: string
description: Runner ID. If current viewing requester does not have enough permission, it will return null.
description: |-
Runner ID. The user triggered the run. If current viewing requester does not
have enough permission, it will return null.
readOnly: true
inputs:
type: array
Expand Down Expand Up @@ -9121,32 +9193,21 @@ definitions:
requesterId:
type: string
description: |-
Requester ID. This field might be empty if the pipeline run belongs to a
deleted namespace.
Requester ID. The namespace used to trigger the run. This field might be
empty if the pipeline run belongs to a deleted namespace.
readOnly: true
namespaceId:
pipelineNamespaceId:
type: string
title: Namespace ID
description: ID of the namespace that owns the pipeline.
readOnly: true
description: PipelineRun represents a single execution of a pipeline.
PipelineTriggerChartRecord:
type: object
properties:
pipelineId:
type: string
description: Pipeline ID.
pipelineUid:
type: string
description: Pipeline UUID.
triggerMode:
description: Trigger mode.
allOf:
- $ref: '#/definitions/Mode'
status:
description: Final status.
description: This field will be present present when the information is grouped by pipeline.
readOnly: true
allOf:
- $ref: '#/definitions/v1beta.Status'
timeBuckets:
type: array
items:
Expand All @@ -9161,23 +9222,14 @@ definitions:
format: int32
description: Aggregated trigger count in each time bucket.
readOnly: true
computeTimeDuration:
type: array
items:
type: number
format: float
description: Total computation time duration in each time bucket.
readOnly: true
pipelineReleaseId:
type: string
description: Version for the triggered pipeline if it is a release pipeline.
readOnly: true
pipelineReleaseUid:
requesterId:
type: string
description: Release UUID for the triggered pipeline if it is a release pipeline.
description: The ID of the namespace that requested the model triggers.
readOnly: true
description: |-
PipelineTriggerChartRecord contains pipeline trigger metrics, aggregated by
PipelineTriggerChartRecord represents a timeline of pipeline triggers. It
contains a collection of (timestamp, count) pairs that represent the total
pipeline triggers in a given time bucket.
pipeline ID and time frame.
PipelineTriggerRecord:
type: object
Expand Down Expand Up @@ -9849,6 +9901,22 @@ definitions:
description: |-
TriggerAsyncNamespacePipelineResponse contains the information to access the
status of an asynchronous pipeline execution.
TriggerCount:
type: object
properties:
triggerCount:
type: integer
format: int32
description: Number of triggers.
readOnly: true
status:
description: This field will be present when results are grouped by trigger status.
readOnly: true
allOf:
- $ref: '#/definitions/v1beta.Status'
description: |-
TriggerCount represents a execution count with some
aggregation params (e.g. trigger status).
TriggerData:
type: object
properties:
Expand Down

0 comments on commit 9371dfc

Please sign in to comment.