# perldoc > Test2::EventFacet::Meta

---
type: CommandReference
command: Test2::EventFacet::Meta
mode: perldoc
section: ""
source: perldoc
---

## Quick Reference

- `$meta->{anything}` — access arbitrary metadata fields via hash
- `$meta->anything()` — same via method call
- Fields are autovivified into existence; no fixed list

## Name

Test2::EventFacet::Meta - Facet for meta-data attached to an event

## Synopsis

perl
use Test2::EventFacet::Meta;
my $meta = ...; # from an event facet
$meta->{key} = 'value';
my $val = $meta->key();
## Options

No fixed options. All fields and accessors are autovivified. Any metadata key can be accessed as a hash key or method:

- `$meta->{anything}` — hash access
- `$meta->anything()` — method access

## Examples

perl
# Attach custom metadata to an event
$event->meta->{timestamp} = time();
$event->meta->user('alice');
## See Also

- [Test2::EventFacet](https://metacpan.org/pod/Test2::EventFacet)
- [Test2](https://metacpan.org/pod/Test2)
- Source repository: <http://github.com/Test-More/test-more/>

## Exit Codes

Not documented.