CreateBaseline
Create a new performance baseline from a profiling session.
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
labelStringRequiredHuman-readable label for the new baseline.
Example: v1.2.0-release
sessionIdStringRequiredSession identifier to use as the source of this baseline.
Example: sess-abc123
profileTypeStringRequiredProfile type this baseline represents.
Example: cpu
descriptionStringRequiredOptional description providing context for this baseline.
Example: Post-deploy baseline for v1.2.0
topFunctionsListRequiredTop functions captured from the source session.
Example: (nested array)
funcNameStringFully-qualified function name including package path.
Example: runtime.gcBgMarkWorker
packageStringGo package that contains this function.
Example: runtime
selfPctLongPercentage of samples attributed solely to this function.
Example: 12.5
cumulativePctLongPercentage of samples including callees of this function.
Example: 18.3
sampleCountStringAbsolute number of profiling samples collected for this function.
Example: 4200
Responses
Endpoint
POST/api/v1/profiling/baselines
/api/v1/profiling/baselines
Request Example
curl -X POST '{host}/api/v1/profiling/baselines' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"label":"v1.2.0-release","sessionId":"sess-abc123","profileType":"cpu","description":"Post-deploy baseline for v1.2.0","topFunctions":"(nested array)"}'
Response Example
200{
"baselineId": "bl-20240101",
"baselineLabel": "v1.2.0-release",
"profileType": "cpu",
"sessionId": "sess-abc123",
"description": "Post-deploy baseline for v1.2.0",
"topFunctions": [
{}
],
"createdAt": "example",
"isLatest": true
}Change History
This API has no change history records yet.
