<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://api.hi5.com/metrics" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:hi5="http://api.hi5.com/" xmlns:ns6="http://api.hi5.com/metrics">
  <types>
    <xs:schema targetNamespace="http://api.hi5.com/metrics">
      <xs:import namespace="http://api.hi5.com/" schemaLocation="hi5.xsd"/>
    </xs:schema>
  </types>
  <message name="MetricsApi.getMetricsTotal">
    <documentation>
      <![CDATA[Input message for operation "getMetricsTotal". (Provides statistics over the whole lifespan of one or several apps.)]]>
    </documentation>
    <part name="api_keys" type="xs:string">
      <documentation>
        <![CDATA[list of api keys corresponding to applications. Parameter "all" will display metrics for all applications of which the caller is a developer of. If no keys are provided, the key from the authorization tpoken will be used]]>
      </documentation>
    </part>
    <part name="appIdList" type="xs:string">
      <documentation/>
    </part>
    <part name="metrics" type="xs:string">
      <documentation>
        <![CDATA[Metrics to display. If no parameter is provided, all available metrics are shown. <ul> Here is the list of available metrics <li> install : Total number of installs <li> remove : Total number of removes. You will have to subtract this from the total number of installs to get the net installs of your application for the applicable time period. <li> preview : Calls to the preview module <li> canvas : Calls to the canvas module <li> block : Block requests generated in response to emails and notifications generated by your application_,_ and on the My Applications page. <li> invite_requested : Application Invite requests generated. Note that this counts a request containing multiple friends as one request <li> invite_sent : Applicat]]>
