{
	"name": "CheckpointHECCCPDefinition",
	"apiVersion": "2022-09-01-preview",
	"type": "Microsoft.SecurityInsights/dataConnectorDefinitions",
	"location": "{{location}}",
	"kind": "Customizable",
	"properties": {
		"connectorUiConfig": {
			"id": "CheckpointHECConnectorDefinition",
			"title": "CheckpointHEC_CL On Demand Email Security (via Codeless Connector Platform)",
			"publisher": "Checkpoint",
			"descriptionMarkdown": "CheckpointHEC_CL Email Security data connector provides the capability to get Check Point security event data",
			"graphQueries": [
				{
					"metricName": "Total data received",
					"legend": "CheckpointHEC_CL",
					"baseQuery": "CheckpointHEC_CL"
				}
			],
			"sampleQueries": [
				{
					"description": "Last CheckpointHEC message Events",
					"query": "CheckpointHEC_CL\n | where EventType == 'message'\n | sort by TimeGenerated desc"
				}
			],
			"dataTypes": [
				{
					"name": "CheckpointHEC_CL",
					"lastDataReceivedQuery": "CheckpointHEC_CL\n            | summarize Time = max(TimeGenerated)\n            | where isnotempty(Time)"
				}
			],
			"connectivityCriteria": [
				{
					"type": "HasDataConnectors",
					"value": null
				}
			],
			"availability": {
				"status": 1,
				"isPreview": false
			},
			"permissions": {
				"resourceProvider": [
					{
						"provider": "Microsoft.OperationalInsights/workspaces",
						"permissionsDisplayText": "read and write permissions on the workspace are required.",
						"providerDisplayName": "Workspace",
						"scope": "Workspace",
						"requiredPermissions": {
							"read": true,
							"write": true,
							"delete": true,
							"action": false
						}
					}
				]
			},
			"instructionSteps": [
				{
					"instructions": [
						{
							"type": "Markdown",
							"parameters": {
								"content": "Create an Application in Azure AD and create an application secret and key. To be used latest"
							}
						},
						{
							"type": "Markdown",
							"parameters": {
								"content": "Assign the application created the role Monitoring Metrics Publisher on the DRC created"
							}
						},
						{
							"parameters": {
								"label": "toggle",
								"name": "toggle"
							},
							"type": "ConnectionToggleButton"
						}
					]
				}
			],
			"isConnectivityCriteriasMatchSome": false
		}
	}
}