keon94 commented on PR #4906: URL: https://github.com/apache/incubator-devlake/pull/4906#issuecomment-1532436786
Sample GET request to get all the scopes with the blueprints: `GET http://localhost:8089/plugins/pagerduty/connections/25/scopes?blueprints=true` ```json [ { "NoPKModel": { "CreatedAt": {}, "RawDataOrigin": { "RawDataId": 142, "RawDataParams": "{\"ConnectionId\":25,\"ScopeId\":\"PIKL83L\"}", "RawDataRemark": "", "RawDataTable": "_raw_pagerduty_incidents" }, "UpdatedAt": {} }, "blueprints": [ { "name": "pagerduty-conn", "projectName": "pagerduty-project-pagerduty-2023-05-02T23:08:14-05:00-0", "mode": "NORMAL", "plan": [ [ { "plugin": "org", "subtasks": [ "setProjectMapping" ], "options": { "projectMappings": [ { "projectName": "pagerduty-project-pagerduty-2023-05-02T23:08:14-05:00-0", "scopes": [ { "table": "boards", "rowId": "pagerduty:Service:25:PIKL83L" } ] } ] } } ], [ { "plugin": "pagerduty", "subtasks": [ "collectIncidents", "extractIncidents", "convertIncidents" ], "options": { "ConnectionId": 25, "PagerdutyTransformationRule": null, "ServiceId": "PIKL83L", "ServiceName": "DevService", "Tasks": null, "TimeAfter": "2022-09-01T15:04:05Z" } } ], [ { "plugin": "dora", "subtasks": [ "generateDeploymentCommits", "enrichPrevSuccessDeploymentCommits" ], "options": { "projectName": "pagerduty-project-pagerduty-2023-05-02T23:08:14-05:00-0" } } ], [ { "plugin": "refdiff", "subtasks": [ "calculateDeploymentCommitsDiff" ], "options": { "projectName": "pagerduty-project-pagerduty-2023-05-02T23:08:14-05:00-0" } } ], [ { "plugin": "dora", "subtasks": [ "calculateChangeLeadTime", "ConnectIncidentToDeployment" ], "options": { "projectName": "pagerduty-project-pagerduty-2023-05-02T23:08:14-05:00-0" } } ] ], "enable": true, "cronConfig": "manual", "isManual": true, "skipOnFail": true, "labels": [ "test-label" ], "settings": { "version": "2.0.0", "timeAfter": "2022-09-01T15:04:05Z", "connections": [ { "plugin": "pagerduty", "connectionId": 25, "scopes": [ { "id": "PIKL83L", "name": "pagerduty-blueprint-v200-2023-05-02T23:08:14-05:00", "entities": [ "TICKET" ] } ] } ], "before_plan": null, "after_plan": null }, "id": 148, "createdAt": "2023-05-02T23:08:14.082-05:00", "updatedAt": "2023-05-02T23:08:14.082-05:00" } ], "connectionId": 25, "id": "PIKL83L", "name": "DevService", "url": "https://keon-test.pagerduty.com/service-directory/PIKL83L" }, { "NoPKModel": { "CreatedAt": {}, "RawDataOrigin": { "RawDataId": 145, "RawDataParams": "{\"ConnectionId\":25,\"ScopeId\":\"PIKL83L\"}", "RawDataRemark": "", "RawDataTable": "_raw_pagerduty_incidents" }, "UpdatedAt": {} }, "connectionId": 25, "id": "POE5KX2", "name": "Keon-IT", "url": "" } ] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
