blob: 3ed5af36f7e5488d7abd623ddc9f26ea2bb7d7a5 [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{
include: [ "syslog/offer.shard.cml" ],
children: [
{
name: "sampler",
url: "fuchsia-pkg://fuchsia.com/sampler#meta/sampler.cm",
},
],
offer: [
{
protocol: [ "fuchsia.diagnostics.ArchiveAccessor" ],
from: "parent",
to: [ "#sampler" ],
},
{
protocol: [ "fuchsia.hardware.power.statecontrol.RebootMethodsWatcherRegister" ],
from: "parent",
to: "#sampler",
},
{
directory: "config-data",
from: "parent",
to: "#sampler",
subdir: "sampler",
},
{
protocol: "fuchsia.metrics.MetricEventLoggerFactory",
from: "#cobalt",
to: [ "#sampler" ],
},
],
expose: [
{
protocol: [ "fuchsia.component.Binder" ],
from: "#sampler",
as: "fuchsia.component.SamplerBinder",
},
],
}