AppMonetization / Client / archive_metric

archive_metric

AppMonetization.Client.archive_metric(**kwargs)

Archives a metric, removing its definition from the app’s draft configuration. The removal takes effect on the next call to PublishDraft. Already-recorded usage events and usage history are retained; archiving only stops the metric from aggregating further usage. Any plan quota or usage pack keyed to the metric is removed with it. If the metric was published, its metric ID and display name are permanently retired and cannot be reused.

See also: AWS API Documentation

Request Syntax

response = client.archive_metric(
    appId='string',
    metricId='string'
)
Parameters:
  • appId (string) –

    [REQUIRED]

    The ID of the app.

  • metricId (string) –

    [REQUIRED]

    The ID of the metric to archive.

Return type:

dict

Returns:

Response Syntax

{
    'appId': 'string',
    'metricId': 'string'
}

Response Structure

  • (dict) –

    Output for ArchiveMetric. Echoes the archived metric’s identifiers.

    • appId (string) –

      The ID of the app the archived metric belonged to.

    • metricId (string) –

      The ID of the archived metric.

Exceptions