// Copyright 2021 The Chromium Authors
// 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/sync/structured.xml. Any
// event that is not valid will be ignored.
Record@0(array<metrics.structured.mojom.Event> events);
};