> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keephq.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Console

> Console provider is sort of a mock provider that projects given alert message to the console.

## Inputs

* message: The alert message to print to the console

## Outputs

This provider has no outputs

## Authentication Parameters

This provider has no authentication

## Connecting with the Provider

This provider doesn't require any connection

## Notes

*No information yet, feel free to contribute it using the "Edit this page" link the buttom of the page*

## Useful Links

*No information yet, feel free to contribute it using the "Edit this page" link the buttom of the page*

## Example

```python theme={null}
config = {
        "description": "Console Output Provider",
        "authentication": {},
}
provider = ProvidersFactory.get_provider(
    provider_id='mock', provider_type="console", provider_config=config
)
provider.notify(
    message="Simple alert showing context with name: {name}".format(
        name="John Doe"
    )
)
```

<img src="https://mintcdn.com/keep-docs/jGkt7cWtIlPdKHEY/images/console_provider_example.png?fit=max&auto=format&n=jGkt7cWtIlPdKHEY&q=85&s=124d332d4f821a86441c7a57d6a5f417" alt="" width="866" height="136" data-path="images/console_provider_example.png" />

## In workflows

This provider can be used in workflows.

As "step" to query data, example:

```yaml theme={null}
steps:
    - name: Query console
      provider: console
      config: "{{ provider.my_provider_name }}"
      with:
        message: {value}  
        logger: {value}  
        severity: {value}  
```

As "action" to make changes or update data, example:

```yaml theme={null}
actions:
    - name: Query console
      provider: console
      config: "{{ provider.my_provider_name }}"
      with:
        message: {value}  # The message to be printed in to the console
        logger: {value}  # Whether to use the logger or not
        severity: {value}  # The severity of the message if logger is True
```

Check the following workflow examples:

* [aks\_basic.yml](https://github.com/keephq/keep/blob/main/examples/workflows/aks_basic.yml)
* [change.yml](https://github.com/keephq/keep/blob/main/examples/workflows/change.yml)
* [complex-conditions-cel.yml](https://github.com/keephq/keep/blob/main/examples/workflows/complex-conditions-cel.yml)
* [console\_example.yml](https://github.com/keephq/keep/blob/main/examples/workflows/console_example.yml)
* [consts\_and\_dict.yml](https://github.com/keephq/keep/blob/main/examples/workflows/consts_and_dict.yml)
* [eks\_advanced.yml](https://github.com/keephq/keep/blob/main/examples/workflows/eks_advanced.yml)
* [eks\_basic.yml](https://github.com/keephq/keep/blob/main/examples/workflows/eks_basic.yml)
* [fluxcd\_example.yml](https://github.com/keephq/keep/blob/main/examples/workflows/fluxcd_example.yml)
* [gke.yml](https://github.com/keephq/keep/blob/main/examples/workflows/gke.yml)
* [ifelse.yml](https://github.com/keephq/keep/blob/main/examples/workflows/ifelse.yml)
* [incident-enrich.yaml](https://github.com/keephq/keep/blob/main/examples/workflows/incident-enrich.yaml)
* [incident\_example.yml](https://github.com/keephq/keep/blob/main/examples/workflows/incident_example.yml)
* [inputs\_example.yml](https://github.com/keephq/keep/blob/main/examples/workflows/inputs_example.yml)
* [multi-condition-cel.yml](https://github.com/keephq/keep/blob/main/examples/workflows/multi-condition-cel.yml)
* [mustache-paths-example.yml](https://github.com/keephq/keep/blob/main/examples/workflows/mustache-paths-example.yml)
* [openshift\_basic.yml](https://github.com/keephq/keep/blob/main/examples/workflows/openshift_basic.yml)
* [openshift\_monitoring\_and\_remediation.yml](https://github.com/keephq/keep/blob/main/examples/workflows/openshift_monitoring_and_remediation.yml)
* [openshift\_pod\_restart.yml](https://github.com/keephq/keep/blob/main/examples/workflows/openshift_pod_restart.yml)
* [pattern-matching-cel.yml](https://github.com/keephq/keep/blob/main/examples/workflows/pattern-matching-cel.yml)
* [severity\_changed.yml](https://github.com/keephq/keep/blob/main/examples/workflows/severity_changed.yml)
* [webhook\_example.yml](https://github.com/keephq/keep/blob/main/examples/workflows/webhook_example.yml)
* [webhook\_example\_foreach.yml](https://github.com/keephq/keep/blob/main/examples/workflows/webhook_example_foreach.yml)
