blob: 52b587746db5dc0af6f4bb1f4cc8e5e40a463644 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module crosapi.mojom;
import "components/metrics/structured/mojom/event.mojom";
// Interface to interact with StructuredMetrics.
// Implemented by Ash-Chrome.
[Stable, Uuid="b557009a-c8b8-4bac-8055-3334c52f6dd6"]
interface StructuredMetricsService {
// Tries to record all |events|. Events sent over will be validated to ensure
// they are registered in //tools/metrics/structured/structured.xml. Any event
// that is not valid will be ignored.
Record@0(array<metrics.structured.mojom.Event> events);