keon94 commented on PR #4906:
URL: 
https://github.com/apache/incubator-devlake/pull/4906#issuecomment-1532439969

   Sample Delete request to delete a scope (data only - don't touch the scopes):
   `DELETE   
"/plugins/pagerduty/connections/26/scopes/PIKL83L?delete_data_only=true"`
   Returns nothing.
   
   Sample Delete request to delete a scope (data and the scope). Returns all 
the blueprints that used this scope.
   ``DELETE   
"/plugins/pagerduty/connections/26/scopes/PIKL83L?delete_data_only=false"`` 
(may omit delete_data_only - defaults to false)
   ```json
   [
        {
                "name": "pagerduty-conn",
                "projectName": 
"pagerduty-project-pagerduty-2023-05-02T23:18:19-05:00-0",
                "mode": "NORMAL",
                "plan": [
                        [
                                {
                                        "plugin": "org",
                                        "subtasks": [
                                                "setProjectMapping"
                                        ],
                                        "options": {
                                                "projectMappings": [
                                                        {
                                                                "projectName": 
"pagerduty-project-pagerduty-2023-05-02T23:18:19-05:00-0",
                                                                "scopes": [
                                                                        {
                                                                                
"table": "boards",
                                                                                
"rowId": "pagerduty:Service:27:PIKL83L"
                                                                        }
                                                                ]
                                                        }
                                                ]
                                        }
                                }
                        ],
                        [
                                {
                                        "plugin": "pagerduty",
                                        "subtasks": [
                                                "collectIncidents",
                                                "extractIncidents",
                                                "convertIncidents"
                                        ],
                                        "options": {
                                                "ConnectionId": 27,
                                                "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:18:19-05:00-0"
                                        }
                                }
                        ],
                        [
                                {
                                        "plugin": "refdiff",
                                        "subtasks": [
                                                "calculateDeploymentCommitsDiff"
                                        ],
                                        "options": {
                                                "projectName": 
"pagerduty-project-pagerduty-2023-05-02T23:18:19-05:00-0"
                                        }
                                }
                        ],
                        [
                                {
                                        "plugin": "dora",
                                        "subtasks": [
                                                "calculateChangeLeadTime",
                                                "ConnectIncidentToDeployment"
                                        ],
                                        "options": {
                                                "projectName": 
"pagerduty-project-pagerduty-2023-05-02T23:18:19-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": 27,
                                        "scopes": null
                                }
                        ],
                        "before_plan": null,
                        "after_plan": null
                },
                "id": 150,
                "createdAt": "2023-05-02T23:18:19.22-05:00",
                "updatedAt": "2023-05-02T23:18:21.378-05:00"
        }
   ]
   ```
   
   
   
   
   


-- 
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]

Reply via email to