// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securityinsights.generated;

import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.models.EntityTimelineParameters;
import java.time.OffsetDateTime;

/** Samples for EntitiesGetTimeline List. */
public final class EntitiesGetTimelineListSamples {
    /*
     * x-ms-original-file: specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2022-09-01-preview/examples/entities/timeline/PostTimelineEntity.json
     */
    /**
     * Sample code: Entity timeline.
     *
     * @param manager Entry point to SecurityInsightsManager.
     */
    public static void entityTimeline(com.azure.resourcemanager.securityinsights.SecurityInsightsManager manager) {
        manager
            .entitiesGetTimelines()
            .listWithResponse(
                "myRg",
                "myWorkspace",
                "e1d3d618-e11f-478b-98e3-bb381539a8e1",
                new EntityTimelineParameters()
                    .withStartTime(OffsetDateTime.parse("2021-09-01T00:00:00.000Z"))
                    .withEndTime(OffsetDateTime.parse("2021-10-01T00:00:00.000Z"))
                    .withNumberOfBucket(4),
                Context.NONE);
    }
}
