new DataProviderResponse(externalSourceId: String, definitions: ): DataProviderResponse
1 2const dataProviderResponse = new DataProviderResponse( "string" )
Property Name | Type | Description |
---|---|---|
events | DataProviderEventsConfiguration | |
externalSourceId | String | |
metrics | DataProviderMetricsConfiguration |
addAlerts(alerts: Array<DataProviderAlertEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addAlerts( [ { "description": "string", "displayName": "string", "id": "string", "lastUpdated": "string", "updateSequenceNumber": "string", "url": "string" } ] )
addBuilds(builds: Array<DataProviderBuildEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addBuilds( [ { "description": "string", "displayName": "string", "lastUpdated": "string", "pipeline": { "pipelineId": "string" }, "startedAt": "string", "state": "CANCELLED", "updateSequenceNumber": "string", "url": "string" } ] )
addBuiltInMetricValue(metricName: BuiltinMetricDefinitions, value: Number): DataProviderResponse
1 2const resp = dataProviderResponse.addBuiltInMetricValue( "ari:cloud:compass::metric-definition/builtin/availability-28d", 21 )
addCustomEvents(customEvents: Array<DataProviderCustomEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addCustomEvents( [ { "description": "string", "displayName": "string", "icon": "CHECKPOINT", "id": "string", "lastUpdated": "string", "updateSequenceNumber": "string", "url": "string" } ] )
addCustomMetricValue(metricName: String, value: Number): DataProviderResponse
1 2const resp = dataProviderResponse.addCustomMetricValue( "string", 29 )
addDeployments(deployments: Array<DataProviderDeploymentEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addDeployments( [ { "description": "string", "displayName": "string", "environment": { "category": "DEVELOPMENT", "displayName": "string", "environmentId": "string" }, "lastUpdated": "string", "pipeline": { "displayName": "string", "pipelineId": "string", "url": "string" }, "sequenceNumber": "string", "state": "CANCELLED", "updateSequenceNumber": "string", "url": "string" } ] )
addFlags(flags: Array<DataProviderFlagEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addFlags( [ { "description": "string", "displayName": "string", "id": "string", "lastUpdated": "string", "updateSequenceNumber": "string", "url": "string" } ] )
addIncidents(incidents: Array<DataProviderIncidentEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addIncidents( [ { "description": "string", "displayName": "string", "id": "string", "lastUpdated": "string", "startTime": "string", "state": "DELETED", "updateSequenceNumber": "string", "url": "string" } ] )
addLifecycles(lifecycles: Array<DataProviderLifecycleEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addLifecycles( [ { "description": "string", "displayName": "string", "id": "string", "lastUpdated": "string", "stage": "DEPRECATION", "updateSequenceNumber": "string", "url": "string" } ] )
addPullRequestEvents(pullRequestEvents: Array<DataProviderPullRequestEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addPullRequestEvents( [ { "description": "string", "displayName": "string", "id": "string", "lastUpdated": "string", "pullRequestUrl": "string", "repoUrl": "string", "status": "CREATED", "updateSequenceNumber": "string", "url": "string" } ] )
addPushEvents(pushEvents: Array<DataProviderPushEvent>): DataProviderResponse
1 2const resp = dataProviderResponse.addPushEvents( [ { "branchName": "string", "description": "string", "displayName": "string", "id": "string", "lastUpdated": "string", "updateSequenceNumber": "string", "url": "string" } ] )
build(): DataProviderResult
1 2const resp = dataProviderResponse.build()
buildMetrics(): DataProviderMetricsConfiguration
1 2const resp = dataProviderResponse.buildMetrics()
validate(): Void
1 2const resp = dataProviderResponse.validate()
Rate this page: