<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
  ~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. licenses this file to you under the Apache License,
  ~ Version 2.0 (the "License"); you may not use this file except
  ~ in compliance with the License.
  ~ you may obtain a copy of the License at
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<AnalyticsConfiguration>
    <Enabled>true</Enabled>
    <!--
        Server URL of the remote DAS/BAM/CEP server used to collect statistics. Must
        be specified in protocol://hostname:port/ format.

        An event can also be published to multiple Receiver Groups each having 1 or more receivers. Receiver
        Groups are delimited by curly braces whereas receivers are delimited by commas.
        Ex - Multiple Receivers within a single group
            tcp://localhost:7612/,tcp://localhost:7613/,tcp://localhost:7614/
        Ex - Multiple Receiver Groups with two receivers each
            {tcp://localhost:7612/,tcp://localhost:7613},{tcp://localhost:7712/,tcp://localhost:7713/}
    -->
    <ReceiverServerUrl>tcp://${iot.analytics.host}:${iot.analytics.thrift.port}</ReceiverServerUrl>
    <!--
        Server URL of the remote DAS/BAM/CEP server used to subscribe for statistics via secured web sockets.
        Must be specified in wss://hostname:port/ format. Analytics Publishers should defined per each receiver
        server url.

        Multiple AnalyticsPublisherUrl properties can be defined as Groups each having one or more publishers.
        Publisher groups are delimited by curly braces whereas publishers are delimited by commas.
        Ex - Multiple publishers within a single group
            wss://localhost:9445/,wss://localhost:9446/,wss://localhost:9447/
        Ex - Multiple Publisher Groups with two publishers each
            {wss://localhost:9445/,wss://localhost:9446/},{wss://localhost:9447/,wss://localhost:9448/}
    -->
    <AnalyticsPublisherUrl>wss://${iot.analytics.host}:${iot.analytics.https.port}</AnalyticsPublisherUrl>
    <AdminUsername>admin</AdminUsername>
    <AdminPassword>admin</AdminPassword>
</AnalyticsConfiguration>
