Skip to content

Commit

Permalink
gumby: add shared telemetry metrics for AmazonQ Transform + allow spa…
Browse files Browse the repository at this point in the history
…ces in values (#638)

* Feature - add shared telemetry metrics for AmazonQ Transform

* Chore - remove type codeTransformConfigurationFilePath

* Chore - update metric description definitions text

* Chore - remove isVisibleToUser field

* Chore - add newline character to file

* Chore - update description for total runtime

* Chore - fix build isssue to replace allowedValues spaces with underscores

* Chore - follow up with jetbrains underscore conversion

---------

Co-authored-by: Nick Ardecky <[email protected]>
  • Loading branch information
damntrecky and Nick Ardecky authored Dec 5, 2023
1 parent 4341f8f commit 20f0acf
Show file tree
Hide file tree
Showing 4 changed files with 552 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private CodeTypeDeclaration GenerateEnumStruct(MetricType type)
{
// eg: public static readonly Runtime Dotnetcore21 = new Runtime("dotnetcore2.1")
CodeMemberField field = new CodeMemberField($"readonly {type.GetGeneratedTypeName()}",
allowedValue.ToPascalCase().Replace(".", "").Replace("-", ""))
allowedValue.Replace(" ", "_").ToPascalCase().Replace(".", "").Replace("-", ""))
{
InitExpression = new CodeObjectCreateExpression(type.GetGeneratedTypeName(),
new CodeExpression[] {new CodePrimitiveExpression(allowedValue)}),
Expand Down
Loading

0 comments on commit 20f0acf

Please sign in to comment.