Skip to content

Commit

Permalink
add example for instance_size_slug
Browse files Browse the repository at this point in the history
  • Loading branch information
loosla committed Oct 30, 2024
1 parent fbf32ac commit 65b5c22
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions specification/resources/apps/models/app_component_instance_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,52 @@ properties:
type: integer
format: int64
minimum: 1
description: 'The amount of instances that this component should be scaled to. Default: 1. Must not be set if autoscaling is used.'
description: "The amount of instances that this component should be scaled to. Default: 1. Must not be set if autoscaling is used."
default: 1
example: 2

instance_size_slug:
description: 'The instance size to use for this component. Default: `apps-s-1vcpu-0.5gb`'
description: "The instance size to use for this component. Default: `apps-s-1vcpu-0.5gb`"
oneOf:
- $ref: '#/properties/old_instance_size_slug'
- $ref: "#/properties/old_instance_size_slug"
- type: string
enum:
- apps-s-1vcpu-0.5gb
- apps-s-1vcpu-1gb-fixed
- apps-s-1vcpu-1gb
- apps-s-1vcpu-2gb
- apps-s-2vcpu-4gb
- apps-d-1vcpu-0.5gb
- apps-d-1vcpu-1gb
- apps-d-1vcpu-2gb
- apps-d-1vcpu-4gb
- apps-d-2vcpu-4gb
- apps-d-2vcpu-8gb
- apps-d-4vcpu-8gb
- apps-d-4vcpu-16gb
- apps-d-8vcpu-32gb
- apps-s-1vcpu-0.5gb
- apps-s-1vcpu-1gb-fixed
- apps-s-1vcpu-1gb
- apps-s-1vcpu-2gb
- apps-s-2vcpu-4gb
- apps-d-1vcpu-0.5gb
- apps-d-1vcpu-1gb
- apps-d-1vcpu-2gb
- apps-d-1vcpu-4gb
- apps-d-2vcpu-4gb
- apps-d-2vcpu-8gb
- apps-d-4vcpu-8gb
- apps-d-4vcpu-16gb
- apps-d-8vcpu-32gb
default: apps-s-1vcpu-0.5gb
example: apps-s-1vcpu-0.5gb
example: apps-s-1vcpu-0.5gb

old_instance_size_slug:
description: 'Deprecated in favor of more detailed instance size slugs. Default: `basic-xxs`'
description: "Deprecated in favor of more detailed instance size slugs. Default: `basic-xxs`"
type: string
enum:
- basic-xxs
- basic-xs
- basic-s
- basic-m
- professional-xs
- professional-s
- professional-m
- professional-1l
- professional-l
- professional-xl
- basic-xxs
- basic-xs
- basic-s
- basic-m
- professional-xs
- professional-s
- professional-m
- professional-1l
- professional-l
- professional-xl
default: basic-xxs
example: basic-xxs
deprecated: true

autoscaling:
description: Configuration for automatically scaling this component based on metrics.
type: object
Expand Down Expand Up @@ -81,4 +82,4 @@ properties:
minimum: 1
maximum: 100
default: 80
example: 75
example: 75

0 comments on commit 65b5c22

Please sign in to comment.