Woo Commerce filter

This is my solution. I have found that this function (woocommerce_order_status_completed) is for when you made a payment or when you give completed status.

woocommerce_order_status_completed{
function check_quantity($order_id) {

global $wpdb;

$order = new WC_Order( $order_id );
$items = $order->get_items();

foreach ( $items as $item ) {
    $product_name = $item['name'];
    $product_id = $item['product_id'];
    $product_variation_id = $item['variation_id'];
    $pa_version = $item['pa_version'];
}    

..... etc...

}

I am still looking for how I should get variation values. if you know let know. this is what I have found.
Thanks,