-
Notifications
You must be signed in to change notification settings - Fork 258
Document 'gcp.apphub_destination.*' attributes. #2663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
dd275e4
52c0029
774da28
41ac38e
db642eb
ae95b51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
change_type: enhancement | ||
component: gcp | ||
note: Document `gcp.apphub_destination.*` attributes | ||
issues: [2649] |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -172,6 +172,132 @@ groups: | |||||
Criticality of a workload indicates its importance to the business. | ||||||
note: > | ||||||
[See AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type) | ||||||
- id: registry.gcp.apphub_destination | ||||||
type: attribute_group | ||||||
display_name: GCP - AppHub Destination Attributes | ||||||
brief: > | ||||||
This document defines attributes AppHub will apply to destination resources in GCP. | ||||||
See [AppHub overview](https://cloud.google.com/app-hub/docs/overview). | ||||||
attributes: | ||||||
- id: gcp.apphub_destination.application.container | ||||||
type: string | ||||||
stability: development | ||||||
brief: > | ||||||
The container within GCP where the AppHub destination application is defined. | ||||||
examples: ['projects/my-container-project'] | ||||||
- id: gcp.apphub_destination.application.location | ||||||
type: string | ||||||
stability: development | ||||||
brief: > | ||||||
The GCP zone or region where the destination application is defined. | ||||||
examples: ['us-central1'] | ||||||
- id: gcp.apphub_destination.application.id | ||||||
type: string | ||||||
stability: development | ||||||
brief: > | ||||||
The name of the destination application as configured in AppHub. | ||||||
examples: ['my-application'] | ||||||
- id: gcp.apphub_destination.service.id | ||||||
lmolkova marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
type: string | ||||||
stability: development | ||||||
brief: > | ||||||
The name of the destination service as configured in AppHub. | ||||||
examples: ['my-service'] | ||||||
- id: gcp.apphub_destination.service.environment_type | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the rule of thumb is to use
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While this would be a reasonable suggestion in the initial design (when Given that |
||||||
type: | ||||||
members: | ||||||
- id: production | ||||||
value: "PRODUCTION" | ||||||
brief: Production environment. | ||||||
stability: development | ||||||
- id: staging | ||||||
value: "STAGING" | ||||||
brief: Staging environment. | ||||||
stability: development | ||||||
- id: test | ||||||
value: "TEST" | ||||||
brief: Test environment. | ||||||
stability: development | ||||||
- id: development | ||||||
value: "DEVELOPMENT" | ||||||
brief: Development environment. | ||||||
stability: development | ||||||
stability: development | ||||||
brief: > | ||||||
Software lifecycle stage of a destination service as defined [AppHub environment type](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1) | ||||||
- id: gcp.apphub_destination.service.criticality_type | ||||||
type: | ||||||
members: | ||||||
- id: mission_critical | ||||||
value: "MISSION_CRITICAL" | ||||||
brief: Mission critical service. | ||||||
stability: development | ||||||
- id: high | ||||||
value: "HIGH" | ||||||
brief: High impact. | ||||||
stability: development | ||||||
- id: medium | ||||||
value: "MEDIUM" | ||||||
brief: Medium impact. | ||||||
stability: development | ||||||
- id: low | ||||||
value: "LOW" | ||||||
brief: Low impact. | ||||||
stability: development | ||||||
stability: development | ||||||
brief: > | ||||||
Criticality of a destination workload indicates its importance to the business as specified in [AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type) | ||||||
- id: gcp.apphub_destination.workload.id | ||||||
type: string | ||||||
stability: development | ||||||
brief: > | ||||||
The name of the destination workload as configured in AppHub. | ||||||
examples: ['my-workload'] | ||||||
- id: gcp.apphub_destination.workload.environment_type | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's not define multiple attributes for the same thing.
so, can we define one and call it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For similar reasons as the other comments, I need to push back. I concur that there is a lot of overlap between the "service" and "workload" concepts in AppHub. Were I in charge, I would have made a single definition with "SERVICE" and "WORKLOAD" as enum types that are independent of the overall structure. While it would have been ideal to have:
What actually exists in AppHub is:
... with The desired rule "for every |
||||||
type: | ||||||
members: | ||||||
- id: production | ||||||
value: "PRODUCTION" | ||||||
brief: Production environment. | ||||||
stability: development | ||||||
- id: staging | ||||||
value: "STAGING" | ||||||
brief: Staging environment. | ||||||
stability: development | ||||||
- id: test | ||||||
value: "TEST" | ||||||
brief: Test environment. | ||||||
stability: development | ||||||
- id: development | ||||||
value: "DEVELOPMENT" | ||||||
brief: Development environment. | ||||||
stability: development | ||||||
stability: development | ||||||
brief: > | ||||||
Environment of a destination workload is the stage of a software lifecycle as provided in the | ||||||
[AppHub environment type](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1) | ||||||
- id: gcp.apphub_destination.workload.criticality_type | ||||||
type: | ||||||
members: | ||||||
- id: mission_critical | ||||||
value: "MISSION_CRITICAL" | ||||||
brief: Mission critical service. | ||||||
stability: development | ||||||
- id: high | ||||||
value: "HIGH" | ||||||
brief: High impact. | ||||||
stability: development | ||||||
- id: medium | ||||||
value: "MEDIUM" | ||||||
brief: Medium impact. | ||||||
stability: development | ||||||
- id: low | ||||||
value: "LOW" | ||||||
brief: Low impact. | ||||||
stability: development | ||||||
stability: development | ||||||
brief: > | ||||||
Criticality of a destination workload indicates its importance to the business as specified in [AppHub type enum](https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type) | ||||||
- id: registry.gcp.gce | ||||||
type: attribute_group | ||||||
display_name: GCP - Google Compute Engine (GCE) Attributes | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.