create(projectId, historyId, executionId, stepId, body)
Creates a PerfMetricsSummary resource.
create(projectId, historyId, executionId, stepId, body)
Creates a PerfMetricsSummary resource. May return any of the following error code(s): - ALREADY_EXISTS - A PerfMetricSummary already exists for the given Step - NOT_FOUND - The containing Step does not exist Args: projectId: string, The cloud project (required) historyId: string, A tool results history ID. (required) executionId: string, A tool results execution ID. (required) stepId: string, A tool results step ID. (required) body: object, The request body. (required) The object takes the form of: { # A summary of perf metrics collected and performance environment info "stepId": "A String", # A tool results step ID. "projectId": "A String", # The cloud project "perfEnvironment": { # Encapsulates performance environment info # Describes the environment in which the performance metrics were collected "cpuInfo": { # CPU related environment info "cpuSpeedInGhz": 3.14, # the CPU clock speed in GHz "cpuProcessor": "A String", # description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A' "numberOfCores": 42, # the number of CPU cores }, "memoryInfo": { # Memory related environment info "memoryTotalInKibibyte": "A String", # Total memory available on the device in KiB "memoryCapInKibibyte": "A String", # Maximum memory that can be allocated to the process in KiB }, }, "historyId": "A String", # A tool results history ID. "executionId": "A String", # A tool results execution ID. "perfMetrics": [ # Set of resource collected "A String", ], } Returns: An object of the form: { # A summary of perf metrics collected and performance environment info "stepId": "A String", # A tool results step ID. "projectId": "A String", # The cloud project "perfEnvironment": { # Encapsulates performance environment info # Describes the environment in which the performance metrics were collected "cpuInfo": { # CPU related environment info "cpuSpeedInGhz": 3.14, # the CPU clock speed in GHz "cpuProcessor": "A String", # description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A' "numberOfCores": 42, # the number of CPU cores }, "memoryInfo": { # Memory related environment info "memoryTotalInKibibyte": "A String", # Total memory available on the device in KiB "memoryCapInKibibyte": "A String", # Maximum memory that can be allocated to the process in KiB }, }, "historyId": "A String", # A tool results history ID. "executionId": "A String", # A tool results execution ID. "perfMetrics": [ # Set of resource collected "A String", ], }