<![CDATA[ion Invite requests fulfilled <li> report_abuse : Notifications generated by your application marked as spam <li> notification_requested : Notification API requests made to the API servers <li> notification_sent : Notification API requests fulfilled. Note that when an API request is fulfilled, not all the recipients in the API request might receive the request, as some might already have received the limit of per-recipient notifications allowed. <li> activity_requested : Requests to generate a Friend Update <li> activity_sent : Friend Update requests fulfilled <li> view_profile : Calls to the profile module <li> api_request : API requests sent to our API servers by your application <li> email_requested : Number of requests to send a message <li> email_sent : Numbner of message sent <li> friend_request_requested : Number of friend requests made by an application <li> friend_request_sent : Friend request fulfilled <li> all : List all available metrics </ul>]]>
      </documentation>
    </part>
    <part name="contexts" type="xs:string">
      <documentation>
        <![CDATA[Specific contexts in which metrics were taken. If none provided, the breakdown of metrics by context is not displayed and the count is shown over all contexts. Keyword "all" will also provide the count over all contexts but will show the breakdown as well. <ul> Here is the list of available contexts <li> own_profile : The profile of the currently logged-in user <li> other_profile : The profile of someone other than the currently logged-in user <li> gallery : Application Gallery <li> activity_stream : Friend update stream. <li> invite : Friend Invite. <li> notification : Notification. <li> developer_center : Developer page. <li> myapps : Manage Applications page. <li> homepage : User's home page. <li> profilenav : The View More link on the Profile module, and from the Applications drop down in the navigation bar at the top of the Profile page <li> canvas : Application canvas <li> apphome_owner : My Applications page of the currently logged-in user when user clicks on one]]>
<![CDATA[of their own apps. <li> apphome_friend : My Applications page of the currently logged-in user when user clicks on one of their friend's apps. <li> request_share_app Application Invite. <li> unknown : All other or when context that wasn't determined. Api requests, for example, don't have a context. <li> all : show breakdown by all contexts </ul> <pr>]]>
      </documentation>
    </part>
  </message>
  <message name="MetricsApi.getMetricsTotalResponse">
    <documentation>
      <![CDATA[Output message for operation "getMetricsTotal". (Provides statistics over the whole lifespan of one or several apps.)]]>
    </documentation>
    <part name="return" type="hi5:metrics">
      <documentation/>
    </part>
  </message>
  <message name="PermissionDeniedException">
    <documentation>
      <![CDATA[Thrown when an attempt is made to do something without the correct permissions.]]>
    </documentation>
    <part name="PermissionDeniedException" element="hi5:PermissionDeniedException"/>
  </message>
  <message name="Hi5ApiGeneralException">
    <documentation>
      <![CDATA[Thrown when attempting to access a missing resource]]>
    </documentation>
    <part name="Hi5ApiGeneralException" element="hi5:Hi5ApiGeneralException"/>
  </message>
  <message name="MetricsApi.getMetricsDaily">
    <documentation>
      <![CDATA[Input message for operation "getMetricsDaily". (Provides daily metrics for one or several applications. This call will show break down of]]>
<![CDATA[metrics by day, as well as summary over all days within the specified date range. The date format]]>
<![CDATA[is yyyy-MM-dd. The range must be no bigger than 30 days. If no range is provided, last available day]]>
<![CDATA[is retrieved.)]]>
    </documentation>
    <part name="api_keys" type="xs:string">
      <documentation>
        <![CDATA[list of api keys corresponding to applications. Parameter "all" will display metrics for all applications of which the caller is a developer of. If no keys are provided, the key from the authorization tpoken will be used]]>
      </documentation>
    </part>
    <part name="appIdList" type="xs:string">
      <documentation/>
    </part>
    <part name="metrics" type="xs:string">
      <documentation>
        <![CDATA[Metrics to display. If no parameter is provided, all available metrics are shown. For the list of available metrics check the <a href="../rest_metrics.total.html">metrics/total</a> api.]]>
      </documentation>
    </part>
    <part name="contexts" type="xs:string">
      <documentation>
        <![CDATA[Specific contexts in which metrics were taken. If none provided, the breakdown of metrics by context is not displayed and the count is shown over all contexts. Keyword "all" will also provide the count over all contexts but will show the breakdown as well. For the list of available contexts check the <a href="../rest_metrics.total.html">metrics/total</a> api]]>
      </documentation>
    </part>
    <part name="startTime" type="xs:string">
      <documentation>
        <![CDATA[start of the time period, yesterday]]>
      </documentation>
    </part>
    <part name="endTime" type="xs:string">
      <documentation>
        <![CDATA[end of the time period, by default]]>
      </documentation>
    </part>
  </message>
  <message name="MetricsApi.getMetricsDailyResponse">
    <documentation>
      <![CDATA[Output message for operation "getMetricsDaily". (Provides daily metrics for one or several applications. This call will show break down of]]>
<![CDATA[metrics by day, as well as summary over all days within the specified date range. The date format]]>
<![CDATA[is yyyy-MM-dd. The range must be no bigger than 30 days. If no range is provided, last available day]]>
<![CDATA[is retrieved.)]]>
    </documentation>
    <part name="return" type="hi5:metrics">
      <documentation/>
    </part>
  </message>
  <message name="MetricsApi.getMetricsDailyUniques">
    <documentation>
      <![CDATA[Input message for operation "getMetricsDailyUniques". (Same as <a href="../rest_metrics.daily.html">metrics/daily</a> api, only displays uniques)]]>
    </documentation>
    <part name="api_keys" type="xs:string">
      <documentation/>
    </part>
    <part name="appIdList" type="xs:string">
      <documentation/>
    </part>
    <part name="metrics" type="xs:string">
      <documentation/>
    </part>
    <part name="contexts" type="xs:string">
      <documentation/>
    </part>
    <part name="startTime" type="xs:string">
      <documentation/>
    </part>
    <part name="endTime" type="xs:string">
      <documentation/>
    </part>
  </message>
  <message name="MetricsApi.getMetricsDailyUniquesResponse">
    <documentation>
      <![CDATA[Output message for operation "getMetricsDailyUniques". (Same as <a href="../rest_metrics.daily.html">metrics/daily</a> api, only displays uniques)]]>
    </documentation>
    <part name="return" type="hi5:metrics">
      <documentation/>
    </part>
  </message>
  <message name="MetricsApi.getMetricsHourly">
    <documentation>
      <![CDATA[Input message for operation "getMetricsHourly". (Provides hourly metrics for one or several applications. This call will show break down of]]>
<![CDATA[metrics by hour, as well as summary over all hours within the specified date range. The time format]]>
<![CDATA[is yyyy-MM-dd-hh. The hour must be an number from 0 to 23. The range must be no bigger than 24 hours.]]>
<![CDATA[If no range is provided, available data for last 24 hours will be shown]]>
<![CDATA[Parameters are same as <a href="../rest_metrics.daily.html">metrics/daily</a> api.)]]>
    </documentation>
    <part name="api_keys" type="xs:string">
      <documentation/>
    </part>
    <part name="appIdList" type="xs:string">
      <documentation/>
    </part>
    <part name="metrics" type="xs:string">
      <documentation/>
    </part>
    <part name="contexts" type="xs:string">
      <documentation/>
    </part>
    <part name="startTime" type="xs:string">
      <documentation/>
    </part>
    <part name="endTime" type="xs:string">
      <documentation/>
    </part>
  </message>
  <message name="MetricsApi.getMetricsHourlyResponse">
    <documentation>
      <![CDATA[Output message for operation "getMetricsHourly". (Provides hourly metrics for one or several applications]]>
<![CDATA[. This call will show break down of]]>
<![CDATA[metrics by hour, as well as summary over all hours within the specified date range. The time format]]>
<![CDATA[is yyyy-MM-dd-hh. The hour must be an number from 0 to 23. The range must be no bigger than 24 hours.]]>
<![CDATA[If no range is provided, available data for last 24 hours will be shown]]>
<![CDATA[Parameters are same as <a href="../rest_metrics.daily.html">metrics/daily</a> api.)]]>
    </documentation>
    <part name="return" type="hi5:metrics">
      <documentation/>
    </part>
  </message>
  <message name="MetricsApi.getMetricsHourlyUniques">
    <documentation>
      <![CDATA[Input message for operation "getMetricsHourlyUniques". (Same as <a href="../rest_metrics.hourly.html">metrics/hourly</a> api, only displays uniques)]]>
    </documentation>
    <part name="api_keys" type="xs:string">
      <documentation/>
    </part>
    <part name="appIdList" type="xs:string">
      <documentation/>
    </part>
    <part name="metrics" type="xs:string">
      <documentation/>
    </part>
    <part name="contexts" type="xs:string">
      <documentation/>
    </part>
    <part name="startTime" type="xs:string">
      <documentation/>
    </part>
    <part name="endTime" type="xs:string">
      <documentation/>
    </part>
  </message>
  <message name="MetricsApi.getMetricsHourlyUniquesResponse">
    <documentation>
      <![CDATA[Output message for operation "getMetricsHourlyUniques". (Same as <a href="../rest_metrics.hourly.html">metrics/hourly</a> api, only displays uniques)]]>
    </documentation>
    <part name="return" type="hi5:metrics">
      <documentation/>
    </part>
  </message>
  <portType name="MetricsApi">
    <documentation>
      <![CDATA[These services are used to request statistical data about applications.]]>
    </documentation>
    <operation name="getMetricsTotal">
      <documentation>
        <![CDATA[Provides statistics over the whole lifespan of one or several apps.]]>
      </documentation>
      <input message="ns6:MetricsApi.getMetricsTotal"/>
      <output message="ns6:MetricsApi.getMetricsTotalResponse"/>
      <fault name="PermissionDeniedException" message="ns6:PermissionDeniedException"/>
      <fault name="Hi5ApiGeneralException" message="ns6:Hi5ApiGeneralException"/>
    </operation>
    <operation name="getMetricsDaily">
      <documentation>
        <![CDATA[Provides daily metrics for one or several applications. This call will show break down of]]>
<![CDATA[metrics by day, as well as summary over all days within the specified date range. The date format]]>
<![CDATA[is yyyy-MM-dd. The range must be no bigger than 30 days. If no range is provided, last available day]]>
<![CDATA[is retrieved.]]>
      </documentation>
      <input message="ns6:MetricsApi.getMetricsDaily"/>
      <output message="ns6:MetricsApi.getMetricsDailyResponse"/>
      <fault name="PermissionDeniedException" message="ns6:PermissionDeniedException"/>
      <fault name="Hi5ApiGeneralException" message="ns6:Hi5ApiGeneralException"/>
    </operation>
    <operation name="getMetricsDailyUniques">
      <documentation>
        <![CDATA[Same as <a href="../rest_metrics.daily.html">metrics/daily</a> api, only displays uniques]]>
      </documentation>
      <input message="ns6:MetricsApi.getMetricsDailyUniques"/>
      <output message="ns6:MetricsApi.getMetricsDailyUniquesResponse"/>
      <fault name="PermissionDeniedException" message="ns6:PermissionDeniedException"/>
      <fault name="Hi5ApiGeneralException" message="ns6:Hi5ApiGeneralException"/>
    </operation>
    <operation name="getMetricsHourly">
      <documentation>
        <![CDATA[Provides hourly metrics for one or several applications. This call will show break down of]]>
<![CDATA[metrics by hour, as well as summary over all hours within the specified date range. The time format]]>
<![CDATA[is yyyy-MM-dd-hh. The hour must be an number from 0 to 23. The range must be no bigger than 24 hours.]]>
<![CDATA[If no range is provided, available data for last 24 hours will be shown]]>
<![CDATA[Parameters are same as <a href="../rest_metrics.daily.html">metrics/daily</a> api.]]>
      </documentation>
      <input message="ns6:MetricsApi.getMetricsHourly"/>
      <output message="ns6:MetricsApi.getMetricsHourlyResponse"/>
      <fault name="PermissionDeniedException" message="ns6:PermissionDeniedException"/>
      <fault name="Hi5ApiGeneralException" message="ns6:Hi5ApiGeneralException"/>
    </operation>
    <operation name="getMetricsHourlyUniques">
      <documentation>
        <![CDATA[Same as <a href="../rest_metrics.hourly.html">metrics/hourly</a> api, only displays uniques]]>
      </documentation>
      <input message="ns6:MetricsApi.getMetricsHourlyUniques"/>
      <output message="ns6:MetricsApi.getMetricsHourlyUniquesResponse"/>
      <fault name="PermissionDeniedException" message="ns6:PermissionDeniedException"/>
      <fault name="Hi5ApiGeneralException" message="ns6:Hi5ApiGeneralException"/>
    </operation>
  </portType>
  <binding name="MetricsApiSOAPBinding" type="ns6:MetricsApi">
    <documentation>
      <![CDATA[SOAP Binding for MetricsApi]]>
    </documentation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="getMetricsTotal">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
      <fault name="Hi5ApiGeneralException">
        <soap:fault name="Hi5ApiGeneralException" use="literal"/>
      </fault>
    </operation>
    <operation name="getMetricsDaily">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
      <fault name="Hi5ApiGeneralException">
        <soap:fault name="Hi5ApiGeneralException" use="literal"/>
      </fault>
    </operation>
    <operation name="getMetricsDailyUniques">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
      <fault name="Hi5ApiGeneralException">
        <soap:fault name="Hi5ApiGeneralException" use="literal"/>
      </fault>
    </operation>
    <operation name="getMetricsHourly">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
      <fault name="Hi5ApiGeneralException">
        <soap:fault name="Hi5ApiGeneralException" use="literal"/>
      </fault>
    </operation>
    <operation name="getMetricsHourlyUniques">
      <soap:operation soapAction="" style="rpc"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
      <fault name="PermissionDeniedException">
        <soap:fault name="PermissionDeniedException" use="literal"/>
      </fault>
      <fault name="Hi5ApiGeneralException">
        <soap:fault name="Hi5ApiGeneralException" use="literal"/>
      </fault>
    </operation>
  </binding>
  <service name="MetricsApiService">
    <port name="MetricsApiSOAPPort" binding="ns6:MetricsApiSOAPBinding">
      <soap:address location="http://api.hi5.com/soap/MetricsApiService"/>
    </port>
  </service>
</definitions>
