(tag: Tag, state: Schema.Schema<S, IS, R>)
| 207 | * @category schemas |
| 208 | */ |
| 209 | export const metric = <Tag extends string, S, IS, R>(tag: Tag, state: Schema.Schema<S, IS, R>) => |
| 210 | Schema.Struct({ |
| 211 | _tag: Schema.Literal(tag), |
| 212 | name: Schema.String, |
| 213 | description: Schema.optionalWith(Schema.String, { as: "Option" }), |
| 214 | tags: Schema.Array(MetricLabel), |
| 215 | state |
| 216 | }) |
| 217 | |
| 218 | /** |
| 219 | * @since 1.0.0 |
no outgoing calls
no test coverage detected