{
    "id": "CognniSentinelDataConnector",
    "title": "Cognni",
    "publisher": "Cognni",
    "descriptionMarkdown": "The Cognni connector offers a quick and simple integration with Microsoft Sentinel. You can use Cognni to autonomously map your previously unclassified important information and detect related incidents. This allows you to recognize risks to your important information, understand the severity of the incidents, and investigate the details you need to remediate, fast enough to make a difference.",
    "graphQueries": [
        {
            "metricName": "Total data received",
            "legend": "CognniIncidents_CL",
            "baseQuery": "CognniIncidents_CL"
        }
    ],
    "sampleQueries": [
        {
            "description" : "Get all incidents order by time",
            "query": "CognniIncidents_CL            | order by TimeGenerated desc "
        },
        {
            "description" : "Get high risk incidents",
            "query": "CognniIncidents_CL            | where Severity == 3"
        },
        {
            "description" : "Get medium risk incidents",
            "query": "CognniIncidents_CL            | where Severity == 2"
        },
        {
            "description" : "Get low risk incidents",
            "query": "CognniIncidents_CL            | where Severity == 1"
        }
    ],
    "dataTypes": [
        {
            "name": "CognniIncidents_CL",
            "lastDataReceivedQuery": "CognniIncidents_CL\n            | summarize Time = max(TimeGenerated)\n            | where isnotempty(Time)"
        }
    ],
    "connectivityCriterias": [
        {
            "type": "IsConnectedQuery",
            "value": [
                "CognniIncidents_CL\n            | summarize LastLogReceived = max(TimeGenerated)\n            | project IsConnected = LastLogReceived > ago(30d)"
            ]
        }
    ],
    "availability": {
        "status": 1,
        "isPreview": false
    },
    "permissions": {
        "resourceProvider": [
            {
                "provider": "Microsoft.OperationalInsights/workspaces",
                "permissionsDisplayText": "read and write permissions are required.",
                "providerDisplayName": "Workspace",
                "scope": "Workspace",
                "requiredPermissions": {
                    "write": true,
                    "read": true,
                    "delete": true
                }
            },
            {
                "provider": "Microsoft.OperationalInsights/workspaces/sharedKeys",
                "permissionsDisplayText": "read permissions to shared keys for the workspace are required. [See the documentation to learn more about workspace keys](https://docs.microsoft.com/azure/azure-monitor/platform/agent-windows#obtain-workspace-id-and-key).",
                "providerDisplayName": "Keys",
                "scope": "Workspace",
                "requiredPermissions": {
                    "action": true
                }
            }
        ]
    },
    "instructionSteps": [
        {
            "title": "Connect to Cognni",
            "description": "1. Go to [Cognni integrations page](https://intelligence.cognni.ai/integrations)\n2. Click **'Connect'** on the 'Microsoft Sentinel' box\n3. Copy and paste **'workspaceId'** and **'sharedKey'** (from below) to the related fields on Cognni's integrations screen\n4. Click the **'Connect'** botton to complete the configuration.  \n  Soon, all your Cognni-detected incidents will be forwarded here (into Microsoft Sentinel)\n\nNot a Cognni user? [Join us](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/shieldox.appsource_freetrial)",
            "instructions": [
                {
                    "parameters": {
                        "fillWith": [
                            "WorkspaceId"
                        ],
                        "label": "Workspace ID"
                    },
                    "type": "CopyableLabel"
                },
                {
                    "parameters": {
                        "fillWith": [
                            "PrimaryKey"
                        ],
                        "label": "Shared Key"
                    },
                    "type": "CopyableLabel"
                }
            ]
        }
    ]
}