{
    "types": [
        {
            "name": "documentFormat",
            "type": "string",
            "allowedValues": ["JSON, YAML"],
            "description": "SSM Create document format selection"
        },
        {
            "name": "ssmOperation",
            "type": "string",
            "allowedValues": ["Create", "Update"],
            "description": "SSM Publish Document operation type"
        },
        {
            "name": "starterTemplate",
            "type": "string",
            "description": "Starter template chosen during create document"
        },
        {
            "name": "command",
            "type": "string",
            "description": "The id of a VS Code command"
        },
        {
            "name": "debounceCount",
            "type": "int",
            "description": "Number of times the telemetry event was debounced before emission"
        }
    ],
    "metrics": [
        {
            "name": "vscode_executeCommand",
            "description": "Emitted whenever a registered Toolkit command is executed",
            "passive": true,
            "metadata": [
                { "type": "command" },
                { "type": "source" },
                { "type": "debounceCount" },
                { "type": "duration" },
                { "type": "result" },
                {
                    "type": "reason",
                    "required": false
                }
            ]
        },
        {
            "name": "aws_refreshCredentials",
            "description": "Emitted when credentials are automatically refreshed by the AWS SDK",
            "passive": true,
            "metadata": [
                {
                    "type": "result"
                },
                {
                    "type": "credentialType",
                    "required": false
                },
                {
                    "type": "credentialSourceId",
                    "required": false
                }
            ]
        },
        {
            "name": "ssm_createDocument",
            "description": "An SSM Document is created locally",
            "unit": "None",
            "metadata": [
                {
                    "type": "result"
                },
                {
                    "type": "documentFormat",
                    "required": false
                },
                {
                    "type": "starterTemplate",
                    "required": false
                }
            ]
        },
        {
            "name": "ssm_deleteDocument",
            "description": "An SSM Document is deleted",
            "unit": "None",
            "metadata": [
                {
                    "type": "result"
                }
            ]
        },
        {
            "name": "ssm_executeDocument",
            "description": "An SSM Document is deleted",
            "unit": "None",
            "metadata": [
                {
                    "type": "result"
                }
            ]
        },
        {
            "name": "ssm_openDocument",
            "description": "An SSM Document is opened locally",
            "unit": "None",
            "metadata": [
                {
                    "type": "result"
                }
            ]
        },
        {
            "name": "ssm_publishDocument",
            "description": "SSM Document related metrics for create and update",
            "unit": "None",
            "metadata": [
                {
                    "type": "result"
                },
                {
                    "type": "ssmOperation"
                }
            ]
        },
        {
            "name": "ssm_updateDocumentVersion",
            "description": "SSM Document related metrics for updating document default version",
            "unit": "None",
            "metadata": [
                {
                    "type": "result"
                }
            ]
        },
        {
            "name": "stepfunctions_createStateMachineFromTemplate",
            "description": ""
        },
        {
            "name": "stepfunctions_downloadStateMachineDefinition",
            "description": "",
            "unit": "None",
            "metadata": [
                {
                    "type": "result"
                }
            ]
        },
        {
            "name": "stepfunctions_executeStateMachine",
            "description": "",
            "unit": "None",
            "metadata": [
                {
                    "type": "result"
                }
            ]
        },
        {
            "name": "stepfunctions_executeStateMachineView",
            "description": ""
        },
        {
            "name": "stepfunctions_previewstatemachine",
            "description": ""
        },
        {
            "name": "vscode_activeRegions",
            "description": "Record the number of active regions at startup and when regions are added/removed",
            "unit": "Count",
            "passive": true
        },
        {
            "name": "vscode_viewLogs",
            "description": "View the VSCode IDE logs"
        },
        {
            "name": "aws_showExplorerErrorDetails",
            "description": "Called when getting more details about errors thrown by the explorer",
            "metadata": [{ "type": "result" }]
        },
        {
            "name": "aws_showRegion",
            "description": "Records a call to add a region to the explorer"
        },
        {
            "name": "aws_hideRegion",
            "description": "Records a call to remove a region from the explorer"
        },
        {
            "name": "sam_detect",
            "description": "Called when detecting the location of the SAM CLI",
            "metadata": [{ "type": "result" }],
            "passive": true
        },
        {
            "name": "cdk_explorerDisabled",
            "description": "Called when expanding the CDK explorer is disabled"
        },
        {
            "name": "cdk_explorerEnabled",
            "description": "Called when the CDK explorer is enabled"
        },
        {
            "name": "cdk_appExpanded",
            "description": "Called when the CDK explorer is expanded"
        },
        {
            "name": "cdk_provideFeedback",
            "description": "Called when providing feedback for CDK"
        },
        {
            "name": "cdk_help",
            "description": "Called when clicking on help for CDK"
        },
        {
            "name": "cdk_refreshExplorer",
            "description": "Called when refreshing the CDK explorer"
        },
        {
            "name": "sam_attachDebugger",
            "description": "Called after trying to attach a debugger to a local sam invoke",
            "metadata": [
                { "type": "result" },
                { "type": "lambdaPackageType" },
                { "type": "runtime" },
                { "type": "attempts" },
                { "type": "duration" },
                { "type": "lambdaArchitecture", "required": false }
            ]
        },
        {
            "name": "sam_openConfigUi",
            "description": "Called after opening the SAM Config UI"
        },
        {
            "name": "sam_prewarmContainer",
            "description": "Called when user clicks Start under 'Start a development container'",
            "metadata": [
                {
                    "type": "result"
                },
                {
                    "type": "reason",
                    "required": false
                }
            ]
        }
    ]
}
