# MetricDataItemsProperty

Metric data.

The `type` determines the data types that you specify for `value` , `XAxisName` and `YAxisName` . For information about specifying values for metrics, see [model card JSON schema](https://docs.aws.amazon.com/sagemaker/latest/dg/model-cards.html#model-cards-json-schema) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';

declare const value: any;
const metricDataItemsProperty: sagemaker.CfnModelCard.MetricDataItemsProperty = {
  name: 'name',
  type: 'type',
  value: value,

  // the properties below are optional
  notes: 'notes',
  xAxisName: ['xAxisName'],
  yAxisName: ['yAxisName'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

# value: Any

metric_data_items_property = sagemaker.CfnModelCard.MetricDataItemsProperty(
    name="name",
    type="type",
    value=value,

    # the properties below are optional
    notes="notes",
    x_axis_name=["xAxisName"],
    y_axis_name=["yAxisName"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

Object value;

MetricDataItemsProperty metricDataItemsProperty = MetricDataItemsProperty.builder()
        .name("name")
        .type("type")
        .value(value)

        // the properties below are optional
        .notes("notes")
        .xAxisName(List.of("xAxisName"))
        .yAxisName(List.of("yAxisName"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var value;

var metricDataItemsProperty = new MetricDataItemsProperty {
    Name = "name",
    Type = "type",
    Value = value,

    // the properties below are optional
    Notes = "notes",
    XAxisName = new [] { "xAxisName" },
    YAxisName = new [] { "yAxisName" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var value interface{}

metricDataItemsProperty := &MetricDataItemsProperty{
	Name: jsii.String("name"),
	Type: jsii.String("type"),
	Value: value,

	// the properties below are optional
	Notes: jsii.String("notes"),
	XAxisName: []*string{
		jsii.String("xAxisName"),
	},
	YAxisName: []*string{
		jsii.String("yAxisName"),
	},
}
```

## Properties

- `name`: string (required)

- `notes`: string

- `type`: string (required)

- `value`: any (required)

- `xAxisName`: string[]

- `yAxisName`: string[]
