Safe Haskell | None |
---|---|
Language | Haskell2010 |
Lensified version of Log.Backend.ElasticSearch.
Synopsis
- data ElasticSearchConfig
- esServer :: Lens' ElasticSearchConfig Text
- esIndex :: Lens' ElasticSearchConfig Text
- esShardCount :: Lens' ElasticSearchConfig Int
- esReplicaCount :: Lens' ElasticSearchConfig Int
- esMapping :: Lens' ElasticSearchConfig Text
- esLogin :: Lens' ElasticSearchConfig (Maybe (EsUsername, EsPassword))
- esLoginInsecure :: Lens' ElasticSearchConfig Bool
- defaultElasticSearchConfig :: ElasticSearchConfig
- withElasticSearchLogger :: ElasticSearchConfig -> IO Word32 -> (Logger -> IO r) -> IO r
Documentation
data ElasticSearchConfig Source #
Configuration for the Elasticsearch Logger
. See
https://www.elastic.co/guide/en/elasticsearch/reference/current/glossary.html
for the explanation of terms.
Instances
Eq ElasticSearchConfig Source # | |
Defined in Log.Backend.ElasticSearch.V1.Internal (==) :: ElasticSearchConfig -> ElasticSearchConfig -> Bool # (/=) :: ElasticSearchConfig -> ElasticSearchConfig -> Bool # | |
Show ElasticSearchConfig Source # | |
Defined in Log.Backend.ElasticSearch.V1.Internal showsPrec :: Int -> ElasticSearchConfig -> ShowS # show :: ElasticSearchConfig -> String # showList :: [ElasticSearchConfig] -> ShowS # |
esServer :: Lens' ElasticSearchConfig Text Source #
Elasticsearch server address.
esIndex :: Lens' ElasticSearchConfig Text Source #
Elasticsearch index name.
esShardCount :: Lens' ElasticSearchConfig Int Source #
Elasticsearch shard count for the named index.
Since: 0.10.0.0
esReplicaCount :: Lens' ElasticSearchConfig Int Source #
Elasticsearch replica count for the named index.
Since: 0.10.0.0
esMapping :: Lens' ElasticSearchConfig Text Source #
Elasticsearch mapping name.
esLogin :: Lens' ElasticSearchConfig (Maybe (EsUsername, EsPassword)) Source #
Elasticsearch basic authentication username and password.
esLoginInsecure :: Lens' ElasticSearchConfig Bool Source #
Allow basic authentication over non-TLS connections.
defaultElasticSearchConfig :: ElasticSearchConfig Source #
Sensible defaults for ElasticSearchConfig
.
withElasticSearchLogger :: ElasticSearchConfig -> IO Word32 -> (Logger -> IO r) -> IO r Source #
Create an elasticSearchLogger
for the duration of the given
action, and shut it down afterwards, making sure that all buffered
messages are actually written to the Elasticsearch store.