actionsGetWorkflowUsage
Get workflow usage
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing - Operation ID:
actions/get-workflow-usage
Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"workflow_id": {
"description": "The ID of the workflow. You can also pass the workflow file name as a string.",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"title": "Workflow Usage",
"description": "Workflow Usage",
"type": "object",
"properties": {
"billable": {
"type": "object",
"properties": {
"UBUNTU": {
"type": "object",
"properties": {
"total_ms": {
"type": "integer"
}
}
},
"MACOS": {
"type": "object",
"properties": {
"total_ms": {
"type": "integer"
}
}
},
"WINDOWS": {
"type": "object",
"properties": {
"total_ms": {
"type": "integer"
}
}
}
}
}
},
"required": [
"billable"
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('actionsGetWorkflowUsage', {
# Add required parameters here
})